ack/lang/b/lib/b.h
David Given ebd424e7f1 First draft of the B module code; a module name can now be specified as a
compiler flag, which is used to set the name of the patch table. The compiler
now understands C preprocessor line directives. Extend the standard library
somewhat.
2016-12-29 17:10:21 +00:00

22 lines
287 B
C

#ifndef B_H
#define B_H
#include <stdlib.h>
#include <stdio.h>
#if EM_PSIZE == 2
#define SHIFT 1
#elif EM_PSIZE == 4
#define SHIFT 2
#elif EM_PSIZE == 8
#define SHIFT 3
#else
#error Unsupported EM_PSIZE
#endif
extern FILE* input_unit;
extern FILE* output_unit;
#define END 4
#endif