52 #define YYBISON_VERSION "3.8.2"
55 #define YYSKELETON_NAME "yacc.c"
68 #define yyparse pipsmake_parse
69 #define yylex pipsmake_lex
70 #define yyerror pipsmake_error
71 #define yydebug pipsmake_debug
72 #define yynerrs pipsmake_nerrs
73 #define yylval pipsmake_lval
74 #define yychar pipsmake_char
77 #line 60 "readmakefile.y"
80 #include "pips_config.h"
107 # define YY_CAST(Type, Val) static_cast<Type> (Val)
108 # define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
110 # define YY_CAST(Type, Val) ((Type) (Val))
111 # define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
115 # if defined __cplusplus
116 # if 201103L <= __cplusplus
117 # define YY_NULLPTR nullptr
119 # define YY_NULLPTR 0
122 # define YY_NULLPTR ((void*)0)
128 #ifndef YY_PIPSMAKE_Y_TAB_H_INCLUDED
129 # define YY_PIPSMAKE_Y_TAB_H_INCLUDED
135 extern int pipsmake_debug;
176 #define TK_CALLEES 262
180 #define COMPILATION_UNIT 266
184 #define PRESERVED 270
185 #define PRE_TRANSFORMATION 271
186 #define POST_TRANSFORMATION 272
191 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
194 #line 86 "readmakefile.y"
207 # define YYSTYPE_IS_TRIVIAL 1
208 # define YYSTYPE_IS_DECLARED 1
267 #ifndef __PTRDIFF_MAX__
269 # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
280 #ifdef __INT_LEAST8_MAX__
282 #elif defined YY_STDINT_H
288 #ifdef __INT_LEAST16_MAX__
290 #elif defined YY_STDINT_H
302 # undef UINT_LEAST8_MAX
303 # undef UINT_LEAST16_MAX
304 # define UINT_LEAST8_MAX 255
305 # define UINT_LEAST16_MAX 65535
308 #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
310 #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
311 && UINT_LEAST8_MAX <= INT_MAX)
313 #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
319 #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
321 #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
322 && UINT_LEAST16_MAX <= INT_MAX)
324 #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
331 # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
332 # define YYPTRDIFF_T __PTRDIFF_TYPE__
333 # define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
334 # elif defined PTRDIFF_MAX
338 # define YYPTRDIFF_T ptrdiff_t
339 # define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
341 # define YYPTRDIFF_T long
342 # define YYPTRDIFF_MAXIMUM LONG_MAX
347 # ifdef __SIZE_TYPE__
348 # define YYSIZE_T __SIZE_TYPE__
349 # elif defined size_t
350 # define YYSIZE_T size_t
351 # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
353 # define YYSIZE_T size_t
355 # define YYSIZE_T unsigned
359 #define YYSIZE_MAXIMUM \
360 YY_CAST (YYPTRDIFF_T, \
361 (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
362 ? YYPTRDIFF_MAXIMUM \
363 : YY_CAST (YYSIZE_T, -1)))
365 #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
375 # if defined YYENABLE_NLS && YYENABLE_NLS
377 # include <libintl.h>
378 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
382 # define YY_(Msgid) Msgid
387 #ifndef YY_ATTRIBUTE_PURE
388 # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
389 # define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
391 # define YY_ATTRIBUTE_PURE
395 #ifndef YY_ATTRIBUTE_UNUSED
396 # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
397 # define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
399 # define YY_ATTRIBUTE_UNUSED
404 #if ! defined lint || defined __GNUC__
405 # define YY_USE(E) ((void) (E))
411 #if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
412 # if __GNUC__ * 100 + __GNUC_MINOR__ < 407
413 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
414 _Pragma ("GCC diagnostic push") \
415 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
417 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
418 _Pragma ("GCC diagnostic push") \
419 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
420 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
422 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
423 _Pragma ("GCC diagnostic pop")
425 # define YY_INITIAL_VALUE(Value) Value
427 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
428 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
429 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
431 #ifndef YY_INITIAL_VALUE
432 # define YY_INITIAL_VALUE(Value)
435 #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
436 # define YY_IGNORE_USELESS_CAST_BEGIN \
437 _Pragma ("GCC diagnostic push") \
438 _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
439 # define YY_IGNORE_USELESS_CAST_END \
440 _Pragma ("GCC diagnostic pop")
442 #ifndef YY_IGNORE_USELESS_CAST_BEGIN
443 # define YY_IGNORE_USELESS_CAST_BEGIN
444 # define YY_IGNORE_USELESS_CAST_END
448 #define YY_ASSERT(E) ((void) (0 && (E)))
450 #if !defined yyoverflow
454 # ifdef YYSTACK_USE_ALLOCA
455 # if YYSTACK_USE_ALLOCA
457 # define YYSTACK_ALLOC __builtin_alloca
458 # elif defined __BUILTIN_VA_ARG_INCR
461 # define YYSTACK_ALLOC __alloca
462 # elif defined _MSC_VER
464 # define alloca _alloca
466 # define YYSTACK_ALLOC alloca
467 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
470 # ifndef EXIT_SUCCESS
471 # define EXIT_SUCCESS 0
478 # ifdef YYSTACK_ALLOC
480 # define YYSTACK_FREE(Ptr) do { ; } while (0)
481 # ifndef YYSTACK_ALLOC_MAXIMUM
486 # define YYSTACK_ALLOC_MAXIMUM 4032
489 # define YYSTACK_ALLOC YYMALLOC
490 # define YYSTACK_FREE YYFREE
491 # ifndef YYSTACK_ALLOC_MAXIMUM
492 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
494 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
495 && ! ((defined YYMALLOC || defined malloc) \
496 && (defined YYFREE || defined free)))
498 # ifndef EXIT_SUCCESS
499 # define EXIT_SUCCESS 0
503 # define YYMALLOC malloc
504 # if ! defined malloc && ! defined EXIT_SUCCESS
510 # if ! defined free && ! defined EXIT_SUCCESS
517 #if (! defined yyoverflow \
518 && (! defined __cplusplus \
519 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
529 # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
533 # define YYSTACK_BYTES(N) \
534 ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
535 + YYSTACK_GAP_MAXIMUM)
537 # define YYCOPY_NEEDED 1
544 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
547 YYPTRDIFF_T yynewbytes; \
548 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
549 Stack = &yyptr->Stack_alloc; \
550 yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
551 yyptr += yynewbytes / YYSIZEOF (*yyptr); \
557 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
561 # if defined __GNUC__ && 1 < __GNUC__
562 # define YYCOPY(Dst, Src, Count) \
563 __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
565 # define YYCOPY(Dst, Src, Count) \
569 for (yyi = 0; yyi < (Count); yyi++) \
570 (Dst)[yyi] = (Src)[yyi]; \
592 #define YYMAXUTOK 274
597 #define YYTRANSLATE(YYX) \
598 (0 <= (YYX) && (YYX) <= YYMAXUTOK \
599 ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
606 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
607 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
608 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
609 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
610 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
611 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
612 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
613 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
614 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
615 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
616 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
617 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
618 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
619 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
620 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
621 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
622 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
623 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
624 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
625 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
626 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
627 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
628 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
629 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
630 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
631 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
632 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
640 0, 96, 96, 99, 107, 111, 143, 146, 148, 150,
641 152, 154, 156, 160, 163, 166, 170, 172, 174, 176,
642 181, 183, 185, 187, 189, 193, 197
647 #define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
656 static const char *
const yytname[] =
658 "\"end of file\"",
"error",
"\"invalid token\"",
"PROGRAM",
"MODULE",
659 "MAIN",
"COMMON",
"TK_CALLEES",
"CALLERS",
"ALL",
"SELECT",
660 "COMPILATION_UNIT",
"REQUIRED",
"PRODUCED",
"MODIFIED",
"PRESERVED",
661 "PRE_TRANSFORMATION",
"POST_TRANSFORMATION",
"DOT",
"NAME",
"$accept",
662 "rules",
"rule",
"deps",
"dir",
"virtuals",
"virtual",
"owner",
"phase",
673 #define YYPACT_NINF (-9)
675 #define yypact_value_is_default(Yyn) \
676 ((Yyn) == YYPACT_NINF)
678 #define YYTABLE_NINF (-1)
680 #define yytable_value_is_error(Yyn) \
687 -9, 0, -9, -9, -9, -9, -1, -9, -9, -9,
688 -9, -9, -9, -9, -2, -9, -9, -9, -9, -9,
689 -9, -9, -9, -9, -9, -8, 1, -9, -9
697 3, 0, 1, 25, 2, 6, 4, 7, 8, 9,
698 10, 11, 12, 14, 5, 16, 17, 18, 19, 20,
699 21, 22, 23, 24, 13, 0, 0, 26, 15
705 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9
711 0, 1, 4, 6, 13, 14, 24, 25, 5, 28
719 2, 15, 16, 17, 18, 19, 20, 21, 22, 23,
720 26, 7, 8, 9, 10, 11, 12, 0, 0, 3,
726 0, 3, 4, 5, 6, 7, 8, 9, 10, 11,
727 18, 12, 13, 14, 15, 16, 17, -1, -1, 19,
735 0, 21, 0, 19, 22, 28, 23, 12, 13, 14,
736 15, 16, 17, 24, 25, 3, 4, 5, 6, 7,
737 8, 9, 10, 11, 26, 27, 18, 19, 29
743 0, 20, 21, 21, 22, 23, 23, 24, 24, 24,
744 24, 24, 24, 25, 25, 26, 27, 27, 27, 27,
745 27, 27, 27, 27, 27, 28, 29
751 0, 2, 2, 0, 2, 3, 0, 1, 1, 1,
752 1, 1, 1, 2, 0, 3, 1, 1, 1, 1,
759 #define yyerrok (yyerrstatus = 0)
760 #define yyclearin (yychar = YYEMPTY)
762 #define YYACCEPT goto yyacceptlab
763 #define YYABORT goto yyabortlab
764 #define YYERROR goto yyerrorlab
765 #define YYNOMEM goto yyexhaustedlab
768 #define YYRECOVERING() (!!yyerrstatus)
770 #define YYBACKUP(Token, Value) \
772 if (yychar == YYEMPTY) \
776 YYPOPSTACK (yylen); \
782 yyerror (YY_("syntax error: cannot back up")); \
789 #define YYERRCODE YYUNDEF
797 # define YYFPRINTF fprintf
800 # define YYDPRINTF(Args) \
809 # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
813 YYFPRINTF (stderr, "%s ", Title); \
814 yy_symbol_print (stderr, \
816 YYFPRINTF (stderr, "\n"); \
829 FILE *yyoutput = yyo;
863 for (; yybottom <= yytop; yybottom++)
865 int yybot = *yybottom;
871 # define YY_STACK_PRINT(Bottom, Top) \
874 yy_stack_print ((Bottom), (Top)); \
887 int yynrhs =
yyr2[yyrule];
889 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %d):\n",
892 for (yyi = 0; yyi < yynrhs; yyi++)
897 &yyvsp[(yyi + 1) - (yynrhs)]);
902 # define YY_REDUCE_PRINT(Rule) \
905 yy_reduce_print (yyssp, yyvsp, Rule); \
912 # define YYDPRINTF(Args) ((void) 0)
913 # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
914 # define YY_STACK_PRINT(Bottom, Top)
915 # define YY_REDUCE_PRINT(Rule)
921 # define YYINITDEPTH 200
932 # define YYMAXDEPTH 10000
1008 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1014 YYDPRINTF ((stderr,
"Starting parse\n"));
1034 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1041 if (yyss + yystacksize - 1 <= yyssp)
1042 #if !defined yyoverflow && !defined YYSTACK_RELOCATE
1049 # if defined yyoverflow
1061 yyoverflow (
YY_(
"memory exhausted"),
1062 &yyss1, yysize *
YYSIZEOF (*yyssp),
1063 &yyvs1, yysize *
YYSIZEOF (*yyvsp),
1085 # undef YYSTACK_RELOCATE
1091 yyssp = yyss + yysize - 1;
1092 yyvsp = yyvs + yysize - 1;
1095 YYDPRINTF ((stderr,
"Stack size increased to %ld\n",
1096 YY_CAST (
long, yystacksize)));
1099 if (yyss + yystacksize - 1 <= yyssp)
1128 YYDPRINTF ((stderr,
"Reading a token\n"));
1136 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1210 yyval = yyvsp[1-yylen];
1217 #line 97 "readmakefile.y"
1219 #line 1220 "y.tab.c"
1223 #line 99 "readmakefile.y"
1230 #line 1231 "y.tab.c"
1234 #line 108 "readmakefile.y"
1236 #line 1237 "y.tab.c"
1240 #line 112 "readmakefile.y"
1271 #line 1272 "y.tab.c"
1275 #line 143 "readmakefile.y"
1277 #line 1278 "y.tab.c"
1281 #line 147 "readmakefile.y"
1283 #line 1284 "y.tab.c"
1287 #line 149 "readmakefile.y"
1289 #line 1290 "y.tab.c"
1293 #line 151 "readmakefile.y"
1295 #line 1296 "y.tab.c"
1299 #line 153 "readmakefile.y"
1301 #line 1302 "y.tab.c"
1305 #line 155 "readmakefile.y"
1307 #line 1308 "y.tab.c"
1311 #line 157 "readmakefile.y"
1313 #line 1314 "y.tab.c"
1317 #line 161 "readmakefile.y"
1319 #line 1320 "y.tab.c"
1323 #line 163 "readmakefile.y"
1325 #line 1326 "y.tab.c"
1329 #line 167 "readmakefile.y"
1331 #line 1332 "y.tab.c"
1335 #line 171 "readmakefile.y"
1337 #line 1338 "y.tab.c"
1341 #line 173 "readmakefile.y"
1343 #line 1344 "y.tab.c"
1347 #line 175 "readmakefile.y"
1349 #line 1350 "y.tab.c"
1353 #line 177 "readmakefile.y"
1358 #line 1359 "y.tab.c"
1362 #line 182 "readmakefile.y"
1364 #line 1365 "y.tab.c"
1368 #line 184 "readmakefile.y"
1370 #line 1371 "y.tab.c"
1374 #line 186 "readmakefile.y"
1376 #line 1377 "y.tab.c"
1380 #line 188 "readmakefile.y"
1382 #line 1383 "y.tab.c"
1386 #line 190 "readmakefile.y"
1388 #line 1389 "y.tab.c"
1392 #line 194 "readmakefile.y"
1394 #line 1395 "y.tab.c"
1398 #line 198 "readmakefile.y"
1400 #line 1401 "y.tab.c"
1404 #line 1405 "y.tab.c"
1431 const int yyi =
yypgoto[yylhs] + *yyssp;
1432 yystate = (0 <= yyi && yyi <=
YYLAST &&
yycheck[yyi] == *yyssp
1454 if (yyerrstatus == 3)
1583 while (yyssp != yyss)
1597 #line 200 "readmakefile.y"
1605 fprintf(stderr,
"[readmakefile] unparsed text:\n");
1606 while ((c = getc(
pipsmake_in)) != EOF) putc(c, stderr);
1620 fprintf(fd,
" %s program.%s\n", dir, n);
1623 fprintf(fd,
" %s module.%s\n", dir, n);
1626 fprintf(fd,
" %s main.%s\n", dir, n);
1629 fprintf(fd,
" %s callees.%s\n", dir, n);
1632 fprintf(fd,
" %s callers.%s\n", dir, n);
1635 fprintf(fd,
" %s all.%s\n", dir, n);
1638 fprintf(fd,
" %s select.%s\n", dir, n);
1641 fprintf(fd,
" %s compilation_unit.%s\n", dir, n);
1691 pips_debug(9,
"searching rule for phase %s\n", pname);
1707 bool active_phase =
false;
1717 pips_debug(1,
"Default function for %s is %s\n", vrn, pn);
1719 active_phase =
true;
1725 else pips_debug(1,
"Function %s not activated\n", pn);
1743 "%s: phase %s requires an undefined resource %s\n",
1744 PIPSMAKE_RC, pn, vrn);
1747 else if (strcmp(phase, pn) == 0) {
1749 "%s: phase %s cannot be active for the %s resource\n",
1750 PIPSMAKE_RC, phase, vrn);
1753 pips_debug(1,
"Required resource %s is checked OK for Function %s\n",
1766 "Check pipsmake-rc.tex or pipsmake.rc\n",
1776 fd = fopen(mkf_name,
"r");
1807 pips_debug(1,
"makefile written on %s\n", mkf_name);
owner make_owner(enum owner_utype tag, void *val)
makefile read_makefile(FILE *f)
rule make_rule(string a1, list a2, list a3, list a4, list a5, list a6, list a7)
void write_makefile(FILE *f, makefile p)
virtual_resource make_virtual_resource(string a1, owner a2)
makefile make_makefile(list a1, list a2)
void free_makefile(makefile p)
static const char * yysymbol_name(yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED
The user-facing name of the symbol whose (internal) number is YYSYMBOL.
static void yy_symbol_print(FILE *yyo, yysymbol_kind_t yykind, YYSTYPE const *const yyvaluep)
-----------------------—.
static const yytype_int16 yyrline[]
YYRLINE[YYN] – Source line where rule number YYN was defined.
static void yy_symbol_value_print(FILE *yyo, yysymbol_kind_t yykind, YYSTYPE const *const yyvaluep)
-------------------------------—.
static void yy_reduce_print(yy_state_t *yyssp, YYSTYPE *yyvsp, int yyrule)
--------------------------------------------—.
static const char *const yytname[]
YYTNAME[SYMBOL-NUM] – String name of the symbol SYMBOL-NUM.
static void yy_stack_print(yy_state_t *yybottom, yy_state_t *yytop)
--------------------------------------------------------------—.
#define YYFPRINTF
Enable debugging if requested.
FILE * safe_fopen(const char *filename, const char *what)
int safe_fclose(FILE *stream, const char *filename)
FILE * fopen_config(const char *canonical_name, const char *cproperty, const char *cenv)
bool get_bool_property(const string)
FC 2015-07-20: yuk, moved out to prevent an include cycle dependency include "properties....
yysymbol_kind_t
!YY_GENREAD_Y_TAB_H_INCLUDED
unsigned char yytype_uint8
Work around bug in HP-UX 11.23, which defines these macros incorrectly for preprocessor constants.
int yy_state_fast_t
State numbers in computations.
signed char yytype_int8
On compilers that do not define PTRDIFF_MAX etc., make sure <limits.h> and (if available) <stdint....
yytype_int8 yy_state_t
Stored state numbers (used for stacks).
#define NIL
The empty list (nil in Lisp)
#define CONS(_t_, _i_, _l_)
List element cell constructor (insert an element at the beginning of a list)
list gen_nconc(list cp1, list cp2)
physically concatenates CP1 and CP2 but do not duplicates the elements
#define FOREACH(_fe_CASTER, _fe_item, _fe_list)
Apply/map an instruction block on all the elements of a list.
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_table_free(hash_table htp)
this function deletes a hash table that is no longer useful.
#define makefile_undefined
#define rule_post_transformation(x)
#define virtual_resource_owner(x)
#define rule_pre_transformation(x)
#define owner_callers_p(x)
#define rule_preserved(x)
#define virtual_resource_name(x)
#define makefile_active_phases(x)
#define rule_undefined_p(x)
@ is_owner_compilation_unit
#define owner_callees_p(x)
#define VIRTUAL_RESOURCE(x)
VIRTUAL_RESOURCE.
#define makefile_rules(x)
#define makefile_undefined_p(x)
#define pips_debug
these macros use the GNU extensions that allow variadic macros, including with an empty list.
#define pips_user_warning
#define pips_internal_error
string strupper(string, const char *)
#define HASH_UNDEFINED_VALUE
value returned by hash_get() when the key is not found; could also be called HASH_KEY_NOT_FOUND,...
#define same_string_p(s1, s2)
string build_pgm_makefile(const char *__attribute__((unused)) n)
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YYMAXDEPTH
YYMAXDEPTH – maximum size the stacks can grow to (effective only if the built-in stack extension meth...
static const yytype_int8 yytranslate[]
YYTRANSLATE[TOKEN-NUM] – Symbol number corresponding to TOKEN-NUM as returned by yylex.
yysymbol_kind_t
!YY_PIPSMAKE_Y_TAB_H_INCLUDED
@ YYSYMBOL_MODIFIED
PRODUCED
@ YYSYMBOL_CALLERS
TK_CALLEES
@ YYSYMBOL_PRE_TRANSFORMATION
PRESERVED
@ YYSYMBOL_YYerror
"end of file"
@ YYSYMBOL_REQUIRED
COMPILATION_UNIT
@ YYSYMBOL_TK_CALLEES
COMMON
@ YYSYMBOL_POST_TRANSFORMATION
PRE_TRANSFORMATION
@ YYSYMBOL_DOT
POST_TRANSFORMATION
@ YYSYMBOL_PROGRAM
"invalid token"
@ YYSYMBOL_PRESERVED
MODIFIED
@ YYSYMBOL_virtual
virtuals
@ YYSYMBOL_PRODUCED
REQUIRED
@ YYSYMBOL_COMPILATION_UNIT
SELECT
void fprint_makefile(FILE *fd, makefile m)
static hash_table activated
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
static const yytype_int8 yydefact[]
YYDEFACT[STATE-NUM] – Default reduction number in state STATE-NUM.
#define YYNSTATES
YYNSTATES – Number of states.
#define YY_IGNORE_USELESS_CAST_END
#define YYSTACK_BYTES(N)
The size of an array large to enough to hold all stacks, each with N elements.
static const yytype_int8 yycheck[]
#define YY_REDUCE_PRINT(Rule)
#define YY_CAST(Type, Val)
static void yydestruct(const char *yymsg, yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
-------------------------------------------—.
static const yytype_int8 yypact[]
YYPACT[STATE-NUM] – Index in YYTABLE of the portion describing STATE-NUM.
void save_makefile(const char *name)
#define YYFINAL
!YYCOPY_NEEDED
#define YY_ACCESSING_SYMBOL(State)
Accessing symbol of state STATE.
#define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
#define PRE_TRANSFORMATION
#define YYNTOKENS
YYNTOKENS – Number of terminals.
unsigned char yytype_uint8
Work around bug in HP-UX 11.23, which defines these macros incorrectly for preprocessor constants.
#define YY_STACK_PRINT(Bottom, Top)
#define YY_IGNORE_USELESS_CAST_BEGIN
static const yytype_int8 yyr2[]
YYR2[RULE-NUM] – Number of symbols on the right-hand side of rule RULE-NUM.
void fprint_virtual_resources(FILE *fd, const char *dir, list lrv)
static const yytype_int8 yytable[]
YYTABLE[YYPACT[STATE-NUM]] – What to do in state STATE-NUM.
void yyerror_lex_part(const char *)
rule find_rule_by_phase(const char *pname)
this function returns the rule that defines builder pname
#define yytable_value_is_error(Yyn)
#define YYTRANSLATE(YYX)
YYTRANSLATE(TOKEN-NUM) – Symbol number corresponding to TOKEN-NUM as returned by yylex,...
static const yytype_int8 yystos[]
YYSTOS[STATE-NUM] – The symbol kind of the accessing symbol of state STATE-NUM.
static makefile pipsmakefile
First part of user prologue.
#define YY_ATTRIBUTE_UNUSED
static const yytype_int8 yypgoto[]
YYPGOTO[NTERM-NUM].
static const yytype_int8 yyr1[]
YYR1[RULE-NUM] – Symbol kind of the left-hand side of rule RULE-NUM.
makefile open_makefile(const char *name)
enum yytokentype yytoken_kind_t
int yy_state_fast_t
State numbers in computations.
unsigned short yytype_uint16
static const yytype_int8 yydefgoto[]
YYDEFGOTO[NTERM-NUM].
#define YYEMPTY
Token kinds.
#define YYLAST
YYLAST – Last index in YYTABLE.
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
Relocate STACK from its old location to the new one.
#define yypact_value_is_default(Yyn)
#define YYINITDEPTH
!YYDEBUG
signed char yytype_int8
On compilers that do not define PTRDIFF_MAX etc., make sure <limits.h> and (if available) <stdint....
makefile parse_makefile(void)
#define YYSTACK_ALLOC
The parser invokes alloca or malloc; define the necessary symbols.
yytype_int8 yy_state_t
Stored state numbers (used for stacks).
#define YYDPRINTF(Args)
Enable debugging if requested.
bool close_makefile(const char *name)
#define POST_TRANSFORMATION
#define YY_USE(E)
Suppress unused-variable warnings by "using" E.
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...
#define int_least8_t
7.18.1.2.
The structure used to build lists in NewGen.
INFRINGES ON USER NAME SPACE.