C:/Users/Dennis/src/lang/russell.orig/src/RIC_to_C/strings.h File Reference

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 Documentation

#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,
 ) 

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,
 ) 

Value:

if (*s != HDR_MARK) { \
        c = s[1]; \
    } else { \
        charbuf[0] = '\0'; \
        str_firstn(charbuf, 2, s); \
        c = charbuf[1]; \
    }

Definition at line 35 of file strings.h.

#define GET_THIRD ( s,
 ) 

Value:

if (*s != HDR_MARK) { \
        c = s[2]; \
    } else { \
        charbuf[0] = '\0'; \
        str_firstn(charbuf, 3, s); \
        c = charbuf[2]; \
    }

Definition at line 44 of file strings.h.

#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) == '\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().


Function Documentation

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 (  ) 


Variable Documentation

char charbuf[4] [static]

Definition at line 22 of file strings.h.


Generated on Fri Jan 25 10:39:50 2008 for russell by  doxygen 1.5.4