Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

stack.cpp File Reference

A small general-purpose stack (not type safe). More...

#include <cstring>
#include "global.h"
#include "stack.h"

Include dependency graph for stack.cpp:

Go to the source code of this file.

Defines

#define stacksize   10000

Functions

void push_data (char *daten, int size)
void pop_data (char *daten, int size)
void pushdata (char *daten, int size)
void popdata (char *daten, int size)
int stackfree (void)

Variables

char * stackpointer = NULL
int stackofs = 0
const int magic = 0x12345678


Detailed Description

A small general-purpose stack (not type safe).

Definition in file stack.cpp.


Define Documentation

#define stacksize   10000
 

Definition at line 31 of file stack.cpp.

Referenced by pushdata(), and stackfree().


Function Documentation

void pop_data char *  daten,
int  size
 

Definition at line 47 of file stack.cpp.

References stackofs, and stackpointer.

Referenced by popdata().

void popdata char *  daten,
int  size
 

Definition at line 70 of file stack.cpp.

References magic, and pop_data().

void push_data char *  daten,
int  size
 

Definition at line 38 of file stack.cpp.

References stackofs, and stackpointer.

Referenced by pushdata().

void pushdata char *  daten,
int  size
 

Definition at line 58 of file stack.cpp.

References magic, push_data(), stackofs, stackpointer, and stacksize.

int stackfree void   ) 
 

Definition at line 81 of file stack.cpp.

References stackofs, and stacksize.


Variable Documentation

const int magic = 0x12345678
 

Definition at line 36 of file stack.cpp.

Referenced by getGraphicSetIdFromFilename(), GraphicSetManager_Base::loadData(), popdata(), pushdata(), tspfldloaders::readmessages(), readOldEvent(), and tncontainerstream::tncontainerstream().

int stackofs = 0
 

Definition at line 34 of file stack.cpp.

Referenced by pop_data(), push_data(), pushdata(), and stackfree().

char* stackpointer = NULL
 

Definition at line 33 of file stack.cpp.

Referenced by pop_data(), push_data(), and pushdata().


Generated on Tue Jun 24 02:09:53 2008 for Advanced Strategic Command by  doxygen 1.4.2