Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
include.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "ast/allocator.h"
#include <unistd.h>
Include dependency graph for include.c:

Go to the source code of this file.

Data Structures

struct  yy_buffer_state
 
struct  yy_trans_info
 
struct  Tag
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   inc_create_buffer
 
#define yy_delete_buffer   inc_delete_buffer
 
#define yy_scan_buffer   inc_scan_buffer
 
#define yy_scan_string   inc_scan_string
 
#define yy_scan_bytes   inc_scan_bytes
 
#define yy_init_buffer   inc_init_buffer
 
#define yy_flush_buffer   inc_flush_buffer
 
#define yy_load_buffer_state   inc_load_buffer_state
 
#define yy_switch_to_buffer   inc_switch_to_buffer
 
#define yypush_buffer_state   incpush_buffer_state
 
#define yypop_buffer_state   incpop_buffer_state
 
#define yyensure_buffer_stack   incensure_buffer_stack
 
#define yy_flex_debug   inc_flex_debug
 
#define yyin   incin
 
#define yyleng   incleng
 
#define yylex   inclex
 
#define yylineno   inclineno
 
#define yyout   incout
 
#define yyrestart   increstart
 
#define yytext   inctext
 
#define yywrap   incwrap
 
#define yyalloc   incalloc
 
#define yyrealloc   increalloc
 
#define yyfree   incfree
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define FLEX_BETA
 
#define inc_create_buffer_ALREADY_DEFINED
 
#define inc_delete_buffer_ALREADY_DEFINED
 
#define inc_scan_buffer_ALREADY_DEFINED
 
#define inc_scan_string_ALREADY_DEFINED
 
#define inc_scan_bytes_ALREADY_DEFINED
 
#define inc_init_buffer_ALREADY_DEFINED
 
#define inc_flush_buffer_ALREADY_DEFINED
 
#define inc_load_buffer_state_ALREADY_DEFINED
 
#define inc_switch_to_buffer_ALREADY_DEFINED
 
#define incpush_buffer_state_ALREADY_DEFINED
 
#define incpop_buffer_state_ALREADY_DEFINED
 
#define incensure_buffer_stack_ALREADY_DEFINED
 
#define inclex_ALREADY_DEFINED
 
#define increstart_ALREADY_DEFINED
 
#define yylex_init   inclex_init
 
#define yylex_init_extra   inclex_init_extra
 
#define yylex_destroy   inclex_destroy
 
#define yyget_debug   incget_debug
 
#define yyset_debug   incset_debug
 
#define yyget_extra   incget_extra
 
#define yyset_extra   incset_extra
 
#define yyget_in   incget_in
 
#define yyset_in   incset_in
 
#define yyget_out   incget_out
 
#define yyset_out   incset_out
 
#define yyget_leng   incget_leng
 
#define yyget_text   incget_text
 
#define yyget_lineno   incget_lineno
 
#define yyset_lineno   incset_lineno
 
#define incwrap_ALREADY_DEFINED
 
#define incalloc_ALREADY_DEFINED
 
#define increalloc_ALREADY_DEFINED
 
#define incfree_ALREADY_DEFINED
 
#define inctext_ALREADY_DEFINED
 
#define incleng_ALREADY_DEFINED
 
#define incin_ALREADY_DEFINED
 
#define incout_ALREADY_DEFINED
 
#define inc_flex_debug_ALREADY_DEFINED
 
#define inclineno_ALREADY_DEFINED
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define SIZE_MAX   (~(size_t)0)
 
#define yyconst   const
 
#define yynoreturn
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((YY_CHAR) (c))
 
#define BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   yyrestart( yyin )
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define YY_LINENO_REWIND_TO(dst)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )
 
#define yy_new_buffer   yy_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define incwrap()   (/*CONSTCOND*/1)
 
#define YY_SKIP_YYWRAP
 
#define yytext_ptr   yytext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   21
 
#define YY_END_OF_BUFFER   22
 
#define REJECT
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define pop()   _stack[stack--];
 
#define nonspace(s)   { while (strchr(" \t\v\n\f", *s)) s++; }
 
#define space(s)   { while (!strchr(" \t\v\n\f", *s)) s++; }
 
#define INITIAL   0
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int yylex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   /*LINTED*/break;
 
#define YY_RULE_SETUP
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

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
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef flex_uint8_t YY_CHAR
 
typedef int yy_state_type
 

Enumerations

enum  { FUNCTION , TYPEDEF }
 

Functions

void increstart (FILE *input_file)
 Immediately switch to a different input stream.
 
void inc_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 Switch to a different input buffer.
 
YY_BUFFER_STATE inc_create_buffer (FILE *file, int size)
 Allocate and initialize an input buffer state.
 
void inc_delete_buffer (YY_BUFFER_STATE b)
 Destroy the buffer.
 
void inc_flush_buffer (YY_BUFFER_STATE b)
 Discard all buffered characters.
 
void incpush_buffer_state (YY_BUFFER_STATE new_buffer)
 Pushes the new state onto the stack.
 
void incpop_buffer_state (void)
 Removes and deletes the top of the stack, if present.
 
static void incensure_buffer_stack (void)
 
static void inc_load_buffer_state (void)
 
static void inc_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE inc_scan_buffer (char *base, yy_size_t size)
 Setup the input buffer state to scan directly from a user-specified character buffer.
 
YY_BUFFER_STATE inc_scan_string (const char *yystr)
 Setup the input buffer state to scan a string.
 
YY_BUFFER_STATE inc_scan_bytes (const char *yybytes, int _yybytes_len)
 Setup the input buffer state to scan the given bytes.
 
voidincalloc (yy_size_t)
 
voidincrealloc (void *, yy_size_t)
 
void incfree (void *)
 
static yy_state_type yy_get_previous_state (void)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
static int yy_get_next_buffer (void)
 
