View | Details | Raw Unified | Return to bug 159064
Collapse All | Expand All

(-)dt_lex.l.new (-1 / +14 lines)
Lines 44-50 Link Here
44
#undef input
44
#undef input
45
#undef unput
45
#undef unput
46
#else
46
#else
47
/* 
47
/*
48
 * Define YY_INPUT for flex since input() can't be re-defined.
48
 * Define YY_INPUT for flex since input() can't be re-defined.
49
 */
49
 */
50
#define YY_INPUT(buf,result,max_size) \
50
#define YY_INPUT(buf,result,max_size) \
Lines 59-64 Link Here
59
			buf[n] = *yypcb->pcb_strptr++; \
59
			buf[n] = *yypcb->pcb_strptr++; \
60
		result = n; \
60
		result = n; \
61
	}
61
	}
62
/*
63
 * Do not EOF let tokens to be put back. This does not work with flex.
64
 * On the other hand, leaving current buffer in same state it was when
65
 * last EOF was received guarantees that input() will keep returning EOF
66
 * for all subsequent invocations, which is the effect desired.
67
 */
68
#undef  unput
69
#define unput(c)					\
70
	do {						\
71
		int _c = c;				\
72
		if (_c != EOF)				\
73
			yyunput(_c, yytext_ptr);	\
74
	} while(0)
62
#endif
75
#endif
63
76
64
static int id_or_type(const char *);
77
static int id_or_type(const char *);

Return to bug 159064