ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/config-lexer.l
(Generate patch)

Comparing hopm/trunk/src/config-lexer.l (file contents):
Revision 7716 by michael, Mon Sep 26 12:08:43 2016 UTC vs.
Revision 7719 by michael, Mon Sep 26 13:17:52 2016 UTC

# Line 32 | Line 32
32   #include "config-parser.h"  /* autogenerated header file */
33   #include "log.h"
34  
35 + #undef YY_FATAL_ERROR
36 + #define YY_FATAL_ERROR(msg) conf_yy_fatal_error(msg)
37  
38   #undef YY_INPUT
39   #define YY_INPUT(buf,result,max_size) \
# Line 62 | Line 64 | static int conf_eof(void);
64   static int
65   conf_yy_input(char *lbuf, unsigned int max_size)
66   {
67 <  return !fgets(lbuf, max_size, conf_file) ? 0 : strlen(lbuf);
67 >  return fgets(lbuf, max_size, conf_file) == NULL ? 0 : strlen(lbuf);
68   }
69  
70 + static int
71 + conf_yy_fatal_error(const char *msg)
72 + {
73 +  return 0;
74 + }
75   %}
76  
77   WS        [[:blank:]]*

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)