Small compilation fixes - pointer cleanup
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2709 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -94,11 +94,14 @@ typedef struct state
|
||||
} image;
|
||||
} STATE;
|
||||
|
||||
typedef void (CollisionFunc) (struct element *ElementPtr0, POINT *pPt0,
|
||||
struct element *ElementPtr1, POINT *pPt1);
|
||||
|
||||
typedef struct element ELEMENT;
|
||||
|
||||
typedef void (CollisionFunc) (ELEMENT *ElementPtr0, POINT *pPt0,
|
||||
ELEMENT *ElementPtr1, POINT *pPt1);
|
||||
|
||||
// Any physical object in the simulation.
|
||||
typedef struct element
|
||||
struct element
|
||||
{
|
||||
HELEMENT pred, succ;
|
||||
|
||||
@@ -120,7 +123,7 @@ typedef struct element
|
||||
void *pParent;
|
||||
// The ship this element belongs to.
|
||||
HELEMENT hTarget;
|
||||
} ELEMENT;
|
||||
};
|
||||
|
||||
#define MAX_DISPLAY_PRIMS 280
|
||||
extern COUNT DisplayFreeList;
|
||||
|
||||
@@ -190,7 +190,7 @@ dumpEventCallback (const EVENT *eventPtr, void *arg)
|
||||
}
|
||||
|
||||
void
|
||||
dumpEvent (FILE *out, EVENT *eventPtr)
|
||||
dumpEvent (FILE *out, const EVENT *eventPtr)
|
||||
{
|
||||
fprintf (out, "%4u/%02u/%02u: %s\n",
|
||||
eventPtr->year_index,
|
||||
|
||||
@@ -43,7 +43,7 @@ void forwardToNextEvent (BOOLEAN skipHEE);
|
||||
// Generate a list of all events in the event queue.
|
||||
void dumpEvents (FILE *out);
|
||||
// Describe one event.
|
||||
void dumpEvent (FILE *out, EVENT *eventPtr);
|
||||
void dumpEvent (FILE *out, const EVENT *eventPtr);
|
||||
// Get the name of one event.
|
||||
const char *eventName (BYTE func_index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user