checklib.c File Reference

functions for check.c More...

#include "../common/shared.h"
#include "../ufo2map.h"
#include "checklib.h"
#include "../../../shared/entitiesdef.h"
#include "../bsp.h"
#include "check.h"
Include dependency graph for checklib.c:

Go to the source code of this file.

Functions

void Check_Printf (verbosityLevel_t msgVerbLevel, qboolean change, int entnum, int brushnum, const char *format,...)
 decides wether to proceed with output based on verbosity and ufo2map's mode: check/fix/compile
void Check_InitEntityDefs (void)
void Check_Free (void)
 free the mapbrush_t::nearBrushes, compositeSides and entitiesdef.h stuff.

Detailed Description

functions for check.c

Definition in file checklib.c.


Function Documentation

void Check_Free ( void   ) 
void Check_InitEntityDefs ( void   ) 
Note:
Check_Free calls ED_Free, which frees all outstanding malloc'd space from this function

Definition at line 130 of file checklib.c.

References byte, ED_ERROR, ED_GetLastError(), ED_Parse(), FS_LoadFile(), Mem_Free, numEntityDefs, and Sys_Error().

Referenced by Check_Stats(), and CheckEntities().

void Check_Printf ( verbosityLevel_t  msgVerbLevel,
qboolean  change,
int  entnum,
int  brushnum,
const char *  format,
  ... 
)

decides wether to proceed with output based on verbosity and ufo2map's mode: check/fix/compile

Parameters:
change true if there will an automatic change on -fix
brushnum the brush that the report is about. send NUM_NONE, if the report only regards an entity
entnum the entity the brush is from.send NUM_NONE if the report is a summary, not regarding a specific entity or brush
Note:
for brushnum and entnum send NUM_SAME in multi-call messages to indicate that the message still regards the same brush or entity
the start of a report on a particular item (eg brush) is specially prefixed. The function notes newlines in the previous call, and prefixes this message with a string depending on wether the message indicates a change and the entity and brush number.
if entnum is set to NUM_SAME, then msgVerbLevel is carried over from the previous call.
See also:
Com_Printf, Verb_Printf, DisplayContentFlags

Definition at line 48 of file checklib.c.

References AbortPrint(), config, NUM_NONE, NUM_SAME, PrintMapName(), Q_vsnprintf(), qfalse, qtrue, VERB_MAPNAME, and VERB_NORMAL.

Referenced by Check_BrushIntersection(), Check_ContainedBrushes(), Check_DuplicateBrushPlanes(), Check_EntityWithBrushes(), Check_FindCompositeSides(), Check_SidesOverlap(), CheckBrushes(), CheckEntities(), CheckFillLevelFlags(), CheckLevelFlags(), CheckMapMicro(), CheckMixedFaceContents(), CheckNodraws(), CheckPropagateParserContentFlags(), CheckTexturesBasedOnFlags(), CheckZFighting(), DisplayContentFlags(), and SetImpliedFlags().

Here is the caller graph for this function:


Generated by  doxygen 1.6.2