Main Page   Compound List   File List   Compound Members   File Members  

cflow2vcg.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "cflow2vcg.h"
#include "write_vcg.h"
#include "cflow_struct.h"
#include "read_sun.h"
#include "read_free.h"

Include dependency graph for cflow2vcg.c:

Include dependency graph

Go to the source code of this file.

Defines

#define NBMAX   512
#define PROFONDEUR   30
#define NOEUD_INT   1
#define NOEUD_EXT   2
#define afficher_noeud_int(label, numlig, type, fichier, ligne)   afficher_noeud((label),(numlig),type,fichier,ligne)
#define afficher_noeud_ext(label, numlig)   afficher_noeud((label),(numlig),"","",0)

Enumerations

enum  INPUT_TYPE { INPUT_SUN, INPUT_FREE, INPUT_AUTO }

Functions

void positionner_niveau (int numlig, int niveau)
int niveau_pere ()
void tab_dyn_ajouter_elem (int nouveau, int taille_realloc, int **p_tab, int *p_nb)
int int_compare (const void *elem1, const void *elem2)
void * rechercher_parmi_interne (int noeud)
void usage (FILE *out, const char *progname)
void version (FILE *out)
int scan_line (const char *line, LINE_INFO *line_info)
INPUT_TYPE get_input_type (const char *s_type)
int main (int argc, char *argv[])

Variables

int niveau_courant = 0
int tab_niveaux [PROFONDEUR]
int * tab_noeud_int
 Tableau des noeuds internes. More...

int nb_noeud_int
 Nombre de noeuds internes stockes. More...

int * tab_noeud_ext
 Tableau des noeuds externes. More...

int nb_noeud_ext
 Nombre de noeuds externes stockes. More...

int classe_inv = CLASS_NULL
 Selection de la classe invisible. More...

INPUT_TYPE input_type


Define Documentation

#define afficher_noeud_ext label,
numlig       afficher_noeud((label),(numlig),"","",0)
 

Definition at line 128 of file cflow2vcg.c.

Referenced by main().

#define afficher_noeud_int label,
numlig,
type,
fichier,
ligne       afficher_noeud((label),(numlig),type,fichier,ligne)
 

Definition at line 126 of file cflow2vcg.c.

Referenced by main().

#define NBMAX   512
 

Definition at line 32 of file cflow2vcg.c.

Referenced by main().

#define NOEUD_EXT   2
 

Definition at line 40 of file cflow2vcg.c.

#define NOEUD_INT   1
 

Definition at line 39 of file cflow2vcg.c.

#define PROFONDEUR   30
 

Definition at line 33 of file cflow2vcg.c.


Enumeration Type Documentation

enum INPUT_TYPE
 

Enumeration values:
INPUT_SUN 
INPUT_FREE 
INPUT_AUTO 

Definition at line 42 of file cflow2vcg.c.

Referenced by get_input_type().


Function Documentation

INPUT_TYPE get_input_type const char *    s_type
 

Definition at line 202 of file cflow2vcg.c.

References INPUT_AUTO, INPUT_FREE, INPUT_SUN, and INPUT_TYPE.

Referenced by main().

int int_compare const void *    elem1,
const void *    elem2
 

Fonction de comparaison d'entier pour bsearch

Definition at line 102 of file cflow2vcg.c.

Referenced by rechercher_parmi_interne().

int main int    argc,
char *    argv[]
 

Definition at line 212 of file cflow2vcg.c.

References afficher_arc(), afficher_entete(), afficher_noeud_ext, afficher_noeud_int, afficher_pied(), CLASS_EXT, CLASS_INT, classe_inv, LINE_INFO::depth, EXTERNAL, LINE_INFO::fct, LINE_INFO::fct_type, get_input_type(), LINE_INFO::id, INPUT_AUTO, input_type, INTERNAL, LINE_INFO::line_src, nb_noeud_ext, nb_noeud_int, NBMAX, niveau_pere(), positionner_niveau(), scan_line(), LINE_INFO::src, tab_dyn_ajouter_elem(), tab_noeud_ext, tab_noeud_int, LINE_INFO::type, usage(), and version().

int niveau_pere  
 

Definition at line 69 of file cflow2vcg.c.

References niveau_courant, and tab_niveaux.

Referenced by main().

void positionner_niveau int    numlig,
int    niveau
 

Definition at line 63 of file cflow2vcg.c.

References niveau_courant, and tab_niveaux.

Referenced by main().

void* rechercher_parmi_interne int    noeud
 

Definition at line 121 of file cflow2vcg.c.

References int_compare(), nb_noeud_int, and tab_noeud_int.

Referenced by afficher_arc().

int scan_line const char *    line,
LINE_INFO   line_info
 

Definition at line 171 of file cflow2vcg.c.

References INPUT_AUTO, INPUT_FREE, INPUT_SUN, input_type, scan_free(), and scan_sun().

Referenced by main().

void tab_dyn_ajouter_elem int    nouveau,
int    taille_realloc,
int **    p_tab,
int *    p_nb
 

Ajout d'un element en redimensionnant le tableau si necessaire

Definition at line 78 of file cflow2vcg.c.

Referenced by main().

void usage FILE *    out,
const char *    progname
 

Definition at line 131 of file cflow2vcg.c.

Referenced by main().

void version FILE *    out
 

Definition at line 150 of file cflow2vcg.c.

Referenced by main().


Variable Documentation

int classe_inv = CLASS_NULL
 

Selection de la classe invisible.

Classe invisible

Definition at line 58 of file cflow2vcg.c.

Referenced by main().

INPUT_TYPE input_type [static]
 

Definition at line 61 of file cflow2vcg.c.

Referenced by main(), and scan_line().

int nb_noeud_ext [static]
 

Nombre de noeuds externes stockes.

Definition at line 55 of file cflow2vcg.c.

Referenced by main().

int nb_noeud_int [static]
 

Nombre de noeuds internes stockes.

Definition at line 52 of file cflow2vcg.c.

Referenced by main(), and rechercher_parmi_interne().

int niveau_courant = 0 [static]
 

Definition at line 48 of file cflow2vcg.c.

Referenced by niveau_pere(), and positionner_niveau().

int tab_niveaux[PROFONDEUR] [static]
 

Definition at line 49 of file cflow2vcg.c.

Referenced by niveau_pere(), and positionner_niveau().

int* tab_noeud_ext [static]
 

Tableau des noeuds externes.

Definition at line 54 of file cflow2vcg.c.

Referenced by main().

int* tab_noeud_int [static]
 

Tableau des noeuds internes.

Definition at line 51 of file cflow2vcg.c.

Referenced by main(), and rechercher_parmi_interne().


Generated on Thu Apr 10 21:55:08 2003 for Cflow2VCG by doxygen1.2.15