diff options
author | vern <vern> | 1993-11-29 16:40:41 +0000 |
---|---|---|
committer | vern <vern> | 1993-11-29 16:40:41 +0000 |
commit | ebd0884377e6a5ecbe88142128b6a35bd8fc1661 (patch) | |
tree | 7deb029e2e2eac15d44bf24d382c0396d43a8ad4 /flexdef.h | |
parent | 7874c8e5dd33cf9b040ca5afcec83585e69f5c38 (diff) | |
download | flex-ebd0884377e6a5ecbe88142128b6a35bd8fc1661.tar.gz |
Fixed to buffer section 1 definitions
Diffstat (limited to 'flexdef.h')
-rw-r--r-- | flexdef.h | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -26,7 +26,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -/* @(#) $Header: /cvsroot/flex/flex/flexdef.h,v 2.25 1993/11/29 10:37:07 vern Exp $ (LBL) */ +/* @(#) $Header: /cvsroot/flex/flex/flexdef.h,v 2.26 1993/11/29 16:40:49 vern Exp $ (LBL) */ #include <stdio.h> #include <string.h> @@ -366,12 +366,12 @@ extern int yymore_really_used, reject_really_used; * * action_array - array to hold the rule actions * action_size - size of action_array - * prolog - pointer to where the prolog starts in action_array + * defs1_offset - index where the user's section 1 definitions start + * in action_array + * prolog_offset - index where the prolog starts in action_array * action_offset - index where the non-prolog starts in action_array * action_index - index where the next action should go, with respect - * to "action" - * action - pointer to where non-prolog starts; equal to - * &action_array[action_offset] + * to "action_array" */ extern int datapos, dataline, linenum; @@ -383,8 +383,9 @@ extern char **input_files; extern int num_input_files; extern char *program_name; -extern char *action_array, *prolog, *action; -extern int action_size, action_offset, action_index; +extern char *action_array; +extern int action_size; +extern int defs1_offset, prolog_offset, action_offset, action_index; /* Variables for stack of states having only one out-transition: @@ -738,6 +739,11 @@ extern void lerrsf PROTO((char[], char[])); /* Spit out a "# line" statement. */ extern void line_directive_out PROTO((FILE*)); +/* Mark the current position in the action array as the end of the section 1 + * user defs. + */ +extern void mark_defs1 PROTO((void)); + /* Mark the current position in the action array as the end of the prolog. */ extern void mark_prolog PROTO((void)); @@ -750,7 +756,7 @@ extern void mkdata PROTO((int)); /* generate a data statement */ extern int myctoi PROTO((char [])); /* Return a printable version of the given character, which might be - * 8-bit + * 8-bit. */ extern char *readable_form PROTO((int)); |