Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/flex/dist/src delete the generated skeleton, we...
details: https://anonhg.NetBSD.org/src/rev/fa6987ea4243
branches: trunk
changeset: 350037:fa6987ea4243
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 02 18:41:18 2017 +0000
description:
delete the generated skeleton, we generate it all the time.
diffstat:
external/bsd/flex/dist/src/skel.c | 3843 -------------------------------------
1 files changed, 0 insertions(+), 3843 deletions(-)
diffs (truncated from 3847 to 300 lines):
diff -r 39d2b9e11fe5 -r fa6987ea4243 external/bsd/flex/dist/src/skel.c
--- a/external/bsd/flex/dist/src/skel.c Mon Jan 02 18:33:22 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,3843 +0,0 @@
-/* File created from flex.skl via mkskel.sh */
-
-#include "flexdef.h"
-
-const char *skel[] = {
- "%# -*-C-*- vi: set ft=c:",
- "%# This file is processed in several stages.",
- "%# Here are the stages, as best as I can describe:",
- "%#",
- "%# 1. flex.skl is processed through GNU m4 during the",
- "%# pre-compilation stage of flex. Only macros starting",
- "%# with `m4_' are processed, and quoting is normal.",
- "%#",
- "%# 2. The preprocessed skeleton is translated verbatim into a",
- "%# C array, saved as \"skel.c\" and compiled into the flex binary.",
- "%#",
- "%# 3. At runtime, the skeleton is generated and filtered (again)",
- "%# through m4. Macros beginning with `m4_' will be processed.",
- "%# The quoting is \"[[\" and \"]]\" so we don't interfere with",
- "%# user code.",
- "%# ",
- "%# All generate macros for the m4 stage contain the text \"m4\" or \"M4\"",
- "%# in them. This is to distinguish them from CPP macros.",
- "%# The exception to this rule is YY_G, which is an m4 macro, ",
- "%# but it needs to be remain short because it is used everywhere.",
- "%#",
- "/* A lexical scanner generated by flex */",
- "",
- "%# Macros for preproc stage.",
- "",
- "",
- "%# Macros for runtime processing stage.",
- "m4_changecom",
- "m4_changequote",
- "m4_changequote([[, ]])",
- "",
- "%# ",
- "%# Lines in this skeleton starting with a \"%\" character are \"control lines\"",
- "%# and affect the generation of the scanner. The possible control codes are",
- "%# listed and processed in misc.c.",
- "%#",
- "%# %# - A comment. The current line is omitted from the generated scanner.",
- "%# %if-c++-only - The following lines are printed for C++ scanners ONLY.",
- "%# %if-c-only - The following lines are NOT printed for C++ scanners.",
- "%# %if-c-or-c++ - The following lines are printed in BOTH C and C++ scanners.",
- "%# %if-reentrant - Print for reentrant scanners.(push)",
- "%# %if-not-reentrant - Print for non-reentrant scanners. (push)",
- "%# %if-bison-bridge - Print for bison-bridge. (push)",
- "%# %if-not-bison-bridge - Print for non-bison-bridge. (push)",
- "%# %endif - pop from the previous if code.",
- "%# %% - A stop-point, where code is inserted by flex.",
- "%# Each stop-point is numbered here and also in the code generator.",
- "%# (See gen.c, etc. for details.)",
- "%# %not-for-header - Begin code that should NOT appear in a \".h\" file.",
- "%# %ok-for-header - %c and %e are used for building a header file.",
- "%# %if-tables-serialization",
- "%#",
- "%# All control-lines EXCEPT comment lines (\"%#\") will be inserted into",
- "%# the generated scanner as a C-style comment. This is to aid those who",
- "%# edit the skeleton.",
- "%#",
- "",
- "%not-for-header",
- "%if-c-only",
- "%if-not-reentrant",
- "m4_ifelse(M4_YY_PREFIX,yy,,",
- "#define yy_create_buffer M4_YY_PREFIX[[_create_buffer]]",
- "#define yy_delete_buffer M4_YY_PREFIX[[_delete_buffer]]",
- "#define yy_flex_debug M4_YY_PREFIX[[_flex_debug]]",
- "#define yy_init_buffer M4_YY_PREFIX[[_init_buffer]]",
- "#define yy_flush_buffer M4_YY_PREFIX[[_flush_buffer]]",
- "#define yy_load_buffer_state M4_YY_PREFIX[[_load_buffer_state]]",
- "#define yy_switch_to_buffer M4_YY_PREFIX[[_switch_to_buffer]]",
- "#define yyin M4_YY_PREFIX[[in]]",
- "#define yyleng M4_YY_PREFIX[[leng]]",
- "#define yylex M4_YY_PREFIX[[lex]]",
- "#define yylineno M4_YY_PREFIX[[lineno]]",
- "#define yyout M4_YY_PREFIX[[out]]",
- "#define yyrestart M4_YY_PREFIX[[restart]]",
- "#define yytext M4_YY_PREFIX[[text]]",
- "#define yywrap M4_YY_PREFIX[[wrap]]",
- "#define yyalloc M4_YY_PREFIX[[alloc]]",
- "#define yyrealloc M4_YY_PREFIX[[realloc]]",
- "#define yyfree M4_YY_PREFIX[[free]]",
- ")",
- "%endif",
- "%endif",
- "%ok-for-header",
- "",
- "#define FLEX_SCANNER",
- "#define YY_FLEX_MAJOR_VERSION 2",
- "#define YY_FLEX_MINOR_VERSION 6",
- "#define YY_FLEX_SUBMINOR_VERSION 0",
- "#if YY_FLEX_SUBMINOR_VERSION > 0",
- "#define FLEX_BETA",
- "#endif",
- "",
- "%# Some negated symbols",
- "m4_ifdef( [[M4_YY_IN_HEADER]], , [[m4_define([[M4_YY_NOT_IN_HEADER]], [[]])]])",
- "m4_ifdef( [[M4_YY_REENTRANT]], , [[m4_define([[M4_YY_NOT_REENTRANT]], [[]])]])",
- "",
- "%# This is the m4 way to say \"(stack_used || is_reentrant)",
- "m4_ifdef( [[M4_YY_STACK_USED]], [[m4_define([[M4_YY_HAS_START_STACK_VARS]])]])",
- "m4_ifdef( [[M4_YY_REENTRANT]], [[m4_define([[M4_YY_HAS_START_STACK_VARS]])]])",
- "",
- "%# Prefixes.",
- "%# The complexity here is necessary so that m4 preserves",
- "%# the argument lists to each C function.",
- "",
- "",
- "m4_ifdef( [[M4_YY_PREFIX]],, [[m4_define([[M4_YY_PREFIX]], [[yy]])]])",
- "",
- "",
- "",
- "%if-c++-only",
- " /* The c++ scanner is a mess. The FlexLexer.h header file relies on the",
- " * following macro. This is required in order to pass the c++-multiple-scanners",
- " * test in the regression suite. We get reports that it breaks inheritance.",
- " * We will address this in a future release of flex, or omit the C++ scanner",
- " * altogether.",
- " */",
- " #define yyFlexLexer M4_YY_PREFIX[[FlexLexer]]",
- "%endif",
- "",
- "%if-c-only",
- " m4_define(yy[[_create_buffer]], [[M4_YY_PREFIX[[_create_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[_delete_buffer]], [[M4_YY_PREFIX[[_delete_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[_scan_buffer]], [[M4_YY_PREFIX[[_scan_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[_scan_string]], [[M4_YY_PREFIX[[_scan_string]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[_scan_bytes]], [[M4_YY_PREFIX[[_scan_bytes]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[_init_buffer]], [[M4_YY_PREFIX[[_init_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[_flush_buffer]], [[M4_YY_PREFIX[[_flush_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[_load_buffer_state]], [[M4_YY_PREFIX[[_load_buffer_state]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[_switch_to_buffer]], [[M4_YY_PREFIX[[_switch_to_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[push_buffer_state]], [[M4_YY_PREFIX[[push_buffer_state]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[pop_buffer_state]], [[M4_YY_PREFIX[[pop_buffer_state]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[ensure_buffer_stack]], [[M4_YY_PREFIX[[ensure_buffer_stack]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[lex]], [[M4_YY_PREFIX[[lex]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[restart]], [[M4_YY_PREFIX[[restart]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[lex_init]], [[M4_YY_PREFIX[[lex_init]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[lex_init_extra]], [[M4_YY_PREFIX[[lex_init_extra]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[lex_destroy]], [[M4_YY_PREFIX[[lex_destroy]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[get_debug]], [[M4_YY_PREFIX[[get_debug]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[set_debug]], [[M4_YY_PREFIX[[set_debug]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[get_extra]], [[M4_YY_PREFIX[[get_extra]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[set_extra]], [[M4_YY_PREFIX[[set_extra]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[get_in]], [[M4_YY_PREFIX[[get_in]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[set_in]], [[M4_YY_PREFIX[[set_in]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[get_out]], [[M4_YY_PREFIX[[get_out]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[set_out]], [[M4_YY_PREFIX[[set_out]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[get_leng]], [[M4_YY_PREFIX[[get_leng]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[get_text]], [[M4_YY_PREFIX[[get_text]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[get_lineno]], [[M4_YY_PREFIX[[get_lineno]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[set_lineno]], [[M4_YY_PREFIX[[set_lineno]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_ifdef( [[M4_YY_REENTRANT]],",
- " [[",
- " m4_define(yy[[get_column]], [[M4_YY_PREFIX[[get_column]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[set_column]], [[M4_YY_PREFIX[[set_column]]m4_ifelse($#,0,,[[($@)]])]])",
- " ]])",
- " m4_define(yy[[wrap]], [[M4_YY_PREFIX[[wrap]]m4_ifelse($#,0,,[[($@)]])]])",
- "%endif",
- "",
- "m4_ifdef( [[M4_YY_BISON_LVAL]],",
- "[[",
- " m4_define(yy[[get_lval]], [[M4_YY_PREFIX[[get_lval]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[set_lval]], [[M4_YY_PREFIX[[set_lval]]m4_ifelse($#,0,,[[($@)]])]])",
- "]])",
- "",
- "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
- "[[",
- " m4_define(yy[[get_lloc]], [[M4_YY_PREFIX[[get_lloc]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[set_lloc]], [[M4_YY_PREFIX[[set_lloc]]m4_ifelse($#,0,,[[($@)]])]])",
- "]])",
- "",
- "",
- " m4_define(yy[[alloc]], [[M4_YY_PREFIX[[alloc]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[realloc]], [[M4_YY_PREFIX[[realloc]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[free]], [[M4_YY_PREFIX[[free]]m4_ifelse($#,0,,[[($@)]])]])",
- "",
- "%if-c-only",
- "m4_ifdef( [[M4_YY_NOT_REENTRANT]],",
- "[[",
- " m4_define(yy[[text]], [[M4_YY_PREFIX[[text]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[leng]], [[M4_YY_PREFIX[[leng]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[in]], [[M4_YY_PREFIX[[in]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[out]], [[M4_YY_PREFIX[[out]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[_flex_debug]], [[M4_YY_PREFIX[[_flex_debug]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[lineno]], [[M4_YY_PREFIX[[lineno]]m4_ifelse($#,0,,[[($@)]])]])",
- "]])",
- "%endif",
- "",
- "",
- "m4_ifdef( [[M4_YY_TABLES_EXTERNAL]],",
- "[[",
- " m4_define(yy[[tables_fload]], [[M4_YY_PREFIX[[tables_fload]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[tables_destroy]], [[M4_YY_PREFIX[[tables_destroy]]m4_ifelse($#,0,,[[($@)]])]])",
- " m4_define(yy[[TABLES_NAME]], [[M4_YY_PREFIX[[TABLES_NAME]]m4_ifelse($#,0,,[[($@)]])]])",
- "]])",
- "",
- "/* First, we deal with platform-specific or compiler-specific issues. */",
- "",
- "/* begin standard C headers. */",
- "%if-c-only",
- "#ifdef _LIBC",
- "#include \"namespace.h\"",
- "#endif",
- "#include <stdio.h>",
- "#include <string.h>",
- "#include <errno.h>",
- "#include <stdlib.h>",
- "%endif",
- "",
- "%if-tables-serialization",
- "#include <sys/types.h>",
- "#include <netinet/in.h>",
- "%endif",
- "/* end standard C headers. */",
- "",
- "%if-c-or-c++",
- "/* $NetBSD: skel.c,v 1.2 2016/01/09 17:38:57 christos Exp $ */",
- "",
- "/* flex integer type definitions */",
- "",
- "#ifndef FLEXINT_H",
- "#define FLEXINT_H",
- "",
- "/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */",
- "",
- "#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L",
- "",
- "/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,",
- " * if you want the limit (max/min) macros for int types. ",
- " */",
- "#ifndef __STDC_LIMIT_MACROS",
- "#define __STDC_LIMIT_MACROS 1",
- "#endif",
- "",
- "#include <inttypes.h>",
- "typedef int8_t flex_int8_t;",
- "typedef uint8_t flex_uint8_t;",
- "typedef int16_t flex_int16_t;",
- "typedef uint16_t flex_uint16_t;",
- "typedef int32_t flex_int32_t;",
- "typedef uint32_t flex_uint32_t;",
- "#else",
- "typedef signed char flex_int8_t;",
- "typedef short int flex_int16_t;",
- "typedef int flex_int32_t;",
- "typedef unsigned char flex_uint8_t; ",
- "typedef unsigned short int flex_uint16_t;",
- "typedef unsigned int flex_uint32_t;",
- "",
- "/* Limits of integral types. */",
- "#ifndef INT8_MIN",
- "#define INT8_MIN (-128)",
- "#endif",
- "#ifndef INT16_MIN",
- "#define INT16_MIN (-32767-1)",
- "#endif",
- "#ifndef INT32_MIN",
- "#define INT32_MIN (-2147483647-1)",
- "#endif",
- "#ifndef INT8_MAX",
- "#define INT8_MAX (127)",
- "#endif",
- "#ifndef INT16_MAX",
- "#define INT16_MAX (32767)",
- "#endif",
- "#ifndef INT32_MAX",
- "#define INT32_MAX (2147483647)",
- "#endif",
- "#ifndef UINT8_MAX",
- "#define UINT8_MAX (255U)",
- "#endif",
- "#ifndef UINT16_MAX",
- "#define UINT16_MAX (65535U)",
- "#endif",
- "#ifndef UINT32_MAX",
- "#define UINT32_MAX (4294967295U)",
- "#endif",
- "",
- "#endif /* ! C99 */",
- "",
- "#endif /* ! FLEXINT_H */",
- "",
- "%endif",
- "",
- "%if-c++-only",
- "/* begin standard C++ headers. */",
- "#ifdef _LIBC",
- "#include \"namespace.h\"",
- "#endif",
- "#include <iostream> ",
- "#include <errno.h>",
- "#include <cstdlib>",
- "#include <cstdio>",
Home |
Main Index |
Thread Index |
Old Index