750a6bc684
+ Addition of function prototypes and include files. + Change function definitions to ANSI C style. + Initial support for CMake + Scripts to generate compiler header is now sed based.
31 lines
634 B
Plaintext
31 lines
634 B
Plaintext
#ifndef UTIL_H_
|
|
#define UTIL_H_
|
|
|
|
#include "arith.h"
|
|
|
|
struct localvar {
|
|
struct localvar *next;
|
|
arith t_offset; /* offset from LocalBase */
|
|
arith t_size;
|
|
int t_align;
|
|
int t_regtype;
|
|
int t_count;
|
|
int t_sc; /* storage class */
|
|
};
|
|
|
|
/* ALLOCDEF "localvar" 10 */
|
|
|
|
void LocalInit(void);
|
|
arith LocalSpace(arith sz, int al);
|
|
arith NewLocal(arith sz, int al, int regtype, int sc);
|
|
void FreeLocal(arith off);
|
|
void LocalFinish(void);
|
|
void RegisterAccount(arith offset, arith size, int regtype, int sc);
|
|
void LoadLocal(arith off, arith sz);
|
|
void StoreLocal(arith off, arith sz);
|
|
|
|
#ifndef LINT
|
|
void AddrLocal(arith off);
|
|
#endif
|
|
|
|
#endif |