Add extern "C" in C++ to all headers

This commit is contained in:
Eidolon 2022-12-30 19:26:16 -06:00
parent 41ebd7c67d
commit be021baa02
152 changed files with 1290 additions and 4 deletions

View file

@ -16,6 +16,10 @@
#include "d_event.h"
#ifdef __cplusplus
extern "C" {
#endif
struct fpoint_t
{
INT32 x, y;
@ -44,4 +48,8 @@ void AM_Start(void);
// Called to force the automap to quit if the level is completed while it is up.
void AM_Stop(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -3,10 +3,18 @@
#include <jni.h>
#ifdef __cplusplus
extern "C" {
#endif
UINT8 *android_surface;
JNIEnv* jni_env;
jobject androidVideo;
jmethodID videoFrameCB;
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -39,6 +39,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <png.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct apng_info_def apng_info;
typedef apng_info * apng_infop;
typedef const apng_info * apng_const_infop;
@ -77,4 +81,8 @@ void apng_set_write_fn (png_structp png_ptr, apng_infop ainfo_ptr,
void apng_set_set_acTL_fn (png_structp png_ptr, apng_infop ainfo_ptr,
apng_set_acTL_ptr set_acTL_fn);
#ifdef __cplusplus
} // extern "C"
#endif
#endif/* APNG_H */

View file

@ -11,12 +11,19 @@
/// \brief Macros to read/write from/to a UINT8 *,
/// used for packet creation and such
#ifndef __BYTEPTR_H__
#define __BYTEPTR_H__
#if defined (__alpha__) || defined (__arm__) || defined (__mips__) || defined (__ia64__) || defined (__clang__)
#define DEALIGNED
#endif
#include "endian.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef SRB2_BIG_ENDIAN
//
// Little-endian machines
@ -214,3 +221,9 @@ FUNCINLINE static ATTRINLINE UINT32 readulong(void *ptr)
memcpy(s, p, n); \
p += n; \
} while (0)
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __BYTEPTR_H__

View file

@ -16,6 +16,10 @@
#include <stdio.h>
#include "doomdef.h"
#ifdef __cplusplus
extern "C" {
#endif
//===================================
// Command buffer & command execution
//===================================
@ -238,4 +242,8 @@ void CV_CheaterWarning(UINT8 playerID, const char *command);
// Returns cvar by name. Exposed here for Lua.
consvar_t *CV_FindVar(const char *name);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __COMMAND_H__

View file

@ -10,10 +10,17 @@
/// \file console.h
/// \brief Console drawing and input
#ifndef __CONSOLE_H__
#define __CONSOLE_H__
#include "d_event.h"
#include "command.h"
#include "i_threads.h"
#ifdef __cplusplus
extern "C" {
#endif
void CON_Init(void);
boolean CON_Responder(event_t *ev);
@ -89,3 +96,9 @@ void CON_LogMessage(const char *msg);
// Startup loading bar
void CON_SetLoadingProgress(con_loadprogress_t newStep);
void CON_DrawLoadBar(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __CONSOLE_H__

View file

@ -23,6 +23,10 @@
#include "k_pwrlv.h" // PWRLV_NUMTYPES
#ifdef __cplusplus
extern "C" {
#endif
/*
The 'packet version' is used to distinguish packet formats.
This version is independent of VERSION and SUBVERSION. Different
@ -544,4 +548,8 @@ void CL_ClearRewinds(void);
rewind_t *CL_SaveRewindPoint(size_t demopos);
rewind_t *CL_RewindToTime(tic_t time);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -17,6 +17,10 @@
#include "doomtype.h"
#include "g_state.h"
#ifdef __cplusplus
extern "C" {
#endif
// Input event types.
typedef enum
{
@ -45,4 +49,8 @@ struct event_t
extern event_t events[MAXEVENTS];
extern INT32 eventhead, eventtail;
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -18,6 +18,10 @@
#include "d_event.h"
#include "w_wad.h" // for MAX_WADFILES
#ifdef __cplusplus
extern "C" {
#endif
// make sure not to write back the config until it's been correctly loaded
extern tic_t rendergametic;
@ -52,4 +56,8 @@ const char *D_Home(void);
//
void D_StartTitle(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif //__D_MAIN__

View file

@ -18,6 +18,10 @@
#ifndef __D_NET__
#define __D_NET__
#ifdef __cplusplus
extern "C" {
#endif
// Max computers in a game
// 127 is probably as high as this can go, because
// SINT8 is used for nodes sometimes >:(
@ -64,4 +68,8 @@ void Net_AbortPacketType(UINT8 packettype);
void Net_SendAcks(INT32 node);
void Net_WaitAllAckReceived(UINT32 timeout);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -18,6 +18,10 @@
#include "command.h"
#include "d_player.h"
#ifdef __cplusplus
extern "C" {
#endif
// console vars
extern consvar_t cv_playername[MAXSPLITSCREENPLAYERS];
extern consvar_t cv_playercolor[MAXSPLITSCREENPLAYERS];
@ -279,4 +283,8 @@ void D_Cheat(INT32 playernum, INT32 cheat, ...);
UINT8 CanChangeSkin(INT32 playernum);
boolean CanChangeSkinWhilePlaying(INT32 playernum);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -17,6 +17,10 @@
#include "d_clisrv.h"
#include "w_wad.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
SF_FILE,
@ -162,4 +166,8 @@ void CURLGetFile(void);
HTTP_login * CURLGetLogin (const char *url, HTTP_login ***return_prev_next);
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __D_NETFIL__

View file

@ -32,6 +32,10 @@
// the player struct stores a waypoint for racing
#include "k_waypoint.h"
#ifdef __cplusplus
extern "C" {
#endif
// Extra abilities/settings for skins (combinable stuff)
typedef enum
{
@ -657,4 +661,8 @@ struct player_t
#endif
};
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -17,6 +17,10 @@
#ifndef __D_THINK__
#define __D_THINK__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __GNUG__
#pragma interface
#endif
@ -51,4 +55,8 @@ struct thinker_t
INT32 references;
};
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -17,6 +17,10 @@
#include "m_fixed.h"
#include "doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __GNUG__
#pragma interface
#endif
@ -78,4 +82,8 @@ struct ticcmd_t
#pragma pack()
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -13,9 +13,17 @@
#ifndef __DEH_LUA_H__
#define __DEH_LUA_H__
#ifdef __cplusplus
extern "C" {
#endif
boolean LUA_SetLuaAction(void *state, const char *actiontocompare);
const char *LUA_GetActionName(void *action);
void LUA_SetActionByName(void *state, const char *actiontocompare);
size_t LUA_GetActionNumByName(const char *actiontocompare);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -45,6 +45,10 @@
#include "dehacked.h"
#include "doomdef.h" // HWRENDER
#ifdef __cplusplus
extern "C" {
#endif
// Crazy word-reading stuff
/// \todo Put these in a seperate file or something.
mobjtype_t get_mobjtype(const char *word);
@ -87,4 +91,8 @@ void readfollowercategory(MYFILE *f);
preciptype_t get_precip(const char *word);
void readweather(MYFILE *f, INT32 num);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -18,6 +18,10 @@
#include "info.h" // Mobj, state, sprite, etc constants
#include "lua_script.h"
#ifdef __cplusplus
extern "C" {
#endif
// Free slot names
// The crazy word-reading stuff uses these.
extern char *FREE_STATES[NUMSTATEFREESLOTS];
@ -78,4 +82,8 @@ extern struct int_const_s const INT_CONST[];
// Moved to this file because it can't work compile-time otherwise
void DEH_TableCheck(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -15,6 +15,10 @@
#include "m_fixed.h" // for get_number
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
UNDO_NONE = 0x00,
@ -69,5 +73,8 @@ char *myfgets(char *buf, size_t bufsize, MYFILE *f);
char *myhashfgets(char *buf, size_t bufsize, MYFILE *f);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -17,6 +17,10 @@
#include <discord_rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
extern consvar_t cv_discordrp;
extern consvar_t cv_discordstreamer;
extern consvar_t cv_discordasks;
@ -77,4 +81,8 @@ void DRPC_UpdatePresence(void);
#endif // HAVE_DISCORDRPC
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __DISCORD__

View file

@ -26,6 +26,10 @@
#include "taglist.h"
#include "m_fixed.h" // See the mapthing_t scale.
#ifdef __cplusplus
extern "C" {
#endif
//
// Map level types.
// The following data structures define the persistent format
@ -234,4 +238,8 @@ enum
CEILING_SLOPE_THING = 778,
};
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __DOOMDATA__

View file

@ -97,6 +97,10 @@
#include <io.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
//#define NOMD5
// Uncheck this to compile debugging code
@ -746,4 +750,8 @@ extern int compuncommitted;
/// Other karma comeback modes
//#define OTHERKARMAMODES
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __DOOMDEF__

View file

@ -28,6 +28,10 @@
// For lumpnum_t.
#include "w_wad.h"
#ifdef __cplusplus
extern "C" {
#endif
// =============================
// Selected map etc.
// =============================
@ -750,4 +754,8 @@ extern INT32 adminplayers[MAXPLAYERS];
/// \note put these in d_clisrv outright?
#ifdef __cplusplus
} // extern "C"
#endif
#endif //__DOOMSTAT__

View file

@ -19,6 +19,10 @@
#include "d_event.h"
#include "p_mobj.h"
#ifdef __cplusplus
extern "C" {
#endif
//
// FINALE
//
@ -196,4 +200,8 @@ enum
extern UINT8 wipedefs[NUMWIPEDEFS];
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -1,6 +1,10 @@
#ifndef __FASTCMP_H__
#define __FASTCMP_H__
#ifdef __cplusplus
extern "C" {
#endif
// returns false if s != c
// returns true if s == c
FUNCINLINE static ATTRINLINE boolean fasticmp(const char *s, const char *c)
@ -24,4 +28,8 @@ FUNCINLINE static ATTRINLINE boolean fastncmp(const char *s, const char *c, UINT
return !l; // make sure you reached the end
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -8,6 +8,10 @@
#include "d_netfil.h"
#include "k_menu.h" // MAXSTRINGLENGTH
#ifdef __cplusplus
extern "C" {
#endif
extern consvar_t cv_addons_option, cv_addons_folder, cv_addons_md5, cv_addons_showall, cv_addons_search_case, cv_addons_search_type;
/** \brief The filesearch function
@ -93,4 +97,8 @@ void closefilemenu(boolean validsize);
void searchfilemenu(char *tempname);
boolean preparefilemenu(boolean samedepth, boolean replayhut);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __FILESRCH_H__

View file

@ -13,6 +13,10 @@
#ifndef __FONT_H__
#define __FONT_H__
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_FONTS 32
struct font_t
@ -44,4 +48,8 @@ Register a new font, but do not load it yet.
*/
int Font_DumbRegister (const font_t *);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -18,6 +18,10 @@
#include "doomstat.h"
#include "d_event.h"
#ifdef __cplusplus
extern "C" {
#endif
extern UINT8 *demo_p;
// ======================================
@ -203,4 +207,8 @@ boolean G_DemoTitleResponder(event_t *ev);
boolean G_CheckDemoTitleEntry(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __G_DEMO__

View file

@ -20,6 +20,10 @@
#include "g_demo.h"
#include "m_cheat.h" // objectplacing
#ifdef __cplusplus
extern "C" {
#endif
extern char gamedatafilename[64];
extern char timeattackfolder[64];
extern char customversionstring[32];
@ -262,4 +266,8 @@ INT16 G_GetFirstMapOfGametype(UINT8 pgametype);
INT16 G_RandMap(UINT32 tolflags, INT16 pprevmap, UINT8 ignorebuffer, UINT8 maphell, boolean callagainsoon, INT16 *extbuffer);
void G_AddMapToBuffer(INT16 map);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -18,6 +18,10 @@
#include "keys.h"
#include "command.h"
#ifdef __cplusplus
extern "C" {
#endif
// number of total 'button' inputs, include keyboard keys, plus virtual
// keys (mousebuttons and joybuttons becomes keys)
#define NUMKEYS 256
@ -156,4 +160,8 @@ void G_CopyControls(INT32 (*setupcontrols)[MAXINPUTMAPPING], INT32 (*fromcontrol
void G_SaveKeySetting(FILE *f, INT32 (*fromcontrolsa)[MAXINPUTMAPPING], INT32 (*fromcontrolsb)[MAXINPUTMAPPING], INT32 (*fromcontrolsc)[MAXINPUTMAPPING], INT32 (*fromcontrolsd)[MAXINPUTMAPPING]);
INT32 G_CheckDoubleUsage(INT32 keynum, INT32 playernum, boolean modify);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -15,6 +15,10 @@
#include "doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
// the current state of the game
typedef enum
{
@ -58,4 +62,8 @@ extern UINT8 titlemapinaction;
extern UINT8 ultimatemode; // was sk_insane
extern gameaction_t gameaction;
#ifdef __cplusplus
} // extern "C"
#endif
#endif //__G_STATE__

View file

@ -16,6 +16,10 @@
#include "hw_dll.h"
#include "hws_data.h"
#ifdef __cplusplus
extern "C" {
#endif
#if defined (HAVE_SDL) || !defined (HWD)
EXPORT void HWRAPI(Shutdown) (void);
#endif
@ -74,4 +78,8 @@ extern struct hardware3ds_s hw3ds_driver;
#endif // _CREATE_DLL_
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __HW_3DS_DRV_H__

View file

@ -17,6 +17,10 @@
//#include "../s_sound.h"
//#include "../p_mobj.h"
#ifdef __cplusplus
extern "C" {
#endif
// Default sound mode (original stereo mode)
enum
{
@ -95,4 +99,8 @@ void HW3S_FreeSfx(sfxinfo_t *sfx);
INT32 S_AdjustSoundParams(const mobj_t *listener, const mobj_t *source,
INT32 *vol, INT32 *sep, INT32 *pitch, sfxinfo_t *sfxinfo);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __HW3_SOUND_H__

View file

@ -16,6 +16,10 @@
#include "hw_data.h"
#include "hw_drv.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
FSurfaceInfo surf;// surf also has its own polyflags for some reason, but it seems unused
@ -33,4 +37,8 @@ void HWR_SetCurrentTexture(GLMipmap_t *texture);
void HWR_ProcessPolygon(FSurfaceInfo *pSurf, FOutVector *pOutVerts, FUINT iNumPts, FBITFIELD PolyFlags, int shader, boolean horizonSpecial);
void HWR_RenderBatches(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -7,11 +7,18 @@
*
*/
#ifndef __HARDWARE_HW_CLIP_H__
#define __HARDWARE_HW_CLIP_H__
// OpenGL BSP clipping
#include "../doomdef.h"
#include "../tables.h"
#include "../doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
//#define HAVE_SPHEREFRUSTRUM // enable if you want gld_SphereInFrustum and related code
boolean gld_clipper_SafeCheckRange(angle_t startAngle, angle_t endAngle);
@ -22,3 +29,9 @@ angle_t gld_FrustumAngle(angle_t tiltangle);
void gld_FrustrumSetup(void);
boolean gld_SphereInFrustum(float x, float y, float z, float radius);
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __HARDWARE_HW_CLIP_H__

View file

@ -22,6 +22,10 @@
#include "../doomdef.h"
#include "../screen.h"
#ifdef __cplusplus
extern "C" {
#endif
// ==========================================================================
// TEXTURE INFO
// ==========================================================================
@ -86,4 +90,8 @@ struct GLPatch_s
};
typedef struct GLPatch_s GLPatch_t;
#ifdef __cplusplus
} // extern "C"
#endif
#endif //_HWR_DATA_

View file

@ -15,6 +15,10 @@
#include "../doomtype.h"
#include "../r_defs.h"
#ifdef __cplusplus
extern "C" {
#endif
#define ZCLIP_PLANE 4.0f // Used for the actual game drawing
#define NZCLIP_PLANE 0.9f // Seems to be only used for the HUD and screen textures
@ -330,4 +334,8 @@ enum hwdfiltermode
HWD_SET_TEXTUREFILTER_MIXED3,
};
#ifdef __cplusplus
} // extern "C"
#endif
#endif //_HWR_DEFS_

View file

@ -12,6 +12,10 @@
#ifndef __HWR_DLL_H__
#define __HWR_DLL_H__
#ifdef __cplusplus
extern "C" {
#endif
// Function declaration for exports from the DLL :
// EXPORT <return-type> HWRAPI(<function-name>) (<arguments>);
// If _CREATE_DLL_ is defined the above declaration translates to :
@ -56,4 +60,8 @@ void _init();
void _fini();
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -21,6 +21,10 @@
#include "hw_dll.h"
#ifdef __cplusplus
extern "C" {
#endif
// ==========================================================================
// STANDARD DLL EXPORTS
// ==========================================================================
@ -129,4 +133,8 @@ extern struct hwdriver_s hwdriver;
#endif //not defined _CREATE_DLL_
#ifdef __cplusplus
} // extern "C"
#endif
#endif //__HWR_DRV_H__

View file

@ -19,6 +19,10 @@
#include "../r_defs.h"
#include "../p_setup.h"
#ifdef __cplusplus
extern "C" {
#endif
// the original aspect ratio of Doom graphics isn't square
#define ORIGINAL_ASPECT (320.0f/200.0f)
@ -143,4 +147,8 @@ void HWR_SetPalette(RGBA_t *palette);
extern INT32 patchformat;
extern INT32 textureformat;
#ifdef __cplusplus
} // extern "C"
#endif
#endif //_HW_GLOB_

View file

@ -16,6 +16,10 @@
#include "hw_glob.h"
#include "hw_defs.h"
#ifdef __cplusplus
extern "C" {
#endif
#define NUMLIGHTFREESLOTS 32 // Free light slots (for SOCs)
#ifdef ALAM_LIGHTING
@ -91,4 +95,9 @@ typedef enum
extern light_t lspr[NUMLIGHTS];
extern light_t *t_lspr[NUMSPRITES];
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -20,6 +20,10 @@
#include "../d_player.h"
#include "../r_defs.h"
#ifdef __cplusplus
extern "C" {
#endif
// Startup & Shutdown the hardware mode renderer
void HWR_Startup(void);
void HWR_Switch(void);
@ -150,4 +154,8 @@ extern boolean gl_maptexturesloaded;
extern boolean gl_sessioncommandsadded;
extern boolean gl_shadersavailable;
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -17,6 +17,10 @@
#include "hw_glob.h"
#include "hw_model.h"
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_MSC_VER)
#pragma pack()
#endif
@ -46,4 +50,8 @@ boolean HWR_DrawModel(gl_vissprite_t *spr);
#define PLAYERMODELPREFIX "PLAYER"
#ifdef __cplusplus
} // extern "C"
#endif
#endif // _HW_MD2_H_

View file

@ -13,7 +13,15 @@
#include "hw_model.h"
#include "../doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
// Load the Model
model_t *MD2_LoadModel(const char *fileName, int ztag, boolean useFloat);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -13,7 +13,15 @@
#include "hw_model.h"
#include "../doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
// Load the Model
model_t *MD3_LoadModel(const char *fileName, int ztag, boolean useFloat);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -12,6 +12,10 @@
#include "../doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
float x, y, z;
@ -132,4 +136,8 @@ void CreateVBOTiny(mesh_t *mesh, tinyframe_t *frame);
void CreateVBO(mesh_t *mesh, mdlframe_t *frame);
void DeleteVBOs(model_t *model);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -12,6 +12,10 @@
#ifndef __HWS_DATA_H__
#define __HWS_DATA_H__
#ifdef __cplusplus
extern "C" {
#endif
#define NORMAL_SEP 128
// abuse?
@ -113,4 +117,8 @@ typedef struct snddev_s
#endif
} snddev_t;
#ifdef __cplusplus
} // extern "C"
#endif
#endif //__HWS_DATA_H__

View file

@ -47,6 +47,10 @@
#include "../../doomdef.h"
#include "../hw_drv.h"
#ifdef __cplusplus
extern "C" {
#endif
// ==========================================================================
// DEFINITIONS
// ==========================================================================
@ -138,4 +142,8 @@ typedef enum
GLF_NOTEXENV = 0x02,
} oglflags_t;
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -9,6 +9,10 @@
#ifndef _R_VBO_H_
#define _R_VBO_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
float x, y, z; // Vertex
@ -49,4 +53,8 @@ typedef struct
unsigned char r, g, b, a; // Color
} vbo64_t;
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -10,6 +10,10 @@
#ifndef _U_LIST_H_
#define _U_LIST_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef struct listitem_s
{
struct listitem_s *next;
@ -26,4 +30,8 @@ void ListRemoveNoFree(void *pItem, listitem_t **itemHead);
unsigned int ListGetCount(void *itemHead);
listitem_t *ListGetByIndex(void *itemHead, unsigned int index);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -19,6 +19,10 @@
#include "r_defs.h"
#include "font.h"
#ifdef __cplusplus
extern "C" {
#endif
//------------------------------------
// heads up font
//------------------------------------
@ -152,4 +156,9 @@ void HU_DoCEcho(const char *msg);
// Demo playback info
extern UINT32 hu_demotime;
extern UINT32 hu_demolap;
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -12,6 +12,10 @@
#ifndef __I_ADDRINFO__
#define __I_ADDRINFO__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __GNUG__
#pragma interface
#endif
@ -68,4 +72,8 @@ int I_getaddrinfo(const char *node, const char *service,
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -15,6 +15,10 @@
#include "g_input.h"
#ifdef __cplusplus
extern "C" {
#endif
/*!
\brief -JOYAXISRANGE to +JOYAXISRANGE for each axis
@ -54,4 +58,8 @@ struct JoyType_t
extern JoyType_t Joystick[MAXSPLITSCREENPLAYERS];
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __I_JOY_H__

View file

@ -33,6 +33,10 @@
#define NO_BAN_TIME (time_t)(-1)
#ifdef __cplusplus
extern "C" {
#endif
extern INT16 hardware_MAXPACKETLENGTH;
extern INT32 net_bandwidth; // in byte/s
@ -182,4 +186,8 @@ extern bannednode_t *bannednode;
/// \brief Called by D_SRB2Main to be defined by extern network driver
boolean I_InitNetwork(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -18,6 +18,10 @@
#include "sounds.h"
#include "command.h"
#ifdef __cplusplus
extern "C" {
#endif
// copied from SDL mixer, plus GME
typedef enum {
MU_NONE,
@ -241,4 +245,8 @@ boolean I_FadeSong(UINT8 target_volume, UINT32 ms, void (*callback)(void));
boolean I_FadeOutStopSong(UINT32 ms);
boolean I_FadeInPlaySong(UINT32 ms, boolean looping);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -17,6 +17,10 @@
#include "d_ticcmd.h"
#include "d_event.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __GNUG__
#pragma interface
#endif
@ -361,4 +365,8 @@ void I_RegisterSysCommands(void);
void I_CursedWindowMovement(int xd, int yd);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -13,6 +13,10 @@
#ifndef __I_TCP__
#define __I_TCP__
#ifdef __cplusplus
extern "C" {
#endif
extern UINT16 current_port;
/** \brief The I_InitTcpNetwork function
@ -28,4 +32,8 @@ boolean I_InitTcpNetwork(void);
boolean I_InitTcpDriver(void);
void I_ShutdownTcpDriver(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -14,6 +14,10 @@
#ifndef I_THREADS_H
#define I_THREADS_H
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*I_thread_fn)(void *userdata);
typedef void * I_mutex;
@ -35,5 +39,9 @@ void I_hold_cond (I_cond *, I_mutex);
void I_wake_one_cond (I_cond *);
void I_wake_all_cond (I_cond *);
#ifdef __cplusplus
} // extern "C"
#endif
#endif/*I_THREADS_H*/
#endif/*HAVE_THREADS*/

View file

@ -16,6 +16,10 @@
#include "doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __GNUG__
#pragma interface
#endif
@ -153,4 +157,8 @@ void I_EndRead(void);
UINT32 I_GetRefreshRate(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -19,6 +19,10 @@
#include "sounds.h"
#include "m_fixed.h"
#ifdef __cplusplus
extern "C" {
#endif
// deh_tables.c now has lists for the more named enums! PLEASE keep them up to date!
// For great modding!!
@ -6739,4 +6743,8 @@ void P_BackupTables(void);
void P_ResetData(INT32 flags);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -4,6 +4,10 @@
#include "doomtype.h"
#include "d_player.h"
#ifdef __cplusplus
extern "C" {
#endif
extern struct battleovertime
{
UINT16 enabled; ///< Has this been initalized yet?
@ -31,4 +35,8 @@ void K_SetupMovingCapsule(mapthing_t *mt, mobj_t *mobj);
void K_SpawnPlayerBattleBumpers(player_t *p);
void K_BattleInit(boolean singleplayercontext);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -15,6 +15,10 @@
#include "doomdef.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void(*updateindexfunc)(void *const, const size_t);
struct bheapitem_t
@ -150,4 +154,8 @@ size_t K_BHeapContains(bheap_t *const heap, void *const data, size_t index);
boolean K_BHeapFree(bheap_t *const heap);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -16,6 +16,10 @@
#include "doomdef.h"
#include "doomstat.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
SPOT_NONE = 0,
@ -112,4 +116,8 @@ void K_UpdateBossHealthBar(fixed_t magnitude, tic_t jitterlen);
void K_DeclareWeakspot(mobj_t *spot, spottype_t spottype, UINT16 color, boolean minimap);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -17,6 +17,10 @@
#include "d_player.h"
#include "r_defs.h"
#ifdef __cplusplus
extern "C" {
#endif
// Maximum value of botvars.difficulty
#define MAXBOTDIFFICULTY 13
@ -270,4 +274,8 @@ void K_UpdateBotGameplayVars(player_t *player);
void K_BotItemUsage(player_t *player, ticcmd_t *cmd, INT16 turnamt);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -17,6 +17,10 @@
#include "doomdef.h"
#include "doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
struct brightmapStorage_t
{
// Brightmap storage struct.
@ -46,4 +50,8 @@ void K_InitBrightmapsPwad(INT32 wadNum);
void K_InitBrightmaps(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __K_BRIGHTMAP_H__

View file

@ -4,6 +4,10 @@
#include "doomtype.h"
#include "p_mobj.h"
#ifdef __cplusplus
extern "C" {
#endif
angle_t K_GetCollideAngle(mobj_t *t1, mobj_t *t2);
boolean K_BananaBallhogCollide(mobj_t *t1, mobj_t *t2);
@ -27,4 +31,8 @@ boolean K_SMKIceBlockCollide(mobj_t *t1, mobj_t *t2);
boolean K_PvPTouchDamage(mobj_t *t1, mobj_t *t2);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -15,6 +15,10 @@
#include "doomdef.h"
#include "doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SKIN_RAMP_LENGTH 16
#define DEFAULT_STARTTRANSCOLOR 96
#define NUM_PALETTE_ENTRIES 256
@ -110,4 +114,8 @@ void K_HitlagColormap(UINT8 *dest_colormap);
--------------------------------------------------*/
void K_GenerateKartColormap(UINT8 *dest_colormap, INT32 skinnum, UINT8 color);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -3,6 +3,13 @@
/// \file k_director.h
/// \brief SRB2kart automatic spectator camera.
#ifndef __K_DIRECTOR_H__
#define __K_DIRECTOR_H__
#ifdef __cplusplus
extern "C" {
#endif
extern struct directorinfo
{
tic_t cooldown; // how long has it been since we last switched?
@ -18,4 +25,10 @@ extern struct directorinfo
void K_InitDirector(void);
void K_UpdateDirector(void);
void K_DrawDirectorDebugger(void);
void K_DirectorFollowAttack(player_t *player, mobj_t *inflictor, mobj_t *source);
void K_DirectorFollowAttack(player_t *player, mobj_t *inflictor, mobj_t *source);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __K_DIRECTOR_H__

View file

@ -16,6 +16,10 @@
#include "doomdef.h"
#include "doomstat.h"
#ifdef __cplusplus
extern "C" {
#endif
#define FOLLOWERCOLOR_MATCH UINT16_MAX
#define FOLLOWERCOLOR_OPPOSITE (UINT16_MAX-1)
@ -211,5 +215,8 @@ void K_HandleFollower(player_t *player);
void K_RemoveFollower(player_t *player);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __K_FOLLOWER__

View file

@ -16,6 +16,10 @@
#include "doomdef.h"
#include "doomstat.h"
#ifdef __cplusplus
extern "C" {
#endif
#define GPEVENT_NONE 0
#define GPEVENT_BONUS 1
#define GPEVENT_SPECIAL 2
@ -166,4 +170,8 @@ void K_PlayerLoseLife(player_t *player);
boolean K_CanChangeRules(boolean allowdemos);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -9,12 +9,16 @@
/// \file k_hud.h
/// \brief HUD drawing functions exclusive to Kart
#ifndef __K_HUD__
#define __K_HUD__
#include "doomtype.h"
#include "doomstat.h"
#include "hu_stuff.h"
#ifndef __K_HUD__
#define __K_HUD__
#ifdef __cplusplus
extern "C" {
#endif
#define RINGANIM_NUMFRAMES 10
#define RINGANIM_DELAYMAX 5
@ -43,4 +47,8 @@ void K_DrawLikeMapThumbnail(INT32 x, INT32 y, INT32 width, UINT32 flags, patch_t
extern patch_t *kp_facehighlight[8];
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -10,6 +10,10 @@
#include "d_player.h" // Need for player_t
#include "command.h" // Need for player_t
#ifdef __cplusplus
extern "C" {
#endif
#define KART_FULLTURN 800
/*
@ -193,5 +197,9 @@ fixed_t K_ItemScaleForPlayer(player_t *player);
void K_SetItemOut(player_t *player);
void K_UnsetItemOut(player_t *player);
#ifdef __cplusplus
} // extern "C"
#endif
// =========================================================================
#endif // __K_KART__

View file

@ -24,6 +24,10 @@
#include "i_threads.h"
#include "mserv.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SERVERLISTDEBUG
// flags for items in the menu
@ -1195,5 +1199,8 @@ boolean M_StatisticsInputs(INT32 ch);
NULL\
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif //__K_MENU__

View file

@ -2,6 +2,10 @@
#ifndef k_objects_H
#define k_objects_H
#ifdef __cplusplus
extern "C" {
#endif
/* Hyudoro */
void Obj_InitHyudoroCenter(mobj_t *center, mobj_t *master);
void Obj_HyudoroDeploy(mobj_t *master);
@ -69,4 +73,8 @@ void Obj_UFOPieceRemoved(mobj_t *piece);
mobj_t *Obj_CreateSpecialUFO(void);
UINT32 K_GetSpecialUFODistance(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif/*k_objects_H*/

View file

@ -15,6 +15,10 @@
#include "doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
// function pointer for returning a node's connected node data
// should return a pointer to an array of pointers to the data, as arguments takes a node's data and a pointer that the
// number of connected nodes should be placed into
@ -84,4 +88,8 @@ struct pathfindsetup_t {
--------------------------------------------------*/
boolean K_PathfindAStar(path_t *const path, pathfindsetup_t *const pathfindsetup);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -22,6 +22,10 @@
#include "g_game.h" // game CVs
#include "k_follower.h" // followers
#ifdef __cplusplus
extern "C" {
#endif
// We have to redefine this because somehow including r_skins.h causes a redefinition of node_t since that's used for both net nodes and BSP nodes too......
// And honestly I don't wanna refactor that.
#define SKINNAMESIZE 16
@ -152,4 +156,8 @@ SINT8 PR_ProfileUsedBy(profile_t *p);
profile_t *PR_GetPlayerProfile(player_t *player);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -15,6 +15,10 @@
#include "doomdef.h"
#include "d_player.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
PWRLV_DISABLED = -1,
@ -47,4 +51,8 @@ void K_CashInPowerLevels(void);
void K_SetPowerLevelScrambles(SINT8 powertype);
void K_PlayerForfeit(UINT8 playernum, boolean nopointloss);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -14,6 +14,10 @@
#include "r_defs.h"
#ifdef __cplusplus
extern "C" {
#endif
extern line_t *finishBeamLine;
#define FINISHLINEBEAM_SPACING (48*mapobjectscale)
@ -66,4 +70,8 @@ boolean K_GenerateFinishBeamLine(void);
void K_RunFinishLineBeam(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -15,6 +15,10 @@
#include "k_waypoint.h"
#include "d_player.h"
#ifdef __cplusplus
extern "C" {
#endif
#define RESPAWN_DIST 1024
#define RESPAWN_TIME 48
#define RESPAWNST_NONE 0x00
@ -98,4 +102,8 @@ size_t K_NextRespawnWaypointIndex(waypoint_t *waypoint);
void K_RespawnChecker(player_t *player);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -16,6 +16,10 @@
#include "doomtype.h"
#include "d_player.h"
#ifdef __cplusplus
extern "C" {
#endif
#define ROULETTE_SPACING (36 << FRACBITS)
#define ROULETTE_SPACING_SPLITSCREEN (16 << FRACBITS)
@ -165,5 +169,8 @@ fixed_t K_GetRouletteOffset(itemroulette_t *const roulette, fixed_t renderDelta)
void K_KartItemRoulette(player_t *const player, ticcmd_t *cmd);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __K_ROULETTE_H__

View file

@ -16,6 +16,10 @@
#include "doomdef.h"
#include "doomstat.h"
#ifdef __cplusplus
extern "C" {
#endif
extern struct specialStage
{
boolean active; ///< If true, then we are in a special stage
@ -51,5 +55,8 @@ void K_InitSpecialStage(void);
void K_TickSpecialStage(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -20,6 +20,10 @@
#include "m_fixed.h"
#include "p_mobj.h"
#ifdef __cplusplus
extern "C" {
#endif
#define TERRAIN_NAME_LEN 32
struct t_splash_t
@ -565,4 +569,8 @@ void K_UpdateTerrainOverlay(mobj_t *mo);
void K_InitTerrain(UINT16 wadNum);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __K_TERRAIN_H__

View file

@ -18,6 +18,10 @@
#include "p_mobj.h"
#include "k_pathfind.h"
#ifdef __cplusplus
extern "C" {
#endif
#define DEFAULT_WAYPOINT_RADIUS (384)
struct waypoint_t
@ -419,4 +423,8 @@ void K_ClearWaypoints(void);
void K_AdjustWaypointsParameters (void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -13,6 +13,10 @@
#ifndef __KEYS_H__
#define __KEYS_H__
#ifdef __cplusplus
extern "C" {
#endif
// These are the key codes as posted by the keyboard handler,
// ascii codes are 0->127,
// scancodes are 0x80 + 0->127
@ -94,4 +98,8 @@
#define KEY_OPENBRACKETS
#define KEY_CLOSEBRACKETS
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -10,6 +10,9 @@
/// \file lua_hook.h
/// \brief hooks for Lua scripting
#ifndef __LUA_HOOK_H__
#define __LUA_HOOK_H__
#include "r_defs.h"
#include "d_player.h"
#include "s_sound.h"
@ -17,6 +20,10 @@
#include "lua_hudlib_drawlist.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
Do you know what an 'X Macro' is? Such a macro is called over each element of
a list and expands the input. I use it for the hook lists because both an enum
@ -143,3 +150,9 @@ int LUA_HookViewpointSwitch(player_t *player, player_t *newdisplayplayer, boole
int LUA_HookSeenPlayer(player_t *player, player_t *seenfriend);
int LUA_HookShouldJingleContinue(player_t *, const char *musname);
int LUA_HookMusicChange(const char *oldname, struct MusicChange *);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __LUA_HOOK_H__

View file

@ -15,6 +15,10 @@
#include "lua_hudlib_drawlist.h"
#ifdef __cplusplus
extern "C" {
#endif
enum hud {
hud_stagetitle = 0,
hud_textspectator,
@ -49,4 +53,8 @@ boolean LUA_HudEnabled(enum hud option);
void LUA_SetHudHook(int hook, huddrawlist_h list);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __LUA_HUD_H__

View file

@ -9,6 +9,12 @@
//-----------------------------------------------------------------------------
/// \file lua_libs.h
/// \brief libraries for Lua scripting
#ifndef __LUA_LIBS_H__
#define __LUA_LIBS_H__
#ifdef __cplusplus
extern "C" {
#endif
extern lua_State *gL;
@ -108,3 +114,9 @@ int LUA_TagLib(lua_State *L);
int LUA_PolyObjLib(lua_State *L);
int LUA_BlockmapLib(lua_State *L);
int LUA_HudLib(lua_State *L);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __LUA_LIBS_H__

View file

@ -23,6 +23,10 @@
#include "blua/lualib.h"
#include "blua/lauxlib.h"
#ifdef __cplusplus
extern "C" {
#endif
#define lua_optboolean(L, i) (!lua_isnoneornil(L, i) && lua_toboolean(L, i))
#define lua_opttrueboolean(L, i) (lua_isnoneornil(L, i) || lua_toboolean(L, i))
@ -140,4 +144,8 @@ void COM_Lua_f(void);
#define INLEVEL if (! ISINLEVEL)\
return luaL_error(L, "This can only be used in a level!");
#ifdef __cplusplus
} // extern "C"
#endif
#endif/*LUA_SCRIPT_H*/

View file

@ -13,6 +13,10 @@
#define LZF_H
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
/***********************************************************************
**
** lzf -- an extremely fast/free compression/decompression-method
@ -71,5 +75,9 @@ size_t
lzf_decompress (const void *const in_data, size_t in_len,
void *out_data, size_t out_len);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -16,6 +16,10 @@
#include "doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
// Flags for AA trees.
#define AATREE_ZUSER 1 // Treat values as z_zone-allocated blocks and set their user fields
@ -27,4 +31,8 @@ void M_AATreeSet(aatree_t *aatree, INT32 key, void* value);
void *M_AATreeGet(aatree_t *aatree, INT32 key);
void M_AATreeIterate(aatree_t *aatree, aatree_iter_t callback);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -17,6 +17,10 @@
#include "command.h"
#include "screen.h"
#ifdef __cplusplus
extern "C" {
#endif
#if NUMSCREENS > 2
#define HAVE_ANIGIF
#endif
@ -29,4 +33,8 @@ INT32 GIF_close(void);
extern consvar_t cv_gif_optimize, cv_gif_downscale, cv_gif_dynamicdelay, cv_gif_localcolortable;
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -14,6 +14,10 @@
#ifndef __M_ARGV__
#define __M_ARGV__
#ifdef __cplusplus
extern "C" {
#endif
//
// MISC
//
@ -39,4 +43,8 @@ const char *M_GetNextParm(void);
// Finds and loads a response file (@moreargs.txt)
void M_FindResponseFile(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif //__M_ARGV__

View file

@ -16,6 +16,10 @@
#include "m_fixed.h"
#ifdef __cplusplus
extern "C" {
#endif
/** \brief Bounding box coordinate storage
*/
@ -34,4 +38,8 @@ void M_AddToBox(fixed_t *box, fixed_t x, fixed_t y);
boolean M_PointInBox(fixed_t *box, fixed_t x, fixed_t y);
boolean M_CircleTouchBox(fixed_t *box, fixed_t circlex, fixed_t circley, fixed_t circleradius);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -19,6 +19,10 @@
#include "p_mobj.h"
#include "command.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
CHEAT_NOCLIP,
CHEAT_GOD,
@ -83,4 +87,8 @@ void Command_CauseCfail_f(void);
void Command_Dumplua_f(void);
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -10,8 +10,15 @@
/// \file m_cond.h
/// \brief Unlockable condition system for SRB2 version 2.1
#ifndef __M_COND_H__
#define __M_COND_H__
#include "doomdef.h"
#ifdef __cplusplus
extern "C" {
#endif
// --------
// Typedefs
// --------
@ -234,3 +241,9 @@ INT32 M_EmblemSkinNum(emblem_t *emblem);
UINT16 M_EmblemMapNum(emblem_t *emblem);
#define M_Achieved(a) ((a) >= MAXCONDITIONSETS || gamedata->achieved[a])
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __M_COND_H__

View file

@ -25,6 +25,10 @@
#ifndef M_DLLIST_H__
#define M_DLLIST_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _MSC_VER
#pragma warning(disable : 4706)
#endif
@ -54,6 +58,10 @@ FUNCINLINE static ATTRINLINE void M_DLListRemove(mdllistitem_t *item)
next->prev = prev;
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif
// EOF

View file

@ -15,6 +15,10 @@
#include "doomtype.h"
#include "m_fixed.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
EASE_LINEAR = 0,
@ -98,4 +102,9 @@ EASINGFUNC(OutBackParameterized) /* Easing_OutBackParameterized */
EASINGFUNC(InOutBackParameterized) /* Easing_InOutBackParameterized */
#undef EASINGFUNC
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -20,6 +20,10 @@
#include <stdlib.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*!
\brief bits of the fraction
*/
@ -413,4 +417,8 @@ void FM_MultMatrix(matrix_t *dest, const matrix_t *multme);
void FM_Translate(matrix_t *dest, fixed_t x, fixed_t y, fixed_t z);
void FM_Scale(matrix_t *dest, fixed_t x, fixed_t y, fixed_t z);
#ifdef __cplusplus
} // extern "C"
#endif
#endif //m_fixed.h

View file

@ -21,6 +21,10 @@
#include "d_event.h" // Screenshot responder
#include "command.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
MM_OFF = 0,
MM_APNG,
@ -140,4 +144,8 @@ FUNCMATH UINT8 M_CountBits(UINT32 num, UINT8 size);
#include "w_wad.h"
extern char configfile[MAX_WADPATH];
#ifdef __cplusplus
} // extern "C"
#endif
#endif

View file

@ -16,6 +16,10 @@
#include "lua_script.h"
#include "p_local.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
PS_OFF = 0,
@ -61,4 +65,8 @@ void PS_ResetBotInfo(void);
void M_DrawPerfStats(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif

Some files were not shown because too many files have changed in this diff Show more