Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/lex/initskel.c
/* $FreeBSD$ */ | |||||
/* File created from flex.skl via mkskel.sh */ | /* File created from flex.skl via mkskel.sh */ | ||||
#include "flexdef.h" | #include "flexdef.h" | ||||
const char *skel[] = { | const char *skel[] = { | ||||
"/* A lexical scanner generated by flex */", | "/* A lexical scanner generated by flex */", | ||||
"", | "", | ||||
"", | "", | ||||
▲ Show 20 Lines • Show All 432 Lines • ▼ Show 20 Lines | const char *skel[] = { | ||||
"#else", | "#else", | ||||
"#define yyTABLES_NAME ]]M4_YY_PREFIX[[TABLES_NAME", | "#define yyTABLES_NAME ]]M4_YY_PREFIX[[TABLES_NAME", | ||||
"#endif]]", | "#endif]]", | ||||
"", | "", | ||||
"]])", | "]])", | ||||
"", | "", | ||||
"/* First, we deal with platform-specific or compiler-specific issues. */", | "/* First, we deal with platform-specific or compiler-specific issues. */", | ||||
"", | "", | ||||
"#if defined(__FreeBSD__)", | |||||
"#ifndef __STDC_LIMIT_MACROS", | |||||
"#define __STDC_LIMIT_MACROS", | |||||
"#endif", | |||||
"#include <sys/cdefs.h>", | |||||
"#include <stdint.h>", | |||||
"#else", | |||||
"#define __dead2", | |||||
"#endif", | |||||
"", | |||||
"/* begin standard C headers. */", | "/* begin standard C headers. */", | ||||
"%if-c-only", | "%if-c-only", | ||||
"#include <stdio.h>", | "#include <stdio.h>", | ||||
"#include <string.h>", | "#include <string.h>", | ||||
"#include <errno.h>", | "#include <errno.h>", | ||||
"#include <stdlib.h>", | "#include <stdlib.h>", | ||||
"%endif", | "%endif", | ||||
"", | "", | ||||
▲ Show 20 Lines • Show All 475 Lines • ▼ Show 20 Lines | const char *skel[] = { | ||||
"", | "", | ||||
"%if-c-only Standard (non-C++) definition", | "%if-c-only Standard (non-C++) definition", | ||||
"", | "", | ||||
"m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", | "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", | ||||
"[[", | "[[", | ||||
"static yy_state_type yy_get_previous_state ( M4_YY_PROTO_ONLY_ARG );", | "static yy_state_type yy_get_previous_state ( M4_YY_PROTO_ONLY_ARG );", | ||||
"static yy_state_type yy_try_NUL_trans ( yy_state_type current_state M4_YY_PROTO_LAST_ARG);", | "static yy_state_type yy_try_NUL_trans ( yy_state_type current_state M4_YY_PROTO_LAST_ARG);", | ||||
"static int yy_get_next_buffer ( M4_YY_PROTO_ONLY_ARG );", | "static int yy_get_next_buffer ( M4_YY_PROTO_ONLY_ARG );", | ||||
"static void yynoreturn yy_fatal_error ( const char* msg M4_YY_PROTO_LAST_ARG ) __dead2;", | "static void yynoreturn yy_fatal_error ( const char* msg M4_YY_PROTO_LAST_ARG );", | ||||
"]])", | "]])", | ||||
"", | "", | ||||
"%endif", | "%endif", | ||||
"", | "", | ||||
"m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", | "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", | ||||
"[[", | "[[", | ||||
"/* Done after the current pattern has been matched and before the", | "/* Done after the current pattern has been matched and before the", | ||||
" * corresponding action - sets up yytext.", | " * corresponding action - sets up yytext.", | ||||
▲ Show 20 Lines • Show All 1,336 Lines • ▼ Show 20 Lines | |||||
" /* Reset buffer status. */", | " /* Reset buffer status. */", | ||||
" yyrestart( yyin M4_YY_CALL_LAST_ARG);", | " yyrestart( yyin M4_YY_CALL_LAST_ARG);", | ||||
"", | "", | ||||
" /*FALLTHROUGH*/", | " /*FALLTHROUGH*/", | ||||
"", | "", | ||||
" case EOB_ACT_END_OF_FILE:", | " case EOB_ACT_END_OF_FILE:", | ||||
" {", | " {", | ||||
" if ( yywrap( M4_YY_CALL_ONLY_ARG ) )", | " if ( yywrap( M4_YY_CALL_ONLY_ARG ) )", | ||||
"#ifdef YY_FLEX_LEX_COMPAT", | |||||
" return 0;", | " return 0;", | ||||
"#else", | |||||
" return EOF;", | |||||
"#endif", | |||||
"", | "", | ||||
" if ( ! YY_G(yy_did_buffer_switch_on_eof) )", | " if ( ! YY_G(yy_did_buffer_switch_on_eof) )", | ||||
" YY_NEW_FILE;", | " YY_NEW_FILE;", | ||||
"#ifdef __cplusplus", | "#ifdef __cplusplus", | ||||
" return yyinput(M4_YY_CALL_ONLY_ARG);", | " return yyinput(M4_YY_CALL_ONLY_ARG);", | ||||
"#else", | "#else", | ||||
" return input(M4_YY_CALL_ONLY_ARG);", | " return input(M4_YY_CALL_ONLY_ARG);", | ||||
"#endif", | "#endif", | ||||
▲ Show 20 Lines • Show All 1,775 Lines • Show Last 20 Lines |