misc.h | misc.h | |||
---|---|---|---|---|
skipping to change at line 62 | skipping to change at line 62 | |||
extern void HX_zvecfree(char **); | extern void HX_zvecfree(char **); | |||
extern int HX_fsystem(unsigned int, const char *, const char *, ...); | extern int HX_fsystem(unsigned int, const char *, const char *, ...); | |||
extern int HX_vfsystem(unsigned int, const char *, const char *, va_list); | extern int HX_vfsystem(unsigned int, const char *, const char *, va_list); | |||
/* | /* | |||
* RAND.C | * RAND.C | |||
*/ | */ | |||
extern int HX_rand(void); | extern int HX_rand(void); | |||
extern unsigned int HX_irand(unsigned int, unsigned int); | extern unsigned int HX_irand(unsigned int, unsigned int); | |||
#ifdef _WIN32 | ||||
# define MAP_FAILED ((void *)-1) | ||||
# define PROT_NONE 0x0 | ||||
# define PROT_READ 0x1 | ||||
# define PROT_WRITE 0x2 | ||||
# define PROT_EXEC 0x4 | ||||
# define MAP_SHARED 0x1 | ||||
# define MAP_PRIVATE 0x2 | ||||
extern void *mmap(void *, size_t, int, int, int, off_t); | ||||
extern int munmap(void *, size_t); | ||||
#endif | ||||
/* | /* | |||
* INLINE FUNCTIONS | * INLINE FUNCTIONS | |||
*/ | */ | |||
static inline int HX_zveclen(const char **args) | static inline int HX_zveclen(const char **args) | |||
{ | { | |||
int argk = 0; | int argk = 0; | |||
while (*args++ != NULL) | while (*args++ != NULL) | |||
++argk; | ++argk; | |||
return argk; | return argk; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
12 lines changed or deleted | 0 lines changed or added | |||