Main Page   File List   File Members  

instr.c File Reference

#include <stdio.h>
#include <gtk/gtk.h>
#include "instr.h"
#include "variable.h"
#include "list.h"
#include "op.h"
#include "debug.h"
#include "mem.h"

Functions

s_instr * instr_alloc (op_t op, classtype_t type, struct s_class *arg1, struct s_class *arg2)
void instr_free_from_list (gpointer instr, gpointer nil)

Detailed Description

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


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