summaryrefslogtreecommitdiff
path: root/tables_shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'tables_shared.h')
-rw-r--r--tables_shared.h89
1 files changed, 34 insertions, 55 deletions
diff --git a/tables_shared.h b/tables_shared.h
index bbf9910..1903ad3 100644
--- a/tables_shared.h
+++ b/tables_shared.h
@@ -1,51 +1,38 @@
-#ifdef FLEX_SCANNER
/*
-dnl tables_shared.h - tables serialization header
-dnl
-dnl Copyright (c) 1990 The Regents of the University of California.
-dnl All rights reserved.
-dnl
-dnl This code is derived from software contributed to Berkeley by
-dnl Vern Paxson.
-dnl
-dnl The United States Government has rights in this work pursuant
-dnl to contract no. DE-AC03-76SF00098 between the United States
-dnl Department of Energy and the University of California.
-dnl
-dnl This file is part of flex.
-dnl
-dnl Redistribution and use in source and binary forms, with or without
-dnl modification, are permitted provided that the following conditions
-dnl are met:
-dnl
-dnl 1. Redistributions of source code must retain the above copyright
-dnl notice, this list of conditions and the following disclaimer.
-dnl 2. Redistributions in binary form must reproduce the above copyright
-dnl notice, this list of conditions and the following disclaimer in the
-dnl documentation and/or other materials provided with the distribution.
-dnl
-dnl Neither the name of the University nor the names of its contributors
-dnl may be used to endorse or promote products derived from this software
-dnl without specific prior written permission.
-dnl
-dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-dnl IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-dnl WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-dnl PURPOSE.
-
-dnl
-dnl This file is meant to be included in both the skeleton and the actual
-dnl flex code (hence the name "_shared").
+ * tables_shared.h - tables serialization header
+ *
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Vern Paxson.
+ *
+ * The United States Government has rights in this work pursuant
+ * to contract no. DE-AC03-76SF00098 between the United States
+ * Department of Energy and the University of California.
+ *
+ * This file is part of flex.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
*/
-#ifndef yyskel_static
-#define yyskel_static static
-#endif
-#else
-#ifndef yyskel_static
-#define yyskel_static
-#endif
-#endif
-
+
/* Structures and prototypes for serializing flex tables. The
* binary format is documented in the manual.
*
@@ -68,13 +55,13 @@ dnl flex code (hence the name "_shared").
#define yypad64(n) ((8-((n)%8))%8)
#endif
-
#ifndef YYTABLES_TYPES
#define YYTABLES_TYPES
/** Possible values for td_id field. Each one corresponds to a
* scanner table of the same name.
*/
enum yytbl_id {
+ YYTD_ID_END = 0x00,
YYTD_ID_ACCEPT = 0x01, /**< 1-dim ints */
YYTD_ID_BASE = 0x02, /**< 1-dim ints */
YYTD_ID_CHK = 0x03, /**< 1-dim ints */
@@ -133,12 +120,4 @@ struct yytbl_data {
:sizeof(flex_int32_t)))
#endif
-#ifdef FLEX_SCANNER
-%not-for-header
-#endif
-yyskel_static flex_int32_t yytbl_calc_total_len (const struct yytbl_data *tbl);
-#ifdef FLEX_SCANNER
-%ok-for-header
-#endif
-
/* vim:set noexpandtab cindent tabstop=8 softtabstop=0 shiftwidth=8 textwidth=0: */