Lines Matching refs:str

628 remove_leading_whitespaces (char *str)  in remove_leading_whitespaces()  argument
630 while (ISSPACE (*str)) in remove_leading_whitespaces()
631 str++; in remove_leading_whitespaces()
632 return str; in remove_leading_whitespaces()
638 remove_trailing_whitespaces (char *str) in remove_trailing_whitespaces() argument
640 size_t last = strlen (str); in remove_trailing_whitespaces()
648 if (ISSPACE (str [last])) in remove_trailing_whitespaces()
649 str[last] = '\0'; in remove_trailing_whitespaces()
660 next_field (char *str, char sep, char **next, char *last) in next_field() argument
664 p = remove_leading_whitespaces (str); in next_field()
665 for (str = p; *str != sep && *str != '\0'; str++); in next_field()
667 *str = '\0'; in next_field()
670 *next = str + 1; in next_field()
763 char *str, *next, *last; in process_i386_cpu_flag() local
802 str = next_field (next, '|', &next, last); in process_i386_cpu_flag()
803 if (str) in process_i386_cpu_flag()
804 set_bitfield (str, flags, 0, ARRAY_SIZE (flags), lineno); in process_i386_cpu_flag()
813 str = next_field (next, '|', &next, last); in process_i386_cpu_flag()
814 if (str) in process_i386_cpu_flag()
815 set_bitfield (str, flags, 1, ARRAY_SIZE (flags), lineno); in process_i386_cpu_flag()
846 char *str, *next, *last; in process_i386_opcode_modifier() local
857 str = next_field (next, '|', &next, last); in process_i386_opcode_modifier()
858 if (str) in process_i386_opcode_modifier()
859 set_bitfield (str, modifiers, 1, ARRAY_SIZE (modifiers), in process_i386_opcode_modifier()
897 char *str, *next, *last; in process_i386_operand_type() local
908 str = next_field (next, '|', &next, last); in process_i386_operand_type()
909 if (str) in process_i386_operand_type()
910 set_bitfield (str, types, 1, ARRAY_SIZE (types), lineno); in process_i386_operand_type()
918 output_i386_opcode (FILE *table, const char *name, char *str, in output_i386_opcode() argument
926 operands = next_field (str, ',', &str, last); in output_i386_opcode()
929 base_opcode = next_field (str, ',', &str, last); in output_i386_opcode()
932 extension_opcode = next_field (str, ',', &str, last); in output_i386_opcode()
935 opcode_length = next_field (str, ',', &str, last); in output_i386_opcode()
938 cpu_flags = next_field (str, ',', &str, last); in output_i386_opcode()
941 opcode_modifier = next_field (str, ',', &str, last); in output_i386_opcode()
944 str = remove_leading_whitespaces (str); in output_i386_opcode()
945 if (*str != '{') in output_i386_opcode()
947 str = remove_leading_whitespaces (str + 1); in output_i386_opcode()
949 i = strlen (str); in output_i386_opcode()
959 if (ISSPACE (str[i]) || str[i] == '}') in output_i386_opcode()
960 str[i] = '\0'; in output_i386_opcode()
966 last = str + i; in output_i386_opcode()
971 if (str >= last) in output_i386_opcode()
977 operand_types [i] = next_field (str, ',', &str, last); in output_i386_opcode()
1047 char *str, *p, *last, *name; in process_i386_opcodes() local
1083 str = strstr (p, "//"); in process_i386_opcodes()
1084 if (str != NULL) in process_i386_opcodes()
1085 str[0] = '\0'; in process_i386_opcodes()
1104 name = next_field (p, ',', &str, last); in process_i386_opcodes()
1128 opcode_array[i]->opcode = xstrdup (str); in process_i386_opcodes()
1143 (*entry)->opcode = xstrdup (str); in process_i386_opcodes()
1154 str = next->opcode; in process_i386_opcodes()
1156 last = str + strlen (str); in process_i386_opcodes()
1157 output_i386_opcode (table, name, str, last, lineno); in process_i386_opcodes()
1181 char *str, *p, *last; in process_i386_registers() local
1205 str = strstr (p, "//"); in process_i386_registers()
1206 if (str != NULL) in process_i386_registers()
1207 str[0] = '\0'; in process_i386_registers()
1226 reg_name = next_field (p, ',', &str, last); in process_i386_registers()
1229 reg_type = next_field (str, ',', &str, last); in process_i386_registers()
1232 reg_flags = next_field (str, ',', &str, last); in process_i386_registers()
1235 reg_num = next_field (str, ',', &str, last); in process_i386_registers()
1242 dw2_32_num = next_field (str, ',', &str, last); in process_i386_registers()
1245 dw2_64_num = next_field (str, ',', &str, last); in process_i386_registers()