diff options
| author | Paul Eggert | 2022-03-19 12:35:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2022-03-19 12:48:54 -0700 |
| commit | ccf4a4fa482f61938a9495c862b74f4a2d3ade0c (patch) | |
| tree | 6c9f1b2172962fb0f723e3332f5261e1636faef8 /src | |
| parent | c11b4758b7bd971fcbb824638a06f52c7768d268 (diff) | |
| download | emacs-ccf4a4fa482f61938a9495c862b74f4a2d3ade0c.tar.gz emacs-ccf4a4fa482f61938a9495c862b74f4a2d3ade0c.zip | |
Port to gcc -D EMACS_EXTERN_INLINE
* src/comp.h, src/thread.h: Add INLINE_HEADER_BEGIN and
INLINE_HEADER_END, since it uses INLINE.
* src/emacs.c: Include these two files.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp.h | 4 | ||||
| -rw-r--r-- | src/emacs.c | 4 | ||||
| -rw-r--r-- | src/thread.h | 6 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/comp.h b/src/comp.h index 40f1e9b979c..da53f32971e 100644 --- a/src/comp.h +++ b/src/comp.h | |||
| @@ -53,6 +53,8 @@ struct Lisp_Native_Comp_Unit | |||
| 53 | 53 | ||
| 54 | #ifdef HAVE_NATIVE_COMP | 54 | #ifdef HAVE_NATIVE_COMP |
| 55 | 55 | ||
| 56 | INLINE_HEADER_BEGIN | ||
| 57 | |||
| 56 | INLINE bool | 58 | INLINE bool |
| 57 | NATIVE_COMP_UNITP (Lisp_Object a) | 59 | NATIVE_COMP_UNITP (Lisp_Object a) |
| 58 | { | 60 | { |
| @@ -99,6 +101,8 @@ void unload_comp_unit (struct Lisp_Native_Comp_Unit *cu) | |||
| 99 | 101 | ||
| 100 | extern void syms_of_comp (void); | 102 | extern void syms_of_comp (void); |
| 101 | 103 | ||
| 104 | INLINE_HEADER_END | ||
| 105 | |||
| 102 | #endif /* #ifdef HAVE_NATIVE_COMP */ | 106 | #endif /* #ifdef HAVE_NATIVE_COMP */ |
| 103 | 107 | ||
| 104 | #endif /* #ifndef COMP_H */ | 108 | #endif /* #ifndef COMP_H */ |
diff --git a/src/emacs.c b/src/emacs.c index d1060bca0b3..0ff916b18b8 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -140,6 +140,10 @@ extern char etext; | |||
| 140 | #include "fingerprint.h" | 140 | #include "fingerprint.h" |
| 141 | #include "epaths.h" | 141 | #include "epaths.h" |
| 142 | 142 | ||
| 143 | /* Include these only because of INLINE. */ | ||
| 144 | #include "comp.h" | ||
| 145 | #include "thread.h" | ||
| 146 | |||
| 143 | static const char emacs_version[] = PACKAGE_VERSION; | 147 | static const char emacs_version[] = PACKAGE_VERSION; |
| 144 | static const char emacs_copyright[] = COPYRIGHT; | 148 | static const char emacs_copyright[] = COPYRIGHT; |
| 145 | static const char emacs_bugreport[] = PACKAGE_BUGREPORT; | 149 | static const char emacs_bugreport[] = PACKAGE_BUGREPORT; |
diff --git a/src/thread.h b/src/thread.h index ddba1a2d994..b34ca3d57c8 100644 --- a/src/thread.h +++ b/src/thread.h | |||
| @@ -33,6 +33,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 33 | #include "sysselect.h" /* FIXME */ | 33 | #include "sysselect.h" /* FIXME */ |
| 34 | #include "systhread.h" | 34 | #include "systhread.h" |
| 35 | 35 | ||
| 36 | INLINE_HEADER_BEGIN | ||
| 37 | |||
| 36 | /* Byte-code interpreter thread state. */ | 38 | /* Byte-code interpreter thread state. */ |
| 37 | struct bc_thread_state { | 39 | struct bc_thread_state { |
| 38 | struct bc_frame *fp; /* current frame pointer */ | 40 | struct bc_frame *fp; /* current frame pointer */ |
| @@ -194,6 +196,8 @@ struct thread_state | |||
| 194 | struct bc_thread_state bc; | 196 | struct bc_thread_state bc; |
| 195 | } GCALIGNED_STRUCT; | 197 | } GCALIGNED_STRUCT; |
| 196 | 198 | ||
| 199 | INLINE_HEADER_BEGIN | ||
| 200 | |||
| 197 | INLINE bool | 201 | INLINE bool |
| 198 | THREADP (Lisp_Object a) | 202 | THREADP (Lisp_Object a) |
| 199 | { | 203 | { |
| @@ -315,4 +319,6 @@ int thread_select (select_func *func, int max_fds, fd_set *rfds, | |||
| 315 | 319 | ||
| 316 | bool thread_check_current_buffer (struct buffer *); | 320 | bool thread_check_current_buffer (struct buffer *); |
| 317 | 321 | ||
| 322 | INLINE_HEADER_END | ||
| 323 | |||
| 318 | #endif /* THREAD_H */ | 324 | #endif /* THREAD_H */ |