Browse Source

Per file basis use of extern C

pull/714/head
Joel Falcou 6 years ago committed by Anders Jenbo
parent
commit
c4223d4c29
  1. 8
      Source/appfat.h
  2. 8
      Source/automap.h
  3. 8
      Source/capture.h
  4. 8
      Source/codec.h
  5. 8
      Source/control.h
  6. 8
      Source/cursor.h
  7. 8
      Source/dead.h
  8. 8
      Source/debug.h
  9. 8
      Source/diablo.h
  10. 8
      Source/doom.h
  11. 8
      Source/drlg_l1.h
  12. 8
      Source/drlg_l2.h
  13. 8
      Source/drlg_l3.h
  14. 8
      Source/drlg_l4.h
  15. 8
      Source/dthread.h
  16. 8
      Source/dx.h
  17. 8
      Source/effects.h
  18. 8
      Source/encrypt.h
  19. 8
      Source/engine.h
  20. 8
      Source/error.h
  21. 8
      Source/gamemenu.h
  22. 8
      Source/gendung.h
  23. 8
      Source/gmenu.h
  24. 8
      Source/help.h
  25. 8
      Source/init.h
  26. 8
      Source/interfac.h
  27. 8
      Source/inv.h
  28. 8
      Source/itemdat.h
  29. 8
      Source/items.h
  30. 8
      Source/lighting.h
  31. 8
      Source/loadsave.h
  32. 8
      Source/mainmenu.h
  33. 8
      Source/minitext.h
  34. 8
      Source/misdat.h
  35. 8
      Source/missiles.h
  36. 8
      Source/monstdat.h
  37. 8
      Source/monster.h
  38. 8
      Source/movie.h
  39. 8
      Source/mpqapi.h
  40. 8
      Source/msg.h
  41. 8
      Source/multi.h
  42. 8
      Source/nthread.h
  43. 8
      Source/objdat.h
  44. 8
      Source/objects.h
  45. 8
      Source/pack.h
  46. 8
      Source/palette.h
  47. 8
      Source/path.h
  48. 8
      Source/pfile.h
  49. 8
      Source/player.h
  50. 8
      Source/plrmsg.h
  51. 8
      Source/portal.h
  52. 8
      Source/quests.h
  53. 8
      Source/render.h
  54. 8
      Source/restrict.h
  55. 8
      Source/scrollrt.h
  56. 8
      Source/setmaps.h
  57. 8
      Source/sha.h
  58. 8
      Source/sound.h
  59. 8
      Source/spelldat.h
  60. 8
      Source/spells.h
  61. 8
      Source/stores.h
  62. 8
      Source/sync.h
  63. 9
      Source/textdat.h
  64. 9
      Source/themes.h
  65. 9
      Source/tmsg.h
  66. 9
      Source/town.h
  67. 8
      Source/towners.h
  68. 8
      Source/track.h
  69. 9
      Source/trigs.h
  70. 8
      Source/wave.h

8
Source/appfat.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern char sz_error_buf[256];
extern BOOL terminating;
extern int cleanup_thread_id;
@ -32,6 +36,10 @@ void DiskFreeDlg(char *error);
void InsertCDDlg(const char *fileName);
void DirErrorDlg(char *error);
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __APPFAT_H__ */

8
Source/automap.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern WORD automaptype[512];
extern BOOL automapflag;
extern char AmShiftTab[31];
@ -38,6 +42,10 @@ void DrawAutomapText();
void SetAutomapView(int x, int y);
void AutomapZoomReset();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __AUTOMAP_H__ */

8
Source/capture.h

@ -8,8 +8,16 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
void CaptureScreen();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __CAPTURE_H__ */

8
Source/codec.h

@ -8,11 +8,19 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
int codec_decode(BYTE *pbSrcDst, DWORD size, char *pszPassword);
void codec_init_key(int unused, char *pszPassword);
DWORD codec_get_encoded_len(DWORD dwSrcBytes);
void codec_encode(BYTE *pbSrcDst, DWORD size, int size_64, char *pszPassword);
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __CODEC_H__ */

