diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2001-11-05 13:34:42 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2001-11-05 13:34:42 +0000 |
commit | 2cf0db42321856b8a99d443b61ac5a589bfcfc25 (patch) | |
tree | 9c3d8c0e7354127e4de3289f20dd20eec2f6c9f6 /byterun/startup.c | |
parent | 4d1fc14e97e1549b6025612e60a97bdb5a53838d (diff) | |
download | ocaml-2cf0db42321856b8a99d443b61ac5a589bfcfc25.tar.gz |
Ajout mecanisme de trace dans les parsers ocamlyacc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3981 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/startup.c')
-rw-r--r-- | byterun/startup.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/byterun/startup.c b/byterun/startup.c index db1784c6c9..eb40eb72a0 100644 --- a/byterun/startup.c +++ b/byterun/startup.c @@ -60,6 +60,8 @@ #define SEEK_END 2 #endif +extern int parser_trace; + CAMLexport header_t atom_table[256]; /* Initialize the atom table */ @@ -235,10 +237,6 @@ static int parse_command_line(char **argv) case 't': trace_flag = 1; break; - case 'P': - { extern int parser_trace; - parser_trace = 1; - break; } #endif case 'v': verb_gc = 1+4+8+16+32; @@ -296,6 +294,7 @@ static void parse_camlrunparam(void) case 'O': scanmult (opt, &max_percent_free_init); break; case 'v': scanmult (opt, &verb_gc); break; case 'b': backtrace_active = 1; break; + case 'p': parser_trace = 1; break; } } } |