Main Page   File List   File Members  

instr.h File Reference

#include <gtk/gtk.h>
#include "class.h"
#include "op.h"

Go to the source code of this file.

Compounds

struct  s_instr

Defines

#define INSTR(class)   ((struct s_instr *)class)
#define INSTR_TYPE(const)   CLASS_TYPE(const)
#define instr_free(instr)   (instr_free_from_list(instr, NULL))

Functions

s_instr * instr_alloc (op_t, classtype_t, struct s_class *, struct s_class *)
void instr_free_from_list (gpointer, gpointer)


Detailed Description

Author:
Guillaume Bour. 2002
Version:
0.1
Date:
01/02/2002
instructions declaration


Function Documentation

struct s_instr* instr_alloc op_t    op,
classtype_t    type,
struct s_class *    arg1,
struct s_class *    arg2
 

Instruction allocation.

visibility :: public

Remarks:
1.the instruction current value is set to <null>
Parameters:
op  the instruction operator(ADD, SUB, ...)
type  the instruction type(int, bool, ...)
arg1  the first argument
arg2  the second argument
Returns:
the allocated instruction

void instr_free_from_list gpointer    instr,
gpointer    nil
 

Instruction freeing.

visibility :: public

Remarks:
1. the second argument is not used (just for GTK compatibility)
Parameters:
instr  the instruction to free
nil  not used
Returns:
<none>


Generated on Tue Aug 6 13:21:20 2002 for lafontaine by doxygen1.2.15