Mercurial > emacs
annotate src/getpagesize.h @ 10235:ff7189e5e459
(byte-compile-dest-file): New variable.
(byte-compile-file): Bind that var, early on.
(byte-compile-dynamic): New variable.
(byte-compile-dynamic-docstrings): New variable.
(byte-compile-close-variables): Bind byte-compile-dynamic,
byte-compile-dynamic-docstrings, and byte-compiler-compatibility.
(byte-compile-file): Call normal-mode, not set-auto-mode.
(byte-compile-output-docform): New arguments PREFACE, NAME, SPECINDEX,
QUOTED. Callers changed. Output doc strings as references to the .elc
file itself, using #@ and #$ constructs.
(byte-compile-output-as-comment): New function.
(byte-compile-insert-header): Don't save-excursion.
Insert at point, and move point. Insert extra newline at end.
(byte-compile-from-buffer): Insert the header before compilation.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 24 Dec 1994 05:58:05 +0000 |
parents | 44ebc50db2c5 |
children | ae726fd5403b |
rev | line source |
---|---|
4356 | 1 /* Emulate getpagesize on systems that lack it. */ |
2 | |
3 #ifndef HAVE_GETPAGESIZE | |
4 | |
5 #ifdef VMS | |
6 #define getpagesize() 512 | |
7 #endif | |
8 | |
9 #ifdef HAVE_UNISTD_H | |
10 #include <unistd.h> | |
11 #endif | |
12 | |
13 #ifdef _SC_PAGESIZE | |
14 #define getpagesize() sysconf(_SC_PAGESIZE) | |
15 #else | |
16 | |
17 #include <sys/param.h> | |
18 | |
19 #ifdef EXEC_PAGESIZE | |
20 #define getpagesize() EXEC_PAGESIZE | |
21 #else | |
22 #ifdef NBPG | |
23 #define getpagesize() NBPG * CLSIZE | |
24 #ifndef CLSIZE | |
25 #define CLSIZE 1 | |
26 #endif /* no CLSIZE */ | |
27 #else /* no NBPG */ | |
28 #ifdef NBPC | |
29 #define getpagesize() NBPC | |
9421 | 30 #else /* no NBPC */ |
31 #ifdef PAGESIZE | |
32 #define getpagesize() PAGESIZE | |
33 #endif | |
4356 | 34 #endif /* NBPC */ |
35 #endif /* no NBPG */ | |
36 #endif /* no EXEC_PAGESIZE */ | |
37 #endif /* no _SC_PAGESIZE */ | |
38 | |
39 #endif /* not HAVE_GETPAGESIZE */ |