shithub: scc

ref: eb09f99efa9107704d1903abe8aa69fe9d298b3a
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