Présentation
Documentation
L'équipe
Sérialisation
 
Programmes
Objets
Libs Utilitaires
Libs Internes
   
 
Editeur
Syntaxes
Windows
Versions
   

SCR/AL1 - TOME III. Les librairies utilitaires

4. Le groupe s_yy

4.23 YYFILE

Cette structure est retournée par la fonction YY_open(). Elle contient toutes les informations concernant le fichier ouvert. La description de de chaque élément est reprise en regard dans la structure.

Les éléments les plus importants, utilisables par l'utilisateur sont :

La structure est allouée par la fonction YY_open() et libérée par YY_close(). Les éléments dynamiques sont libérés par YY_close() :

    YYFILE  *yy;

yy = YY_open(...);
...
YY_close(yy);

Le contenu complet de cette structure est :

typedef struct _yyfile {
char *yy_name; /* file name */
FILE *yy_fd; /* file descriptor */
int yy_c_line; /* current line in the file */
int yy_c_col; /* current col in the line */
int yy_line; /* current line of the object */
int yy_col; /* current col of the object */
int yy_type; /* last type read */
long yy_long; /* last long read */
double yy_double; /* last double read */
int yy_text_lg; /* allocated bytes for yy_text */
unsigned char *yy_text; /* last text read */
int yy_lg; /* length of the last string read */
int yy_blks; /* number of blanks gener. by tabs */
YYFILE *yy_prev; /* ptr to file wh.includes current */
YYFILE *yy_include; /* ptr to file wh.includes current */
int yy_reread; /* 1 after unread, 0 else */
int yy_nb_keys; /* number of element in YYKEYS table */
YYKEYS *yy_keys; /* YYKEYS keywords table */
int yy_input_type; /* Type (YY_FILE, YY_MEM, YY_STDIN) */
int yy_cpos; /* current position in the string */
char *yy_ptr; /* pointer to the string (if YY_MEM) */
unsigned char *yy_record; /* Recorded characters */
int yy_rec_alg; /* Size of allocated buffer to record */
int yy_rec_lg; /* Number of recorded characters */
int yy_nb_stdefs, /* Number of static macros defns */
yy_nb_dyndefs; /* Number of dynamic macros defns */
YYDEF **yy_stdefs, /* Static macros definition table */
**yy_dyndefs; /* Dynamic macros definition table */
int yy_nb_if; /* Level of #if */
int yy_msg; /* private */
} ;

Copyright © 1998-2015 Jean-Marc Paul and Bernard PAUL - Envoyez vos remarques ou commentaires à bernard@xon.be