Main Page   File List   File Members  

variable.h File Reference

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

Go to the source code of this file.

Compounds

struct  s_variable

Defines

#define VAR(class)   ((struct s_variable *)class)
#define VAR_TYPE(const)   CLASS_TYPE(const)
#define var_free(var)   (var_free_from_list(var, NULL))

Enumerations

enum  var_locality_t { VAR_LOCAL, VAR_GLOBAL }

Functions

s_variable * var_alloc (gchar *)
void var_free_from_list (gpointer, gpointer)
gint var_comparison (gconstpointer, gconstpointer)


Detailed Description

Author:
Guillaume Bour. 2002
Version:
0.1
Date:
05/02/2002
Version:
0.2
Date:
28/02/2002 - object structure definition
variables definition


Function Documentation

struct s_variable* var_alloc gchar *    name
 

Variable allocation.

visibility :: public

Remarks:
1. the default variable type is T_NONE
Parameters:
name  the variable name
Returns:
the allocated variable

gint var_comparison gconstpointer    myvar,
gconstpointer    name
 

Variable comparison.

visibility :: public

Parameters:
myvar  the variable
name  the searched variable name
Returns:
0 is the variable myvar is named name, not 0 else.

void var_free_from_list gpointer    myvar,
gpointer    nil
 

Variable freeing.

visibility :: public

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


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