mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-04-25 12:29:58 -06:00
- Buildable on OSX and Linux now - Fixed filename casing mismatches - Inicrunch fixes, osx and linux versions, added Makefile Note: gnu's cpp doesn't understand the -Wno-invalid-pp-token flag, the absence of which causes ignorable preprocessing warnings on strings with unmatched quotes.
32 lines
520 B
C
32 lines
520 B
C
typedef unsigned int dword;
|
|
typedef unsigned char byte;
|
|
typedef unsigned short word;
|
|
|
|
#ifndef NULL
|
|
#define NULL 0
|
|
#endif
|
|
|
|
#include <stdarg.h>
|
|
|
|
struct IniProperty // prop
|
|
{
|
|
dword nchProp;
|
|
int cchProp;
|
|
word hashProp;
|
|
dword nchValue;
|
|
int cchValue;
|
|
};
|
|
|
|
struct IniSection // sec
|
|
{
|
|
dword nchSec;
|
|
int cchSec;
|
|
word hashSec;
|
|
int cprop;
|
|
IniProperty *pprop;
|
|
};
|
|
|
|
IniSection *LoadIniFile(char *pszFn, int *pcSections);
|
|
int IniScanf(char *pszBuff, char *pszFmt, ...);
|
|
int VIniScanf(char *pszBuff, char *pszFmt, va_list va);
|