ack/lang/cem/cemcom.ansi/util.str
carl 750a6bc684 Better ANSI C compatibility and portability:
+ 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.
2019-02-19 00:54:23 +08:00

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