Fix examples after regressions.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Oliver Buchtala 2012-09-08 01:03:00 +00:00
commit cbb5b711ab
7 changed files with 2601 additions and 26 deletions

View file

@ -1,28 +0,0 @@
#include <stdlib.h>
#include <string>
#include <stdio.h>
#include <string.h>
using namespace std;
/* 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;
}