Main Page   File List   File Members  

proc.c File Reference

#include <stdio.h>
#include <gtk/gtk.h>
#include "proc.h"
#include "turtle.h"
#include "debug.h"

Functions

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

Variables

s_turtle my_turtle

Detailed Description

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


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