static void yy_fatal_error (const char *msg)
 
static void append_tag (Tag t)
 
static Taglookup_tag (const char *id)
 
static charstrip_path (char *s)
 
static charpush (char *s)
 
static int strcmps (char *s1, char *s2)
 
static void push_once (char *s)
 
static void singleslash (char *path, FILE *fp)
 
static FILEopenpath (const char *name, const char *mode, char **path)
 
static charshortpath (char *path)
 
static void check_tag (char *text)
 
static int yyerror (const char *s)
 
static int comment (void)
 
static void echo ()
 
static void echo_c (int c)
 
static int yy_init_globals (void)
 
int inclex_destroy (void)
 
int incget_debug (void)
 
void incset_debug (int debug_flag)
 
voidincget_extra (void)
 
void incset_extra (void *user_defined)
 
FILEincget_in (void)
 Get the input stream.
 
void incset_in (FILE *_in_str)
 Set the input stream.
 
FILEincget_out (void)
 Get the output stream.
 
void incset_out (FILE *_out_str)
 
int incget_leng (void)
 Get the length of the current token.
 
charincget_text (void)
 Get the current token.
 
int incget_lineno (void)
 Get the current line number.
 
void incset_lineno (int _line_number)
 Set the current line number.
 
static void yyunput (int c, char *buf_ptr)
 
static int input (void)
 
int inclex (void)
 The main scanner function which does all the work.
 
static int getput (void)
 
void stripname (char *path)
 
charstripslash (char *path)
 
static int is_code (const char *file)
 
static int include (char *file, FILE *fin, FILE *fout)
 
FILEwritepath (char *path, const char *mode)
 
static void compdir (char *file, const char *dir)
 
static void prepend_path (char *path)
 
void includes (int argc, char **argv, char **grid1, int *default_grid, int *dim, int *bg, int *lyrs, int *gpus, const char *dir)
 

Variables

int incleng
 
FILEincin = NULL
 
FILEincout = NULL
 
static size_t yy_buffer_stack_top = 0
 index of top of stack.
 
static size_t yy_buffer_stack_max = 0
 capacity of stack.
 
static YY_BUFFER_STATEyy_buffer_stack = NULL
 Stack as an array.
 
static char yy_hold_char
 
static int yy_n_chars
 
static charyy_c_buf_p = NULL
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int inclineno = 1
 
charinctext
 
static const flex_int16_t yy_acclist [76]
 
static const flex_int16_t yy_accept [158]
 
static const YY_CHAR yy_ec [256]
 
static const YY_CHAR yy_meta [60]
 
static const flex_int16_t yy_base [172]
 
static const flex_int16_t yy_def [172]
 
static const flex_int16_t yy_nxt [606]
 
static const flex_int16_t yy_chk [606]
 
static const flex_int32_t yy_rule_can_match_eol [22]
 
int inc_flex_debug = 0
 
static yy_state_typeyy_state_buf =0
 
static yy_state_typeyy_state_ptr =0
 
static charyy_full_match
 
static int yy_lp
 
static Tagtagsa = NULL
 
static int ntags = 0
 
static int target = 1
 
static int keywords_only = 0
 
static int scope = 0
 
static int intypedef = 0
 
static int warninclude = 0
 
static FILEswigfp = NULL
 
static Allocatoralloc = NULL
 
static FILEfdepend = NULL
 
static FILEftags = NULL
 
static FILEmyout = NULL
 
static charfname
 
static charpaths [100] = { LIBDIR }
 
static char grid [80] = ""
 
static int npath = 1
 
static int hasgrid = 0
 
static int debug = 0
 
static int = 0
 
static bghosts = 0
 
static layers = 0
 
static gpu = 0
 
static int incode
 
static char_stack [100]
 
int stack = -1
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 379 of file include.c.

◆ ECHO

#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)

Definition at line 1220 of file include.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 423 of file include.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 424 of file include.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 425 of file include.c.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 41 of file include.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 36 of file include.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 291 of file include.c.

◆ inc_create_buffer_ALREADY_DEFINED

#define inc_create_buffer_ALREADY_DEFINED

Definition at line 45 of file include.c.

◆ inc_delete_buffer_ALREADY_DEFINED

#define inc_delete_buffer_ALREADY_DEFINED

Definition at line 51 of file include.c.

◆ inc_flex_debug_ALREADY_DEFINED

#define inc_flex_debug_ALREADY_DEFINED

Definition at line 267 of file include.c.

◆ inc_flush_buffer_ALREADY_DEFINED

#define inc_flush_buffer_ALREADY_DEFINED

Definition at line 81 of file include.c.

◆ inc_init_buffer_ALREADY_DEFINED

#define inc_init_buffer_ALREADY_DEFINED

Definition at line 75 of file include.c.

◆ inc_load_buffer_state_ALREADY_DEFINED

#define inc_load_buffer_state_ALREADY_DEFINED

Definition at line 87 of file include.c.

◆ inc_scan_buffer_ALREADY_DEFINED

#define inc_scan_buffer_ALREADY_DEFINED

Definition at line 57 of file include.c.

◆ inc_scan_bytes_ALREADY_DEFINED

#define inc_scan_bytes_ALREADY_DEFINED

Definition at line 69 of file include.c.

◆ inc_scan_string_ALREADY_DEFINED

#define inc_scan_string_ALREADY_DEFINED

Definition at line 63 of file include.c.

◆ inc_switch_to_buffer_ALREADY_DEFINED

#define inc_switch_to_buffer_ALREADY_DEFINED

Definition at line 93 of file include.c.

◆ incalloc_ALREADY_DEFINED

#define incalloc_ALREADY_DEFINED

Definition at line 225 of file include.c.

◆ incensure_buffer_stack_ALREADY_DEFINED

#define incensure_buffer_stack_ALREADY_DEFINED

