Lines Matching refs:str

2139     char str[1];
2292 int *str;
2701 #define DEF(id, str) id,
3470 DEF_ASM_OP1(str, 0x0f00, 1, OPC_MODRM, OPT_REG16| OPT_EA)
3927 DEF_ASM_OP1(str, 0x0f00, 1, OPC_MODRM, OPT_REG16| OPT_EA)
4033 #define DEF(id, str) str "\0"
4802 DEF_ASM_OP1(str, 0x0f00, 1, OPC_MODRM, OPT_REG16| OPT_EA)
5259 DEF_ASM_OP1(str, 0x0f00, 1, OPC_MODRM, OPT_REG16| OPT_EA)
5479 static void put_stabs(const char *str, int type, int other, int desc,
5481 static void put_stabs_r(const char *str, int type, int other, int desc,
6598 char *str;
6619 while (p->str != NULL) {
6620 if (!strcmp(p->str, symbol))
6681 static int strstart(const char *str, const char *val, const char **ptr)
6684 p = str;
6749 static char *tcc_strdup(const char *str)
6752 ptr = tcc_malloc(strlen(str) + 1);
6753 strcpy(ptr, str);
7136 static TokenSym *tok_alloc_new(TokenSym **pts, const char *str, int len)
7162 memcpy(ts->str, str, len);
7163 ts->str[len] = '\0';
7172 static TokenSym *tok_alloc(const char *str, int len)
7180 h = TOK_HASH_FUNC(h, ((unsigned char *)str)[i]);
7188 if (ts->len == len && !memcmp(ts->str, str, len))
7192 return tok_alloc_new(pts, str, len);
7226 static void cstr_cat(CString *cstr, const char *str)
7230 c = *str;
7234 str++;
7369 return table_ident[v - TOK_IDENT]->str;
7786 int sep, CString *str)
7817 if (str) {
7818 cstr_ccat(str, '\\');
7819 cstr_ccat(str, c);
7830 if (str)
7831 cstr_ccat(str, '\r');
7838 if (str)
7839 cstr_ccat(str, c);
7985 s->str = NULL;
7991 static void tok_str_free(int *str)
7993 tcc_free(str);
7998 int *str, len;
8005 str = tcc_realloc(s->str, len * sizeof(int));
8006 if (!str)
8009 s->str = str;
8010 return str;
8015 int len, *str;
8018 str = s->str;
8020 str = tok_str_realloc(s);
8021 str[len++] = t;
8027 int len, *str;
8030 str = s->str;
8034 str = tok_str_realloc(s);
8035 str[len++] = t;
8043 str[len++] = cv->tab[0];
8054 str = tok_str_realloc(s);
8055 cstr = (CString *)(str + len);
8071 str[len++] = cv->tab[0];
8072 str[len++] = cv->tab[1];
8076 str[len++] = cv->tab[0];
8077 str[len++] = cv->tab[1];
8078 str[len++] = cv->tab[2];
8155 static inline void define_push(int v, int macro_type, int *str, Sym *first_arg)
8159 s = sym_push2(&define_stack, v, macro_type, (long)str);
8259 TokenString str;
8261 tok_str_new(&str);
8279 tok_str_add_tok(&str);
8281 tok_str_add(&str, -1); /* simulate end of file */
8282 tok_str_add(&str, 0);
8284 macro_ptr = str.str;
8288 tok_str_free(str.str);
8293 static void tok_print(int *str)
8299 TOK_GET(t, str, cval);
8313 TokenString str;
8351 tok_str_new(&str);
8355 tok_str_add2(&str, tok, &tokc);
8358 tok_str_add(&str, 0);
8361 tok_print(str.str);
8363 define_push(v, t, str.str, first);
9303 if (ts->len == len && !memcmp(ts->str, p1, len))
9389 CString str;
9395 cstr_new(&str);
9396 p = parse_pp_string(p, sep, &str);
9397 cstr_ccat(&str, '\0');
9401 parse_escape_string(&tokcstr, str.data, is_long);
9402 cstr_free(&str);
9599 TokenString str;
9602 tok_str_new(&str);
9631 tok_str_add2(&str, TOK_STR, &cval);
9634 tok_str_add2(&str, t, &cval);
9649 str.len >= 2 && str.str[str.len - 2] == ',') {
9652 str.len -= 2;
9655 str.len--;
9665 tok_str_add2(&str, t1, &cval);
9671 macro_subst(&str, nested_list, st, NULL);
9674 tok_str_add(&str, t);
9677 tok_str_add2(&str, t, &cval);
9681 tok_str_add(&str, 0);
9682 return str.str;
9700 TokenString str;
9784 tok_str_new(&str);
9795 tok_str_add2(&str, tok, &tokc);
9798 tok_str_add(&str, 0);
9799 sym_push2(&args, sa->v & ~SYM_FIELD, sa->type.t, (long)str.str);
9924 const char *str = cstr.data;
9929 if (!strcmp(str, ">>=")) {
9931 } else if (!strcmp(str, "<<=")) {
9933 } else if (strlen(str) == 2) {
9939 if (q[0] == str[0] && q[1] == str[1])
9971 return macro_str1.str;
10031 TokenString str;
10044 tok_str_new(&str);
10047 if (macro_subst_tok(&str, &nested_list, s, &ml) == 0) {
10049 tok_str_add(&str, 0);
10050 macro_ptr = str.str;
10051 macro_ptr_allocated = str.str;
14327 macro_ptr = init_str.str;
14331 macro_ptr = init_str.str;
14479 if (init_str.str) {
14480 tok_str_free(init_str.str);
14587 int *str, inline_generated;
14600 str = (int *)sym->r;
14604 macro_ptr = str;
14610 tok_str_free(str);
14624 str = (int *)sym->r;
14625 tok_str_free(str);
14751 sym->r = (long)func_str.str;
14920 int tcc_compile_string(TCCState *s, const char *str)
14929 len = strlen(str);
14933 memcpy(buf, str, len);
15509 DEF_ASM_OP1(str, 0x0f00, 1, OPC_MODRM, OPT_REG16| OPT_EA)
15971 DEF_ASM_OP1(str, 0x0f00, 1, OPC_MODRM, OPT_REG16| OPT_EA)
16604 static inline int constraint_priority(const char *str)
16611 c = *str;
16614 str++;
16671 const char *str;
16687 str = op->constraint;
16688 str = skip_constraint_modifiers(str);
16689 if (isnum(*str) || *str == '[') {
16691 k = find_constraint(operands, nb_operands, str, NULL);
16694 i, str);
16701 op->priority = constraint_priority(str);
16735 str = op->constraint;
16748 c = *str++;
17060 static void asm_clobber(uint8_t *clobber_regs, const char *str)
17065 if (!strcmp(str, "memory") ||
17066 !strcmp(str, "cc"))
17068 ts = tok_alloc(str, strlen(str));
17075 error("invalid clobber register '%s'", str);
17790 /* assemble the string 'str' in the current C compilation unit without
17791 C preprocessing. NOTE: str is modified by modifying the '\0' at the
17793 static void tcc_assemble_inline(TCCState *s1, char *str, int len)
17801 bf->buf_ptr = str;
17802 bf->buf_end = str + len;
17803 str[len] = CH_EOB;
17868 const char *str;
17873 str = in_str->data;
17875 c = *str++;
17877 if (*str == '%') {
17878 str++;
17882 if (*str == 'c' || *str == 'n' ||
17883 *str == 'b' || *str == 'w' || *str == 'h')
17884 modifier = *str++;
17885 index = find_constraint(operands, nb_operands, str, &str);
18385 static void put_stabs(const char *str, int type, int other, int desc,
18391 if (str) {
18392 sym->n_strx = put_elf_str(stabstr_section, str);
18402 static void put_stabs_r(const char *str, int type, int other, int desc,
18405 put_stabs(str, type, other, desc, value);
20477 const char *str, *p;
20501 str = stabstr_section->data + sym->n_strx;
20502 p = strchr(str, ':');
20504 pstrcpy(func_name, sizeof(func_name), str);
20506 len = p - str;
20509 memcpy(func_name, str, len);
20527 str = stabstr_section->data + sym->n_strx;
20530 incl_files[incl_index++] = str;
20541 str = stabstr_section->data + sym->n_strx;
20543 len = strlen(str);
20544 if (len > 0 && str[len - 1] != '/')
21402 /* convert 'str' into an array of space separated strings */
21403 static int expand_args(char ***pargv, const char *str)
21412 while (is_space(*str))
21413 str++;
21414 if (*str == '\0')
21416 s1 = str;
21417 while (*str != '\0' && !is_space(*str))
21418 str++;
21419 len = str - s1;