Commit 8b0998cd authored by NY00123's avatar NY00123 Committed by Richard Gobeille

Use static instead of LUNATIC_EXTERN

parent f02b96a2
......@@ -90,13 +90,10 @@ enum rendmode_t {
# define NEW_MAP_FORMAT
// A marker for LuaJIT C function callbacks, but not merely:
# define LUNATIC_CB ATTRIBUTE((used))
// Used for variables and functions referenced from Lua:
# define LUNATIC_EXTERN ATTRIBUTE((used))
#else
# ifdef NEW_MAP_FORMAT
# error "New map format can only be used with Lunatic"
# endif
# define LUNATIC_EXTERN static
#endif
#define MAXWALLSB ((MAXWALLS>>2)+(MAXWALLS>>3))
......
......@@ -836,7 +836,7 @@ void A_DoGutsDir(int spriteNum, int tileNum, int spawnCnt)
}
#endif
LUNATIC_EXTERN int32_t G_ToggleWallInterpolation(int32_t wallNum, int32_t setInterpolation)
static int32_t G_ToggleWallInterpolation(int32_t wallNum, int32_t setInterpolation)
{
if (setInterpolation)
{
......
......@@ -2114,7 +2114,7 @@ void C_UndefineLevel(int32_t vol, int32_t lev)
map->designertime = 0;
}
LUNATIC_EXTERN int32_t C_SetDefName(const char *name)
static int32_t C_SetDefName(const char *name)
{
clearDefNamePtr();
g_defNamePtr = dup_filename(name);
......@@ -2140,7 +2140,7 @@ void C_FreeProjectile(int32_t j)
}
LUNATIC_EXTERN void C_DefineProjectile(int32_t j, int32_t what, int32_t val)
static void C_DefineProjectile(int32_t j, int32_t what, int32_t val)
{
if (g_tile[j].proj == NULL)
{
......@@ -2315,7 +2315,7 @@ void C_InitQuotes(void)
}
}
LUNATIC_EXTERN void C_SetCfgName(const char *cfgname)
static void C_SetCfgName(const char *cfgname)
{
if (Bstrcmp(g_setupFileName, cfgname) == 0) // no need to do anything if name is the same
return;
......
......@@ -1098,7 +1098,7 @@ static int G_StartTrackSlotWrap(int const volumeNum, int const levelNum)
return 0;
}
LUNATIC_EXTERN void G_ShowView(vec3_t vec, fix16_t a, fix16_t horiz, int sect, int ix1, int iy1, int ix2, int iy2, int unbiasedp)
static void G_ShowView(vec3_t vec, fix16_t a, fix16_t horiz, int sect, int ix1, int iy1, int ix2, int iy2, int unbiasedp)
{
int x1 = min(ix1, ix2);
int x2 = max(ix1, ix2);
......
......@@ -41,7 +41,7 @@ struct dynitem
const int16_t staticval;
};
LUNATIC_EXTERN struct dynitem g_dynTileList[] =
static struct dynitem g_dynTileList[] =
{
{ "ACCESS_ICON", DVPTR(ACCESS_ICON), ACCESS_ICON__STATIC },
{ "ACCESSCARD", DVPTR(ACCESSCARD), ACCESSCARD__STATIC },
......
......@@ -43,7 +43,7 @@ struct dynitem
const int16_t staticval;
};
LUNATIC_EXTERN struct dynitem g_dynSoundList[] =
static struct dynitem g_dynSoundList[] =
{
{ "ALIEN_SWITCH1", DVPTR(ALIEN_SWITCH1), ALIEN_SWITCH1__STATIC },
{ "BIGBANG", DVPTR(BIGBANG), BIGBANG__STATIC },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment