GFT_SESSION_HANDLE serait un type "adresse d'une structure struct GFT_SessionHandle_ " qui en l'occurrence ne comporterait aucun membre.
Quel intérêt ?
De plus je crois qu'il n'est pas légal de déclarer un type struct vide :
n1256 :
6.2.5 Types
....
20
....
— A structure type describes a sequentially allocated
nonempty set of member objects (and, in certain circumstances, an incomplete array), each of which has an optionally specified name and possibly distinct type.
6.7.2.1 Structure and union specifiers
....
7 The presence of a struct-declaration-list in a struct-or-union-specifier declares a new type, within a translation unit. The struct-declaration-list is a sequence of declarations for the members of the structure or union.
If the struct-declaration-list contains no named members, the behavior is undefined. The type is incomplete until after the } that terminates the list.
Peut-être, on voulait déclarer
typedef struct GFT_SessionHandle_ * GFT_SESSION_HANDLE;
où struct GFT_SessionHandle_ est un type incomplet (dont la définition n'est pas encore connue)
Partager