forked from emacs-mirror/emacs
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dumpemacs.h
72 lines (63 loc) · 2.03 KB
/
dumpemacs.h
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
/* dumpemacs.h -*- C -*- */
#ifndef kEmacsVersion
# define kEmacsVersion "21.2"
#endif /* !kEmacsVersion */
#define kEmacsVersionMinor "1"
#define kEmacsBinDir "/usr/bin"
#define kEmacsLibExecDir "/usr/libexec"
#define kEmacsShareDir "/usr/share/emacs"
#ifndef kEmacsArch
# ifdef __ppc__
# define kEmacsArch "ppc"
# endif /* __ppc__ */
# ifdef __ppc64__
# define kEmacsArch "ppc64"
# endif /* __ppc64__ */
# ifdef __i386__
# define kEmacsArch "i386"
# endif /* __i386__ */
# if defined(__x86_64__) && !defined(kEmacsArch)
# define kEmacsArch "x86_64"
# endif /* __x86_64__ && !kEmacsArch */
# ifdef __arm__
# define kEmacsArch "arm"
# endif /* __arm__ */
# if defined(__aarch64__) && !defined(kEmacsArch)
# define kEmacsArch "aarch64"
# endif /* __aarch64__ && !kEmacsArch */
#endif /* !kEmacsArch */
#ifndef kEmacsArch
# error "Unsupported architecture"
#endif /* !kEmacsArch */
#ifndef kEmacsWrapperPath
# define kEmacsWrapperPath kEmacsBinDir "/emacs"
#endif /* !kEmacsWrapperPath */
#define kEmacsDumpedPath kEmacsBinDir "/emacs"
#define kEmacsUndumpedPath kEmacsBinDir "/emacs-undumped"
#define kEmacsArchPath kEmacsBinDir "/emacs-" kEmacsArch
#define kDumpEmacsPath kEmacsLibExecDir "/dumpemacs"
/* this is taken from "src/config.h": */
/* The _Noreturn keyword of C11: */
#if !(defined(_Noreturn) \
|| (defined(__STDC_VERSION__) && (201112 <= __STDC_VERSION__)))
# if ((3 <= __GNUC__) || ((__GNUC__ == 2) && (8 <= __GNUC_MINOR__)) \
|| (0x5110 <= __SUNPRO_C))
# define _Noreturn __attribute__ ((__noreturn__))
# elif defined(_MSC_VER) && (1200 <= _MSC_VER)
# define _Noreturn __declspec (noreturn)
# else
# define _Noreturn
# endif /* compatible compiler check */
#endif /* have _Noreturn */
/* Define to 1 if we have the 'id' program: */
#ifndef HAVE_ID_BIN
# define HAVE_ID_BIN 1
#endif /* !HAVE_ID_BIN */
/* Define to 1 if we have the 'system' function: */
#ifndef HAVE_SYSTEM
# define HAVE_SYSTEM 1
#endif /* !HAVE_SYSTEM */
/* Prototypes: */
int is_emacs_valid(int debugflag);
int runit(const char * const argv[], int dropprivs);
/* EOF */