#include <stdio.h>#include <string.h>#include <ctype.h>#include "genlib.h"#include "ncgentab.h"Include dependency graph for ncgenyy.c:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | yy_buffer_state |
Defines | |
| #define | FLEX_SCANNER |
| #define | YY_FLEX_MAJOR_VERSION 2 |
| #define | YY_FLEX_MINOR_VERSION 5 |
| #define | yyconst |
| #define | YY_PROTO(proto) () |
| #define | YY_NULL 0 |
| #define | YY_SC_TO_UI(c) ((unsigned int) (unsigned 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 | EOB_ACT_CONTINUE_SCAN 0 |
| #define | EOB_ACT_END_OF_FILE 1 |
| #define | EOB_ACT_LAST_MATCH 2 |
| #define | yyless(n) |
| #define | unput(c) yyunput( c, yytext_ptr ) |
| #define | YY_BUFFER_NEW 0 |
| #define | YY_BUFFER_NORMAL 1 |
| #define | YY_BUFFER_EOF_PENDING 2 |
| #define | YY_CURRENT_BUFFER yy_current_buffer |
| #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->yy_at_bol) |
| #define | yytext_ptr yytext |
| #define | YY_DO_BEFORE_ACTION |
| #define | YY_NUM_RULES 30 |
| #define | YY_END_OF_BUFFER 31 |
| #define | REJECT reject_used_but_not_detected |
| #define | yymore() yymore_used_but_not_detected |
| #define | YY_MORE_ADJ 0 |
| #define | YY_RESTORE_YY_MORE_OFFSET |
| #define | INITIAL 0 |
| #define | FILL_STRING "_" |
| #define | XDR_INT_MIN (-2147483647-1) |
| #define | XDR_INT_MAX 2147483647 |
| #define | YY_BREAK |
| #define | YY_NO_PUSH_STATE 1 |
| #define | YY_NO_POP_STATE 1 |
| #define | YY_NO_TOP_STATE 1 |
| #define | YY_READ_BUF_SIZE 8192 |
| #define | ECHO (void) fwrite( yytext, yyleng, 1, yyout ) |
| #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 int yylex YY_PROTO(( void )) |
| #define | YY_RULE_SETUP YY_USER_ACTION |
| #define | YY_EXIT_FAILURE 2 |
| #define | yyless(n) |
Typedefs | |
| typedef yy_buffer_state * | YY_BUFFER_STATE |
| typedef unsigned int | yy_size_t |
| typedef unsigned char | YY_CHAR |
| typedef int | yy_state_type |
Functions | |
| void yyrestart | YY_PROTO ((FILE *)) |
| void yy_switch_to_buffer | YY_PROTO ((YY_BUFFER_STATE)) |
| void yy_load_buffer_state | YY_PROTO ((void)) |
| YY_BUFFER_STATE yy_create_buffer | YY_PROTO ((FILE *, int)) |
| void yy_init_buffer | YY_PROTO ((YY_BUFFER_STATE, FILE *)) |
| YY_BUFFER_STATE yy_scan_buffer | YY_PROTO ((char *, yy_size_t)) |
| YY_BUFFER_STATE yy_scan_string | YY_PROTO ((yyconst char *)) |
| YY_BUFFER_STATE yy_scan_bytes | YY_PROTO ((yyconst char *, int)) |
| static void *yy_flex_alloc | YY_PROTO ((yy_size_t)) |
| static void *yy_flex_realloc | YY_PROTO ((void *, yy_size_t)) |
| static void yy_flex_free | YY_PROTO ((void *)) |
| static yy_state_type yy_try_NUL_trans | YY_PROTO ((yy_state_type current_state)) |
| static void yy_fatal_error | YY_PROTO ((yyconst char msg[])) |
| static void yyunput | YY_PROTO ((int c, char *buf_ptr)) |
| void | yy_init_buffer (YY_BUFFER_STATE b, FILE *file) |
| void | yy_flush_buffer (YY_BUFFER_STATE b) |
| YY_BUFFER_STATE | yy_scan_buffer (char *base, yy_size_t size) |
| YY_BUFFER_STATE | yy_scan_string (yyconst char *__flex_scan_str) |
| YY_BUFFER_STATE | yy_scan_bytes (yyconst char *bytes, int len) |
| static void | yy_fatal_error (msg) |
| static void * | yy_flex_alloc (yy_size_t size) |
| static void * | yy_flex_realloc (void *ptr, yy_size_t size) |
| static void | yy_flex_free (void *ptr) |
Variables | |
| int | yyleng |
| FILE * | yyin = (FILE *) 0 |
| FILE * | yyout = (FILE *) 0 |
| static YY_BUFFER_STATE | yy_current_buffer = 0 |
| static char | yy_hold_char |
| static int | yy_n_chars |
| static char * | yy_c_buf_p = (char *) 0 |
| static int | yy_init = 1 |
| static int | yy_start = 0 |
| static int | yy_did_buffer_switch_on_eof |
| char * | yytext |
| static yyconst short int | yy_accept [249] |
| static yyconst int | yy_ec [256] |
| static yyconst int | yy_meta [58] |
| static yyconst short int | yy_base [259] |
| static yyconst short int | yy_def [259] |
| static yyconst short int | yy_nxt [501] |
| static yyconst short int | yy_chk [501] |
| static yy_state_type | yy_last_accepting_state |
| static char * | yy_last_accepting_cpos |
| char | errstr [100] |
| register char * | yy_bp |
| int | size |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 187 of file ncgenyy.c. Referenced by yy_flush_buffer(), and yy_scan_buffer(). |
|
|
|
|
|
|
|
|
|
|
|
Value: yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp; |
|
|
|
|
|
Definition at line 95 of file ncgenyy.c. Referenced by yy_flush_buffer(), yy_scan_buffer(), and yy_scan_bytes(). |
|
|
Definition at line 1870 of file ncgenyy.c. Referenced by yy_fatal_error(). |
|
|
Definition at line 703 of file ncgenyy.c. Referenced by yy_scan_buffer(), and yy_scan_bytes(). |
|
|
|
|
|
|
|
|
|
|
|
Value: if ( yy_current_buffer->yy_is_interactive ) \ { \ int c = '*', 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 if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: { \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_at_bol = at_bol; \
}
|
|
|
Value: { \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_is_interactive = is_interactive; \
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: do \ { \ /* Undo effects of setting up yytext. */ \ yytext[yyleng] = yy_hold_char; \ yy_c_buf_p = yytext + n; \ yy_hold_char = *yy_c_buf_p; \ *yy_c_buf_p = '\0'; \ yyleng = n; \ } \ while ( 0 ) |
|
|
Value: do \ { \ /* Undo effects of setting up yytext. */ \ *yy_cp = yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1876 of file ncgenyy.c. References YY_EXIT_FAILURE. 01879 { 01880 (void) fprintf( stderr, "%s\n", msg ); 01881 exit( YY_EXIT_FAILURE ); 01882 }
|
|
|
Definition at line 1940 of file ncgenyy.c. Referenced by yy_scan_buffer(), and yy_scan_bytes(). 01943 { 01944 return (void *) malloc( size ); 01945 }
|
|
|
Definition at line 1968 of file ncgenyy.c.
|
|
||||||||||||
|
Definition at line 1950 of file ncgenyy.c. 01954 { 01955 /* The cast to (char *) in the following accommodates both 01956 * implementations that use char* generic pointers, and those 01957 * that use void* generic pointers. It works with the latter 01958 * because both ANSI C and C++ allow castless assignment from 01959 * any pointer type to void*, and deal with argument conversions 01960 * as though doing an assignment. 01961 */ 01962 return (void *) realloc( (char *) ptr, size ); 01963 }
|
|
|
Definition at line 1699 of file ncgenyy.c. References YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, and yy_buffer_state::yy_n_chars. Referenced by yy_init_buffer(). 01703 { 01704 b->yy_n_chars = 0; 01705 01706 /* We always need two end-of-buffer characters. The first causes 01707 * a transition to the end-of-buffer state. The second causes 01708 * a jam in that state. 01709 */ 01710 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; 01711 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; 01712 01713 b->yy_buf_pos = &b->yy_ch_buf[0]; 01714 01715 b->yy_at_bol = 1; 01716 b->yy_buffer_status = YY_BUFFER_NEW; 01717 01718 if ( b == yy_current_buffer ) 01719 yy_load_buffer_state(); 01720 }
|
|
||||||||||||
|
Definition at line 1672 of file ncgenyy.c. References yy_flush_buffer(). 01678 { 01679 yy_flush_buffer( b ); 01680 01681 b->yy_input_file = file; 01682 b->yy_fill_buffer = 1; 01683 01684 #if YY_ALWAYS_INTERACTIVE 01685 b->yy_is_interactive = 1; 01686 #else 01687 #if YY_NEVER_INTERACTIVE 01688 b->yy_is_interactive = 0; 01689 #else 01690 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; 01691 #endif 01692 #endif 01693 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
||||||||||||
|
Definition at line 1782 of file ncgenyy.c. References YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_flex_alloc(), yy_buffer_state::yy_is_our_buffer, and yy_scan_buffer(). Referenced by yy_scan_string(). 01786 { 01787 YY_BUFFER_STATE b; 01788 char *buf; 01789 yy_size_t n; 01790 int i; 01791 01792 /* Get memory for full buffer, including space for trailing EOB's. */ 01793 n = len + 2; 01794 buf = (char *) yy_flex_alloc( n ); 01795 if ( ! buf ) 01796 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); 01797 01798 for ( i = 0; i < len; ++i ) 01799 buf[i] = bytes[i]; 01800 01801 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; 01802 01803 b = yy_scan_buffer( buf, n ); 01804 if ( ! b ) 01805 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); 01806 01807 /* It's okay to grow etc. this buffer, and we should throw it 01808 * away when we're done. 01809 */ 01810 b->yy_is_our_buffer = 1; 01811 01812 return b; 01813 }
|
|
|
Definition at line 1765 of file ncgenyy.c. References len, and yy_scan_bytes(). Referenced by main(). 01768 { 01769 int len; 01770 for ( len = 0; __flex_scan_str[len]; ++len ) 01771 ; 01772 01773 return yy_scan_bytes( __flex_scan_str, len ); 01774 }
|
|
|
|
|
|
Definition at line 1558 of file ncgenyy.c. Referenced by cl_fortran(), do_ncdump_rec(), do_ncdumpx(), f2c_v2imap(), gen_c(), gen_fortran(), gen_netcdf(), get_fill_value(), NcVar::get_rec(), main(), nco_att_lst_mk(), nco_msa_clc_cnt(), nco_msa_clc_idx(), nco_msa_min_idx(), nco_msa_prn_idx(), nco_msa_ram_2_dsk(), nco_msa_wrp_splt(), ncrecsize(), NcVar::rec_size(), NcVar::set_cur(), NcVar::set_rec(), test_ncinquire(), test_ncvardef(), test_slabs(), and testdims(). |
|
|
Initial value:
{ 0,
0, 0, 31, 29, 28, 17, 29, 29, 29, 29,
19, 29, 22, 22, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16, 28, 0,
2, 0, 0, 0, 19, 22, 22, 0, 0, 19,
19, 0, 20, 1, 23, 23, 18, 23, 22, 21,
0, 22, 18, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 24, 0, 0, 0,
0, 0, 19, 0, 0, 19, 1, 23, 19, 23,
16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
7, 16, 16, 16, 14, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 7, 16, 16, 16, 16,
16, 16, 27, 25, 0, 0, 19, 0, 19, 20,
19, 5, 4, 16, 16, 16, 16, 16, 16, 16,
15, 16, 7, 16, 3, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16, 25, 0,
26, 0, 15, 0, 12, 16, 16, 16, 16, 16,
16, 16, 6, 16, 16, 16, 16, 16, 16, 16,
16, 16, 0, 16, 8, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 0, 16, 16, 16,
16, 0, 16, 16, 16, 16, 16, 0, 16, 16,
13, 13, 16, 16, 16, 16, 16, 14, 16, 9,
16, 16, 16, 16, 11, 16, 10, 0
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value:
{ 0,
1, 1, 2, 1, 1, 3, 4, 3, 3, 3,
1, 5, 5, 5, 1, 5, 5, 5, 5, 5,
5, 3, 3, 3, 3, 6, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 1, 5, 5, 5,
5, 5, 5, 3, 3, 3, 6, 3, 3, 3,
3, 3, 3, 3, 3, 3, 7
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4