Main Page   File List   File Members  

proc.h File Reference

#include <gtk/gtk.h>
#include "class.h"
#include "instr.h"
#include "variable.h"

Go to the source code of this file.

Compounds

struct  s_proc

Defines

#define PROC(class)   ((struct s_proc *)class)
#define PROC_TYPE(const)   CLASS_TYPE(const)
#define proc_free(proc)   (proc_free_from_list(proc, NULL))

Functions

s_proc * proc_alloc (gchar *)
void proc_free_from_list (gpointer, gpointer)
gint proc_comparison (gconstpointer, gconstpointer)


Detailed Description

Author:
Guillaume Bour. 2002
Version:
0.1
Date:
01/02/2002
Version:
0.2
Date:
26/02/2002 - adding context
procedures definition


Function Documentation

struct s_proc* proc_alloc gchar *    name
 

Procedure allocation.

visibility :: public

@remarks: 1. the instructions, parameters & variables lists are set to NULL 2. the return value is set to NULL

Parameters:
name  the procedure name
Returns:
the allocated procedure

gint proc_comparison gconstpointer    myproc,
gconstpointer    name
 

Procedure comparison.

visibility :: public

Parameters:
myproc  the procedure
name  the searched procedure name
Returns:
0 is the procedure myproc is named name, not 0 else.

void proc_free_from_list gpointer    myproc,
gpointer    nil
 

Procedure freeing.

visibility :: public

Remarks:
1. we firstly free the internal lists (instructions, parameters & variables)
Parameters:
proc  the procedure to free
Returns:
<none>


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