nanoFORTH  v2.2
system.h
Go to the documentation of this file.
1 /*
2  Tiny FORTH
3  System-dependent module for Linux/FreeBSD/Cygwin
4 
5  T. Nakagawa
6 
7  2004/05/23
8 */
9 
10 
11 #ifndef _SYSTEM_H_
12 #define _SYSTEM_H_
13 
14 
15 #define BUF_SIZE 128 /* 8 - 255 */
16 #define STACK_SIZE (1024 * 8) /* 8 - 65536 */
17 #define DIC_SIZE (1024 * 8) /* 8 - 8*1024 */
18 #define R2V(base, ptr) ((unsigned short)((ptr) - (base)))
19 #define V2R(base, ptr) ((unsigned char *)((base) + (ptr)))
20 
21 
22 void initl(void);
23 unsigned char getchr(void);
24 void putchr(unsigned char c);
25 
26 
27 #endif
getchr
unsigned char getchr(void)
Definition: system.c:31
putchr
void putchr(unsigned char c)
Definition: system.c:45
initl
void initl(void)
Definition: system.c:15