~ubuntu-branches/ubuntu/karmic/coccinelle/karmic

« back to all changes in this revision

Viewing changes to parsing_c/lexer_parser.ml

  • Committer: Bazaar Package Importer
  • Author(s): Євгеній Мещеряков
  • Date: 2009-05-11 15:32:24 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090511153224-1odv41d4dkr3y80v
Tags: 0.1.8.deb-2
Use common install Makefile target for both native and bytecode
build. This hopefully fixes FTBFS on bytecode archs 

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
(* parse_typedef_fix *)
35
35
let _handle_typedef = ref true
36
36
 
 
37
let _always_look_typedef = ref false
 
38
 
37
39
(* parse_typedef_fix2 *)
38
40
let enable_typedef ()  = _handle_typedef := true
39
41
let disable_typedef () = _handle_typedef := false
54
56
let (_typedef : (string, identkind) Common.scoped_h_env ref) = 
55
57
  ref (Common.empty_scoped_h_env ())
56
58
   
57
 
let is_typedef s  = if !_handle_typedef then
 
59
let is_typedef s  = if !_handle_typedef || !_always_look_typedef then
58
60
  (match (Common.optionise (fun () -> Common.lookup_h_env s !_typedef)) with
59
61
  | Some TypeDefI -> true
60
62
  | Some IdentI -> false