summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/tree.mli
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-09-29 14:40:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-09-29 14:40:02 +0000
commit7fe253aab7a266a8ad02b66be19dfe8ce789f8f8 (patch)
tree5acc69f78b16a7ee79d2d388c855e2366e15a916 /perl_checker.src/tree.mli
parent391a2cf6a573b86c08a43ef9a3da22834eb17a2c (diff)
downloadperl_checker-7fe253aab7a266a8ad02b66be19dfe8ce789f8f8.tar
perl_checker-7fe253aab7a266a8ad02b66be19dfe8ce789f8f8.tar.gz
perl_checker-7fe253aab7a266a8ad02b66be19dfe8ce789f8f8.tar.bz2
perl_checker-7fe253aab7a266a8ad02b66be19dfe8ce789f8f8.tar.xz
perl_checker-7fe253aab7a266a8ad02b66be19dfe8ce789f8f8.zip
re-organize to handle cleanly multi packages per file
=> fixes cache coherency
Diffstat (limited to 'perl_checker.src/tree.mli')
-rw-r--r--perl_checker.src/tree.mli12
1 files changed, 8 insertions, 4 deletions
diff --git a/perl_checker.src/tree.mli b/perl_checker.src/tree.mli
index 473ab39..fb449d5 100644
--- a/perl_checker.src/tree.mli
+++ b/perl_checker.src/tree.mli
@@ -18,7 +18,6 @@ type prototype = {
}
type per_package = {
- file_name : string ;
package_name : string ; has_package_name : bool ;
vars_declared : (context * string, pos * bool ref * prototype option) Hashtbl.t;
imported : ((context * string) * (string * bool ref * prototype option)) list option ref;
@@ -27,9 +26,14 @@ type per_package = {
required_packages : (string * pos) list ;
body : fromparser list;
isa : (string * pos) list option ;
+ }
+
+type per_file = {
+ file_name : string ;
+ require_name : string option ;
lines_starts : int list ;
build_time : int ;
- from_cache : bool ;
+ packages : per_package list ;
from_basedir : bool ;
}
@@ -39,10 +43,10 @@ val use_lib : string list ref
val uses_external_package : string -> bool
val findfile : string list -> string -> string
-val get_global_info_from_package : bool -> int -> fromparser list -> per_package list
+val get_global_info_from_package : bool -> string option -> int -> fromparser list -> per_file
val has_proto : string option -> fromparser -> ((context * string) list * pos * fromparser list) option
-val get_vars_declaration : (context * string * string, pos * prototype option) Hashtbl.t -> per_package -> unit
+val get_vars_declaration : (context * string * string, pos * prototype option) Hashtbl.t -> string -> per_package -> unit
val die_with_pos : string * int * int -> string -> 'a
val warn_with_pos : string * int * int -> string -> unit