Definition at line 111 of file include.c.

◆ incfree_ALREADY_DEFINED

#define incfree_ALREADY_DEFINED

Definition at line 237 of file include.c.

◆ incin_ALREADY_DEFINED

#define incin_ALREADY_DEFINED

Definition at line 255 of file include.c.

◆ incleng_ALREADY_DEFINED

#define incleng_ALREADY_DEFINED

Definition at line 249 of file include.c.

◆ inclex_ALREADY_DEFINED

#define inclex_ALREADY_DEFINED

Definition at line 117 of file include.c.

◆ inclineno_ALREADY_DEFINED

#define inclineno_ALREADY_DEFINED

Definition at line 273 of file include.c.

◆ incout_ALREADY_DEFINED

#define incout_ALREADY_DEFINED

Definition at line 261 of file include.c.

◆ incpop_buffer_state_ALREADY_DEFINED

#define incpop_buffer_state_ALREADY_DEFINED

Definition at line 105 of file include.c.

◆ incpush_buffer_state_ALREADY_DEFINED

#define incpush_buffer_state_ALREADY_DEFINED

Definition at line 99 of file include.c.

◆ increalloc_ALREADY_DEFINED

#define increalloc_ALREADY_DEFINED

Definition at line 231 of file include.c.

◆ increstart_ALREADY_DEFINED

#define increstart_ALREADY_DEFINED

Definition at line 123 of file include.c.

◆ inctext_ALREADY_DEFINED

#define inctext_ALREADY_DEFINED

Definition at line 243 of file include.c.

◆ incwrap

#define incwrap ( )    (/*CONSTCOND*/1)

Definition at line 607 of file include.c.

◆ incwrap_ALREADY_DEFINED

#define incwrap_ALREADY_DEFINED

Definition at line 219 of file include.c.

◆ INITIAL

#define INITIAL   0

Definition at line 1125 of file include.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 333 of file include.c.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 324 of file include.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 336 of file include.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 327 of file include.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 330 of file include.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 321 of file include.c.

◆ nonspace

#define nonspace (   s)    { while (strchr(" \t\v\n\f", *s)) s++; }

Definition at line 1064 of file include.c.

◆ pop

#define pop ( )    _stack[stack--];

Definition at line 1027 of file include.c.

◆ REJECT

#define REJECT
Value:
{ \
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
++(yy_lp); \
goto find_rule; \
}
int x
Definition common.h:76
static char yy_hold_char
Definition include.c:549
static char * yy_full_match
Definition include.c:920
static int yy_lp
Definition include.c:921

Definition at line 922 of file include.c.

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

Definition at line 349 of file include.c.

◆ space

#define space (   s)    { while (!strchr(" \t\v\n\f", *s)) s++; }

Definition at line 1065 of file include.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 342 of file include.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 345 of file include.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 339 of file include.c.

◆ unput

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 462 of file include.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 603 of file include.c.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 1299 of file include.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 401 of file include.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 524 of file include.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 512 of file include.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 513 of file include.c.

◆ yy_create_buffer

#define yy_create_buffer   inc_create_buffer

Definition at line 11 of file include.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition include.c:532
static size_t yy_buffer_stack_top
index of top of stack.
Definition include.c:530

Definition at line 540 of file include.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 546 of file include.c.

◆ YY_DECL

#define YY_DECL   int yylex (void)

Definition at line 1287 of file include.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 1283 of file include.c.

◆ yy_delete_buffer

#define yy_delete_buffer   inc_delete_buffer

Definition at line 12 of file include.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
yyleng = (int) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
static int
Definition include.c:978
#define yytext_ptr
Definition include.c:622
static char * yy_c_buf_p
Definition include.c:554
#define yyleng
Definition include.c:25

Definition at line 632 of file include.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   22

Definition at line 639 of file include.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 390 of file include.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

Definition at line 2511 of file include.c.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 1136 of file include.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 1274 of file include.c.

◆ yy_flex_debug

#define yy_flex_debug   inc_flex_debug

Definition at line 23 of file include.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 37 of file include.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 38 of file include.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

Definition at line 39 of file include.c.

◆ yy_flush_buffer

#define yy_flush_buffer   inc_flush_buffer

Definition at line 17 of file include.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )

Definition at line 574 of file include.c.

◆ yy_init_buffer

#define yy_init_buffer   inc_init_buffer

Definition at line 16 of file include.c.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
int n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
} \
}\
\
else return n
Definition curvature.h:101
size_t yy_size_t
Definition errors.c:416
#define YY_CURRENT_BUFFER_LVALUE
Definition include.c:546
#define yyin
Definition include.c:24
size *double * buf
scalar c
Definition vof.h:57

Definition at line 1227 of file include.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 7 of file include.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)
Value:
do { \
int yyl;\
for ( yyl = n; yyl < yyleng; ++yyl )\
if ( yytext[yyl] == '\n' )\
}while(0)
#define yytext
Definition include.c:30
#define yylineno
Definition include.c:27

Definition at line 434 of file include.c.

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   dst)
Value:
do {\
const char *p;\
for ( p = yy_cp-1; p >= (dst); --p)\
if ( *p == '\n' )\
}while(0)
#define p
Definition tree.h:320
int dst

Definition at line 441 of file include.c.

◆ yy_load_buffer_state

#define yy_load_buffer_state   inc_load_buffer_state

Definition at line 18 of file include.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 931 of file include.c.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 584 of file include.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin )

Definition at line 389 of file include.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 368 of file include.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   21

Definition at line 638 of file include.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 1211 of file include.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 932 of file include.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP
Value:
if ( yyleng > 0 ) \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
(yytext[yyleng - 1] == '\n'); \
#define YY_USER_ACTION
Definition include.c:1294

Definition at line 1302 of file include.c.

◆ YY_SC_TO_UI

