|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
#include <stdio.h>#include <string.h>#include <errno.h>#include <stdlib.h>#include <unistd.h>Go to the source code of this file.
Data Structures | |
| struct | yy_buffer_state |
| struct | yy_trans_info |
Variables | |
| int | gpu_errorsleng |
| FILE * | gpu_errorsin = NULL |
| FILE * | gpu_errorsout = 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_STATE * | yy_buffer_stack = NULL |
| Stack as an array. | |
| static char | yy_hold_char |
| static int | yy_n_chars |
| static char * | yy_c_buf_p = NULL |
| static int | yy_init = 0 |
| static int | yy_start = 0 |
| static int | yy_did_buffer_switch_on_eof |
| int | gpu_errorslineno = 1 |
| char * | gpu_errorstext |
| static const flex_int16_t | yy_accept [25] |
| static const YY_CHAR | yy_ec [256] |
| static const YY_CHAR | yy_meta [13] |
| static const flex_int16_t | yy_base [28] |
| static const flex_int16_t | yy_def [28] |
| static const flex_int16_t | yy_nxt [55] |
| static const flex_int16_t | yy_chk [55] |
| static const flex_int32_t | yy_rule_can_match_eol [6] |
| static yy_state_type | yy_last_accepting_state |
| static char * | yy_last_accepting_cpos |
| int | gpu_errors_flex_debug = 0 |
| static char * | sout |
| static char * | fname |
| static int | line |
| #define REJECT reject_used_but_not_detected |
| #define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
| #define yy_create_buffer gpu_errors_create_buffer |
| #define YY_CURRENT_BUFFER |
| #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| #define yy_delete_buffer gpu_errors_delete_buffer |
| #define YY_DO_BEFORE_ACTION |
| #define yy_flex_debug gpu_errors_flex_debug |
| #define yy_flush_buffer gpu_errors_flush_buffer |
| #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) |
| #define yy_init_buffer gpu_errors_init_buffer |
| #define yy_load_buffer_state gpu_errors_load_buffer_state |
| #define yy_new_buffer yy_create_buffer |
| #define YY_RULE_SETUP |
| #define yy_scan_buffer gpu_errors_scan_buffer |
| #define yy_scan_bytes gpu_errors_scan_bytes |
| #define yy_scan_string gpu_errors_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 gpu_errors_switch_to_buffer |
| #define yyalloc gpu_errorsalloc |
| #define yyensure_buffer_stack gpu_errorsensure_buffer_stack |
| #define yyfree gpu_errorsfree |
| #define yyget_debug gpu_errorsget_debug |
| #define yyget_extra gpu_errorsget_extra |
| #define yyget_in gpu_errorsget_in |
| #define yyget_leng gpu_errorsget_leng |
| #define yyget_lineno gpu_errorsget_lineno |
| #define yyget_out gpu_errorsget_out |
| #define yyget_text gpu_errorsget_text |
| #define yyin gpu_errorsin |
| #define yyleng gpu_errorsleng |
| #define yylex gpu_errorslex |
| #define yylex_destroy gpu_errorslex_destroy |
| #define yylex_init gpu_errorslex_init |
| #define yylex_init_extra gpu_errorslex_init_extra |
| #define yylineno gpu_errorslineno |
| #define yymore | ( | ) | yymore_used_but_not_detected |
| #define yyout gpu_errorsout |
| #define yypop_buffer_state gpu_errorspop_buffer_state |
| #define yypush_buffer_state gpu_errorspush_buffer_state |
| #define yyrealloc gpu_errorsrealloc |
| #define yyrestart gpu_errorsrestart |
| #define yyset_debug gpu_errorsset_debug |
| #define yyset_extra gpu_errorsset_extra |
| #define yyset_in gpu_errorsset_in |
| #define yyset_lineno gpu_errorsset_lineno |
| #define yyset_out gpu_errorsset_out |
| #define yytext gpu_errorstext |
| #define yywrap gpu_errorswrap |
Definition at line 767 of file errors.c.
Referenced by parse_intel(), and parse_nvidia().
Definition at line 2230 of file errors.c.
References buf, fname, free(), line, merge(), source, sout, str_append, x, yy_delete_buffer, yy_scan_string, yylex, and yyunput().
Referenced by createShaderFromString().
| YY_BUFFER_STATE gpu_errors_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 1735 of file errors.c.
References b, file, size, YY_FATAL_ERROR, yy_init_buffer, and yyalloc.
| void gpu_errors_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
| b | a buffer created with yy_create_buffer() |
Definition at line 1763 of file errors.c.
References b, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyfree.
| void gpu_errors_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 1810 of file errors.c.
References b, YY_BUFFER_NEW, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_load_buffer_state.
|
static |
Definition at line 1782 of file errors.c.
References b, file, x, YY_CURRENT_BUFFER, and yy_flush_buffer.
Definition at line 1721 of file errors.c.
References yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_hold_char, yy_n_chars, yyin, and yytext_ptr.
| YY_BUFFER_STATE gpu_errors_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 1937 of file errors.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 gpu_errors_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 1987 of file errors.c.
References b, buf, i, n, x, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_scan_buffer, and yyalloc.
| YY_BUFFER_STATE gpu_errors_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 1974 of file errors.c.
References x, and yy_scan_bytes.
| void gpu_errors_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
| new_buffer | The new input buffer. |
Definition at line 1690 of file errors.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 1888 of file errors.c.
References x, yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, YY_FATAL_ERROR, yyalloc, and yyrealloc.
Definition at line 2114 of file errors.c.
References yy_flex_debug.
The main scanner function which does all the work.
Definition at line 1049 of file errors.c.
References ECHO, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, fname, INITIAL, int, line, s, sout, str_append, x, yy_accept, 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_get_next_buffer(), yy_get_previous_state(), yy_hold_char, yy_init, yy_last_accepting_cpos, yy_last_accepting_state, yy_load_buffer_state, 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_EOF, yy_try_NUL_trans(), yyensure_buffer_stack, yyin, yyleng, yylineno, yyout, yyterminate, yytext, yytext_ptr, and yywrap.
Definition at line 2156 of file errors.c.
References x, yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer, yy_init_globals(), yyfree, and yypop_buffer_state.
Removes and deletes the top of the stack, if present.
The next element becomes the new top.
Definition at line 1869 of file errors.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 gpu_errorspush_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 1839 of file errors.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 1673 of file errors.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 2119 of file errors.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 834 of file errors.c.
References c, error, free(), line, next_error(), s, source, str_append, strdup(), and x.
Referenced by gpu_errors().
Definition at line 809 of file errors.c.
References line, parse_intel(), parse_nvidia(), and x.
Referenced by merge().
Definition at line 781 of file errors.c.
References atoi_check(), and x.
Referenced by next_error().
Definition at line 796 of file errors.c.
References atoi_check(), and x.
Referenced by next_error().
Definition at line 2021 of file errors.c.
References x, and YY_EXIT_FAILURE.
Definition at line 1349 of file errors.c.
References b, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, i, int, source, x, yy_buffer_state::yy_buf_size, 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 gpu_errorslex().
|
static |
Definition at line 1487 of file errors.c.
References int, x, yy_accept, YY_AT_BOL, yy_base, yy_c_buf_p, yy_chk, yy_def, yy_ec, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, YY_MORE_ADJ, yy_nxt, YY_SC_TO_UI, yy_start, and yytext_ptr.
Referenced by gpu_errorslex().
Definition at line 2124 of file errors.c.
References x, yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, yy_c_buf_p, yy_init, yy_start, yyin, yylineno, and yyout.
Referenced by gpu_errorslex_destroy().
|
static |
Definition at line 1520 of file errors.c.
References int, x, yy_accept, yy_base, yy_c_buf_p, yy_chk, yy_def, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, and yy_nxt.
Referenced by gpu_errorslex().
Definition at line 1545 of file errors.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 gpu_errors().
|
static |
Definition at line 753 of file errors.c.
Referenced by dname(), dopen(), fopen_prefix(), gpu_check_error(), gpu_errors(), gpu_errorslex(), lfopen(), open_ext(), rcv_pid_write(), and terrain().
|
static |
Definition at line 754 of file errors.c.
Referenced by display_command(), gpu_check_error(), gpu_errors(), gpu_errorslex(), inclex(), input_pgm(), input_read_obs(), load(), main(), merge(), next_error(), pcalloc(), pmalloc(), pmfunc_alloc(), pmfunc_index(), prealloc(), process_line(), pstrdup(), remove_blanks(), stencil_val(), stencil_val_a(), and tracing().
|
static |
Definition at line 752 of file errors.c.
Referenced by gpu_errors(), and gpu_errorslex().
|
static |
Definition at line 647 of file errors.c.
Referenced by gpu_errorslex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 692 of file errors.c.
Referenced by gpu_errorslex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Stack as an array.
Definition at line 532 of file errors.c.
Referenced by gpu_errorsensure_buffer_stack(), gpu_errorslex_destroy(), and yy_init_globals().
|
static |
capacity of stack.
Definition at line 531 of file errors.c.
Referenced by gpu_errorsensure_buffer_stack(), and yy_init_globals().
|
static |
index of top of stack.
Definition at line 530 of file errors.c.
Referenced by gpu_errorsensure_buffer_stack(), gpu_errorspop_buffer_state(), gpu_errorspush_buffer_state(), and yy_init_globals().
Definition at line 554 of file errors.c.
Referenced by gpu_errors_load_buffer_state(), gpu_errors_switch_to_buffer(), gpu_errorslex(), gpu_errorspush_buffer_state(), yy_get_next_buffer(), yy_get_previous_state(), yy_init_globals(), yy_try_NUL_trans(), and yyunput().
|
static |
Definition at line 716 of file errors.c.
Referenced by gpu_errorslex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 699 of file errors.c.
Referenced by gpu_errorslex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 561 of file errors.c.
Referenced by gpu_errors_switch_to_buffer(), gpu_errorslex(), gpu_errorspop_buffer_state(), and gpu_errorspush_buffer_state().
Definition at line 654 of file errors.c.
Referenced by gpu_errorslex(), and yy_get_previous_state().
|
static |
Definition at line 549 of file errors.c.
Referenced by gpu_errors_load_buffer_state(), gpu_errors_switch_to_buffer(), gpu_errorslex(), gpu_errorspush_buffer_state(), and yyunput().
|
static |
Definition at line 555 of file errors.c.
Referenced by gpu_errorslex(), and yy_init_globals().
|
static |
Definition at line 732 of file errors.c.
Referenced by gpu_errorslex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 731 of file errors.c.
Referenced by gpu_errorslex(), yy_get_previous_state(), and yy_try_NUL_trans().
Definition at line 686 of file errors.c.
Referenced by gpu_errorslex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 550 of file errors.c.
Referenced by gpu_errors_load_buffer_state(), gpu_errors_switch_to_buffer(), gpu_errorslex(), gpu_errorspush_buffer_state(), yy_get_next_buffer(), and yyunput().
|
static |
Definition at line 706 of file errors.c.
Referenced by gpu_errorslex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 727 of file errors.c.
Referenced by gpu_errorslex().
|
static |
Definition at line 556 of file errors.c.
Referenced by gpu_errorslex(), yy_get_previous_state(), and yy_init_globals().