4 #define YY_INT_ALIGNED short int
8 #define yy_create_buffer prop__create_buffer
9 #define yy_delete_buffer prop__delete_buffer
10 #define yy_scan_buffer prop__scan_buffer
11 #define yy_scan_string prop__scan_string
12 #define yy_scan_bytes prop__scan_bytes
13 #define yy_init_buffer prop__init_buffer
14 #define yy_flush_buffer prop__flush_buffer
15 #define yy_load_buffer_state prop__load_buffer_state
16 #define yy_switch_to_buffer prop__switch_to_buffer
17 #define yypush_buffer_state prop_push_buffer_state
18 #define yypop_buffer_state prop_pop_buffer_state
19 #define yyensure_buffer_stack prop_ensure_buffer_stack
20 #define yy_flex_debug prop__flex_debug
22 #define yyleng prop_leng
23 #define yylex prop_lex
24 #define yylineno prop_lineno
25 #define yyout prop_out
26 #define yyrestart prop_restart
27 #define yytext prop_text
28 #define yywrap prop_wrap
29 #define yyalloc prop_alloc
30 #define yyrealloc prop_realloc
31 #define yyfree prop_free
34 #define YY_FLEX_MAJOR_VERSION 2
35 #define YY_FLEX_MINOR_VERSION 6
36 #define YY_FLEX_SUBMINOR_VERSION 4
37 #if YY_FLEX_SUBMINOR_VERSION > 0
41 #ifdef yy_create_buffer
42 #define prop__create_buffer_ALREADY_DEFINED
44 #define yy_create_buffer prop__create_buffer
47 #ifdef yy_delete_buffer
48 #define prop__delete_buffer_ALREADY_DEFINED
50 #define yy_delete_buffer prop__delete_buffer
54 #define prop__scan_buffer_ALREADY_DEFINED
56 #define yy_scan_buffer prop__scan_buffer
60 #define prop__scan_string_ALREADY_DEFINED
62 #define yy_scan_string prop__scan_string
66 #define prop__scan_bytes_ALREADY_DEFINED
68 #define yy_scan_bytes prop__scan_bytes
72 #define prop__init_buffer_ALREADY_DEFINED
74 #define yy_init_buffer prop__init_buffer
77 #ifdef yy_flush_buffer
78 #define prop__flush_buffer_ALREADY_DEFINED
80 #define yy_flush_buffer prop__flush_buffer
83 #ifdef yy_load_buffer_state
84 #define prop__load_buffer_state_ALREADY_DEFINED
86 #define yy_load_buffer_state prop__load_buffer_state
89 #ifdef yy_switch_to_buffer
90 #define prop__switch_to_buffer_ALREADY_DEFINED
92 #define yy_switch_to_buffer prop__switch_to_buffer
95 #ifdef yypush_buffer_state
96 #define prop_push_buffer_state_ALREADY_DEFINED
98 #define yypush_buffer_state prop_push_buffer_state
101 #ifdef yypop_buffer_state
102 #define prop_pop_buffer_state_ALREADY_DEFINED
104 #define yypop_buffer_state prop_pop_buffer_state
107 #ifdef yyensure_buffer_stack
108 #define prop_ensure_buffer_stack_ALREADY_DEFINED
110 #define yyensure_buffer_stack prop_ensure_buffer_stack
114 #define prop_lex_ALREADY_DEFINED
116 #define yylex prop_lex
120 #define prop_restart_ALREADY_DEFINED
122 #define yyrestart prop_restart
126 #define prop_lex_init_ALREADY_DEFINED
128 #define yylex_init prop_lex_init
131 #ifdef yylex_init_extra
132 #define prop_lex_init_extra_ALREADY_DEFINED
134 #define yylex_init_extra prop_lex_init_extra
138 #define prop_lex_destroy_ALREADY_DEFINED
140 #define yylex_destroy prop_lex_destroy
144 #define prop_get_debug_ALREADY_DEFINED
146 #define yyget_debug prop_get_debug
150 #define prop_set_debug_ALREADY_DEFINED
152 #define yyset_debug prop_set_debug
156 #define prop_get_extra_ALREADY_DEFINED
158 #define yyget_extra prop_get_extra
162 #define prop_set_extra_ALREADY_DEFINED
164 #define yyset_extra prop_set_extra
168 #define prop_get_in_ALREADY_DEFINED
170 #define yyget_in prop_get_in
174 #define prop_set_in_ALREADY_DEFINED
176 #define yyset_in prop_set_in
180 #define prop_get_out_ALREADY_DEFINED
182 #define yyget_out prop_get_out
186 #define prop_set_out_ALREADY_DEFINED
188 #define yyset_out prop_set_out
192 #define prop_get_leng_ALREADY_DEFINED
194 #define yyget_leng prop_get_leng
198 #define prop_get_text_ALREADY_DEFINED
200 #define yyget_text prop_get_text
204 #define prop_get_lineno_ALREADY_DEFINED
206 #define yyget_lineno prop_get_lineno
210 #define prop_set_lineno_ALREADY_DEFINED
212 #define yyset_lineno prop_set_lineno
216 #define prop_wrap_ALREADY_DEFINED
218 #define yywrap prop_wrap
222 #define prop_alloc_ALREADY_DEFINED
224 #define yyalloc prop_alloc
228 #define prop_realloc_ALREADY_DEFINED
230 #define yyrealloc prop_realloc
234 #define prop_free_ALREADY_DEFINED
236 #define yyfree prop_free
240 #define prop_text_ALREADY_DEFINED
242 #define yytext prop_text
246 #define prop_leng_ALREADY_DEFINED
248 #define yyleng prop_leng
252 #define prop_in_ALREADY_DEFINED
258 #define prop_out_ALREADY_DEFINED
260 #define yyout prop_out
264 #define prop__flex_debug_ALREADY_DEFINED
266 #define yy_flex_debug prop__flex_debug
270 #define prop_lineno_ALREADY_DEFINED
272 #define yylineno prop_lineno
292 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
297 #ifndef __STDC_LIMIT_MACROS
298 #define __STDC_LIMIT_MACROS 1
301 #include <inttypes.h>
318 #define INT8_MIN (-128)
321 #define INT16_MIN (-32767-1)
324 #define INT32_MIN (-2147483647-1)
327 #define INT8_MAX (127)
330 #define INT16_MAX (32767)
333 #define INT32_MAX (2147483647)
336 #define UINT8_MAX (255U)
339 #define UINT16_MAX (65535U)
342 #define UINT32_MAX (4294967295U)
346 #define SIZE_MAX (~(size_t)0)
356 #define yyconst const
358 #if defined(__GNUC__) && __GNUC__ >= 3
359 #define yynoreturn __attribute__((__noreturn__))
370 #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
376 #define BEGIN (yy_start) = 1 + 2 *
381 #define YY_START (((yy_start) - 1) / 2)
382 #define YYSTATE YY_START
384 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
386 #define YY_NEW_FILE yyrestart( yyin )
387 #define YY_END_OF_BUFFER_CHAR 0
396 #define YY_BUF_SIZE 32768
398 #define YY_BUF_SIZE 16384
404 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
406 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
407 #define YY_TYPEDEF_YY_BUFFER_STATE
411 #ifndef YY_TYPEDEF_YY_SIZE_T
412 #define YY_TYPEDEF_YY_SIZE_T
420 #define EOB_ACT_CONTINUE_SCAN 0
421 #define EOB_ACT_END_OF_FILE 1
422 #define EOB_ACT_LAST_MATCH 2
424 #define YY_LESS_LINENO(n)
425 #define YY_LINENO_REWIND_TO(ptr)
432 int yyless_macro_arg = (n); \
433 YY_LESS_LINENO(yyless_macro_arg);\
434 *yy_cp = (yy_hold_char); \
435 YY_RESTORE_YY_MORE_OFFSET \
436 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
437 YY_DO_BEFORE_ACTION; \
440 #define unput(c) yyunput( c, (yytext_ptr) )
442 #ifndef YY_STRUCT_YY_BUFFER_STATE
443 #define YY_STRUCT_YY_BUFFER_STATE
490 #define YY_BUFFER_NEW 0
491 #define YY_BUFFER_NORMAL 1
502 #define YY_BUFFER_EOF_PENDING 2
518 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
519 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
524 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
552 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
562 #define yy_new_buffer yy_create_buffer
563 #define yy_set_interactive(is_interactive) \
565 if ( ! YY_CURRENT_BUFFER ){ \
566 yyensure_buffer_stack (); \
567 YY_CURRENT_BUFFER_LVALUE = \
568 yy_create_buffer( yyin, YY_BUF_SIZE ); \
570 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
572 #define yy_set_bol(at_bol) \
574 if ( ! YY_CURRENT_BUFFER ){\
575 yyensure_buffer_stack (); \
576 YY_CURRENT_BUFFER_LVALUE = \
577 yy_create_buffer( yyin, YY_BUF_SIZE ); \
579 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
581 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
597 #define yytext_ptr yytext
607 #define YY_DO_BEFORE_ACTION \
608 (yytext_ptr) = yy_bp; \
609 yyleng = (int) (yy_cp - yy_bp); \
610 (yy_hold_char) = *yy_cp; \
612 (yy_c_buf_p) = yy_cp;
613 #define YY_NUM_RULES 10
614 #define YY_END_OF_BUFFER 11
624 7, 7, 11, 9, 7, 7, 9, 4, 3, 8,
625 4, 4, 4, 7, 9, 7, 0, 5, 4, 3,
626 3, 4, 4, 7, 0, 0, 6, 4, 4, 4,
632 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
633 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
634 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
635 1, 2, 1, 4, 5, 1, 1, 1, 1, 1,
636 1, 1, 1, 1, 6, 1, 1, 7, 7, 7,
637 7, 7, 7, 7, 7, 7, 7, 1, 1, 1,
638 8, 1, 1, 1, 9, 10, 10, 10, 11, 12,
639 10, 10, 10, 10, 10, 13, 10, 10, 10, 10,
640 10, 14, 15, 16, 17, 10, 10, 10, 10, 10,
641 1, 1, 1, 1, 10, 1, 10, 10, 10, 10,
643 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
644 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
645 10, 10, 1, 1, 1, 1, 1, 1, 1, 1,
646 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
647 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
648 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
649 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
650 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
651 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
652 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
654 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
655 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
656 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
657 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
658 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
664 1, 1, 1, 1, 1, 2, 2, 1, 2, 2,
670 0, 16, 50, 51, 17, 20, 45, 41, 40, 51,
671 0, 37, 31, 22, 41, 26, 39, 51, 0, 35,
672 34, 27, 22, 0, 35, 34, 51, 21, 24, 23,
678 33, 1, 33, 33, 33, 33, 34, 35, 33, 33,
679 35, 35, 35, 33, 36, 33, 34, 33, 35, 35,
680 33, 35, 35, 14, 36, 36, 33, 35, 35, 35,
681 35, 35, 0, 33, 33, 33
686 4, 5, 6, 7, 4, 8, 9, 10, 11, 11,
687 11, 12, 11, 11, 11, 13, 11, 14, 16, 16,
688 15, 16, 16, 24, 16, 19, 25, 16, 16, 17,
689 17, 26, 26, 32, 31, 30, 27, 27, 29, 28,
690 21, 20, 18, 27, 23, 22, 21, 20, 18, 33,
691 3, 33, 33, 33, 33, 33, 33, 33, 33, 33,
692 33, 33, 33, 33, 33, 33, 33, 33
697 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
698 1, 1, 1, 1, 1, 1, 1, 2, 5, 5,
699 2, 6, 6, 14, 14, 35, 14, 16, 16, 34,
700 34, 36, 36, 30, 29, 28, 26, 25, 23, 22,
701 21, 20, 17, 15, 13, 12, 9, 8, 7, 3,
702 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
703 33, 33, 33, 33, 33, 33, 33, 33
715 #define REJECT reject_used_but_not_detected
716 #define yymore() yymore_used_but_not_detected
717 #define YY_MORE_ADJ 0
718 #define YY_RESTORE_YY_MORE_OFFSET
720 #line 1 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
744 #define YY_NO_INPUT 1
745 #line 28 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
747 #include "pips_config.h"
762 #include "constants.h"
791 #define property_user_error(...) do { \
793 user_error(__FUNCTION__, __VA_ARGS__); \
802 #define YY_INPUT(buffer, result, max_size) \
804 unsigned int i = 0; \
805 if (string_to_parse) \
807 while (i<(unsigned int)max_size \
808 && *string_to_parse) \
809 buffer[i++] = *string_to_parse++; \
814 while (i<(unsigned int)max_size \
815 && (c=getc(yyin))!=EOF) \
816 buffer[i++] = (char) c; \
818 result = i==0? YY_NULL: i; \
847 #ifndef YY_NO_UNISTD_H
855 #ifndef YY_EXTRA_TYPE
856 #define YY_EXTRA_TYPE void *
894 #ifndef YY_SKIP_YYWRAP
896 extern "C" int yywrap (
void );
898 extern int yywrap (
void );
907 static void yy_flex_strncpy (
char *,
const char *,
int );
910 #ifdef YY_NEED_STRLEN
911 static int yy_flex_strlen (
const char * );
916 static int yyinput (
void );
918 static int input (
void );
924 #ifndef YY_READ_BUF_SIZE
927 #define YY_READ_BUF_SIZE 16384
929 #define YY_READ_BUF_SIZE 8192
938 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
945 #define YY_INPUT(buf,result,max_size) \
946 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
950 for ( n = 0; n < max_size && \
951 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
954 buf[n++] = (char) c; \
955 if ( c == EOF && ferror( yyin ) ) \
956 YY_FATAL_ERROR( "input in flex scanner failed" ); \
962 while ( (result = (int) fread(buf, 1, (size_t) max_size, yyin)) == 0 && ferror(yyin)) \
964 if( errno != EINTR) \
966 YY_FATAL_ERROR( "input in flex scanner failed" ); \
982 #define yyterminate() return YY_NULL
986 #ifndef YY_START_STACK_INCR
987 #define YY_START_STACK_INCR 25
991 #ifndef YY_FATAL_ERROR
992 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1001 #define YY_DECL_IS_OURS 1
1003 extern int yylex (
void);
1005 #define YY_DECL int yylex (void)
1011 #ifndef YY_USER_ACTION
1012 #define YY_USER_ACTION
1017 #define YY_BREAK break;
1020 #define YY_RULE_SETUP \
1022 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1023 (yytext[yyleng - 1] == '\n'); \
1061 #line 126 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1063 #line 1064 "<stdout>"
1088 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1090 yy_current_state = (
int)
yy_def[yy_current_state];
1091 if ( yy_current_state >= 34 )
1094 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1097 while (
yy_base[yy_current_state] != 51 );
1119 goto yy_find_action;
1123 #line 127 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1128 #line 128 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1133 #line 129 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1138 #line 130 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1144 #line 131 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1152 #line 132 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1158 #line 133 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1163 #line 134 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1168 #line 135 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1169 {
fprintf(stderr,
"skipping unexpected char %c (%d)\n",
1175 #line 138 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1178 #line 1179 "<stdout>"
1235 if ( yy_next_state )
1239 yy_current_state = yy_next_state;
1246 goto yy_find_action;
1299 goto yy_find_action;
1306 "fatal flex scanner internal error--no action found" );
1323 int number_to_move, i;
1328 "fatal flex scanner internal error--end of buffer missed" );
1354 for ( i = 0; i < number_to_move; ++i )
1355 *(dest++) = *(source++);
1368 while ( num_to_read <= 0 )
1374 int yy_c_buf_p_offset =
1381 if ( new_size <= 0 )
1397 "fatal error - scanner input buffer overflow" );
1441 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1473 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1475 yy_current_state = (
int)
yy_def[yy_current_state];
1476 if ( yy_current_state >= 34 )
1479 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1482 return yy_current_state;
1501 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1503 yy_current_state = (
int)
yy_def[yy_current_state];
1504 if ( yy_current_state >= 34 )
1507 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1508 yy_is_jam = (yy_current_state == 33);
1510 return yy_is_jam ? 0 : yy_current_state;
1519 static int yyinput (
void)
1521 static int input (
void)
1766 if (new_buffer == NULL)
1815 size_t num_to_alloc;
1828 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
1840 size_t grow_size = 8 ;
1848 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
1920 n = (
size_t) (_yybytes_len + 2);
1925 for ( i = 0; i < _yybytes_len; ++i )
1926 buf[i] = yybytes[i];
1942 #ifndef YY_EXIT_FAILURE
1943 #define YY_EXIT_FAILURE 2
1948 fprintf( stderr,
"%s\n", msg );
1959 int yyless_macro_arg = (n); \
1960 YY_LESS_LINENO(yyless_macro_arg);\
1961 yytext[yyleng] = (yy_hold_char); \
1962 (yy_c_buf_p) = yytext + yyless_macro_arg; \
1963 (yy_hold_char) = *(yy_c_buf_p); \
1964 *(yy_c_buf_p) = '\0'; \
1965 yyleng = yyless_macro_arg; \
2104 static void yy_flex_strncpy (
char*
s1,
const char * s2,
int n )
2108 for ( i = 0; i < n; ++i )
2113 #ifdef YY_NEED_STRLEN
2114 static int yy_flex_strlen (
const char * s )
2117 for ( n = 0; s[n]; ++n )
2129 void *
yyrealloc (
void * ptr,
size_t size )
2139 return realloc(ptr, size);
2142 void yyfree (
void * ptr )
2144 free( (
char *) ptr );
2147 #define YYTABLES_NAME "yytables"
2149 #line 138 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
2178 static string property_tag_to_string(
tag t)
2184 default:
return "UNKNOW property type";
2195 while ((tok =
yylex()))
2209 user_error(__FUNCTION__,
"Unknown property \"%s\" to update\n", n);
2214 switch (tok =
yylex())
2229 char *q = strrchr(s,
'"');
2250 "when updating property %s\n",
2256 else if(processing_p
2257 && strcmp(n,
"CONSISTENCY_ENFORCED_P")==0
2258 && !property_equal_p(pr, opr))
2261 "processing is started because consistenty "
2262 "can no longer be enforced. Move the set "
2263 "property command earlier in the compilaton "
2270 if(!property_equal_p(pr, opr))
2281 static void parse_properties_file(FILE * fd)
2291 static void read_properties(
void)
2296 FILE * old_prop = NULL;
2313 parse_properties_file(
prop_in);
2324 if ((old_prop = fopen(pfn,
"r")) != NULL) {
2326 int stat = fscanf(old_prop,
"%s", opfn);
2330 parse_properties_file(
prop_in);
2333 fclose(old_prop), old_prop = (FILE*) NULL;
2340 if ((
prop_in = fopen(PROPERTIES_RC,
"r")) != NULL) {
2341 parse_properties_file(
prop_in);
2523 fprintf(fd,
"# undefined property %s\n", pname);
2536 fprintf(fd,
"# bad property type for %s\n", pname);
2545 fprintf(fd,
"# undefined property %s\n", pname);
2558 fprintf(fd,
"# bad property type for %s\n", pname);
2567 fprintf(fd,
"# PIPS PROPERTIES\n");
2574 else fprintf(fd,
"# NO PIPS PROPERTIES...\n");
2579 static string get_property_file_name(
void)
2582 int stat =
asprintf(&name,
"%s/properties",dir_name);
2584 free(dir_name);
return name;
2592 string file_name = get_property_file_name();
2594 if (!file)
return false;
2596 parse_properties_file(file);
2607 string file_name = get_property_file_name();
bool too_many_property_errors_pending_p(void)
int get_int_property(const string)
bool properties_initialized_p(void)
FC 2015-07-20: yuk, moved out to prevent an include cycle dependency include "properties....
property make_property_bool(bool _field_)
property make_property_int(intptr_t _field_)
property make_property_string(string _field_)
void free_property(property p)
void const char const char const int
void gen_array_full_free(gen_array_t a)
gen_array_t gen_array_make(size_t size)
declarations...
void gen_array_sort(gen_array_t a)
void gen_array_dupappend(gen_array_t a, void *what)
bdt base
Current expression.
FILE * safe_fopen(const char *filename, const char *what)
char * get_string_property(const char *)
int safe_fclose(FILE *stream, const char *filename)
FILE * fopen_config(const char *canonical_name, const char *cproperty, const char *cenv)
FILE * check_fopen(const char *file, const char *mode)
file.c
bool get_bool_property(const string)
FC 2015-07-20: yuk, moved out to prevent an include cycle dependency include "properties....
string get_script_directory_name(void)
unsigned char flex_uint8_t
flex_uint8_t YY_CHAR
Begin user sect3.
hash_table hash_table_make(hash_key_type key_type, size_t size)
void * hash_get(const hash_table htp, const void *key)
this function retrieves in the hash table pointed to by htp the couple whose key is equal to key.
void hash_put(hash_table htp, const void *key, const void *val)
This functions stores a couple (key,val) in the hash table pointed to by htp.
void hash_update(hash_table htp, const void *key, const void *val)
update key->val in htp, that MUST be pre-existent.
void hash_table_free(hash_table htp)
this function deletes a hash table that is no longer useful.
void * memset(void *str, int c, size_t len)
memset.c – set an area of memory to a given value Copyright (C) 1991, 2003, 2009-2011 Free Software F...
#define pips_debug
these macros use the GNU extensions that allow variadic macros, including with an empty list.
string user_request(const char *,...)
#define GEN_ARRAY_FOREACH(type, s, array)
string concatenate(const char *,...)
Return the concatenation of the given strings.
#define HASH_MAP(k, v, code, ht)
#define HASH_UNDEFINED_VALUE
value returned by hash_get() when the key is not found; could also be called HASH_KEY_NOT_FOUND,...
struct __hash_table * hash_table
Define hash_table structure which is hidden.
#define string_undefined_p(s)
void reset_property_error(void)
#define YY_INPUT(buffer, result, max_size)
shared pointer!
#define yy_load_buffer_state
#define YY_NEW_FILE
Special action meaning "start processing a new file".
static hash_table pl
properties are stored in this hash table (string -> property) for fast accesses.
unsigned char flex_uint8_t
static char yy_hold_char
yy_hold_char holds the character lost when yytext is formed.
static const YY_CHAR yy_meta[18]
static yy_state_type yy_last_accepting_state
static bool update_property
static void yynoreturn yy_fatal_error(const char *msg)
#define YY_EXTRA_TYPE
Special case for "unistd.h", since it is non-ANSI.
static const flex_int16_t yy_def[37]
static int yy_start
whether we need to initialize
static const flex_int16_t yy_nxt[69]
#define property_user_error(...)
Call pips_user_error and notice it first.
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
unsigned int flex_uint32_t
static int yy_get_next_buffer(void)
#define YY_BREAK
Code executed at the end of each rule.
static char * string_to_parse
We may parse strings or files...
static size_t yy_buffer_stack_max
capacity of stack.
static void parse_properties(bool processing_p)
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
#define yypush_buffer_state
struct yy_buffer_state * YY_BUFFER_STATE
#define YY_RESTORE_YY_MORE_OFFSET
static int yy_did_buffer_switch_on_eof
start state number
static int yy_init_globals(void)
static size_t pending_errors
A flag used to avoid infinite recursion in the case of use error here.
#define yyensure_buffer_stack
void parse_properties_string(char *s, bool processing_p)
properties.c
static const flex_int16_t yy_chk[69]
signed char flex_int8_t
C99 systems have <inttypes.h>.
static const flex_int16_t yy_accept[34]
#define EOB_ACT_END_OF_FILE
#define yypop_buffer_state
#define YY_CURRENT_BUFFER_LVALUE
Same as previous macro, but useful when we know that the buffer stack is not NULL or when we need an ...
#define YY_START
Translate the current start state into a value that can be later handed to BEGIN to return to the sta...
#define yy_switch_to_buffer
string db_get_meta_data_directory(void)
The syntax of a property list.
#define YY_CURRENT_BUFFER
We provide macros for accessing buffer states in case in the future we want to put the buffer states ...
#define INITIAL
FLEX_SCANNER.
#define YY_READ_BUF_SIZE
Amount of stuff to slurp up with each read.
#define YY_STATE_EOF(state)
Action number for EOF rule of a given start state.
#define YY_END_OF_BUFFER_CHAR
static const flex_int16_t yy_base[37]
#define YY_FATAL_ERROR(msg)
Report a fatal error.
#define yyterminate()
Gets input and stuffs it into "buf".
unsigned short int flex_uint16_t
#define yywrap
Macros after this point can all be overridden by user definitions in section 1.
#define yy_create_buffer
A lexical scanner generated by flex.
flex_uint8_t YY_CHAR
Begin user sect3.
#define YY_DO_BEFORE_ACTION
Done after the current pattern has been matched and before the corresponding action - sets up yytext.
#define EOB_ACT_LAST_MATCH
#define YY_BUFFER_EOF_PENDING
When an EOF's been seen but there's still some text to process then we mark the buffer as YY_EOF_PEND...
static yy_state_type yy_get_previous_state(void)
static const YY_CHAR yy_ec[256]
#define yylex_destroy
Accessor methods to globals.
static char * yy_c_buf_p
Points to current character in buffer.
#define EOB_ACT_CONTINUE_SCAN
static size_t yy_buffer_stack_top
!YY_STRUCT_YY_BUFFER_STATE
#define YY_BUF_SIZE
Size of default input buffer.
#define YY_SC_TO_UI(c)
Promotes a possibly negative, possibly signed char to an integer in range [0..255] for use as an arra...
static char * yy_last_accepting_cpos
void set_bool_property(const char *, bool)
property get_property(const char *, bool)
void fprint_property_direct(FILE *, const char *)
void save_properties(void)
void set_int_property(const char *, int)
void fprint_properties(FILE *)
const char * get_string_property_or_ask(const char *, const char[])
void fprint_property(FILE *, const char *)
bool open_properties(void)
void set_string_property(const char *, const char *)
#define property_string(x)
#define property_undefined_p(x)
#define property_undefined
#define property_int_p(x)
struct _newgen_struct_property_ * property
#define property_string_p(x)
#define property_bool_p(x)
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...
int yy_n_chars
Number of characters read into yy_ch_buf, not including EOB characters.
int yy_bs_column
The column count.
int yy_buf_size
current position in input buffer
int yy_fill_buffer
Whether to try to fill the input buffer when we reach the end of it.
int yy_is_our_buffer
Whether we "own" the buffer - i.e., we know we created it, and can realloc() it to grow it,...
int yy_bs_lineno
The line count.
char * yy_buf_pos
input buffer
int yy_at_bol
Whether we're considered to be at the beginning of a line.
int yy_is_interactive
Whether this is an "interactive" input source; if so, and if we're using stdio for input,...
This struct is not used in this scanner, but its presence is necessary.