This is the doxygen documentation for gtkboard.

.
Main Page   Data Structures   File List   Data Fields   Globals  

stack.h File Reference

#include <stdio.h>
#include <glib.h>

Go to the source code of this file.

Defines

#define byte   gint8

Functions

void stack_free ()
void movstack_init ()
int movstack_get_num_moves ()
void movstack_push (byte *, byte *)
byte* movstack_pop ()
void movstack_trunc ()
 Truncates a stack to the current poisition. More...

byte* movstack_forw ()
byte* movstack_back ()
void movstack_free ()
void statestack_push (void *state)
void* statestack_peek ()
void* statestack_pop ()
void statestack_trunc ()
void* statestack_forw ()
void* statestack_back ()
void statestack_free ()


Define Documentation

#define byte   gint8
 

Definition at line 26 of file stack.h.


Function Documentation

byte* movstack_back ( )
 

Definition at line 107 of file stack.c.

byte* movstack_forw ( )
 

Definition at line 99 of file stack.c.

void movstack_free ( )
 

Definition at line 115 of file stack.c.

int movstack_get_num_moves ( )
 

Definition at line 63 of file stack.c.

void movstack_init ( )
 

Definition at line 58 of file stack.c.

byte* movstack_pop ( )
 

Definition at line 78 of file stack.c.

void movstack_push ( byte * board,
byte * move )
 

Definition at line 68 of file stack.c.

Referenced by engine_make_move(), and engine_take_move().

void movstack_trunc ( )
 

Truncates a stack to the current poisition.

This will be called when the user makes a move when it is not the final poisition.

Definition at line 87 of file stack.c.

void stack_free ( )
 

Definition at line 52 of file stack.c.

void* statestack_back ( )
 

Definition at line 180 of file stack.c.

void* statestack_forw ( )
 

Definition at line 172 of file stack.c.

void statestack_free ( )
 

Definition at line 188 of file stack.c.

void* statestack_peek ( )
 

Definition at line 149 of file stack.c.

void* statestack_pop ( )
 

Definition at line 156 of file stack.c.

void statestack_push ( void * state )
 

Definition at line 136 of file stack.c.

Referenced by engine_make_move(), and engine_take_move().

void statestack_trunc ( )
 

Definition at line 163 of file stack.c.