pcb 4.1.1
An interactive printed circuit board layout editor.
|
#include <stdio.h>
#include <stdlib.h>
#include "global.h"
#include "resource.h"
#include "res_parse.h"
Go to the source code of this file.
#define f | ( | x | ) | current_res->flags |= x |
Definition at line 112 of file res_parse.c.
Referenced by add_to_surface(), build_cdt(), c_dtostr(), config_colors_read(), config_colors_write(), config_file_open(), config_file_read(), create_edge(), delaunay_create_from_vertices(), drc_lines(), edge_boundary_cost(), file_new(), FileExists(), find_closest(), fnode_write(), ghid_config_files_write(), ghid_pinout_preview_expose(), ghid_render_pixmap(), ghid_request_debug_draw(), grok_layer_groups(), gts_delaunay_add_vertex(), gts_delaunay_refine(), gts_edge_is_boundary(), gts_edge_is_encroached(), gts_edge_swap(), gts_face_new(), gts_file_new(), gts_file_new_from_string(), gts_fnode_new(), gts_isosurface_tetra(), gts_isosurface_tetra_bcl(), gts_isosurface_tetra_bounded(), gts_psurface_read_vertex(), gts_surface_read(), gts_vertex_fan_oriented(), gts_vertex_gaussian_curvature(), gts_vertex_mean_curvature_normal(), gts_volume_optimized_vertex(), hid_get_flag(), hid_load_settings_1(), hid_save_settings(), insert_centre_point(), load_rc_file(), LoadBackgroundImage(), lpr_do_export(), make_message(), nelma_write_object(), OldFlags(), orientable_foreach_edge(), pick_first_face(), planeBoxOverlap(), point_locate(), ps_fill_rect(), REGISTER_ATTRIBUTES(), SmashBufferElement(), split_encroached(), surface_read(), triangulate_loop(), triangulate_polygon(), vertex_encroaches(), vertex_intersect(), and vnormal().
#define INCLUDE 259 |
Definition at line 150 of file res_parse.c.
#define STRING 258 |
Definition at line 149 of file res_parse.c.
#define YY_ | ( | msgid | ) | msgid |
Definition at line 238 of file res_parse.c.
#define YY_LOCATION_PRINT | ( | File, | |
Loc | |||
) | ((void) 0) |
Definition at line 638 of file res_parse.c.
#define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 811 of file res_parse.c.
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
Definition at line 810 of file res_parse.c.
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
Definition at line 809 of file res_parse.c.
Referenced by yydestruct().
#define YYABORT goto yyabortlab |
Definition at line 567 of file res_parse.c.
#define YYACCEPT goto yyacceptlab |
Definition at line 566 of file res_parse.c.
#define YYBACKUP | ( | Token, | |
Value | |||
) |
do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0))
Definition at line 579 of file res_parse.c.
#define YYBISON 1 |
Definition at line 46 of file res_parse.c.
#define YYBISON_VERSION "2.4.1" |
Definition at line 49 of file res_parse.c.
#define yychar reschar |
Definition at line 71 of file res_parse.c.
#define yyclearin (yychar = YYEMPTY) |
Definition at line 562 of file res_parse.c.
#define YYCOPY | ( | To, | |
From, | |||
Count | |||
) |
do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0))
Definition at line 364 of file res_parse.c.
#define YYDEBUG 0 |
Definition at line 121 of file res_parse.c.
#define yydebug resdebug |
Definition at line 72 of file res_parse.c.
#define YYDEBUG 0 |
Definition at line 121 of file res_parse.c.
#define YYDPRINTF | ( | Args | ) |
Definition at line 808 of file res_parse.c.
#define YYEMPTY (-2) |
Definition at line 563 of file res_parse.c.
#define YYEOF 0 |
Definition at line 564 of file res_parse.c.
#define YYERRCODE 256 |
Definition at line 598 of file res_parse.c.
#define yyerrok (yyerrstatus = 0) |
Definition at line 561 of file res_parse.c.
#define yyerror reserror |
Definition at line 69 of file res_parse.c.
#define YYERROR goto yyerrorlab |
Definition at line 568 of file res_parse.c.
#define YYERROR_VERBOSE 1 |
Definition at line 129 of file res_parse.c.
#define YYERROR_VERBOSE 0 |
Definition at line 129 of file res_parse.c.
#define YYFAIL goto yyerrlab |
Definition at line 575 of file res_parse.c.
#define YYFINAL 3 |
Definition at line 394 of file res_parse.c.
#define YYFREE free |
Definition at line 327 of file res_parse.c.
Definition at line 251 of file res_parse.c.
#define YYINITDEPTH 200 |
Definition at line 817 of file res_parse.c.
#define YYLAST 25 |
Definition at line 396 of file res_parse.c.
#define YYLEX yylex () |
Definition at line 648 of file res_parse.c.
#define yylex reslex |
Definition at line 68 of file res_parse.c.
#define YYLLOC_DEFAULT | ( | Current, | |
Rhs, | |||
N | |||
) |
do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0))
Definition at line 607 of file res_parse.c.
#define YYLSP_NEEDED 0 |
Definition at line 64 of file res_parse.c.
Definition at line 70 of file res_parse.c.
#define YYMALLOC malloc |
Definition at line 320 of file res_parse.c.
#define YYMAXDEPTH 10000 |
Definition at line 828 of file res_parse.c.
#define YYMAXUTOK 259 |
Definition at line 409 of file res_parse.c.
#define yynerrs resnerrs |
Definition at line 73 of file res_parse.c.
#define YYNNTS 7 |
Definition at line 401 of file res_parse.c.
#define YYNRULES 13 |
Definition at line 403 of file res_parse.c.
#define YYNSTATES 18 |
Definition at line 405 of file res_parse.c.
#define YYNTOKENS 8 |
Definition at line 399 of file res_parse.c.
#define YYPACT_NINF -1 |
Definition at line 521 of file res_parse.c.
#define yyparse resparse |
Definition at line 67 of file res_parse.c.
#define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) |
#define YYPULL 1 |
Definition at line 61 of file res_parse.c.
#define YYPURE 0 |
Definition at line 55 of file res_parse.c.
#define YYPUSH 0 |
Definition at line 58 of file res_parse.c.
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 577 of file res_parse.c.
#define YYRHSLOC | ( | Rhs, | |
K | |||
) | ((Rhs)[K]) |
Definition at line 605 of file res_parse.c.
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 228 of file res_parse.c.
#define YYSIZE_T unsigned int |
Definition at line 224 of file res_parse.c.
#define YYSKELETON_NAME "yacc.c" |
Definition at line 52 of file res_parse.c.
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 306 of file res_parse.c.
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 309 of file res_parse.c.
#define YYSTACK_BYTES | ( | N | ) |
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM)
Definition at line 353 of file res_parse.c.
#define YYSTACK_FREE YYFREE |
Definition at line 307 of file res_parse.c.
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Definition at line 349 of file res_parse.c.
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0))
Definition at line 380 of file res_parse.c.
#define yystype YYSTYPE |
Definition at line 172 of file res_parse.c.
#define YYSTYPE_IS_DECLARED 1 |
Definition at line 173 of file res_parse.c.
#define YYSTYPE_IS_TRIVIAL 1 |
Definition at line 171 of file res_parse.c.
#define YYTABLE_NINF -8 |
Definition at line 538 of file res_parse.c.
#define YYTERROR 1 |
Definition at line 597 of file res_parse.c.
#define YYTOKEN_TABLE 0 |
Definition at line 134 of file res_parse.c.
#define YYTOKENTYPE |
Definition at line 140 of file res_parse.c.
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 411 of file res_parse.c.
#define YYUNDEFTOK 2 |
Definition at line 408 of file res_parse.c.
#define YYUSE | ( | e | ) | ((void) (e)) |
Definition at line 244 of file res_parse.c.
Referenced by yydestruct().
typedef short int yytype_int16 |
Definition at line 211 of file res_parse.c.
typedef short int yytype_int8 |
Definition at line 199 of file res_parse.c.
typedef unsigned short int yytype_uint16 |
Definition at line 205 of file res_parse.c.
typedef unsigned char yytype_uint8 |
Definition at line 190 of file res_parse.c.
enum yytokentype |
Definition at line 143 of file res_parse.c.
static void dump_res | ( | Resource * | n, |
int | l | ||
) | [static] |
Definition at line 1770 of file res_parse.c.
References Resource::c, ResourceVal::name, ResourceVal::subres, Resource::v, and ResourceVal::value.
Referenced by resource_dump().
int res_parse_getchars | ( | char * | buf, |
int | max_size | ||
) |
Definition at line 1650 of file res_parse.c.
References res_string_idx.
int reserror | ( | const char * | str | ) |
Definition at line 1761 of file res_parse.c.
int reslex | ( | ) |
Definition at line 1725 of file res_parse.c.
References Resource::c, ResourceVal::name, realloc(), ResourceVal::subres, Resource::v, and ResourceVal::value.
Referenced by insert_layerpick_buttons(), insert_layerview_buttons(), and res_wrap().
Definition at line 1714 of file res_parse.c.
References Resource::c, Resource::flags, malloc(), Resource::parent, and Resource::v.
Referenced by insert_layerpick_buttons(), insert_layerview_buttons(), and res_wrap().
void resource_dump | ( | Resource * | r | ) |
Definition at line 1787 of file res_parse.c.
References dump_res().
Referenced by load_mouse_resource().
Resource* resource_parse | ( | const char * | filename, |
const char ** | strings | ||
) |
Definition at line 1677 of file res_parse.c.
References filename, and parsed_res.
Referenced by ActionLoadVendorFrom(), ghid_load_menus(), and lesstif_menu().
Definition at line 1748 of file res_parse.c.
References Resource::c, ResourceVal::name, NSTRCMP, ResourceVal::subres, and Resource::v.
Referenced by ActionLoadVendorFrom(), add_resource_to_menu(), ghid_load_menus(), ghid_main_menu_real_add_resource(), and lesstif_menu().
char* resource_value | ( | const Resource * | res, |
char * | name | ||
) |
Definition at line 1735 of file res_parse.c.
References Resource::c, ResourceVal::name, NSTRCMP, Resource::v, and ResourceVal::value.
Referenced by ActionLoadVendorFrom(), add_resource_to_menu(), and ghid_main_menu_real_add_resource().
static void yydestruct | ( | char * | yymsg, |
int | yytype, | ||
YYSTYPE * | yyvaluep | ||
) | const [static] |
Definition at line 1055 of file res_parse.c.
References YY_SYMBOL_PRINT, and YYUSE.
int yyparse | ( | void | ) |
Resource* current_res [static] |
Definition at line 107 of file res_parse.c.
Resource* parsed_res [static] |
Definition at line 106 of file res_parse.c.
Referenced by resource_parse().
FILE* res_file = NULL [static] |
Definition at line 1644 of file res_parse.c.
const char* res_filename = NULL [static] |
Definition at line 1643 of file res_parse.c.
int res_lineno |
Definition at line 1647 of file res_parse.c.
int res_string_idx = 0 [static] |
Definition at line 1646 of file res_parse.c.
Referenced by res_parse_getchars().
const char** res_strings = NULL [static] |
Definition at line 1645 of file res_parse.c.
int yychar |
Definition at line 1092 of file res_parse.c.
const yytype_int8 yycheck[] [static] |
{ 0, 1, 0, 3, 4, 5, 6, 0, 1, 5, 3, 4, 5, 1, 3, 3, 4, 5, 6, 10, 7, 12, 6, -1, -1, 11 }
Definition at line 546 of file res_parse.c.
const yytype_uint8 yydefact[] [static] |
{ 2, 0, 0, 1, 13, 8, 10, 11, 0, 3, 0, 4, 0, 6, 9, 12, 0, 5 }
Definition at line 507 of file res_parse.c.
const yytype_int8 yydefgoto[] [static] |
{ -1, 1, 2, 7, 8, 9, 10 }
Definition at line 514 of file res_parse.c.
Definition at line 1095 of file res_parse.c.
int yynerrs |
Definition at line 1098 of file res_parse.c.
const yytype_int8 yypact[] [static] |
{ -1, 2, 7, -1, -1, 13, -1, -1, 4, -1, 0, 11, 12, -1, -1, -1, 16, -1 }
Definition at line 522 of file res_parse.c.
const yytype_int8 yypgoto[] [static] |
{ -1, -1, -1, 14, -1, 9, -1 }
Definition at line 529 of file res_parse.c.
const yytype_uint8 yyr1[] [static] |
{ 0, 8, 10, 9, 12, 11, 13, 13, 14, 14, 14, 14, 14, 14 }
Definition at line 491 of file res_parse.c.
const yytype_uint8 yyr2[] [static] |
{ 0, 2, 0, 2, 0, 4, 2, 0, 1, 3, 1, 1, 3, 1 }
Definition at line 498 of file res_parse.c.
const yytype_uint8 yystos[] [static] |
{ 0, 9, 10, 0, 1, 3, 4, 11, 12, 13, 14, 7, 5, 13, 3, 11, 13, 6 }
Definition at line 555 of file res_parse.c.
const yytype_int8 yytable[] [static] |
{ -7, 4, 3, 5, 6, -4, -7, -7, 4, 12, 5, 6, -4, 4, 14, 5, 6, -4, -7, 13, 11, 16, 17, 0, 0, 15 }
Definition at line 539 of file res_parse.c.
const yytype_uint8 yytranslate[] [static] |
{ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 2, 6, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4 }
Definition at line 415 of file res_parse.c.