1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00

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.
This commit is contained in:
Paul Eggert 2022-03-19 12:35:04 -07:00
parent c11b4758b7
commit ccf4a4fa48
3 changed files with 14 additions and 0 deletions

View File

@ -53,6 +53,8 @@ struct Lisp_Native_Comp_Unit
#ifdef HAVE_NATIVE_COMP
INLINE_HEADER_BEGIN
INLINE bool
NATIVE_COMP_UNITP (Lisp_Object a)
{
@ -99,6 +101,8 @@ void unload_comp_unit (struct Lisp_Native_Comp_Unit *cu)
extern void syms_of_comp (void);
INLINE_HEADER_END
#endif /* #ifdef HAVE_NATIVE_COMP */
#endif /* #ifndef COMP_H */

View File

@ -140,6 +140,10 @@ extern char etext;
#include "fingerprint.h"
#include "epaths.h"
/* Include these only because of INLINE. */
#include "comp.h"
#include "thread.h"
static const char emacs_version[] = PACKAGE_VERSION;
static const char emacs_copyright[] = COPYRIGHT;
static const char emacs_bugreport[] = PACKAGE_BUGREPORT;

View File

@ -33,6 +33,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include "sysselect.h" /* FIXME */
#include "systhread.h"
INLINE_HEADER_BEGIN
/* Byte-code interpreter thread state. */
struct bc_thread_state {
struct bc_frame *fp; /* current frame pointer */
@ -194,6 +196,8 @@ struct thread_state
struct bc_thread_state bc;
} GCALIGNED_STRUCT;
INLINE_HEADER_BEGIN
INLINE bool
THREADP (Lisp_Object a)
{
@ -315,4 +319,6 @@ int thread_select (select_func *func, int max_fds, fd_set *rfds,
bool thread_check_current_buffer (struct buffer *);
INLINE_HEADER_END
#endif /* THREAD_H */