static inline int xdtoi(int);
#ifdef FLEX_SCANNER
-#define YY_NO_INPUT
-#define YY_NO_UNPUT
static YY_BUFFER_STATE in_buffer;
#else
static const char *in_buffer;
MAC ({B}:{B}:{B}:{B}:{B}:{B}|{B}\-{B}\-{B}\-{B}\-{B}\-{B}|{B}\.{B}\.{B}\.{B}\.{B}\.{B}|{B2}\.{B2}\.{B2}|{B2}{3})
+%option nounput
+%option noinput
%%
dst return DST;
%{
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <string.h>
#include "aliases_parse.h"
-#define YY_NO_INPUT
-
-int yylex(void);
%}
%option yylineno
+%option noinput
%option nounput
%%
* $FreeBSD: src/sbin/devd/token.l,v 1.7 2008/03/21 20:38:28 imp Exp $
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "y.tab.h"
int lineno = 1;
-#define YY_NO_INPUT
-#define YY_NO_UNPUT
static void
update_lineno(const char *cp)
%}
+%option nounput
+%option noinput
+
%%
[ \t]+ ;
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <err.h>
#include <errno.h>
#include <histedit.h>
#include "pathnames.h"
#include "y.tab.h"
-#define YY_NO_INPUT
-
int lineno;
bool interactive;
%}
%option always-interactive
+%option noinput
DIGIT [0-9A-F]
ALPHA [a-z_]
# $FreeBSD: src/usr.bin/colldef/Makefile,v 1.16.2.1 2002/08/17 18:57:10 ache Exp $
-# $DragonFly: src/usr.bin/colldef/Makefile,v 1.4 2007/08/27 16:50:52 pavalos Exp $
PROG= colldef
SRCS= parse.y scan.l y.tab.h
LFLAGS= -8 -i
CFLAGS+=-I. -I${.CURDIR}
-CFLAGS+=-DCOLLATE_DEBUG -DYY_NO_UNPUT
+CFLAGS+=-DCOLLATE_DEBUG
LDADD= -ll
DPADD= ${LIBL}
* SUCH DAMAGE.
*
* $FreeBSD: src/usr.bin/colldef/scan.l,v 1.11.2.2 2002/10/11 10:43:45 ache Exp $
- * $DragonFly: src/usr.bin/colldef/scan.l,v 1.4 2008/10/16 01:52:32 swildner Exp $
*/
#include <ctype.h>
#include "common.h"
#include "y.tab.h"
-#define YY_NO_INPUT
+#pragma GCC diagnostic ignored "-Wsign-compare"
int line_no = 1, save_no, fromsubs;
static u_char buffer[BUFSIZE], *buf_ptr;
#ifdef FLEX_DEBUG
YYSTYPE yylval;
#endif /* FLEX_DEBUG */
-int yylex(void);
%}
+%option noinput
+%option nounput
%%
<INITIAL,charmap,nchar,subs,subs2>[ \t]+ ;
<subs2>\" { buf_ptr = buffer; BEGIN(string); }
CFLAGS+= -I${CONTRIBDIR} -I${.OBJDIR} -I${.CURDIR}
CFLAGS+= -DHAVE_CONFIG_H
-WARNS?= 2
+WARNS?= 1
# verbatim from vendor makefile
flex_SOURCES = \
*
* $FreeBSD: src/usr.bin/m4/tokenizer.l,v 1.3 2012/11/17 01:54:24 svnexp Exp $
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include "parser.h"
#include <assert.h>
#include <stdlib.h>
int32_t number(void);
int32_t parse_radix(void);
-extern int yylex(void);
%}
delim [ \t\n]
/* $NetBSD: ldef.h,v 1.2 2006/09/09 14:35:17 tnozaki Exp $ */
-/* $DragonFly: src/usr.bin/mkcsmapper/ldef.h,v 1.2 2008/04/10 10:21:13 hasso Exp $ */
/*-
* Copyright (c)2003, 2006 Citrus Project,
uint32_t width;
} linear_zone_t;
-extern int line_number;
+extern int aline_number;
extern int debug;
int yyparse(void);
-int yylex(void);
int yyerror(const char *);
* SUCH DAMAGE.
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <machine/endian.h>
#include <assert.h>
#include <errno.h>
#include "ldef.h"
#include "yacc.h"
-#define YY_NO_INPUT
-#define YY_NO_UNPUT
-
-int line_number = 1;
+int aline_number = 1;
%}
+%option noinput
+%option nounput
+
%x COMMENT
%%
[ \t]+ { }
-#.*[\n]|"//".*[\n]|[\n] { line_number++; return (R_LN); }
+#.*[\n]|"//".*[\n]|[\n] { aline_number++; return (R_LN); }
"/*" { BEGIN COMMENT; }
<COMMENT>"*/" { BEGIN 0; }
-<COMMENT>[\n] { line_number++; }
+<COMMENT>[\n] { aline_number++; }
<COMMENT>. { }
<COMMENT><<EOF>> {
yyerror("unexpected file end (unterminate comment)\n");
/* $NetBSD: yacc.y,v 1.7 2006/09/09 14:35:17 tnozaki Exp $ */
-/* $DragonFly: src/usr.bin/mkcsmapper/yacc.y,v 1.3 2008/07/10 18:29:51 swildner Exp $ */
%{
/*-
static void put32(void *, size_t, u_int32_t);
static void set_range(u_int32_t, u_int32_t);
static void set_src(linear_zone_t *, u_int32_t, u_int32_t);
+
+int yylex (void);
%}
%union {
static void
warning(const char *s)
{
- fprintf(stderr, "%s in %d\n", s, line_number);
+ fprintf(stderr, "%s in %d\n", s, aline_number);
}
int
/* $NetBSD: src/usr.bin/mkesdb/ldef.h,v 1.1 2003/06/26 06:30:17 tshiozak Exp $ */
-/* $DragonFly: src/usr.bin/mkesdb/ldef.h,v 1.2 2005/05/06 13:16:08 corecode Exp $ */
/*-
* Copyright (c)2003 Citrus Project,
* SUCH DAMAGE.
*/
-extern int line_number;
+extern int aline_number;
int yyparse(void);
-int yylex(void);
int yyerror(const char *);
struct named_csid {
* SUCH DAMAGE.
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <sys/endian.h>
#include <sys/queue.h>
#include <assert.h>
#include "ldef.h"
#include "yacc.h"
-#define YY_NO_INPUT
-#define YY_NO_UNPUT
-
-int line_number = 1;
+int aline_number = 1;
%}
+%option noinput
+%option nounput
+
%x COMMENT
%%
[ \t]+ { }
-#.*[\n]|"//".*[\n]|[\n] { line_number++; return (R_LN); }
+#.*[\n]|"//".*[\n]|[\n] { aline_number++; return (R_LN); }
"/*" { BEGIN COMMENT; }
<COMMENT>"*/" { BEGIN 0; }
-<COMMENT>[\n] { line_number++; }
+<COMMENT>[\n] { aline_number++; }
<COMMENT>. { }
<COMMENT><<EOF>> {
yyerror("unexpected file end (unterminate comment)\n");
/* $NetBSD: src/usr.bin/mkesdb/yacc.y,v 1.3 2004/01/02 12:09:48 itojun Exp $ */
-/* $DragonFly: src/usr.bin/mkesdb/yacc.y,v 1.2 2008/07/10 18:29:51 swildner Exp $ */
%{
/*-
static void register_named_csid(char *, uint32_t);
static void set_prop_string(const char *, char **, char **);
static void set_invalid(uint32_t);
+
+int yylex (void);
%}
%union {
uint32_t i_value;
int
yyerror(const char *s)
{
- fprintf(stderr, "%s in %d\n", s, line_number);
+ fprintf(stderr, "%s in %d\n", s, aline_number);
return (0);
}
/* $NetBSD: src/usr.bin/mklocale/lex.l,v 1.13 2003/10/27 00:12:43 lukem Exp $ */
-/* $DragonFly: src/usr.bin/mklocale/lex.l,v 1.7 2008/06/21 20:01:14 swildner Exp $ */
%{
/*-
* SUCH DAMAGE.
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "ldef.h"
#include "yacc.h"
-int yylex(void);
%}
ODIGIT [0-7]
* $FreeBSD: src/usr.sbin/apmd/apmdlex.l,v 1.2.2.1 2001/08/13 17:30:30 nsayer Exp $
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <string.h>
#include <syslog.h>
#include <bitstring.h>
#include "apmd.h"
#include "y.tab.h"
-/* We don't need them, avoid the warnings. */
-#define YY_NO_INPUT
-#define YY_NO_UNPUT
-
int lineno;
int first_time;
%}
+%option noinput
+%option nounput
+
%s TOP
%%
* $FreeBSD: src/usr.sbin/bluetooth/hcsecd/lexer.l,v 1.1 2003/05/10 21:50:35 julian Exp $
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <string.h>
#include "parser.h"
-#define YY_NO_INPUT
-
-int yylex(void);
%}
%option yylineno noyywrap nounput
+%option noinput
delim [ \t\n]
ws {delim}+
void init_dev(struct device *);
void newbus_ioconf(void);
int yyparse(void);
-int yylex(void);
void options(void);
void makefile(void);
void headers(void);
static int connect(char *, int);
static void yyerror(const char *s);
+int yylex(void);
%}
%%
*
* @(#)lang.l 8.1 (Berkeley) 6/6/93
* $FreeBSD: src/usr.sbin/config/lang.l,v 1.27 1999/11/09 07:20:22 peter Exp $
- * $DragonFly: src/usr.sbin/config/lang.l,v 1.14 2008/05/01 09:24:42 swildner Exp $
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <ctype.h>
#include <string.h>
#include "y.tab.h"
#include "config.h"
-#define YY_NO_INPUT
-#define YY_NO_UNPUT
-
/*
* Key word table
*/
WORD [A-Za-z_][-A-Za-z_]*
ID [A-Za-z_][-A-Za-z_0-9]*
%START NONUM TOEOL
+%option noinput
+%option nounput
%%
<NONUM>{WORD} {
int i;
#include "path.h"
#include "lex.h"
+int yylex(void);
+
char ctrl_names[32][4] = {
"nul", "soh", "stx", "etx", "eot", "enq", "ack", "bel",
"bs ", "ht ", "nl ", "vt ", "ff ", "cr ", "so ", "si ",
extern int number;
extern char letter;
-
-extern int yylex(void);
*/
%{
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include "lex.h"
-
-#define YY_NO_INPUT
-#define YY_NO_UNPUT
%}
+%option noinput
+%option nounput
+
D [0-9]
X [0-9a-fA-F]
A .
* $FreeBSD: src/usr.sbin/ndiscvt/inf-token.l,v 1.3 2004/01/11 21:10:35 mdodd Exp $
*/
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <regex.h>
#include <ctype.h>
#include <err.h>
#include "y.tab.h"
int lineno = 1;
-#define YY_NO_INPUT
-#define YY_NO_UNPUT
-int yylex(void);
void yyerror(const char *);
static void
%}
+%option noinput
+%option nounput
+
%%
[ \t]+ ;
*/
%{
-#define YY_NO_INPUT
-#define YY_NO_UNPUT
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
int parse(FILE **);
void yyerror(const char *);
-int yylex(void);
%}
+%option noinput
+%option nounput
+
/* common section */
nl \n
ws [ \t]+
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.1.2.5 2001/04/25 14:05:11 ru Exp $
-# $DragonFly: src/usr.sbin/setkey/Makefile,v 1.6 2004/11/16 22:04:37 joerg Exp $
PROG= setkey
SRCS= setkey.c parse.y token.l
SRCS+=y.tab.h
y.tab.h: parse.y
-CFLAGS+=-DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I.
+CFLAGS+=-DIPSEC_DEBUG -DINET6 -I.
DPADD+= ${LIBIPSEC}
LDADD+= -lipsec
CLEANFILES+= scriptdump y.tab.h
*/
%{
+#pragma GCC diagnostic ignored "-Wsign-compare"
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#define PREPROC DECHO CMDARG
-#define YY_NO_INPUT
-
int lineno = 1;
char cmdarg[8192]; /* XXX: BUFSIZ is the better ? */
extern u_int m_len;
extern int f_debug;
-int yylex(void);
void yyfatal(const char *s);
void yyerror(const char *s);
extern void parse_init(void);
%}
+%option noinput
+%option nounput
+
/* common section */
nl \n
ws [ \t]+