Skip to content

Commit

Permalink
Merge pull request #58 from masatake/integrate-with-ctags-build-scripts
Browse files Browse the repository at this point in the history
Include inline.h only when HAVE_CTAGS_INLINE_H is defined
  • Loading branch information
masatake authored Sep 29, 2024
2 parents 1cce44d + c83bc89 commit 9137c94
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions readtags.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
/*
* INCLUDE FILES
*/
#ifdef HAVE_CTAGS_INLINE_H
/* the build script of ctags can insert thee macro
definition for READTAGS_INLINE. */
#include "inline.h"
#else
/* Makefile generated by configure defines inline. */
#define READTAGS_INLINE static inline
#endif

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
Expand Down Expand Up @@ -151,8 +160,8 @@ static int xdigitValue (unsigned char digit)
* Reads the first character from the string, possibly un-escaping it, and
* advances *s to the start of the next character.
*/
inline
static int readTagCharacter (const char **const s)
READTAGS_INLINE
int readTagCharacter (const char **const s)
{
const unsigned char *p = (const unsigned char *) *s;
int c = *p;
Expand Down

0 comments on commit 9137c94

Please sign in to comment.