Go to the source code of this file.
Data Structures | |
struct | str_hdr |
Defines | |
#define | HDR_MARK '\201' |
#define | CS_NIL ((char *)0) |
#define | is_empty(s) (*(s) == '\0') |
#define | GET_FIRST(s, c) |
#define | GET_SECOND(s, c) |
#define | GET_THIRD(s, c) |
Functions | |
char * | concat () |
char * | flatten () |
char * | placeholder () |
void | set_ph () |
Variables | |
static char | charbuf [4] |
#define CS_NIL ((char *)0) |
Definition at line 10 of file strings.h.
Referenced by add_idt(), binary_op(), flush_expr(), flush_expr_except_const(), flush_slm(), get_expr(), get_name(), main(), nilary_op(), placeholder(), rem_vr(), rem_vr_def(), str_firstn(), and unary_op().
#define GET_FIRST | ( | s, | |||
c | ) |
Value:
if (*s != HDR_MARK) { \ c = *s; \ } else { \ charbuf[0] = '\0'; \ str_firstn(charbuf, 1, s); \ c = charbuf[0]; \ }
Definition at line 26 of file strings.h.
Referenced by flush_expr_except_const(), and main().
#define GET_SECOND | ( | s, | |||
c | ) |
#define GET_THIRD | ( | s, | |||
c | ) |
#define HDR_MARK '\201' |
Definition at line 8 of file strings.h.
Referenced by placeholder(), str_firstn(), str_last(), str_length(), and str_to_contig1().
#define is_empty | ( | s | ) | (*(s) == '\0') |
Definition at line 24 of file strings.h.
Referenced by add_block(), add_dcse(), addleft(), addright(), cand_cond(), checksigs(), conc(), cor_cond(), def_match(), find_inline(), findidsig(), impure(), infer_args(), is_const(), main(), mkappl(), single_arg(), subst(), subst1(), unary_op(), and unparse().
char* concat | ( | ) |
char* flatten | ( | ) |
char* placeholder | ( | ) |
Definition at line 35 of file strings.c.
References CS_NIL, str_hdr::first_part, GC_malloc(), HDR_MARK, str_hdr::hdr_mark, and str_hdr::last_part.
Referenced by binary_op(), main(), and unary_op().
void set_ph | ( | ) |