module Pretty_source:sig
..end
type
localizable =
| |
PStmt of |
|||
| |
PLval of |
|||
| |
PExp of |
|||
| |
PTermLval of |
|||
| |
PVDecl of |
(* |
Declaration and definition of variables and function. Check the type
of the varinfo to distinguish between the various possibilities.
| *) |
| |
PGlobal of |
(* |
all globals but variable declarations and function
definitions.
| *) |
| |
PIP of |
module Localizable:Datatype.S
with type t = localizable
module Locs:sig
..end
val display_source : Cil_types.global list ->
GSourceView2.source_buffer ->
host:Gtk_helper.host ->
highlighter:(localizable -> start:int -> stop:int -> unit) ->
selector:(button:int -> localizable -> unit) ->
Locs.state
not !Gtk_helper.gui_unlocked
.
This returns a state
to pass to the functions defined hereafter.val hilite : Locs.state -> unit
val locate_localizable : Locs.state -> localizable -> (int * int) option
Locs.locs
.val kf_of_localizable : localizable -> Cil_types.kernel_function option
val ki_of_localizable : localizable -> Cil_types.kinstr
val varinfo_of_localizable : localizable -> Cil_types.varinfo option
val localizable_from_locs : Locs.state ->
file:string -> line:int -> localizable list
file
at line
visible in the current Locs.state
.
This function is inefficient as it iterates on all the current
Locs.state
.val loc_to_localizable : Lexing.position -> localizable option