static void push_macro_expansion (cppReader *,
/*@owned@*/ char *, size_t,
- /*@dependent@*/ HASHNODE *);
+ /*@dependent@*/ hashNode);
/* Last arg to output_line_command. */
enum file_change_code {
void
cppReader_macroCleanup (cppBuffer *pbuf, /*@unused@*/ cppReader *pfile)
{
- HASHNODE *macro = pbuf->hnode;
+ hashNode macro = pbuf->hnode;
if (macro->type == T_DISABLED)
{
{
int hashcode;
MACRODEF mdef;
- HASHNODE *hp;
+ hashNode hp;
DPRINTF (("Define aux: %d", noExpand));
** that for this new definition now.
*/
- HASHNODE *hn;
+ hashNode hn;
if (CPPOPTIONS (pfile)->debug_output && (keyword != NULL))
{
*/
static void
-special_symbol (HASHNODE *hp, cppReader *pfile)
+special_symbol (hashNode hp, cppReader *pfile)
{
cstring buf = cstring_undefined;
size_t len;
an argument list follows; arguments come from the input stack. */
static void
-macroexpand (cppReader *pfile, /*@dependent@*/ HASHNODE *hp)
+macroexpand (cppReader *pfile, /*@dependent@*/ hashNode hp)
{
int nargs;
DEFINITION *defn = hp->value.defn;
static void
push_macro_expansion (cppReader *pfile, char *xbuf, size_t xbuf_len,
- /*@dependent@*/ HASHNODE *hp)
+ /*@dependent@*/ hashNode hp)
{
cppBuffer *mbuf = cppReader_pushBuffer (pfile, xbuf, xbuf_len);
if (token == CPP_STRING) {
char *fname = pfile->token_buffer + old_written;
char *end_name;
- static HASHNODE *fname_table[FNAME_HASHSIZE];
- HASHNODE *hp, **hash_bucket;
+ static hashNode fname_table[FNAME_HASHSIZE];
+ hashNode hp;
+ hashNode *hash_bucket;
char *p;
size_t num_start;
int fname_length;
if (hp == 0) {
/* Didn't find it; cons up a new one. */
- hp = (HASHNODE *) dmalloc (sizeof (*hp) + fname_length + 1);
+ hp = (hashNode) dmalloc (sizeof (*hp));
hp->prev = NULL;
hp->bucket_hdr = NULL;
{
int sym_length;
- HASHNODE *hp;
+ hashNode hp;
char *orig_buf = buf;
SKIP_WHITE_SPACE (buf);
/*@unused@*/ char *buf,
/*@unused@*/ int length)
{
- HASHNODE *save_defined;
+ hashNode save_defined;
HOST_WIDE_INT value;
size_t old_written = cppReader_getWritten (pfile);
}
else if (token == CPP_NAME)
{
- HASHNODE *hp = cppReader_lookup (ident, ident_length, -1);
+ hashNode hp = cppReader_lookup (ident, ident_length, -1);
skip = (keyword->type == T_IFDEF)
? (hp == NULL) : (hp != NULL);
case 'Y': case 'Z':
letter:
{
- HASHNODE *hp;
+ hashNode hp;
char *ident;
size_t before_name_written = cppReader_getWritten (pfile);
int ident_len;