stack.h

Go to the documentation of this file.
00001 
00005 //     $Id: stack.h,v 1.6 2009-04-18 13:48:38 mbickel Exp $
00006 //
00007 //     $Log: not supported by cvs2svn $
00008 //     Revision 1.5  2001/01/28 14:04:20  mbickel
00009 //      Some restructuring, documentation and cleanup
00010 //      The resource network functions are now it their own files, the dashboard
00011 //       as well
00012 //      Updated the TODO list
00013 //
00014 //     Revision 1.4  2001/01/21 12:48:36  mbickel
00015 //      Some cleanup and documentation
00016 //
00017 //     Revision 1.3  2000/01/04 19:43:54  mbickel
00018 //      Continued Linux port
00019 //
00020 //     Revision 1.2  1999/11/16 03:42:38  tmwilson
00021 //      Added CVS keywords to most of the files.
00022 //      Started porting the code to Linux (ifdef'ing the DOS specific stuff)
00023 //      Wrote replacement routines for kbhit/getch for Linux
00024 //      Cleaned up parts of the code that gcc barfed on (char vs unsigned char)
00025 //      Added autoconf/automake capabilities
00026 //      Added files used by 'automake --gnu'
00027 //
00028 //
00029 /*
00030     This file is part of Advanced Strategic Command; http://www.asc-hq.de
00031     Copyright (C) 1994-2010  Martin Bickel  and  Marc Schellenberger
00032 
00033     This program is free software; you can redistribute it and/or modify
00034     it under the terms of the GNU General Public License as published by
00035     the Free Software Foundation; either version 2 of the License, or
00036     (at your option) any later version.
00037 
00038     This program is distributed in the hope that it will be useful,
00039     but WITHOUT ANY WARRANTY; without even the implied warranty of
00040     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00041     GNU General Public License for more details.
00042 
00043     You should have received a copy of the GNU General Public License
00044     along with this program; see the file COPYING. If not, write to the 
00045     Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
00046     Boston, MA  02111-1307  USA
00047 */
00048 
00049 #ifndef stack_h_included
00050  #define stack_h_included
00051 
00052  #define npush(a) pushdata( (char*)&a, sizeof ( a ) )
00053  #define npop(a) popdata ( (char*)&a, sizeof ( a ) )
00054 
00055  extern void  pushdata(char *       daten,
00056                   int          size);
00057 
00058  extern void  popdata(char *       daten,
00059                  int          size);
00060 
00061  extern int   stackfree(void);
00062 
00063  class fatalstackerror {};
00064 #endif

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