forked from OkCupid/sfslite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoconf.sed
85 lines (81 loc) · 1.87 KB
/
autoconf.sed
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# $Id$
1i\
#ifndef _ARPCCONF_H_\
#define _ARPCCONF_H_ 1
$a\
\
#endif /* !_ARPCCONF_H_ */
/^#define inline/b skip
/^#define xdr_ops_t/b skip
/^#define [a-z]/b pdefine
/ DMALLOC/b pdefine
/ HAVE_CLOCK_GETTIME/b pdefine
/ HAVE_DEV_XFS/b pdefine
/ HAVE_GETRUSAGE/b pdefine
/ HAVE_GMP_CXX_OPS/b pdefine
/ HAVE_INET_ATON/b pdefine
/ HAVE_INT32_T/b pdefine
/ HAVE_SSIZE_T/b pdefine
/ HAVE_INT64_T/b pdefine
/ HAVE_MEMCPY/b pdefine
/ HAVE_MEMORY_H/b pdefine
/ HAVE_MODE_T/b pdefine
/ HAVE_OFF_T_64/b pdefine
/ HAVE_PREAD/b pdefine
/ HAVE_PREAD_DECL/b pdefine
/ HAVE_PWRITE/b pdefine
/ HAVE_PWRITE_DECL/b pdefine
/ HAVE_RLIM_T/b pdefine
/ HAVE_SOCKLEN_T/b pdefine
/ HAVE_STRCASECMP/b pdefine
/ HAVE_STRCHR/b pdefine
/ HAVE_STRERROR/b pdefine
/ HAVE_SYS_FILE_H/b pdefine
/ HAVE_SYS_FILIO_H/b pdefine
/ HAVE_SYS_RUSAGE_H/b pdefine
/ HAVE_SYS_SOCKIO_H/b pdefine
/ HAVE_SYS_TIME_H/b pdefine
/ HAVE_SYS_WAIT_H/b pdefine
/ HAVE_TIMES/b pdefine
/ HAVE_TIMESPEC/b pdefine
/ HAVE_U_CHAR/b pdefine
/ HAVE_U_INT/b pdefine
/ HAVE_U_INT8_T/b pdefine
/ HAVE_U_INT16_T/b pdefine
/ HAVE_U_INT32_T/b pdefine
/ HAVE_U_INT64_T/b pdefine
/ HAVE_U_LONG/b pdefine
/ NEED_FCHDIR_DECL/b pdefine
/ NEED_GETRUSAGE_DECL/b pdefine
/ NEED_MKSTEMP_DECL/b pdefine
/ NEED_RES_INIT_DECL/b pdefine
/ NEED_RES_MKQUERY_DECL/b pdefine
/ NEED_XDR_CALLMSG_DECL/b pdefine
/ SETGROUPS_NEEDS_GRP_H/b pdefine
/ SIZEOF_LONG/b pdefine
/ SIZEOF_LONG_LONG/b pdefine
/ STDC_HEADERS/b pdefine
/ TIME_WITH_SYS_TIME/b pdefine
/ WORDS_BIGENDIAN/b pdefine
/ PYMALLOC/b pdefine
/ SFS_HAVE_CALLBACK2/b pdefine
/ HAVE_SFSMISC/b pdefine
/ _FILE_OFFSET_BITS/b pdefine
/ HAVE_EPOLL/b pdefine
/ HAVE_KQUEUE/b pdefine
/ PATH_LOGGER/b pdefine
/ TAME_DETEMPLATIZE/b pdefine
/ SFS_CALLBACK_A3/b pdefine
/ SIMPLE_LEAK_CHECKER/b pdefine
/ SIMPLE_PROFILER/b pdefine
/ UCONTEXT_RBP/b pdefine
/ SFS_COMPILE_SHARED/b pdefine
:skip
d
n
:pdefine
s/#define \([^ ]*\).*/\
#ifndef \1\
&\
#endif/p
d