File: defs.h

package info (click to toggle)
magnus 20060324-5.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,436 kB
  • ctags: 20,462
  • sloc: cpp: 130,217; ansic: 37,090; tcl: 10,970; perl: 1,109; makefile: 966; sh: 403; yacc: 372; csh: 57; awk: 33; asm: 10
file content (27 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __GROUP__
#define __GROUP__
#define TRUE    1
#define FALSE   0
#define DEFAULT 0
#define Public
#define Private static

/* #define basic data-types in case we need to change them later
   e.g. to use long rather than int */
#define Void    void
#define Char    char
#define Short   short
#define Int     int
#define Logical int
#define Float   float
#define Double  double

/* some macros  */
#define min0(x,y)	(((x) < (y)) ? (x) : (y))
#define iabs(x)		(((x) > 0) ? (x) : -(x))
#define max0(x,y)	(((x) > (y)) ? (x) : (y))
#endif