#define YY_SC_TO_UI (   c)    ((YY_CHAR) (c))

Definition at line 373 of file include.c.

◆ yy_scan_buffer

#define yy_scan_buffer   inc_scan_buffer

Definition at line 13 of file include.c.

◆ yy_scan_bytes

#define yy_scan_bytes   inc_scan_bytes

Definition at line 15 of file include.c.

◆ yy_scan_string

#define yy_scan_string   inc_scan_string

Definition at line 14 of file include.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:

Definition at line 594 of file include.c.

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:

Definition at line 585 of file include.c.

◆ YY_SKIP_YYWRAP

#define YY_SKIP_YYWRAP

Definition at line 608 of file include.c.

◆ YY_START

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 384 of file include.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 1269 of file include.c.

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 407 of file include.c.

◆ YY_STATE_EOF

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 387 of file include.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 465 of file include.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   inc_switch_to_buffer

Definition at line 19 of file include.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 410 of file include.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 415 of file include.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 1294 of file include.c.

◆ yyalloc

#define yyalloc   incalloc

Definition at line 32 of file include.c.

◆ yyconst

#define yyconst   const

Definition at line 359 of file include.c.

◆ yyensure_buffer_stack

#define yyensure_buffer_stack   incensure_buffer_stack

Definition at line 22 of file include.c.

◆ yyfree

#define yyfree   incfree

Definition at line 34 of file include.c.

◆ yyget_debug

#define yyget_debug   incget_debug

Definition at line 149 of file include.c.

◆ yyget_extra

#define yyget_extra   incget_extra

Definition at line 161 of file include.c.

◆ yyget_in

#define yyget_in   incget_in

Definition at line 173 of file include.c.

◆ yyget_leng

#define yyget_leng   incget_leng

Definition at line 197 of file include.c.

◆ yyget_lineno

#define yyget_lineno   incget_lineno

Definition at line 209 of file include.c.

◆ yyget_out

#define yyget_out   incget_out

Definition at line 185 of file include.c.

◆ yyget_text

#define yyget_text   incget_text

Definition at line 203 of file include.c.

◆ yyin

#define yyin   incin

Definition at line 24 of file include.c.

◆ yyleng

#define yyleng   incleng

Definition at line 25 of file include.c.

