|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
#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>Go to the source code of this file.
Data Structures | |
| struct | yy_buffer_state |
| struct | yy_trans_info |
| struct | Tag |
Enumerations | |
| enum | { FUNCTION , TYPEDEF } |
| #define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
| #define yy_create_buffer inc_create_buffer |
| #define YY_CURRENT_BUFFER |
| #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| #define yy_delete_buffer inc_delete_buffer |
| #define YY_DO_BEFORE_ACTION |
| #define yy_flex_debug inc_flex_debug |
| #define yy_flush_buffer inc_flush_buffer |
| #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) |
| #define yy_init_buffer inc_init_buffer |
| #define yy_load_buffer_state inc_load_buffer_state |
| #define yy_new_buffer yy_create_buffer |
| #define YY_RULE_SETUP |
| #define yy_scan_buffer inc_scan_buffer |
| #define yy_scan_bytes inc_scan_bytes |
| #define yy_scan_string inc_scan_string |
| #define yy_set_interactive | ( | is_interactive | ) |
| #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
| #define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
| #define yy_switch_to_buffer inc_switch_to_buffer |
| #define yyensure_buffer_stack incensure_buffer_stack |
| #define yyget_debug incget_debug |
| #define yyget_extra incget_extra |
| #define yyget_leng incget_leng |
| #define yyget_lineno incget_lineno |
| #define yyget_out incget_out |
| #define yyget_text incget_text |
| #define yylex_destroy inclex_destroy |
| #define yylex_init inclex_init |
| #define yylex_init_extra inclex_init_extra |
| #define yymore | ( | ) | yymore_used_but_not_detected |
| #define yypop_buffer_state incpop_buffer_state |
| #define yypush_buffer_state incpush_buffer_state |
| #define yyrealloc increalloc |
| #define yyrestart increstart |
| #define yyset_debug incset_debug |
| #define yyset_extra incset_extra |
| #define yyset_lineno incset_lineno |
| #define yyset_out incset_out |
Definition at line 2830 of file include.c.
References dir, file, free(), include(), pop, push(), singleslash(), stack, target, writepath(), and x.
Referenced by includes().
| YY_BUFFER_STATE inc_create_buffer | ( | FILE * | file, |
| int | size | ||
| ) |
Allocate and initialize an input buffer state.
| file | A readable stream. |
| size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE. |
Definition at line 2228 of file include.c.
References b, file, size, YY_FATAL_ERROR, yy_init_buffer, and yyalloc.
| void inc_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
| b | a 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.
| void inc_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Discard all buffered characters.
On the next scan, YY_INPUT will be called.
| b | the 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.
|
static |
Definition at line 2275 of file include.c.
References b, file, x, YY_CURRENT_BUFFER, and yy_flush_buffer.
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.
| 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.
| base | the character buffer |
| size | the size in bytes of the character buffer |
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.
| 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.
| yybytes | the byte buffer to scan |
| _yybytes_len | the number of bytes in the buffer pointed to by bytes. |
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.
| 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.
| yystr | a NUL-terminated string to scan |
Definition at line 2467 of file include.c.
References x, and yy_scan_bytes.
| void inc_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
| new_buffer | The 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.
Definition at line 2381 of file include.c.
References x, yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, YY_FATAL_ERROR, yyalloc, and yyrealloc.
Definition at line 2607 of file include.c.
References yy_flex_debug.
The main scanner function which does all the work.
Definition at line 1310 of file include.c.
References append_tag(), bghosts, c, check_tag(), comment(), debug, dimension, echo(), ECHO, echo_c(), EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, fdepend, file, fname, fp, free(), ftags, FUNCTION, gpu, grid, hasgrid, incode, INITIAL, input(), int, intypedef, keywords_only, layers, line, myout, nl, nonspace, ntags, openpath(), p, push_once(), REJECT, s, scope, shortpath(), singleslash(), space, strdup(), swigfp, t, tagsa, target, TYPEDEF, warninclude, x, yy_accept, yy_acclist, YY_AT_BOL, yy_base, YY_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_c_buf_p, yy_chk, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_def, yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, yy_ec, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_full_match, yy_get_next_buffer(), yy_get_previous_state(), yy_hold_char, yy_init, YY_LINENO_REWIND_TO, yy_load_buffer_state, yy_lp, yy_meta, YY_MORE_ADJ, yy_n_chars, YY_NEW_FILE, yy_nxt, YY_RESTORE_YY_MORE_OFFSET, yy_rule_can_match_eol, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yy_start, yy_state_buf, YY_STATE_BUF_SIZE, YY_STATE_EOF, yy_state_ptr, yy_try_NUL_trans(), yyalloc, yyensure_buffer_stack, yyerror(), yyin, yyleng, yylineno, yyout, yyterminate, yytext, yytext_ptr, and yywrap.
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.
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().
| 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().
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.
| 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.
| new_buffer | The 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.
Immediately switch to a different input stream.
| input_file | A readable stream. |
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.
Definition at line 2612 of file include.c.
References x, and yy_flex_debug.
Set the input stream.
This does not discard the current input buffer.
| _in_str | A readable stream. |
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().
Definition at line 1001 of file include.c.
References x.
Referenced by push_once().
Definition at line 981 of file include.c.
Referenced by push_once().
Definition at line 2514 of file include.c.
References x, and YY_EXIT_FAILURE.
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().
|
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().
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().
|
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().
Definition at line 952 of file include.c.
Referenced by include(), includes(), openpath(), and push().
|
static |
Definition at line 978 of file include.c.
Referenced by inclex(), and includes().
|
static |
Definition at line 977 of file include.c.
Referenced by check_tag(), inclex(), and includes().
Definition at line 973 of file include.c.
Referenced by inclex(), includes(), and openpath().
|
static |
Definition at line 973 of file include.c.
Referenced by check_tag(), inclex(), and includes().
|
static |
Definition at line 978 of file include.c.
Referenced by inclex(), and includes().
|
static |
Definition at line 976 of file include.c.
Referenced by inclex(), and includes().
|
static |
Definition at line 977 of file include.c.
Referenced by inclex(), and includes().
|
static |
|
static |
Definition at line 978 of file include.c.
Referenced by append_pid(), display_send(), gpu_errors_scan_buffer(), gpu_errorslex(), inc_scan_buffer(), inclex(), input(), input(), locals_pids(), mpi_boundary_refine(), no_coalescence(), post_scan_buffer(), postlex(), rcv_pid_append_pids(), remove_droplets(), root_pids(), ws_send_array(), yy_get_next_buffer(), yy_get_next_buffer(), yy_get_next_buffer(), yy_get_previous_state(), yy_get_previous_state(), yy_get_previous_state(), yy_try_NUL_trans(), yy_try_NUL_trans(), yy_try_NUL_trans(), yyunput(), yyunput(), and yyunput().
|
static |
|
static |
Definition at line 949 of file include.c.
Referenced by check_tag(), inclex(), and includes().
|
static |
Definition at line 978 of file include.c.
Referenced by inclex(), and includes().
|
static |
Definition at line 977 of file include.c.
Referenced by include(), openpath(), and prepend_path().
|
static |
Definition at line 949 of file include.c.
Referenced by append_tag(), inclex(), and lookup_tag().
Definition at line 976 of file include.c.
Referenced by include(), openpath(), and prepend_path().
|
static |
| int stack = -1 |
Definition at line 948 of file include.c.
Referenced by append_tag(), inclex(), and lookup_tag().
|
static |
Definition at line 949 of file include.c.
Referenced by check_tag(), compdir(), inclex(), includes(), next_char(), and next_string().
|
static |
Definition at line 950 of file include.c.
Referenced by inclex(), and includes().
|
static |
Definition at line 659 of file include.c.
Referenced by inclex().
|
static |
Definition at line 647 of file include.c.
Referenced by inclex().
|
static |
Definition at line 722 of file include.c.
Referenced by inclex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Stack as an array.
Definition at line 532 of file include.c.
Referenced by incensure_buffer_stack(), inclex_destroy(), and yy_init_globals().
|
static |
capacity of stack.
Definition at line 531 of file include.c.
Referenced by incensure_buffer_stack(), and yy_init_globals().
|
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().
Definition at line 554 of file include.c.
Referenced by inc_load_buffer_state(), inc_switch_to_buffer(), inclex(), incpush_buffer_state(), input(), yy_get_next_buffer(), yy_get_previous_state(), yy_init_globals(), and yyunput().
|
static |
Definition at line 839 of file include.c.
Referenced by inclex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 745 of file include.c.
Referenced by inclex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 561 of file include.c.
Referenced by inc_switch_to_buffer(), inclex(), incpop_buffer_state(), incpush_buffer_state(), and input().
Definition at line 680 of file include.c.
Referenced by inclex(), and yy_get_previous_state().
|
static |
Definition at line 920 of file include.c.
Referenced by inclex(), and yy_init_globals().
|
static |
Definition at line 549 of file include.c.
Referenced by inc_load_buffer_state(), inc_switch_to_buffer(), inclex(), incpush_buffer_state(), input(), and yyunput().
|
static |
Definition at line 555 of file include.c.
Referenced by inclex(), and yy_init_globals().
|
static |
Definition at line 921 of file include.c.
Referenced by inclex(), and yy_init_globals().
Definition at line 712 of file include.c.
Referenced by inclex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 550 of file include.c.
Referenced by inc_load_buffer_state(), inc_switch_to_buffer(), inclex(), incpush_buffer_state(), input(), yy_get_next_buffer(), and yyunput().
|
static |
Definition at line 768 of file include.c.
Referenced by inclex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
|
static |
Definition at line 556 of file include.c.
Referenced by inclex(), yy_get_previous_state(), and yy_init_globals().
|
static |
Definition at line 919 of file include.c.
Referenced by inclex(), inclex_destroy(), yy_get_previous_state(), and yy_init_globals().
|
static |
Definition at line 919 of file include.c.
Referenced by inclex(), yy_get_previous_state(), yy_init_globals(), and yy_try_NUL_trans().