File: prsetup.h

package info (click to toggle)
funtools 1.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,736 kB
  • ctags: 9,152
  • sloc: ansic: 97,119; sh: 10,716; lex: 4,589; asm: 3,281; ada: 1,681; makefile: 1,418; pascal: 1,089; cpp: 1,001; cs: 879; perl: 161; python: 119; yacc: 64; sed: 32; csh: 10; tcl: 9
file content (66 lines) | stat: -rw-r--r-- 1,060 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
 *	Copyright (c) 1999-2003 Smithsonian Astrophysical Observatory
 */

/* prsetup.h -- define variables for ANSI prototyping */

#ifndef _prsetup
#define _prsetup

#ifdef NO_ANSI_FUNC
#define _PRbeg
#define _PRend
#define _PRx(s) ()
#ifdef ANSI_FUNC
#undef ANSI_FUNC
#endif
#else
#if defined(__cplusplus) || defined(c_plusplus)
#define _PRbeg extern "C" {   /* do not leave open across includes */
#define _PRend }
#define _PRx(s) s
#define ANSI_FUNC 1
#else
#if defined(__STDC__)
#define _PRbeg
#define _PRend
#define _PRx(s) s
#define ANSI_FUNC 1
#else
#define _PRbeg
#define _PRend
#define _PRx(s) ()
#ifdef ANSI_FUNC
#undef ANSI_FUNC
#endif
#endif
#endif
#endif

#ifndef UNUSED
#ifdef __GNUC__
#  define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
#else
#  define UNUSED(x) UNUSED_ ## x
#endif
#endif

/* the ever-present */
#ifndef SZ_LINE
#define SZ_LINE 4096
#endif

#ifndef MIN
#define MIN(a,b) (((a)<(b))?(a):(b))
#endif

#ifndef MAX
#define MAX(a,b) (((a)>(b))?(a):(b))
#endif

#ifndef ABS
#define ABS(x)		((x)<0?(-(x)):(x))
#endif

#endif