Main Page   File List   File Members  

constant.h File Reference

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

Go to the source code of this file.

Compounds

struct  s_constant

Defines

#define CONST(class)   ((struct s_constant *)class)
#define CONST_TYPE(const)   CLASS_TYPE(const)
#define const_alloc(_type, _value)

Functions

s_constant * __const_alloc (void)
void const_free (struct s_constant *)


Detailed Description

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


Define Documentation

#define const_alloc _type,
_value   
 

Value:

({                                                                          \
    register struct s_constant *__myconst = __const_alloc();                  \
    value_set(&(CLASS(__myconst)->value), _type, _value);                     \
    __myconst;                                                                \
  })


Function Documentation

struct s_constant* __const_alloc void   
 

constant allocation.

visibility :: public

Remarks:
1. do not use this function, but the wrapper const_alloc(...) to set constant type and value
Returns:
the allocated constant

void const_free struct s_constant *    myconst
 

constant freeing.

visibility :: public

Parameters:
myconst  the constant to free
Returns:
<none>


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