Imported Upstream version 0.1beta
[debian/yforth] / locals.h
1 /* yForth? - Written by Luca Padovani (C) 1996/97
2  * ------------------------------------------------------------------------
3  * This software is FreeWare as long as it comes with this header in each
4  * source file, anyway you can use it or any part of it whatever
5  * you want. It comes without any warranty, so use it at your own risk.
6  * ------------------------------------------------------------------------
7  * Module name:     locals.h
8  * Abstract:        include file for "locals" word set
9  */
10
11 #ifdef DECLARE_WORDS
12 #       ifdef PROTOTYPES
13 #               undef PROTOTYPES
14 #       endif
15 #       undef __LOCALS_H__
16 #else
17 #       ifndef PROTOTYPES
18 #               define PROTOTYPES
19 #       endif
20 #endif
21
22 #ifndef __LOCALS_H__
23 #define __LOCALS_H__
24
25 #include "yforth.h"
26 #include "macro.h"
27
28 /**************************************************************************/
29 /* PROTOTYPES *************************************************************/
30 /**************************************************************************/
31
32 code(paren_local_paren,                         "(local)",                              COMP_ONLY)
33
34 code(paren_bp_restore_paren,            "(bp!)",                                0)
35 code(paren_bp_save_paren,                       "(bp@)",                                0)
36 code(paren_read_local_paren,            "(rLocal)",                             0)
37 code(paren_write_local_paren,           "(wLocal)",                             0)
38
39 #ifdef PROTOTYPES
40
41 /**************************************************************************/
42 /* AUXILIARY FUNCTIONS PROTOTYPES *****************************************/
43 /**************************************************************************/
44
45 void clear_locals(void);
46 void free_locals(void);
47 void init_locals(void);
48 void declare_local(Char *s, UCell u);
49 struct word_def *get_first_local(void);
50 int locals_defined(void);
51
52 #endif
53
54 #endif
55