/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k.
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
+ * Ditto for the __ia64__ case accordingly.
+ */
+#define YY_BUF_SIZE 32768
+#else
#define YY_BUF_SIZE 16384
+#endif /* __ia64__ */
#endif
/* The state buf must be large enough to hold one state per character in the main buffer.
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <stdio.h>
#include "lc_parser_t.h"
#include "lc_config_parser.h"
-static int _lc_opt_wrap(void)
-{
- return 1;
-}
+#define YY_NO_UNISTD_H
+static int _lc_opt_wrap(void);
-#line 540 "lc_config_lexer.c"
+
+#line 547 "lc_config_lexer.c"
#define INITIAL 0
#define LINE_COMMENT 1
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k */
+#define YY_READ_BUF_SIZE 16384
+#else
#define YY_READ_BUF_SIZE 8192
+#endif /* __ia64__ */
#endif
/* Copy whatever the last rule matched to the standard output. */
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( _lc_opt_text, _lc_opt_leng, 1, _lc_opt_out )
+#define ECHO do { if (fwrite( _lc_opt_text, _lc_opt_leng, 1, _lc_opt_out )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
errno=0; \
while ( (result = fread(buf, 1, max_size, _lc_opt_in))==0 && ferror(_lc_opt_in)) \
{ \
- if ( errno != EINTR) \
+ if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
register char *yy_cp, *yy_bp;
register int yy_act;
-#line 55 "lc_config_lexer.l"
+#line 54 "lc_config_lexer.l"
-#line 730 "lc_config_lexer.c"
+#line 742 "lc_config_lexer.c"
if ( !(yy_init) )
{
case 1:
YY_RULE_SETUP
-#line 57 "lc_config_lexer.l"
+#line 56 "lc_config_lexer.l"
{ BEGIN(BIG_COMMENT); }
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 58 "lc_config_lexer.l"
+#line 57 "lc_config_lexer.l"
{ BEGIN(INITIAL); }
YY_BREAK
case 3:
/* rule 3 can match eol */
YY_RULE_SETUP
-#line 59 "lc_config_lexer.l"
+#line 58 "lc_config_lexer.l"
PMANGLE(linenr)++;
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 60 "lc_config_lexer.l"
+#line 59 "lc_config_lexer.l"
;
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 62 "lc_config_lexer.l"
+#line 61 "lc_config_lexer.l"
{ BEGIN(LINE_COMMENT); }
YY_BREAK
case 6:
/* rule 6 can match eol */
YY_RULE_SETUP
-#line 63 "lc_config_lexer.l"
+#line 62 "lc_config_lexer.l"
{ BEGIN(INITIAL); PMANGLE(linenr)++; }
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 64 "lc_config_lexer.l"
+#line 63 "lc_config_lexer.l"
;
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 67 "lc_config_lexer.l"
+#line 66 "lc_config_lexer.l"
{ BEGIN(DAT); }
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 68 "lc_config_lexer.l"
+#line 67 "lc_config_lexer.l"
{ BEGIN(STR); }
YY_BREAK
case 10:
YY_RULE_SETUP
-#line 69 "lc_config_lexer.l"
+#line 68 "lc_config_lexer.l"
{ BEGIN(DAT_CONT); }
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 70 "lc_config_lexer.l"
+#line 69 "lc_config_lexer.l"
{ _lc_opt_add_to_data_char(PMANGLE(text)[0]); }
YY_BREAK
case 12:
/* rule 12 can match eol */
YY_RULE_SETUP
-#line 71 "lc_config_lexer.l"
+#line 70 "lc_config_lexer.l"
{
BEGIN(INITIAL);
PMANGLE(linenr)++;
case 13:
/* rule 13 can match eol */
YY_RULE_SETUP
-#line 77 "lc_config_lexer.l"
+#line 76 "lc_config_lexer.l"
{ BEGIN(DAT); PMANGLE(linenr)++; }
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 78 "lc_config_lexer.l"
+#line 77 "lc_config_lexer.l"
;
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 81 "lc_config_lexer.l"
+#line 80 "lc_config_lexer.l"
{
BEGIN(INITIAL);
_lc_opt_add_to_data_char('\0');
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 87 "lc_config_lexer.l"
+#line 86 "lc_config_lexer.l"
_lc_opt_add_to_data_char('\n');
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 88 "lc_config_lexer.l"
+#line 87 "lc_config_lexer.l"
_lc_opt_add_to_data_char('\r');
YY_BREAK
case 18:
YY_RULE_SETUP
-#line 89 "lc_config_lexer.l"
+#line 88 "lc_config_lexer.l"
_lc_opt_add_to_data_char('\t');
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 90 "lc_config_lexer.l"
+#line 89 "lc_config_lexer.l"
_lc_opt_add_to_data_char('\b');
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 91 "lc_config_lexer.l"
+#line 90 "lc_config_lexer.l"
_lc_opt_add_to_data_char('\f');
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 92 "lc_config_lexer.l"
+#line 91 "lc_config_lexer.l"
_lc_opt_add_to_data_char(_lc_opt_text[1]);
YY_BREAK
case 22:
/* rule 22 can match eol */
YY_RULE_SETUP
-#line 93 "lc_config_lexer.l"
+#line 92 "lc_config_lexer.l"
_lc_opt_add_to_data_char(_lc_opt_text[0]);
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 95 "lc_config_lexer.l"
+#line 94 "lc_config_lexer.l"
{
PMANGLE(lval).text.str = PMANGLE(text);
PMANGLE(lval).text.len = PMANGLE(leng);
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 100 "lc_config_lexer.l"
+#line 99 "lc_config_lexer.l"
{ return SEP; }
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 102 "lc_config_lexer.l"
+#line 101 "lc_config_lexer.l"
;
YY_BREAK
case 26:
/* rule 26 can match eol */
YY_RULE_SETUP
-#line 103 "lc_config_lexer.l"
+#line 102 "lc_config_lexer.l"
PMANGLE(linenr)++;
YY_BREAK
case 27:
YY_RULE_SETUP
-#line 105 "lc_config_lexer.l"
+#line 104 "lc_config_lexer.l"
return _lc_opt_text[0];
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 107 "lc_config_lexer.l"
+#line 106 "lc_config_lexer.l"
ECHO;
YY_BREAK
-#line 972 "lc_config_lexer.c"
+#line 984 "lc_config_lexer.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(LINE_COMMENT):
case YY_STATE_EOF(BIG_COMMENT):
/** Setup the input buffer state to scan the given bytes. The next call to _lc_opt_lex() will
* scan from a @e copy of @a bytes.
- * @param bytes the byte buffer to scan
- * @param len the number of bytes in the buffer pointed to by @a bytes.
+ * @param yybytes the byte buffer to scan
+ * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
*
* @return the newly allocated buffer state object.
*/
{
/* Pop the buffer stack, destroying each element. */
- while (YY_CURRENT_BUFFER){
+ while(YY_CURRENT_BUFFER){
_lc_opt__delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
_lc_opt_pop_buffer_state();
#define YYTABLES_NAME "yytables"
-#line 107 "lc_config_lexer.l"
+#line 106 "lc_config_lexer.l"
+
+
+
+static int _lc_opt_wrap(void)
+{
+ /* avoid warning */
+ (void) yyunput;
+ (void) input;
+ return 1;
+}