chiark / gitweb /
Create readable text `.bas' for each tokenized BASIC `,ffb' file.
[ssr] / StraySrc / Glass / !Glass / h / glass
1 /*
2  * glass.h
3  *
4  * Central information header file
5  *
6  * © 1994-1998 Straylight
7  */
8
9 /*----- Licensing note ----------------------------------------------------*
10  *
11  * This file is part of Straylight's Glass.
12  *
13  * Glass is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2, or (at your option)
16  * any later version.
17  *
18  * Glass is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with Glass.  If not, write to the Free Software Foundation,
25  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26  */
27
28 #ifndef __glass_h
29 #define __glass_h
30
31 /*----- Standard macros ---------------------------------------------------*/
32
33 #define unused(x) ((x)=(x))      /* Prevents compiler complaints about     */
34                                  /* unused variables                       */
35
36 #ifndef BOOL
37 #define BOOL int                 /* Standard type definition, fits in with */
38 #define TRUE 1                   /* the RISC_OSlib definition              */
39 #define FALSE 0
40 #endif
41
42 /*----- Bitwise operators -------------------------------------------------*/
43
44 #define bit(b) (1<<(b))          /* Returns the appropriate bit set        */
45 #define tst(x,b) (((x)>>(b))&1)  /* Test bit and return TRUE or FALSE      */
46 #define set(x,b) (x)|=bit(b);    /* Set appropriate bit                    */
47 #define reset(x,b) (x)&=~bit(b); /* Reset appropriate bit                  */
48
49 #endif