diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-12 01:18:53 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-12 01:18:53 +0100 |
commit | 236a780baa959236ff7879d109fa8ba5b067dc88 (patch) | |
tree | 3dd364c143945d68406d05c005ddc4cbefb49fe0 /source4/heimdal | |
parent | 92950a9f2f300292c237a78b308d9e95fba2bed2 (diff) | |
download | samba-236a780baa959236ff7879d109fa8ba5b067dc88.tar.gz samba-236a780baa959236ff7879d109fa8ba5b067dc88.tar.bz2 samba-236a780baa959236ff7879d109fa8ba5b067dc88.zip |
idl: Use typedef rather than declare.
(This used to be commit 3fd750bd54f150ff62fd8165406bd26d03d624cf)
Diffstat (limited to 'source4/heimdal')
-rw-r--r-- | source4/heimdal/lib/com_err/lex.c | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/source4/heimdal/lib/com_err/lex.c b/source4/heimdal/lib/com_err/lex.c index 77e79d4eae..7a85b302a1 100644 --- a/source4/heimdal/lib/com_err/lex.c +++ b/source4/heimdal/lib/com_err/lex.c @@ -343,6 +343,9 @@ FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern int yylineno; + +int yylineno = 1; + extern char *yytext; #define yytext_ptr yytext @@ -530,7 +533,7 @@ static int getstring(void); #undef ECHO -#line 533 "heimdal/lib/com_err/lex.c" +#line 536 "heimdal/lib/com_err/lex.c" #define INITIAL 0 @@ -685,7 +688,7 @@ YY_DECL #line 59 "lex.l" -#line 688 "heimdal/lib/com_err/lex.c" +#line 691 "heimdal/lib/com_err/lex.c" if ( !(yy_init) ) { @@ -849,7 +852,7 @@ YY_RULE_SETUP #line 75 "lex.l" ECHO; YY_BREAK -#line 852 "heimdal/lib/com_err/lex.c" +#line 855 "heimdal/lib/com_err/lex.c" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1080,7 +1083,7 @@ static int yy_get_next_buffer (void) /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - (yy_n_chars), num_to_read ); + (yy_n_chars), (size_t) num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } @@ -1581,7 +1584,7 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. - * @param str a NUL-terminated string to scan + * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use @@ -1659,6 +1662,15 @@ static void yy_fatal_error (yyconst char* msg ) /* Accessor methods (get/set functions) to struct members. */ +/** Get the current line number. + * + */ +int yyget_lineno (void) +{ + + return yylineno; +} + /** Get the input stream. * */ @@ -1692,6 +1704,16 @@ char *yyget_text (void) return yytext; } +/** Set the current line number. + * @param line_number + * + */ +void yyset_lineno (int line_number ) +{ + + yylineno = line_number; +} + /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. |