stack.h File Reference

Interface for a small general-purpose stack (not type safe). More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fatalstackerror

Defines

#define npush(a)   pushdata( (char*)&a, sizeof ( a ) )
#define npop(a)   popdata ( (char*)&a, sizeof ( a ) )

Functions

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


Detailed Description

Interface for a small general-purpose stack (not type safe).

Definition in file stack.h.


Define Documentation

#define npop (  )     popdata ( (char*)&a, sizeof ( a ) )

Definition at line 53 of file stack.h.

Referenced by tdialogbox::copyvirtualframebuf(), tdialogbox::disablebutton(), tviewtext::displaysingleline(), tviewtext::displaytext(), tdialogbox::done(), tdialogbox::enablebutton(), Building::execnetcontrol(), infomessage(), UnitPropertyEditor::init(), tdialogbox::rahmen3(), showtext3(), showtext3c(), tstringselect::viewtext(), SaveUnitMovement::~SaveUnitMovement(), and tdialogbox::~tdialogbox().

#define npush (  )     pushdata( (char*)&a, sizeof ( a ) )

Definition at line 52 of file stack.h.

Referenced by tdialogbox::copyvirtualframebuf(), tdialogbox::disablebutton(), tviewtext::displaysingleline(), tviewtext::displaytext(), tdialogbox::enablebutton(), Building::execnetcontrol(), infomessage(), UnitPropertyEditor::init(), tdialogbox::init(), tdialogbox::rahmen3(), SaveUnitMovement::SaveUnitMovement(), showtext3(), showtext3c(), tdialogbox::tdialogbox(), and tstringselect::viewtext().


Function Documentation

void popdata ( char *  daten,
int  size 
)

Definition at line 70 of file stack.cpp.

References magic, and pop_data().

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.


Generated on Mon May 21 01:43:21 2012 for Advanced Strategic Command by  doxygen 1.5.1