scilab: test enum example, source renamed

This commit is contained in:
Simon Marchetto 2014-07-01 09:58:33 +02:00
commit 7c1899a458
3 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,23 @@
/* File : example.c */
/* A global variable */
double Foo = 3.0;
/* Compute the greatest common divisor of positive integers */
int gcd(int x, int y) {
int g;
g = y;
while (x > 0) {
g = x;
x = y % x;
y = g;
}
return g;
}
int fact(int n) {
if (n <= 0) return 1;
return n*fact(n-1);
}

View file

@ -1,6 +1,6 @@
TOP = ../..
SWIG = $(TOP)/../preinst-swig
SRCS = example.c
SRCS = example1.c
TARGET = example_wrap.c
INTERFACE = example.i