Lines Matching refs:tok

66 typedef void (* gts_efunc_t)(Mapfile *mf, Token tok, ld_map_tkval_t *tkv);
144 Token tok;
149 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
152 return (tok);
158 return (tok);
164 return (tok);
182 mf_fatal(mf, err, lhs, ld_map_tokenstr(tok, &tkv, &inv_buf));
448 Token tok;
452 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
456 return (tok);
460 ld_map_tokenstr(tok, &tkv, &inv_buf));
478 Token tok;
482 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
486 return (tok);
490 ld_map_tokenstr(tok, &tkv, &inv_buf));
507 Token tok;
511 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
514 return (tok);
518 ld_map_tokenstr(tok, &tkv, &inv_buf));
536 Token tok;
540 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
543 return (tok);
547 ld_map_tokenstr(tok, &tkv, &inv_buf));
565 Token tok;
568 switch (tok = ld_map_gettoken(mf, 0, tkv)) {
571 return (tok);
575 ld_map_tokenstr(tok, tkv, &inv_buf));
595 Token tok;
597 switch (tok = ld_map_gettoken(mf, flags, tkv)) {
600 return (tok);
604 (* efunc)(mf, tok, tkv);
647 Token tok, op_tok;
655 switch (tok = ld_map_gettoken(mf, TK_F_KEYWORD, &tkv)) {
688 switch (tok = attr->at_func(mf, op_tok, uvalue)) {
716 ld_map_tokenstr(tok, &tkv, &inv_buf));
728 return (tok);
780 Token tok;
791 switch (tok = ld_map_gettoken(mf, TK_F_KEYWORD, &tkv)) {
840 ld_map_tokenstr(tok, &tkv, &inv_buf));
853 return (tok);
882 Token tok;
889 switch (tok = ld_map_gettoken(mf, TK_F_KEYWORD, &tkv)) {
913 ld_map_tokenstr(tok, &tkv, &inv_buf));
920 return (tok);
943 Token tok;
951 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
978 ld_map_tokenstr(tok, &tkv, &inv_buf));
985 return (tok);
997 Token tok;
1004 switch (tok = ld_map_gettoken(mf, TK_F_KEYWORD, &tkv)) {
1029 ld_map_tokenstr(tok, &tkv, &inv_buf));
1040 return (tok);
1076 Token tok;
1083 switch (tok = ld_map_gettoken(mf, TK_F_KEYWORD, &tkv)) {
1103 ld_map_tokenstr(tok, &tkv, &inv_buf));
1112 return (tok);
1190 Token tok;
1201 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
1223 switch (tok = gettoken_optattr(mf, capstr->cs_str)) {
1240 ld_map_tokenstr(tok, &tkv, &inv_buf));
1257 gts_efunc_at_dv_allow(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
1262 MSG_ORIG(MSG_MAPKW_ALLOW), ld_map_tokenstr(tok, tkv, &inv_buf));
1290 gts_efunc_at_dv_require(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
1295 MSG_ORIG(MSG_MAPKW_REQUIRE), ld_map_tokenstr(tok, tkv, &inv_buf));
1324 gts_efunc_dir_depend_versions(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
1330 ld_map_tokenstr(tok, tkv, &inv_buf));
1461 gts_efunc_at_seg_assign_file_basename(Mapfile *mf, Token tok,
1468 ld_map_tokenstr(tok, tkv, &inv_buf));
1498 gts_efunc_at_seg_assign_file_objname(Mapfile *mf, Token tok,
1505 ld_map_tokenstr(tok, tkv, &inv_buf));
1535 gts_efunc_at_seg_assign_file_path(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
1541 ld_map_tokenstr(tok, tkv, &inv_buf));
1603 Token tok;
1609 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
1648 ld_map_tokenstr(tok, &tkv, &inv_buf));
1670 return (tok); /* Either TK_SEMICOLON or TK_RIGHTBKT */
1677 gts_efunc_at_seg_assign_is_name(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
1682 MSG_ORIG(MSG_MAPKW_IS_NAME), ld_map_tokenstr(tok, tkv, &inv_buf));
1710 gts_efunc_at_seg_assign_type(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
1715 ld_map_tokenstr(tok, tkv, &inv_buf));
1806 Token tok;
1816 tok = ld_map_gettoken(mf, 0, &tkv);
1817 switch (tok) {
1823 tok = ld_map_gettoken(mf, 0, &tkv);
1832 switch (tok) {
1836 ld_map_tokenstr(tok, &tkv, &inv_buf));
1852 tok = gettoken_term(mf, MSG_ORIG(MSG_MAPKW_ASSIGN_SECTION));
1853 if (tok == TK_ERROR)
1860 return (tok);
1901 Token tok;
1904 tok = parse_segment_flags(mf, &flags);
1905 if (tok == TK_ERROR)
1911 return (tok);
1923 Token tok;
1941 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
1981 ld_map_tokenstr(tok, &tkv, &inv_buf));
1986 return (tok);
2046 Token tok;
2062 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
2078 ld_map_tokenstr(tok, &tkv, &inv_buf));
2083 return (tok);
2150 Token tok;
2159 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
2186 ld_map_tokenstr(tok, &tkv, &inv_buf));
2198 return (tok);
2258 Token tok;
2305 switch (tok = gettoken_optattr(mf, dir_name)) {
2307 tok = TK_ERROR;
2318 tok = gettoken_semicolon(mf, dir_name);
2319 if (tok == TK_ERROR)
2339 return (tok);
2346 gts_efunc_dir_load_segment(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
2352 ld_map_tokenstr(tok, tkv, &inv_buf));
2437 gts_efunc_dir_note_segment(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
2443 ld_map_tokenstr(tok, tkv, &inv_buf));
2465 gts_efunc_dir_null_segment(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
2471 ld_map_tokenstr(tok, tkv, &inv_buf));
2497 Token tok;
2505 tok = gettoken_eq(mf, ATTR_FMT_EQ_PEQ,
2507 if (tok == TK_ERROR)
2517 if (tok == TK_EQUAL)
2522 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
2574 ld_map_tokenstr(tok, &tkv, &inv_buf));
2582 return (tok);
2610 Token tok;
2626 tok = gettoken_semicolon(mf, MSG_ORIG(MSG_MAPKW_STACK));
2627 if (tok == TK_ERROR)
2637 return (tok);
2644 gts_efunc_at_sym_aux(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
2649 MSG_ORIG(MSG_MAPKW_AUX), ld_map_tokenstr(tok, tkv, &inv_buf));
2678 gts_efunc_at_sym_filter(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
2683 MSG_ORIG(MSG_MAPKW_FILTER), ld_map_tokenstr(tok, tkv, &inv_buf));
2751 Token tok;
2757 switch (tok = ld_map_gettoken(mf, TK_F_KEYWORD, &tkv)) {
2839 ld_map_tokenstr(tok, &tkv, &inv_buf));
2852 return (tok); /* Either TK_SEMICOLON or TK_RIGHTBKT */
2904 gts_efunc_at_sym_type(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
2912 ld_map_tokenstr(tok, tkv, &inv_buf));
3011 Token tok;
3026 switch (tok = ld_map_gettoken(mf, 0, &tkv_sym)) {
3056 switch (tok = ld_map_gettoken(mf, 0, &tkv)) {
3071 tok = gettoken_term(mf,
3073 if (tok == TK_ERROR)
3075 if (tok == TK_RIGHTBKT)
3095 ld_map_tokenstr(tok, &tkv, &inv_buf));
3120 switch (tok = gettoken_term(mf, dir_name)) {
3131 ld_map_tokenstr(tok, &tkv_sym, &inv_buf));
3145 return (tok);
3182 gts_efunc_dir_symbol_version(Mapfile *mf, Token tok, ld_map_tkval_t *tkv)
3188 ld_map_tokenstr(tok, tkv, &inv_buf));
3280 Token tok; /* current token. */
3286 tok = ld_map_gettoken(mf, TK_F_EOFOK | TK_F_KEYWORD, &tkv);
3287 switch (tok) {
3316 ld_map_tokenstr(tok, &tkv, &inv_buf));