Scilab: enum example is consistent with other languages

This commit is contained in:
Simon Marchetto 2013-09-06 15:42:31 +02:00
commit 91e4114827
4 changed files with 10 additions and 38 deletions

View file

@ -1,7 +1,6 @@
/* File : example.c */
#include "example.h"
#include "scilabconst_example.h"
#include <stdio.h>
void enum_test(color c) {
@ -15,15 +14,3 @@ void enum_test(color c) {
printf("color = Unknown color!\n");
}
}
void scilabconst_enum_test(fruit f) {
if (f == APPLE) {
printf("fruit = APPLE\n");
} else if (f == ORANGE) {
printf("fruit = ORANGE\n");
} else if (f == LEMON) {
printf("fruit = LEMON\n");
} else {
printf("fruit = Unknown fruit!\n");
}
}