shithub: scc

ref: 4e94d4039945fec694b6a74b2bcf03c5ffc71186
dir: /symbol.h/

View raw version

#pragma once
#ifndef SYMBOL_H
#define SYMBOL_H


struct type;

struct symbol {
	char *str;
	struct type *type;
	struct symbol *next;
};


struct symhash;
extern struct symhash *siden, *sgoto, *sstruct;

struct symbol *
addsym(struct symhash *h, struct symbol *sym, unsigned char hash);

#endif