From b91ac429108096a3de75b9b81ca2c637b27524ba Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 7 Jan 2015 13:30:26 +0100 Subject: replaced function inverse() by macro There was multiple problems with this function: void inverse(int *bool); First, we use "bool", which is actually a standard type, as the identifier. Then, we cannot pass different types to the function without cast. Then, inverse is not a meaninful name. At last, we have to pass the address of the variable we want to inverse. Fixed all these points by replacing the function by a macro : #define inverse_boolean(_b) /* impl */ Signed-off-by: Olivier Gayot --- prototypes.h | 1 - 1 file changed, 1 deletion(-) (limited to 'prototypes.h') diff --git a/prototypes.h b/prototypes.h index 00b621f..4a75197 100644 --- a/prototypes.h +++ b/prototypes.h @@ -14,7 +14,6 @@ void Finitialiserpositionspersos (SURFACES *surfaces,POSITIONS *positions); void Finitialisersurfaces (SURFACES *surfaces); int Fchargerimages (SURFACES *surfaces); void Fdechargerimages (SURFACES *surfaces); -void inverse(int *bool); void Finitialiserpositions (POSITIONS *positions, SURFACES *surfaces); void Fblitterennemis (SURFACES *surfaces, POSITIONS *positions,ENNEMIS ennemis[],int Vnbennemis); void Finitialiserpositionsennemis (SURFACES *surfaces, POSITIONS *positions,int Vnbennemis); -- cgit v1.2.3