From 0b49dded3921a652d7b75f12938e6f2d9e002344 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Mon, 16 Apr 2001 15:16:25 +0000 Subject: indentations diverses --- lib/alu.c | 40 +++++++++++++++++++--------------------- lib/meta.c | 12 ++++++------ 2 files changed, 25 insertions(+), 27 deletions(-) (limited to 'lib') diff --git a/lib/alu.c b/lib/alu.c index 94f06ba..6316952 100644 --- a/lib/alu.c +++ b/lib/alu.c @@ -1,70 +1,68 @@ -#include "alu.h" +#include "alu.h" // rajouter les overflow... - -/*****************************************/ -/** **/ -/** GESTION DE L'UNITE DE CALCUL **/ -/** **/ -/*****************************************/ - Uint32 AdditionNonSigne(Uint32 a, Uint32 b) + +/*****************************************/ +/** **/ +/** GESTION DE L'UNITE DE CALCUL **/ +/** **/ +/*****************************************/ +Uint32 AdditionNonSigne(Uint32 a, Uint32 b) { return (a + b); } - Uint32 AdditionSigne(Uint32 a, Uint32 b) +Uint32 AdditionSigne(Uint32 a, Uint32 b) { return (a + b); } - Uint32 SoustractionNonSigne(Uint32 a, Uint32 b) +Uint32 SoustractionNonSigne(Uint32 a, Uint32 b) { return (a - b); } - Uint32 SoustractionSigne(Uint32 a, Uint32 b) +Uint32 SoustractionSigne(Uint32 a, Uint32 b) { return (a - b); } - Uint32 MultiplicationNonSigne(Uint32 a, Uint32 b) +Uint32 MultiplicationNonSigne(Uint32 a, Uint32 b) { return (a * b); } - Uint32 MultiplicationSigne(Uint32 a, Uint32 b) +Uint32 MultiplicationSigne(Uint32 a, Uint32 b) { return (a * b); } - Uint32 DivisionNonSigne(Uint32 a, Uint32 b) +Uint32 DivisionNonSigne(Uint32 a, Uint32 b) { return (a / b); } - Uint32 DivisionSigne(Uint32 a, Uint32 b) +Uint32 DivisionSigne(Uint32 a, Uint32 b) { return (a / b); } - Uint32 AND(Uint32 a, Uint32 b) +Uint32 AND(Uint32 a, Uint32 b) { return (a & b); } - Uint32 OR(Uint32 a, Uint32 b) +Uint32 OR(Uint32 a, Uint32 b) { return (a | b); } - Uint32 SHL(Uint32 a) +Uint32 SHL(Uint32 a) { return (a >> 1); } - Uint32 SHR(Uint32 a) +Uint32 SHR(Uint32 a) { return (a << 1); } - - diff --git a/lib/meta.c b/lib/meta.c index 6a50ecf..be13434 100644 --- a/lib/meta.c +++ b/lib/meta.c @@ -579,20 +579,20 @@ void main(void) fprintf(stderr, " + %s (%s) type: %s\n", pattern->expr[i]->name ? pattern->expr[i]->name : "Opérateur [", pattern->expr[i]->string ? pattern->expr[i]->string : "Aucune chaîne associée", - pattern->expr[i]->type ? "Constante prédéfinie" : pattern-> - expr[i]->left ? "Binaire" : pattern->expr[i]->right ? "Unaire" : "Feuille"); + pattern->expr[i]->type ? "Constante prédéfinie" : pattern->expr[i]-> + left ? "Binaire" : pattern->expr[i]->right ? "Unaire" : "Feuille"); if (pattern->expr[i]->left) { fprintf(stderr, " - gauche: %s (%s) type: %s\n", pattern->expr[i]->left->name ? pattern->expr[i]->left->name : "Opérateur [", - pattern->expr[i]->left->string ? pattern->expr[i]-> - left->string : "Aucune chaîne associée", + pattern->expr[i]->left->string ? pattern->expr[i]->left-> + string : "Aucune chaîne associée", pattern->expr[i]->left->type ? "Constante prédéfinie" : "Feuille"); } if (pattern->expr[i]->right) { fprintf(stderr, " - droite: %s (%s) type: %s\n", pattern->expr[i]->right->name ? pattern->expr[i]->right->name : "Opérateur [", - pattern->expr[i]->right->string ? pattern->expr[i]-> - right->string : "Aucune chaîne associée", + pattern->expr[i]->right->string ? pattern->expr[i]->right-> + string : "Aucune chaîne associée", pattern->expr[i]->right->type ? "Constante prédéfinie" : "Feuille"); } } -- cgit v1.2.3