This is the doxygen documentation for gtkboard.

.
Main Page   Data Structures   File List   Data Fields   Globals  

stack.h

Go to the documentation of this file.
00001 /*  This file is a part of gtkboard, a board games system.
00002     Copyright (C) 2003, Arvind Narayanan <arvindn@users.sourceforge.net>
00003 
00004     This program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
00017 
00018 */
00019 #ifndef _STACK_H_
00020 #define _STACK_H_
00021 
00022 #include <stdio.h>
00023 #include <glib.h>
00024 
00025 #ifndef byte 
00026 #define byte gint8
00027 #endif
00028 
00029 void stack_free ();
00030 
00031 void movstack_init ();
00032 int movstack_get_num_moves ();
00033 void movstack_push (byte *, byte *);
00034 byte *movstack_pop ();
00035 void movstack_trunc ();
00036 byte * movstack_forw ();
00037 byte * movstack_back ();
00038 void movstack_free ();
00039 
00040 void statestack_push (void *state);
00041 void *statestack_peek ();
00042 void *statestack_pop ();
00043 void statestack_trunc ();
00044 void *statestack_forw ();
00045 void *statestack_back ();
00046 void statestack_free ();
00047 #endif