Main Page   File List   File Members  

class.h File Reference

#include <gtk/gtk.h>
#include "value.h"
#include "mem.h"

Go to the source code of this file.

Compounds

struct  s_class

Defines

#define CLASS(noclass)   ((struct s_class *)noclass)
#define CLASS_TYPE(class)   ((CLASS(class))->classtype)
#define CLASS_VALUE(noclass)   ((CLASS(noclass))->value)
#define class_subdebug(noclass)
#define class_ref(class)   (CLASS(class)->refcnt++)
#define class_unref(class)   (CLASS(class)->refcnt--)

Enumerations

enum  classtype_t {
  CLASS_PROC, CLASS_VAR, CLASS_INSTR, CLASS_CONST,
  CLASS_LIST
}

Functions

void class_free_from_list (gpointer, gpointer)


Detailed Description

Author:
Guillaume Bour. 2002
Version:
0.1
Date:
28/02/2002
Class root class definition


Define Documentation

#define class_subdebug noclass   
 

Value:

({                                                                          \
    gchar *str = NULL;                                                        \
                                                                              \
    if(noclass != NULL)                                                       \
      {                                                                       \
        switch(CLASS_TYPE(noclass))                                           \
          {                                                                   \
          case CLASS_PROC : str = proc_subdebug(noclass); break;              \
          case CLASS_VAR  : str = var_subdebug(noclass); break;               \
          case CLASS_INSTR: str = instr_subdebug(noclass); break;             \
          case CLASS_CONST: str = const_subdebug(noclass); break;             \
          case CLASS_LIST : str = list_subdebug(noclass);                     \
          }                                                                   \
                                                                              \
      }                                                                       \
                                                                              \
    str;                                                                      \
  })


Enumeration Type Documentation

enum classtype_t
 

Enumeration values:
CLASS_PROC  procedure
CLASS_VAR  variable
CLASS_INSTR  instruction
CLASS_CONST  constant
CLASS_LIST  list


Function Documentation

void class_free_from_list gpointer    class,
gpointer    nil
 

Instruction freeing.

visibility :: public

Remarks:
1. the second argument is not used (just for GTK compatibility)
Remarks:
1. here we don't take care of procedures
Parameters:
instr  the instruction to free
nil  not used
Returns:
<none>


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