◆ yyless [1/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define YY_RESTORE_YY_MORE_OFFSET
Definition include.c:932
#define YY_MORE_ADJ
Definition include.c:931
#define YY_DO_BEFORE_ACTION
Definition include.c:632

Definition at line 450 of file include.c.

◆ yyless [2/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
*(yy_c_buf_p) = '\0'; \
} \
while ( 0 )

Definition at line 450 of file include.c.

◆ yylex

#define yylex   inclex

Definition at line 26 of file include.c.

◆ yylex_destroy

#define yylex_destroy   inclex_destroy

Definition at line 143 of file include.c.

◆ yylex_init

#define yylex_init   inclex_init

Definition at line 131 of file include.c.

◆ yylex_init_extra

#define yylex_init_extra   inclex_init_extra

Definition at line 137 of file include.c.

◆ yylineno

#define yylineno   inclineno

Definition at line 27 of file include.c.

◆ yymore

Definition at line 930 of file include.c.

◆ yynoreturn

#define yynoreturn

Definition at line 364 of file include.c.

◆ yyout

#define yyout   incout

Definition at line 28 of file include.c.

◆ yypop_buffer_state

#define yypop_buffer_state   incpop_buffer_state

Definition at line 21 of file include.c.

◆ yypush_buffer_state

#define yypush_buffer_state   incpush_buffer_state

Definition at line 20 of file include.c.

◆ yyrealloc

#define yyrealloc   increalloc

Definition at line 33 of file include.c.

◆ yyrestart

#define yyrestart   increstart

Definition at line 29 of file include.c.

◆ yyset_debug

#define yyset_debug   incset_debug

Definition at line 155 of file include.c.

◆ yyset_extra

#define yyset_extra   incset_extra

Definition at line 167 of file include.c.

◆ yyset_in

#define yyset_in   incset_in

Definition at line 179 of file include.c.

◆ yyset_lineno

#define yyset_lineno   incset_lineno

Definition at line 215 of file include.c.

◆ yyset_out

#define yyset_out   incset_out

Definition at line 191 of file include.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 385 of file include.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Definition at line 2726 of file include.c.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 1264 of file include.c.

◆ yytext

#define yytext   inctext

Definition at line 30 of file include.c.

◆ yytext_ptr

#define yytext_ptr   yytext

Definition at line 622 of file include.c.

◆ yywrap

#define yywrap   incwrap

Definition at line 31 of file include.c.

Typedef Documentation

◆ flex_int16_t

Definition at line 313 of file include.c.

◆ flex_int32_t

Definition at line 314 of file include.c.

◆ flex_int8_t

Definition at line 312 of file include.c.

◆ flex_uint16_t

Definition at line 316 of file include.c.

◆ flex_uint32_t

Definition at line 317 of file include.c.

◆ flex_uint8_t

Definition at line 315 of file include.c.

◆ YY_BUFFER_STATE

◆ YY_CHAR

Definition at line 609 of file include.c.

◆ yy_size_t

Definition at line 416 of file include.c.

◆ yy_state_type

Definition at line 613 of file include.c.

Enumeration Type Documentation

◆ anonymous enum

Enumerator
FUNCTION 
TYPEDEF 

Definition at line 941 of file include.c.

Function Documentation

◆ append_tag()

static void append_tag ( Tag  t)
static

Definition at line 954 of file include.c.

References file, Tag::file, Tag::id, ntags, realloc(), strdup(), t, tagsa, Tag::type, and x.

Referenced by inclex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_tag()

static void check_tag ( char text)
static

Definition at line 1075 of file include.c.

References debug, fname, ftags, FUNCTION, incode, keywords_only, lookup_tag(), shortpath(), t, target, TYPEDEF, x, and yylineno.

Referenced by inclex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ comment()

static int comment ( void  )
static

Definition at line 2746 of file include.c.

References c, fname, getput(), x, and yylineno.

Referenced by inclex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compdir()

static void compdir ( char file,
const char dir 
)
static

Definition at line 2830 of file include.c.

References dir, file, free(), include(), pop, push(), singleslash(), stack, target, writepath(), and x.

Referenced by includes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ echo()

static void echo ( )
static

Definition at line 1099 of file include.c.

References incode, myout, s, x, and yytext.

Referenced by inclex().

Here is the caller graph for this function:

◆ echo_c()

static void echo_c ( int  c)
static

Definition at line 1114 of file include.c.

References c, incode, myout, and x.

Referenced by inclex().

Here is the caller graph for this function:

◆ getput()

static int getput ( void  )
static

Definition at line 2738 of file include.c.

References c, input(), myout, and x.

Referenced by comment().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inc_create_buffer()

YY_BUFFER_STATE inc_create_buffer ( FILE file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 2228 of file include.c.

References b, file, size, YY_FATAL_ERROR, yy_init_buffer, and yyalloc.

◆ inc_delete_buffer()

void inc_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with yy_create_buffer()

Definition at line 2256 of file include.c.

References b, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyfree.

◆ inc_flush_buffer()

void inc_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 2303 of file include.c.

References b, YY_BUFFER_NEW, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_load_buffer_state.

◆ inc_init_buffer()

static void inc_init_buffer ( YY_BUFFER_STATE  b,
FILE file 
)
static

Definition at line 2275 of file include.c.

References b, file, x, YY_CURRENT_BUFFER, and yy_flush_buffer.

◆ inc_load_buffer_state()

static void inc_load_buffer_state ( void  )
static

Definition at line 2214 of file include.c.

References yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_hold_char, yy_n_chars, yyin, and yytext_ptr.

◆ inc_scan_buffer()

YY_BUFFER_STATE inc_scan_buffer ( char base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 2430 of file include.c.

References b, int, size, x, YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_switch_to_buffer, and yyalloc.

◆ inc_scan_bytes()

YY_BUFFER_STATE inc_scan_bytes ( const char yybytes,
int  _yybytes_len 
)

Setup the input buffer state to scan the given bytes.

The next call to yylex() will scan from a copy of bytes.

Parameters
yybytesthe byte buffer to scan
_yybytes_lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 2480 of file include.c.

References b, buf, i, n, x, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_scan_buffer, and yyalloc.

◆ inc_scan_string()

YY_BUFFER_STATE inc_scan_string ( const char yystr)

Setup the input buffer state to scan a string.

The next call to yylex() will scan from a copy of str.

Parameters
yystra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use yy_scan_bytes() instead.

Definition at line 2467 of file include.c.

References x, and yy_scan_bytes.

◆ inc_switch_to_buffer()

void inc_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 2183 of file include.c.

References x, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state, yy_n_chars, and yyensure_buffer_stack.

◆ incalloc()

void * incalloc ( yy_size_t  size)

Definition at line 2703 of file include.c.

References size, and x.

◆ incensure_buffer_stack()

static void incensure_buffer_stack ( void  )
static

◆ incfree()

void incfree ( void ptr)

Definition at line 2721 of file include.c.

References free().

Here is the call graph for this function:

◆ incget_debug()

int incget_debug ( void  )

Definition at line 2607 of file include.c.

References yy_flex_debug.

◆ incget_extra()

void * incget_extra ( void  )

◆ incget_in()

FILE * incget_in ( void  )

Get the input stream.

Definition at line 2551 of file include.c.

References yyin.

◆ incget_leng()

int incget_leng ( void  )

Get the length of the current token.

Definition at line 2567 of file include.c.

References yyleng.

◆ incget_lineno()

int incget_lineno ( void  )

Get the current line number.

Definition at line 2542 of file include.c.

References yylineno.

◆ incget_out()

FILE * incget_out ( void  )

Get the output stream.

Definition at line 2559 of file include.c.

References yyout.

◆ incget_text()

char * incget_text ( void  )

Get the current token.

Definition at line 2576 of file include.c.

References yytext.

◆ inclex()

int inclex ( void  )
extern

◆ inclex_destroy()

int inclex_destroy ( void  )

Definition at line 2654 of file include.c.

References x, yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer, yy_init_globals(), yy_state_buf, yyfree, and yypop_buffer_state.

Here is the call graph for this function:

◆ include()

static int include ( char file,
FILE fin,
FILE fout 
)
static

Definition at line 2801 of file include.c.

References alloc, file, fname, free(), incode, intypedef, is_code(), myout, npath, paths, s, scope, stripname(), stripslash(), x, yyin, yylex, yylex_destroy, and yylineno.

Referenced by compdir().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ includes()

void includes ( int  argc,
char **  argv,
char **  grid1,
int default_grid,
int dim,
int bg,
int lyrs,
int gpus,
const char dir 
)

Definition at line 2886 of file include.c.

References alloc, assert, bghosts, compdir(), debug, dim, dimension, dir, fdepend, file, fp, free(), ftags, gpu, grid, hasgrid, i, is_code(), keywords_only, layers, openpath(), prepend_path(), s, strdup(), swigfp, target, warninclude, and x.

Referenced by kdt_query_sum(), main(), and query_sum().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ incpop_buffer_state()

void incpop_buffer_state ( void  )

Removes and deletes the top of the stack, if present.

The next element becomes the new top.

Definition at line 2362 of file include.c.

References x, yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer, yy_did_buffer_switch_on_eof, and yy_load_buffer_state.

◆ incpush_buffer_state()

void incpush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack.

The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 2332 of file include.c.

References x, yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state, yy_n_chars, and yyensure_buffer_stack.

◆ increalloc()

void * increalloc ( void ptr,
yy_size_t  size 
)

Definition at line 2708 of file include.c.

References realloc(), and size.

Here is the call graph for this function:

◆ increstart()

void increstart ( FILE input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 2166 of file include.c.

References x, YY_BUF_SIZE, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_buffer, yy_load_buffer_state, yyensure_buffer_stack, and yyin.

◆ incset_debug()

void incset_debug ( int  debug_flag)

Definition at line 2612 of file include.c.

References x, and yy_flex_debug.

◆ incset_extra()

void incset_extra ( void user_defined)

◆ incset_in()

void incset_in ( FILE _in_str)

Set the input stream.

This does not discard the current input buffer.

Parameters
_in_strA readable stream.
See also
yy_switch_to_buffer

Definition at line 2597 of file include.c.

References x, and yyin.

◆ incset_lineno()

void incset_lineno ( int  _line_number)

Set the current line number.

Parameters
_line_numberline number

Definition at line 2585 of file include.c.

References x, and yylineno.

◆ incset_out()

void incset_out ( FILE _out_str)

Definition at line 2602 of file include.c.

References x, and yyout.

◆ input()

static int input ( void  )
static

Definition at line 2085 of file include.c.

References c, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, input(), int, x, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, YY_END_OF_BUFFER_CHAR, yy_get_next_buffer(), yy_hold_char, yy_n_chars, YY_NEW_FILE, yyin, yylineno, yyrestart, yytext_ptr, and yywrap.

Referenced by advance_generic(), check_stencil(), getput(), inclex(), input(), input_gfs(), and stencil_val_a().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_code()

static int is_code ( const char file)
static

Definition at line 2792 of file include.c.

References file, s, and x.

Referenced by include(), and includes().

Here is the caller graph for this function:

◆ lookup_tag()

static Tag * lookup_tag ( const char id)
static

Definition at line 965 of file include.c.

References i, ntags, tagsa, and x.

Referenced by check_tag().

Here is the caller graph for this function:

◆ openpath()

static FILE * openpath ( const char name,
const char mode,
char **  path 
)
static

Definition at line 1046 of file include.c.

References alloc, fdepend, fp, i, npath, p, paths, singleslash(), and x.

Referenced by inclex(), and includes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepend_path()

static void prepend_path ( char path)
static

Definition at line 2877 of file include.c.

References j, npath, paths, and x.

Referenced by includes().

Here is the caller graph for this function:

◆ push()

static char * push ( char s)
static

Definition at line 993 of file include.c.

References _stack, alloc, assert, f, s, stack, and x.

Referenced by compdir(), and push_once().

Here is the caller graph for this function:

◆ push_once()

static void push_once ( char s)
static

Definition at line 1015 of file include.c.

References assert, i, push(), s, strcmps(), strip_path(), and x.

Referenced by inclex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shortpath()

static char * shortpath ( char path)
static

Definition at line 1067 of file include.c.

References file, and x.

Referenced by check_tag(), and inclex().

Here is the caller graph for this function:

◆ singleslash()

static void singleslash ( char path,
FILE fp 
)
static

Definition at line 1029 of file include.c.

References fp, s, and x.

Referenced by compdir(), inclex(), and openpath().

Here is the caller graph for this function:

◆ strcmps()

static int strcmps ( char s1,
char s2 
)
static

Definition at line 1001 of file include.c.

References x.

Referenced by push_once().

Here is the caller graph for this function:

◆ strip_path()

static char * strip_path ( char s)
static

Definition at line 981 of file include.c.

References s, and x.

Referenced by push_once().

Here is the caller graph for this function:

◆ stripname()

void stripname ( char path)

Definition at line 2763 of file include.c.

References s, and x.

Referenced by include().

Here is the caller graph for this function:

◆ stripslash()

char * stripslash ( char path)

Definition at line 2774 of file include.c.

References o, s, and x.

Referenced by include().

Here is the caller graph for this function:

◆ writepath()

FILE * writepath ( char path,
const char mode 
)

Definition at line 77 of file qcc.c.

References s, and x.

Referenced by compdir().

Here is the caller graph for this function:

◆ yy_fatal_error()

static void yy_fatal_error ( const char msg)
static

Definition at line 2514 of file include.c.

References x, and YY_EXIT_FAILURE.

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( void  )
static

Definition at line 1877 of file include.c.

References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, i, int, source, x, YY_BUFFER_EOF_PENDING, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, YY_INPUT, YY_MORE_ADJ, yy_n_chars, YY_READ_BUF_SIZE, yyin, yyrealloc, yyrestart, and yytext_ptr.

Referenced by inclex(), and input().

Here is the caller graph for this function:

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( void  )
static

Definition at line 1985 of file include.c.

References int, x, YY_AT_BOL, yy_base, yy_c_buf_p, yy_chk, yy_def, yy_ec, yy_meta, YY_MORE_ADJ, yy_nxt, YY_SC_TO_UI, yy_start, yy_state_buf, yy_state_ptr, and yytext_ptr.

Referenced by inclex().

Here is the caller graph for this function:

◆ yy_init_globals()

static int yy_init_globals ( void  )
static

Definition at line 2617 of file include.c.

References x, yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, yy_c_buf_p, yy_full_match, yy_init, yy_lp, yy_start, yy_state_buf, yy_state_ptr, yyin, yylineno, and yyout.

Referenced by inclex_destroy().

Here is the caller graph for this function:

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 2017 of file include.c.

References int, x, yy_base, yy_chk, yy_def, yy_meta, yy_nxt, and yy_state_ptr.

Referenced by inclex().

Here is the caller graph for this function:

◆ yyerror()

int yyerror ( const char s)
static

Definition at line 2731 of file include.c.

References fname, s, x, yylineno, and yyunput().

Referenced by inclex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yyunput()

static void yyunput ( int  c,
char buf_ptr 
)
static

Definition at line 2038 of file include.c.

References c, int, source, x, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, YY_FATAL_ERROR, yy_hold_char, yy_n_chars, yylineno, and yytext_ptr.

Referenced by yyerror().

Here is the caller graph for this function:

Variable Documentation

◆ _stack

char* _stack[100]
static

Definition at line 991 of file include.c.

Referenced by push().

◆ alloc

Allocator* alloc = NULL
static

Definition at line 952 of file include.c.

Referenced by include(), includes(), openpath(), and push().

◆ bghosts

bghosts = 0
static

Definition at line 978 of file include.c.

Referenced by inclex(), and includes().

◆ debug

int debug = 0
static

Definition at line 977 of file include.c.

Referenced by check_tag(), inclex(), and includes().

◆ fdepend

FILE* fdepend = NULL
static

Definition at line 973 of file include.c.

Referenced by inclex(), includes(), and openpath().

◆ fname

char* fname
static

Definition at line 974 of file include.c.

Referenced by check_tag(), comment(), inclex(), include(), and yyerror().

◆ ftags

FILE * ftags = NULL
static

Definition at line 973 of file include.c.

Referenced by check_tag(), inclex(), and includes().

◆ gpu

gpu = 0
static

Definition at line 978 of file include.c.

Referenced by inclex(), and includes().

◆ grid

char grid[80] = ""
static

Definition at line 976 of file include.c.

Referenced by inclex(), and includes().

◆ hasgrid

int hasgrid = 0
static

Definition at line 977 of file include.c.

Referenced by inclex(), and includes().

◆ inc_flex_debug

int inc_flex_debug = 0

Definition at line 917 of file include.c.

◆ incin

FILE * incin = NULL

Definition at line 611 of file include.c.

◆ incleng

int incleng

Definition at line 551 of file include.c.

◆ inclineno

int inclineno = 1

Definition at line 616 of file include.c.

◆ incode

int incode
static

Definition at line 979 of file include.c.

Referenced by check_tag(), echo(), echo_c(), inclex(), and include().

◆ incout

FILE * incout = NULL

Definition at line 421 of file include.c.

◆ inctext

char * inctext

Definition at line 933 of file include.c.

◆ int

◆ intypedef

int intypedef = 0
static

Definition at line 949 of file include.c.

Referenced by inclex(), and include().

◆ keywords_only

int keywords_only = 0
static

Definition at line 949 of file include.c.

Referenced by check_tag(), inclex(), and includes().

◆ layers

layers = 0
static

Definition at line 978 of file include.c.

Referenced by inclex(), and includes().

◆ myout

FILE * myout = NULL
static

Definition at line 973 of file include.c.

Referenced by echo(), echo_c(), getput(), inclex(), and include().

◆ npath

int npath = 1
static

Definition at line 977 of file include.c.

Referenced by include(), openpath(), and prepend_path().

◆ ntags

int ntags = 0
static

Definition at line 949 of file include.c.

Referenced by append_tag(), inclex(), and lookup_tag().

◆ paths

char* paths[100] = { LIBDIR }
static

Definition at line 976 of file include.c.

Referenced by include(), openpath(), and prepend_path().

◆ scope

int scope = 0
static

Definition at line 949 of file include.c.

Referenced by inclex(), and include().

◆ stack

int stack = -1

Definition at line 991 of file include.c.

Referenced by compdir(), foreach_cell_post_root(), push(), and strdup().

◆ swigfp

FILE* swigfp = NULL
static

Definition at line 951 of file include.c.

Referenced by compdir(), inclex(), includes(), and main().

◆ tagsa

Tag* tagsa = NULL
static

Definition at line 948 of file include.c.

Referenced by append_tag(), inclex(), and lookup_tag().

◆ target

int target = 1
static

Definition at line 949 of file include.c.

Referenced by check_tag(), compdir(), inclex(), includes(), next_char(), and next_string().

◆ warninclude

int warninclude = 0
static

Definition at line 950 of file include.c.

Referenced by inclex(), and includes().

◆ yy_accept

const flex_int16_t yy_accept[158]
static
Initial value:
=
{ 0,
1, 1, 1, 2, 4, 6, 8, 10, 12, 14,
17, 20, 23, 26, 28, 30, 33, 36, 39, 41,
41, 41, 42, 42, 42, 43, 44, 44, 45, 46,
47, 47, 47, 47, 47, 47, 47, 47, 47, 48,
49, 49, 50, 50, 51, 52, 52, 52, 53, 54,
55, 55, 55, 55, 55, 55, 56, 56, 56, 56,
57, 57, 57, 57, 58, 58, 59, 59, 60, 60,
60, 60, 60, 60, 61, 61, 61, 62, 62, 64,
64, 65, 65, 65, 66, 66, 67, 67, 67, 68,
68, 69, 69, 69, 70, 70, 70, 70, 70, 70,
70, 70, 70, 70, 70, 70, 70, 70, 70, 70,
70, 70, 70, 70, 70, 70, 70, 70, 70, 70,
70, 70, 70, 70, 71, 71, 71, 71, 71, 71,
71, 71, 71, 71, 71, 71, 71, 71, 71, 72,
72, 72, 72, 72, 72, 72, 73, 73, 74, 74,
74, 75, 75, 75, 75, 76, 76
}

Definition at line 659 of file include.c.

Referenced by inclex().

◆ yy_acclist

const flex_int16_t yy_acclist[76]
static
Initial value:
=
{ 0,
22, 18, 21, 18, 21, 19, 21, 18, 21, 18,
21, 18, 21, 15, 18, 21, 15, 18, 21, 4,
18, 21, 5, 18, 21, 18, 21, 18, 21, 15,
18, 21, 15, 18, 21, 15, 18, 21, 18, 21,
20, 16, 17, 15, 14, 15, 15, 15, 15, 20,
20, 3, 17, 15, 15, 15, 12, 15, 2, 15,
15, 1, 2, 15, 15, 15, 15, 13, 13, 6,
10, 7, 11, 9, 8
}

Definition at line 647 of file include.c.

Referenced by inclex().

◆ yy_base

const flex_int16_t yy_base[172]
static
Initial value:
=
{ 0,
0, 59, 457, 546, 449, 546, 6, 0, 3, 16,
21, 546, 546, 24, 12, 31, 69, 77, 394, 10,
34, 46, 91, 441, 546, 0, 80, 104, 546, 110,
39, 53, 125, 88, 405, 399, 133, 19, 136, 151,
386, 154, 374, 119, 169, 164, 0, 546, 0, 182,
185, 379, 354, 188, 203, 211, 176, 218, 250, 234,
349, 347, 240, 546, 29, 243, 388, 546, 387, 71,
236, 83, 0, 294, 342, 335, 297, 376, 546, 40,
300, 332, 332, 305, 106, 315, 361, 319, 321, 97,
324, 327, 352, 353, 161, 325, 314, 326, 320, 297,
139, 159, 315, 311, 287, 290, 269, 307, 140, 282,
285, 273, 251, 241, 277, 277, 162, 228, 223, 197,
270, 175, 192, 546, 160, 162, 136, 275, 115, 129,
98, 330, 148, 66, 348, 77, 363, 206, 546, 39,
368, 356, 215, 7, 223, 374, 231, 546, 380, 238,
546, 383, 255, 264, 546, 546, 397, 408, 419, 430,
440, 450, 460, 467, 478, 488, 491, 501, 512, 523,
534
}

Definition at line 722 of file include.c.

Referenced by inclex(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = NULL
static

Stack as an array.

Definition at line 532 of file include.c.

Referenced by incensure_buffer_stack(), inclex_destroy(), and yy_init_globals().

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 531 of file include.c.

Referenced by incensure_buffer_stack(), and yy_init_globals().

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 530 of file include.c.

Referenced by incensure_buffer_stack(), incpop_buffer_state(), incpush_buffer_state(), and yy_init_globals().

◆ yy_c_buf_p

◆ yy_chk

const flex_int16_t yy_chk[606]
static

Definition at line 839 of file include.c.

Referenced by inclex(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_def

const flex_int16_t yy_def[172]
static
Initial value:
=
{ 0,
157, 158, 156, 156, 156, 156, 159, 160, 156, 161,
161, 156, 156, 162, 156, 163, 163, 163, 156, 159,
159, 156, 164, 156, 156, 165, 156, 161, 156, 161,
162, 156, 162, 156, 156, 156, 166, 156, 163, 163,
156, 163, 156, 156, 156, 159, 167, 156, 165, 161,
166, 156, 156, 166, 166, 163, 168, 159, 159, 161,
156, 156, 166, 156, 156, 163, 168, 156, 169, 168,
168, 159, 59, 161, 156, 156, 163, 169, 156, 168,
161, 156, 156, 163, 168, 161, 156, 156, 163, 168,
156, 156, 156, 166, 168, 156, 156, 156, 156, 156,
156, 168, 156, 156, 156, 156, 156, 170, 168, 156,
156, 156, 156, 156, 170, 171, 168, 156, 156, 156,
156, 156, 171, 156, 156, 156, 156, 156, 156, 156,
156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
156, 156, 156, 156, 156, 0, 156, 156, 156, 156,
156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
156
}

Definition at line 745 of file include.c.

Referenced by inclex(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

◆ yy_ec

const YY_CHAR yy_ec[256]
static

Definition at line 680 of file include.c.

Referenced by inclex(), and yy_get_previous_state().

◆ yy_full_match

char* yy_full_match
static

Definition at line 920 of file include.c.

Referenced by inclex(), and yy_init_globals().

◆ yy_hold_char

char yy_hold_char
static

◆ yy_init

int yy_init = 0
static

Definition at line 555 of file include.c.

Referenced by inclex(), and yy_init_globals().

◆ yy_lp

int yy_lp
static

Definition at line 921 of file include.c.

Referenced by inclex(), and yy_init_globals().

◆ yy_meta

const YY_CHAR yy_meta[60]
static
Initial value:
=
{ 0,
1, 2, 3, 4, 5, 6, 7, 1, 8, 1,
9, 9, 9, 9, 10, 4, 7, 10, 10, 10,
10, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 7, 2, 9, 9, 10,
10, 10, 9, 2, 2, 2, 11, 2, 2, 11,
2, 11, 2, 11, 11, 2, 1, 1, 1
}

Definition at line 712 of file include.c.

Referenced by inclex(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_n_chars

◆ yy_nxt

const flex_int16_t yy_nxt[606]
static

Definition at line 768 of file include.c.

Referenced by inclex(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_rule_can_match_eol

const flex_int32_t yy_rule_can_match_eol[22]
static
Initial value:
=
{ 0,
1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1,
1, 0, }

Definition at line 911 of file include.c.

Referenced by inclex().

◆ yy_start

int yy_start = 0
static

Definition at line 556 of file include.c.

Referenced by inclex(), yy_get_previous_state(), and yy_init_globals().

◆ yy_state_buf

yy_state_type* yy_state_buf =0
static

Definition at line 919 of file include.c.

Referenced by inclex(), inclex_destroy(), yy_get_previous_state(), and yy_init_globals().

◆ yy_state_ptr

yy_state_type * yy_state_ptr =0
static

Definition at line 919 of file include.c.

Referenced by inclex(), yy_get_previous_state(), yy_init_globals(), and yy_try_NUL_trans().