File: compiler.h

package info (click to toggle)
twin 0.4.0-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,804 kB
  • ctags: 23,904
  • sloc: ansic: 61,860; cpp: 1,023; makefile: 777; sh: 552; lex: 302; yacc: 231
file content (61 lines) | stat: -rw-r--r-- 1,121 bytes parent folder | download | duplicates (2)
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


#ifndef _TUTF_COMPILER_H
#define _TUTF_COMPILER_H

/* library stuff. define macros with TUTF_ prefix */



#if !defined(TUTF_CAT)
# define TUTF__CAT(a,b) a##b
# define TUTF_CAT(a,b) TUTF__CAT(a,b)
# define T_CAT(a,b) TUTF__CAT(a,b)
#endif

#if !defined(TUTF_STR)
# define TUTF__STR(s) #s
# define TUTF_STR(s) TUTF__STR(s)
# define T_STR(s) TUTF__STR(s)
#endif

#if !defined(TUTF_CONST)
# if defined(CONST)
#  define TUTF_CONST CONST
# else
#  define TUTF_CONST const
# endif
#endif

/* inline is NOT a standard C feature :( */
#if !defined(TUTF_INLINE)
# if defined(INLINE)
#  define TUTF_INLINE INLINE
# elif defined(__GNUC__)
#  define TUTF_INLINE extern __inline__
# else
#  define TUTF_INLINE static
# endif
#endif

#if !defined(TUTF_VOLATILE)
# if defined(VOLATILE)
#  define TUTF_VOLATILE VOLATILE
# else
#  define TUTF_VOLATILE volatile
# endif
#endif

#if !defined(TUTF_FNATTR_CONST)
# if defined(FNATTR_CONST)
#  define TUTF_FNATTR_CONST FNATTR_CONST
# elif defined(__GNUC__)
#  define TUTF_FNATTR_CONST __attribute__((const))
# else
#  define TUTF_FNATTR_CONST
# endif
#endif


#endif /* _TUTF_COMPILER_H */