8
Source/control.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BYTE *pDurIcons;
extern BYTE *pChrButtons;
extern BOOL drawhpflag;
@ -139,6 +143,10 @@ extern char *PanBtnStr[8];
extern RECT32 ChrBtnsRect[4];
extern int SpellPages[6][7];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __CONTROL_H__ */

8
Source/cursor.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int cursW;
extern int cursH;
extern int pcursmonst;
@ -39,6 +43,10 @@ void CheckCursMove();
extern const int InvItemWidth[];
extern const int InvItemHeight[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __CURSOR_H__ */

8
Source/dead.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int spurtndx;
extern DeadStruct dead[MAXDEAD];
extern int stonendx;
@ -16,6 +20,10 @@ void InitDead();
void AddDead(int dx, int dy, char dv, int ddir);
void SetDead();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DEAD_H__ */

8
Source/debug.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BYTE *pSquareCel;
extern char dMonsDbg[NUMLEVELS][MAXDUNX][MAXDUNY];
extern char dFlagDbg[NUMLEVELS][MAXDUNX][MAXDUNY];
@ -29,6 +33,10 @@ void GetDebugMonster();
void NextDebugMonster();
#endif
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DEBUG_H__ */

8
Source/diablo.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern SDL_Window *ghMainWnd;
extern DWORD glSeedTbl[NUMLEVELS];
extern int gnLevelTypeTbl[NUMLEVELS];
@ -105,6 +109,10 @@ extern BOOL FriendlyMode;
extern char *spszMsgTbl[4];
extern char *spszMsgHotKeyTbl[4];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DIABLO_H__ */

8
Source/doom.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int doom_quest_time;
extern int doom_stars_drawn;
extern BYTE *pDoomCel;
@ -26,6 +30,10 @@ void doom_init();
void doom_close();
void doom_draw();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DOOM_H__ */

8
Source/drlg_l1.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BYTE L5dungeon[80][80];
extern BYTE L5dflags[DMAXX][DMAXY];
extern BOOL L5setloadflag;
@ -40,6 +44,10 @@ extern const BYTE PWATERIN[];
/* data */
extern BYTE L5ConvTbl[16];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DRLG_L1_H__ */

8
Source/drlg_l2.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int nSx1;
extern int nSy1;
extern int nSx2;
@ -147,6 +151,10 @@ extern BYTE CTRDOOR7[];
extern BYTE CTRDOOR8[];
extern int Patterns[100][10];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DRLG_L2_H__ */

8
Source/drlg_l3.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BOOLEAN lavapool;
extern int abyssx;
extern int lockoutcnt;
@ -63,6 +67,10 @@ extern const BYTE L3XTRA4[4];
extern const BYTE L3XTRA5[4];
extern const BYTE L3ANVIL[244];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DRLG_L3_H__ */

8
Source/drlg_l4.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int diabquad1x;
extern int diabquad1y;
extern int diabquad2x;
@ -51,6 +55,10 @@ extern const BYTE L4PENTA[52];
extern const BYTE L4PENTA2[52];
extern const BYTE L4BTYPES[140];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DRLG_L4_H__ */

8
Source/dthread.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern SDL_threadID glpDThreadId;
extern BOOLEAN dthread_running;
@ -18,6 +22,10 @@ unsigned int dthread_handler(void *data);
void dthread_cleanup();
/* data */
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DTHREAD_H__ */

8
Source/dx.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BYTE *gpBuffer;
extern char gbBackBuf;
extern char gbEmulate;
@ -27,6 +31,10 @@ void PaletteGetEntries(DWORD dwNumEntries, SDL_Color *lpEntries);
void PaletteSetEntries(DWORD dwCount, SDL_Color *lpEntries);
/* data */
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DX_H__ */

8
Source/effects.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int sfxdelay;
extern int sfxdnum;
extern HANDLE sghStream;
@ -39,6 +43,10 @@ void effects_play_sound(char *snd_file);
extern const char MonstSndChar[];
/* data */
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __EFFECTS_H__ */

8
Source/encrypt.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern DWORD hashtable[5][256];
void Decrypt(DWORD *castBlock, DWORD size, DWORD key);
@ -19,6 +23,10 @@ unsigned int PkwareBufferRead(char *buf, unsigned int *size, void *param);
void PkwareBufferWrite(char *buf, unsigned int *size, void *param);
void PkwareDecompress(BYTE *pbInBuff, int recv_size, int dwMaxBytes);
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __ENCRYPT_H__ */

8
Source/engine.h

@ -15,6 +15,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
//offset 0
//pCelBuff->pFrameTable[0]
@ -100,6 +104,10 @@ void PlayInGameMovie(char *pszMovie);
extern const int RndInc;
extern const int RndMult;
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __ENGINE_H__ */

8
Source/error.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern char msgtable[MAX_SEND_STR_LEN];
extern DWORD msgdelay;
extern char msgflag;
@ -20,6 +24,10 @@ void DrawDiabloMsg();
/* data */
extern char *MsgStrings[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __ERROR_H__ */

8
Source/gamemenu.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
void gamemenu_on();
void gamemenu_update_single(TMenuItem *pMenuItems);
void gamemenu_update_multi(TMenuItem *pMenuItems);
@ -37,6 +41,10 @@ extern char *music_toggle_names[];
extern char *sound_toggle_names[];
extern char *color_cycling_toggle_names[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __GAMEMENU_H__ */

8
Source/gendung.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BYTE dungeon[DMAXX][DMAXY];
extern BYTE pdungeon[DMAXX][DMAXY];
extern char dflags[DMAXX][DMAXY];
@ -91,6 +95,10 @@ void DRLG_HoldThemeRooms();
BOOL SkipThemeRoom(int x, int y);
void InitLevels();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __GENDUNG_H__ */

8
Source/gmenu.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BYTE *optbar_cel;
extern BOOLEAN mouseNavigation;
extern BYTE *PentSpin_cel;
@ -45,6 +49,10 @@ void gmenu_slider_steps(TMenuItem *pItem, int dwTicks);
extern const BYTE lfontframe[];
extern const BYTE lfontkern[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __GMENU_H__ */

8
Source/help.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int help_select_line;
extern int dword_634494;
extern BOOL helpflag;
@ -24,6 +28,10 @@ void HelpScrollDown();
/* rdata */
extern const char gszHelpText[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __HELP_H__ */

8
Source/init.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern _SNETVERSIONDATA fileinfo;
extern int gbActive;
extern char diablo_exe_path[MAX_PATH];
@ -38,6 +42,10 @@ extern BOOL was_window_init; /** defined in dx.cpp */
extern char gszVersionNumber[MAX_PATH];
extern char gszProductName[MAX_PATH];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __INIT_H__ */

8
Source/interfac.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int progress_id;
void interface_msg_pump();
@ -23,6 +27,10 @@ void InitCutscene(unsigned int uMsg);
extern const BYTE BarColor[3];
extern const int BarPos[3][2];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __INTERFAC_H__ */

8
Source/inv.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BOOL invflag;
extern BOOL drawsbarflag;
extern const InvXY InvRect[73];
@ -57,6 +61,10 @@ BOOL DropItemBeforeTrig();
extern int AP2x2Tbl[10];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __INV_H__ */

8
Source/itemdat.h

@ -8,11 +8,19 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern ItemDataStruct AllItemsList[];
extern const PLStruct PL_Prefix[];
extern const PLStruct PL_Suffix[];
extern const UItemStruct UniqueItemList[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __ITEMDAT_H__ */

8
Source/items.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int itemactive[MAXITEMS];
extern BOOL uitemflag;
extern int itemavail[MAXITEMS];
@ -142,6 +146,10 @@ extern int ItemInvSnds[];
extern int idoppely;
extern int premiumlvladd[6];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __ITEMS_H__ */

8
Source/lighting.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern LightListStruct VisionList[MAXVISION];
extern BYTE lightactive[MAXLIGHTS];
extern LightListStruct LightList[MAXLIGHTS];
@ -58,6 +62,10 @@ extern BYTE vCrawlTable[23][30];
extern BYTE byte_49463C[18][18];
extern BYTE RadiusAdj[23];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __LIGHTING_H__ */

8
Source/loadsave.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BYTE *tbuff;
void LoadGame(BOOL firstflag);
@ -47,6 +51,10 @@ void SavePortal(int i);
void SaveLevel();
void LoadLevel();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __LOADSAVE_H__ */

8
Source/mainmenu.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern char gszHero[16];
void mainmenu_refresh_music();
@ -33,6 +37,10 @@ void mainmenu_play_intro();
extern int menu_music_track_id;
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __MAINMENU_H__ */

8
Source/minitext.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int qtexty;
extern char *qtextptr;
extern BOOLEAN qtextflag;
@ -30,6 +34,10 @@ extern const BYTE mfontkern[56];
extern int qscroll_spd_tbl[9];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __MINITEXT_H__ */

8
Source/misdat.h

@ -8,9 +8,17 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern MissileData missiledata[];
extern MisFileData misfiledata[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __MISDAT_H__ */

8
Source/missiles.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int missileactive[MAXMISSILES];
extern int missileavail[MAXMISSILES];
extern MissileStruct missile[MAXMISSILES];
@ -157,6 +161,10 @@ void ClearMissileSpot(int mi);
extern int XDirAdd[8];
extern int YDirAdd[8];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __MISSILES_H__ */

8
Source/monstdat.h

@ -8,11 +8,19 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern MonsterData monsterdata[];
extern BYTE MonstConvTbl[];
extern BYTE MonstAvailTbl[];
extern UniqMonstStruct UniqMonst[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __MONSTDAT_H__ */

8
Source/monster.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int MissileFileFlag;
extern int monstkills[MAXMONSTERS];
extern int monstactive[MAXMONSTERS];
@ -191,6 +195,10 @@ extern int rnd60[4];
extern void (*AiProc[])(int i);
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __MONSTER_H__ */

8
Source/movie.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BYTE movie_playing;
extern BOOL loop_movie;
@ -16,6 +20,10 @@ LRESULT MovieWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
/* rdata */
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __MOVIE_H__ */

8
Source/mpqapi.h

@ -10,6 +10,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BYTE mpq_buf[4096];
extern BOOL save_archive_modified;
extern BOOLEAN save_archive_open;
@ -31,6 +35,10 @@ BOOL mpqapi_flush_and_close(const char *pszArchive, BOOL bFree, DWORD dwChar);
/* rdata */
/* data */
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __MPQAPI_H__ */

8
Source/msg.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BOOL deltaload;
extern BYTE gbBufferMsgs;
extern int dwRecCount;
@ -148,6 +152,10 @@ DWORD On_NOVA(TCmd *pCmd, int pnum);
DWORD On_SETSHIELD(TCmd *pCmd, int pnum);
DWORD On_REMSHIELD(TCmd *pCmd, int pnum);
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __MSG_H__ */

8
Source/multi.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BOOLEAN gbSomebodyWonGameKludge;
extern char szPlayerDescript[128];
extern WORD sgwPackPlrOffsetTbl[MAX_PLRS];
@ -62,6 +66,10 @@ void recv_plrinfo(int pnum, TCmdPlrInfoHdr *p, BOOL recv);
extern const int event_types[3];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __MULTI_H__ */

8
Source/nthread.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BYTE sgbNetUpdateRate;
extern DWORD gdwMsgLenTbl[MAX_PLRS];
extern DWORD gdwDeltaBytesSec;
@ -32,6 +36,10 @@ void nthread_ignore_mutex(BOOL bStart);
BOOL nthread_has_500ms_passed(BOOL unused);
/* rdata */
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __NTHREAD_H__ */

8
Source/objdat.h

@ -4,10 +4,18 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int ObjTypeConv[];
extern ObjDataStruct AllObjects[99];
extern char *ObjMasterLoadList[56];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __OBJDAT_H__ */

8
Source/objects.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int trapid;
extern int trapdir;
extern BYTE *pObjCels[40];
@ -165,6 +169,10 @@ extern BYTE shrineavail[NUM_SHRINETYPE];
extern char *StoryBookName[9];
extern int StoryText[3][3];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __OBJECTS_H__ */

8
Source/pack.h

@ -4,11 +4,19 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
void PackPlayer(PkPlayerStruct *pPack, int pnum, BOOL manashield);
void VerifyGoldSeeds(PlayerStruct *pPlayer);
void UnPackPlayer(PkPlayerStruct *pPack, int pnum, BOOL killok);
/* rdata */
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __PACK_H__ */

8
Source/palette.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern SDL_Color logical_palette[256];
extern SDL_Color system_palette[256];
extern SDL_Color orig_palette[256];
@ -34,6 +38,10 @@ BOOL palette_set_color_cycling(BOOL enabled);
extern int gamma_correction;
extern BOOL color_cycling_enabled;
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __PALETTE_H__ */

8
Source/path.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern PATHNODE path_nodes[MAXPATHNODES];
extern int gdwCurPathStep;
extern int gdwCurNodes;
@ -40,6 +44,10 @@ extern const char pathydir[8];
/* data */
extern char path_directions[9];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __PATH_H__ */

8
Source/pfile.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BOOL gbValidSaveFile;
void pfile_init_save_directory();
@ -44,6 +48,10 @@ BYTE *pfile_read(const char *pszName, DWORD *pdwLen);
void pfile_update(BOOL force_save);
/* rdata */
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __PFILE_H__ */

8
Source/player.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int plr_lframe_size;
extern int plr_wframe_size;
extern BYTE plr_gfx_flag;
@ -137,6 +141,10 @@ extern int ExpLvlsTbl[MAXCHARLEVEL];
extern char *ClassStrTbl[];
extern BYTE fix[9];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __PLAYER_H__ */

8
Source/plrmsg.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern _plrmsg plr_msgs[PMSG_COUNT];
void plrmsg_delay(BOOL delay);
@ -19,6 +23,10 @@ void PrintPlrMsg(DWORD x, DWORD y, DWORD width, const char *str, BYTE col);
extern const char text_color_from_player_num[MAX_PLRS + 1];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __PLRMSG_H__ */

8
Source/portal.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern PortalStruct portal[MAXPORTAL];
extern int portalindex;
@ -25,6 +29,10 @@ BOOL PosOkPortal(int lvl, int x, int y);
extern int WarpDropX[MAXPORTAL];
extern int WarpDropY[MAXPORTAL];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __PORTAL_H__ */

8
Source/quests.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int qtopline;
extern BOOL questlog;
extern BYTE *pQLogCel;
@ -54,6 +58,10 @@ extern int QuestGroup2[3];
extern int QuestGroup3[3];
extern int QuestGroup4[2];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __QUESTS_H__ */

8
Source/render.h

@ -3,10 +3,18 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
void RenderTile(BYTE *pBuff);
void world_draw_black_tile(int sx, int sy);
void trans_rect(int sx, int sy, int width, int height);
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __RENDER_H__ */

8
Source/restrict.h

@ -4,8 +4,16 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
void ReadOnlyTest();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __RESTRICT_H__ */

8
Source/scrollrt.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern bool sgbControllerActive;
extern int light_table_index;
extern BYTE *gpBufStart;
@ -35,6 +39,10 @@ void DrawAndBlit();
extern char *szMonModeAssert[18];
extern char *szPlrModeAssert[12];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __SCROLLRT_H__ */

8
Source/setmaps.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
int ObjIndex(int x, int y);
void AddSKingObjs();
void AddSChamObjs();
@ -21,6 +25,10 @@ extern BYTE SkelChamTrans2[8];
extern BYTE SkelChamTrans3[36];
extern char *quest_level_names[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __SETMAPS_H__ */

8
Source/sha.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
#define SHA1HashSize 20
//sha
@ -16,6 +20,10 @@ void SHA1ProcessMessageBlock(SHA1Context *context);
void SHA1Reset(int n);
void SHA1Init(SHA1Context *context);
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __SHA_H__ */

8
Source/sound.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern SoundSample *DSBs[8];
extern BOOLEAN gbSndInited;
extern HMODULE hDsound_dll;
@ -37,6 +41,10 @@ extern BOOLEAN gbSoundOn;
extern BOOLEAN gbDupSounds;
extern char unk_volume[4][2];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __SOUND_H__ */

8
Source/spelldat.h

@ -4,8 +4,16 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern SpellData spelldata[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __SPELLDAT_H__ */

8
Source/spells.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
int GetManaAmount(int id, int sn);
void UseMana(int id, int sn);
BOOL CheckSpell(int id, int sn, char st, BOOL manaonly);
@ -11,6 +15,10 @@ void CastSpell(int id, int spl, int sx, int sy, int dx, int dy, int caster, int
void DoResurrect(int pnum, int rid);
void DoHealOther(int pnum, int rid);
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __SPELLS_H__ */

8
Source/stores.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int stextup;
extern int storenumh;
extern int stextlhold;
@ -138,6 +142,10 @@ void ReleaseStoreBtn();
/* rdata */
extern char *talkname[9];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __STORES_H__ */

8
Source/sync.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern WORD sync_word_6AA708[MAXMONSTERS];
extern int sgnMonsters;
extern WORD sgwLRU[MAXMONSTERS];
@ -19,6 +23,10 @@ DWORD sync_update(int pnum, const BYTE *pbBuf);
void sync_monster(int pnum, const TSyncMonster *p);
void sync_init();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __SYNC_H__ */

9
Source/textdat.h

@ -4,8 +4,17 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern const TextDataStruct alltext[];
extern const DWORD gdwAllTextEntries;
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __TEXTDAT_H__ */

9
Source/themes.h

@ -8,6 +8,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern int numthemes;
extern BOOL armorFlag;
extern BOOL ThemeGoodIn[4];
@ -65,5 +69,10 @@ extern int trm5y[25];
extern int trm3x[9];
extern int trm3y[9];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __THEMES_H__ */

9
Source/tmsg.h

@ -4,10 +4,19 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
int tmsg_get(BYTE *pbMsg, DWORD dwMaxLen);
void tmsg_add(BYTE *pbMsg, BYTE bLen);
void tmsg_start();
void tmsg_cleanup();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __TMSG_H__ */

9
Source/town.h

@ -4,11 +4,20 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
void SetTownMicros();
void T_FillSector(BYTE *P3Tiles, BYTE *pSector, int xi, int yi, int w, int h);
void T_FillTile(BYTE *P3Tiles, int xx, int yy, int t);
void T_Pass3();
void CreateTown(int entry);
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __TOWN_H__ */

8
Source/towners.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern TownerStruct towner[16];
int GetActiveTowner(int t);
@ -43,6 +47,10 @@ void CowSFX(int pnum);
/* data */
extern QuestTalkData Qtalklist[];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __TOWNERS_H__ */

8
Source/track.h

@ -4,10 +4,18 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
void track_process();
void track_repeat_walk(BOOL rep);
BOOL track_isscrolling();
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __TRACK_H__ */

9
Source/trigs.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern BOOL townwarps[3];
extern BOOL trigflag;
extern int numtrigs;
@ -49,5 +53,10 @@ extern int L4DownList[6];
extern int L4TWarpUpList[4];
extern int L4PentaList[33];
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __TRIGS_H__ */

8
Source/wave.h

@ -4,6 +4,10 @@
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
void WCloseFile(HANDLE file);
LONG WGetFileSize(HANDLE hsFile, DWORD *lpFileSizeHigh, const char *FileName);
void WGetFileArchive(HANDLE hsFile, DWORD *retry, const char *FileName);
@ -11,6 +15,10 @@ BOOL WOpenFile(const char *FileName, HANDLE *phsFile, BOOL mayNotExist);
void WReadFile(HANDLE hsFile, LPVOID buf, DWORD to_read, const char *FileName);
int WSetFilePointer(HANDLE file1, int offset, HANDLE file2, int whence);
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __WAVE_H__ */

Loading…
Cancel
Save