Lines Matching refs:smp

998     salitem_T	*smp;  in read_sal_section()  local
1026 smp = &((salitem_T *)gap->ga_data)[gap->ga_len]; in read_sal_section()
1032 smp->sm_lead = p; in read_sal_section()
1042 smp->sm_leadlen = (int)(p - smp->sm_lead); in read_sal_section()
1048 smp->sm_oneof = p; in read_sal_section()
1061 smp->sm_oneof = NULL; in read_sal_section()
1064 smp->sm_rules = p; in read_sal_section()
1073 smp->sm_to = read_cnt_string(fd, 1, &ccnt); in read_sal_section()
1076 vim_free(smp->sm_lead); in read_sal_section()
1083 smp->sm_lead_w = mb_str2wide(smp->sm_lead); in read_sal_section()
1084 smp->sm_leadlen = mb_charlen(smp->sm_lead); in read_sal_section()
1085 if (smp->sm_oneof == NULL) in read_sal_section()
1086 smp->sm_oneof_w = NULL; in read_sal_section()
1088 smp->sm_oneof_w = mb_str2wide(smp->sm_oneof); in read_sal_section()
1089 if (smp->sm_to == NULL) in read_sal_section()
1090 smp->sm_to_w = NULL; in read_sal_section()
1092 smp->sm_to_w = mb_str2wide(smp->sm_to); in read_sal_section()
1093 if (smp->sm_lead_w == NULL in read_sal_section()
1094 || (smp->sm_oneof_w == NULL && smp->sm_oneof != NULL) in read_sal_section()
1095 || (smp->sm_to_w == NULL && smp->sm_to != NULL)) in read_sal_section()
1097 vim_free(smp->sm_lead); in read_sal_section()
1098 vim_free(smp->sm_to); in read_sal_section()
1099 vim_free(smp->sm_lead_w); in read_sal_section()
1100 vim_free(smp->sm_oneof_w); in read_sal_section()
1101 vim_free(smp->sm_to_w); in read_sal_section()
1111 smp = &((salitem_T *)gap->ga_data)[gap->ga_len]; in read_sal_section()
1115 smp->sm_lead = p; in read_sal_section()
1116 smp->sm_leadlen = 0; in read_sal_section()
1117 smp->sm_oneof = NULL; in read_sal_section()
1118 smp->sm_rules = p; in read_sal_section()
1119 smp->sm_to = NULL; in read_sal_section()
1122 smp->sm_lead_w = mb_str2wide(smp->sm_lead); in read_sal_section()
1123 smp->sm_leadlen = 0; in read_sal_section()
1124 smp->sm_oneof_w = NULL; in read_sal_section()
1125 smp->sm_to_w = NULL; in read_sal_section()
1500 salitem_T *smp; in set_sal_first() local
1507 smp = (salitem_T *)gap->ga_data; in set_sal_first()
1514 c = *smp[i].sm_lead_w & 0xff; in set_sal_first()
1516 c = *smp[i].sm_lead; in set_sal_first()
1528 && (*smp[i + 1].sm_lead_w & 0xff) == c) in set_sal_first()
1533 if ((*smp[i + n].sm_lead_w & 0xff) == c) in set_sal_first()
1541 tsal = smp[i + n]; in set_sal_first()
1542 mch_memmove(smp + i + 1, smp + i, in set_sal_first()
1544 smp[i] = tsal; in set_sal_first()