Lines Matching defs:tkv
77 ld_map_tkval_t tkv; /* Value of token */
86 while ((tok = ld_map_gettoken(mf, TK_F_STRLC, &tkv)) !=
98 if (strncmp(tkv.tkv_str, MSG_ORIG(MSG_MAP_OVERRIDE),
107 type, tkv.tkv_str, ld_targ.t_m.m_mach)) != 0) {
116 if (tkv.tkv_str[0] == 'v') {
117 if (ld_map_strtoxword(&tkv.tkv_str[1], NULL,
120 tkv.tkv_str);
132 mf_fatal(mf, MSG_INTL(MSG_MAP_UNKCAPATTR), tkv.tkv_str);
259 * tkv - TK_STRING token to parse
267 valuetoxword(Mapfile *mf, ld_map_tkval_t *tkv, Xword *value)
269 switch (ld_map_strtoxword(&tkv->tkv_str[1], NULL, value)) {
274 mf_fatal(mf, MSG_INTL(MSG_MAP_SEGADDR), tkv->tkv_str,
278 mf_fatal(mf, MSG_INTL(MSG_MAP_SEGADDR), tkv->tkv_str,
320 ld_map_tkval_t tkv; /* Value of token */
329 while ((tok = ld_map_gettoken(mf, TK_F_STRLC, &tkv)) !=
342 if (strcmp(tkv.tkv_str, seg_type->name) == 0) {
364 if (*tkv.tkv_str == '?') {
365 if (!map_equal_flags(mf, sgp, &b_flags, tkv.tkv_str))
372 if ((tkv.tkv_str[0] == 'l') || (tkv.tkv_str[0] == 'v') ||
373 (tkv.tkv_str[0] == 'a') || (tkv.tkv_str[0] == 'p') ||
374 (tkv.tkv_str[0] == 'r')) {
377 if (!valuetoxword(mf, &tkv, &number))
380 switch (*tkv.tkv_str) {
478 mf_fatal(mf, MSG_INTL(MSG_MAP_UNKSEGATT), tkv.tkv_str);
600 ld_map_tkval_t tkv;
614 while (((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_COLON) &&
625 if (*tkv.tkv_str == '$') {
632 tkv.tkv_str++;
633 ld_map_lowercase(tkv.tkv_str);
634 if (strcmp(tkv.tkv_str, MSG_ORIG(MSG_STR_PROGBITS)) ==
637 else if (strcmp(tkv.tkv_str,
640 else if (strcmp(tkv.tkv_str,
643 else if (strcmp(tkv.tkv_str,
646 else if ((strcmp(tkv.tkv_str,
648 (strcmp(tkv.tkv_str, MSG_ORIG(MSG_STR_RELA)) == 0))
650 else if (strcmp(tkv.tkv_str, MSG_ORIG(MSG_STR_HASH)) ==
653 else if (strcmp(tkv.tkv_str, MSG_ORIG(MSG_STR_LIB)) ==
656 else if (strcmp(tkv.tkv_str,
659 else if (strcmp(tkv.tkv_str, MSG_ORIG(MSG_STR_NOTE)) ==
662 else if (strcmp(tkv.tkv_str,
667 tkv.tkv_str);
681 } else if (*tkv.tkv_str == '?') {
689 tkv.tkv_str++;
690 ld_map_lowercase(tkv.tkv_str);
691 for (; *tkv.tkv_str != '\0'; tkv.tkv_str++)
692 switch (*tkv.tkv_str) {
697 tkv.tkv_str);
706 tkv.tkv_str);
718 tkv.tkv_str);
730 tkv.tkv_str);
742 tkv.tkv_str);
758 enp->ec_is_name = tkv.tkv_str;
766 while ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_SEMICOLON) {
781 if (tkv.tkv_str[0] == '*') {
783 tkv.tkv_str++;
788 tkv.tkv_str))
804 ld_map_tkval_t tkv; /* Value of token */
806 if ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_STRING) {
813 if (!ld_map_seg_size_symbol(mf, sgp, TK_PLUSEQ, tkv.tkv_str))
817 if (ld_map_gettoken(mf, 0, &tkv) != TK_SEMICOLON) {
831 ld_map_tkval_t tkv; /* Value of token */
833 if ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_STRING) {
839 if (!ld_map_seg_os_order_add(mf, sgp, tkv.tkv_str))
842 if ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_SEMICOLON) {
862 ld_map_tkval_t tkv; /* Value of token */
875 while ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_SEMICOLON) {
887 if ((tok = ld_map_gettoken(mf, 0, &tkv)) !=
897 tkv.tkv_str))
912 if (*tkv.tkv_str == '$') {
917 tkv.tkv_str++;
918 ld_map_lowercase(tkv.tkv_str);
919 if (strcmp(tkv.tkv_str, MSG_ORIG(MSG_MAP_ADDVERS)) ==
924 tkv.tkv_str);
933 if (!ld_map_dv_entry(mf, sdf, FALSE, tkv.tkv_str))
957 ld_map_tkval_t tkv; /* Value of token */
969 while ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_RIGHTBKT) {
983 ms.ms_name = tkv.tkv_str;
985 tok = ld_map_gettoken(mf, 0, &tkv);
1015 while ((tok = ld_map_gettoken(mf, 0, &tkv)) !=
1032 filter, tkv.tkv_str);
1040 ld_map_lowercase(tkv.tkv_str);
1042 if (tkv.tkv_str[0] == 'v' ||
1043 tkv.tkv_str[0] == 's') {
1046 if (!valuetoxword(mf, &tkv, &number)) {
1051 switch (*tkv.tkv_str) {
1081 } else if (strcmp(tkv.tkv_str,
1086 } else if (strcmp(tkv.tkv_str,
1091 } else if (strcmp(tkv.tkv_str,
1096 } else if (strcmp(tkv.tkv_str,
1100 } else if (strcmp(tkv.tkv_str,
1104 } else if (strcmp(tkv.tkv_str,
1108 } else if (strcmp(tkv.tkv_str,
1114 } else if (strcmp(tkv.tkv_str,
1119 } else if (strcmp(tkv.tkv_str,
1124 } else if (strcmp(tkv.tkv_str,
1138 } else if (strcmp(tkv.tkv_str,
1143 } else if (strcmp(tkv.tkv_str,
1151 tkv.tkv_str);
1219 ld_map_tkval_t tkv; /* Value of token */
1225 while ((tok = ld_map_gettoken(mf, TK_F_EOFOK, &tkv)) != TK_EOF) {
1230 * variable tkv.tkv_str points to the first string on the line.
1248 name = tkv.tkv_str;
1255 tok = ld_map_gettoken(mf, 0, &tkv);