[debutant]Pb avec les headers
Bonjour tout le monde , j'ai un souci avec un header que j'ai créé.
J'ai qq warnings qui ne me disent rien ...
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#include <stdio.h>
#ifndef H_FILE
#define H_FILE
#define BOOLEEN int;
#define VRAI 1;
#define FAUX 0;
typedef struct {
int noDossard;
char numTel[10];
float vitesse;
char nom[25];
}OBJ;
typedef struct cel {
OBJ objet;
struct cel *lienprec;
struct cel *liensv;
}CELLULE;
typedef struct {
CELLULE *debut;
CELLULE *fin;
}FILE_G;
/* ------ prototypage ------ */
FILE_G *creerFile();
FILE_G* fileVide(FILE_G *f);
OBJ *debut(FILE_G *f);
OBJ *fin(FILE_G *f);
BOOLEEN enfiler(OBJ *nouvObj, FILE_G *f);
BOOLEEN defiler(FILE_G *f);
BOOLEEN resquiller(OBJ *nouvObj , FILE_G *f);
BOOLEEN decourager(FILE_G *f);
/* ------------------------- */
#endif |
et mes erreurs
files.h:35: warning: useless type name in empty declaration
files.h:35: warning: data definition has no type or storage class
files.h:36: warning: useless type name in empty declaration
files.h:36: warning: data definition has no type or storage class
files.h:37: warning: useless type name in empty declaration
files.h:37: warning: data definition has no type or storage class
files/src/files.h:38: warning: useless type name in empty declaration
files/src/files.h:38: warning: data definition has no type or storage class
Les warnings concernent les déclarations de fonctions avec les BOOLEENS.
Si quelqu'un pouvait me mettre sur la voie ?...
Merci