#include "../../../shared/ufotypes.h"
#include "../../../common/unzip.h"
#include "../../../common/mem.h"
#include "../../../common/filesys.h"
#include "../../../shared/shared.h"
#include "../../../shared/mathlib.h"
#include "../../../shared/defines.h"
#include "../../../shared/typedefs.h"
#include "../../../shared/byte.h"
Go to the source code of this file.
Data Structures | |
struct | mapConfig_s |
struct | threadstate_s |
Defines | |
#define | SYS_VRB 0 |
#define | SYS_STD 1 |
#define | SYS_WRN 2 |
#define | SYS_ERR 3 |
Typedefs | |
typedef void struct mapConfig_s | mapConfig_t |
typedef struct threadstate_s | threadstate_t |
Enumerations | |
enum | verbosityLevel_t { VERB_SILENT_EXCEPT_ERROR, VERB_CHECK, VERB_MAPNAME, VERB_LESS, VERB_NORMAL, VERB_EXTRA, VERB_DUMP, VERB_NUM } |
verbosity levels for use in calls to Verb_Printf and on the command line -v <int> More... | |
Functions | |
qboolean | AbortPrint (const verbosityLevel_t importance) |
return nonzero if printing should be aborted based on the command line verbosity level and the importance of the message | |
void | Verb_Printf (const verbosityLevel_t importance, const char *format,...) __attribute__((format(printf |
void | ThreadLock (void) |
Lock the shared data by the calling thread. | |
void | ThreadUnlock (void) |
Release the lock on the shared data. | |
void | RunThreadsOn (void(*func)(unsigned int), unsigned int workcount, qboolean progress, const char *id) |
void | RunSingleThreadOn (void(*func)(unsigned int), unsigned int workcount, qboolean progress, const char *id) |
void | Sys_Error (const char *error,...) __attribute__((noreturn |
void | format (printf, 1, 2))) |
void | Com_Printf (const char *format,...) __attribute__((format(printf |
Variables | |
int | errno |
mapConfig_t | config |
char | baseFilename [MAX_OSPATH] |
threadstate_t | threadstate |
memPool_t * | com_genericPool |
memPool_t * | com_fileSysPool |
Definition in file shared.h.
typedef void struct mapConfig_s mapConfig_t |
typedef struct threadstate_s threadstate_t |
enum verbosityLevel_t |
verbosity levels for use in calls to Verb_Printf and on the command line -v <int>
qboolean AbortPrint | ( | const verbosityLevel_t | msgVerbLevel | ) |
return nonzero if printing should be aborted based on the command line verbosity level and the importance of the message
msgVerbLevel | insignificance of the message. Larger numbers mean the message is less important. The message will first be printed if the msgVerbLevel is equal to the config.verbosity. |
Definition at line 199 of file ufo2map.c.
References config.
Referenced by Check_Printf(), and Verb_Printf().
void Com_Printf | ( | const char * | format, | |
... | ||||
) |
void format | ( | printf | , | |
1 | , | |||
2 | ||||
) |
void RunSingleThreadOn | ( | void(*)(unsigned int) | func, | |
unsigned int | workcount, | |||
qboolean | progress, | |||
const char * | id | |||
) |
Referenced by DoRouting(), and ProcessWorldModel().
void RunThreadsOn | ( | void(*)(unsigned int) | func, | |
unsigned int | workcount, | |||
qboolean | progress, | |||
const char * | id | |||
) |
Referenced by LightWorld(), and RunSingleThreadOn().
void Sys_Error | ( | const char * | error, | |
... | ||||
) |
void ThreadLock | ( | void | ) |
Lock the shared data by the calling thread.
Definition at line 112 of file threads.c.
References lock, Sys_Error(), and threadstate.
Referenced by FinalLightFace(), and GetThreadWork().
void ThreadUnlock | ( | void | ) |
Release the lock on the shared data.
Definition at line 126 of file threads.c.
References lock, Sys_Error(), and threadstate.
Referenced by FinalLightFace(), and GetThreadWork().
void Verb_Printf | ( | const verbosityLevel_t | importance, | |
const char * | format, | |||
... | ||||
) |
Referenced by AddScriptToStack(), ASE_KeyMAP_DIFFUSE(), ASE_Load(), BrushBSP(), BrushContents(), BuildLights(), BuildNodeChildren(), BuildTree_r(), CalcLightinfoVectors(), CalcTextureReflectivity(), Check_Stats(), CheckConnectionsThread(), ChopBrushes(), ConstructLevelNodes_r(), CreateBrushWindings(), EmitDrawNode_r(), EmitLeaf(), EndBSPFile(), FindPortalSide(), FixTjuncs(), LeafNode(), LoadMapFile(), main(), MakeBspBrushList(), MakeFaces(), MarkVisibleSides(), ParseBrush(), ParseEntities(), ProcessLevel(), ProcessModels(), PruneNodes(), RunThreadsOn(), SplitBrush(), SplitBrushList(), U2M_Parameter(), ufo_jpg_fill_input_buffer(), ufo_jpg_skip_input_data(), WriteBSP(), WriteBSPBrushMap(), and WriteMapFile().
char baseFilename[MAX_OSPATH] |
This is used for extra file output functions
Definition at line 62 of file ufo2map.c.
Referenced by DoRouting(), and main().
Definition at line 64 of file common.c.
Referenced by FS_AddGameDirectory(), FS_BuildFileList(), FS_CopyFile(), FS_GetMaps(), FS_ListFiles(), FS_LoadFile(), FS_LoadPackFile(), FS_Shutdown(), and TEST_Init().
Definition at line 65 of file common.c.
Referenced by allocate_element(), AllocInventoryMemory(), CL_ParseCustomSkin(), CL_ParseMapDefinition(), Com_ParseTerrain(), Com_ParseUGVs(), FreeAllInventory(), Key_SetBinding(), new_dbuffer(), SV_LoadModelMinsMaxs(), TEST_Init(), and UI_ResetData().
int errno |
Referenced by errfile(), fileerror(), io_readline(), mxml_fd_read(), mxmlIndexNew(), NET_SocketSetNonBlocking(), NET_Wait(), os_pushresult(), pushresult(), Sys_Mkdir(), and Sys_Sleep().
Definition at line 29 of file threads.c.
Referenced by AllocBrush(), AllocPortal(), AllocWinding(), BuildTree_r(), FreeBrush(), FreePortal(), FreeTree_r(), FreeWinding(), GetThreadWork(), main(), RunSingleThreadOn(), RunThreads(), RunThreadsOn(), SelectSplitSide(), ThreadLock(), ThreadUnlock(), and U2M_Parameter().