summaryrefslogtreecommitdiff
path: root/Examples/lua/embed/example.c
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-01-12 16:54:45 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-01-12 16:54:45 +0000
commit079165abe2b10a8f10633a2e16d50006e3a1bc2e (patch)
tree625cc152ed46b2bc7d4eafe17ba835137bbddb04 /Examples/lua/embed/example.c
parentbd67f57921245470317e54403d78922d4d8258d1 (diff)
downloadswig-079165abe2b10a8f10633a2e16d50006e3a1bc2e.tar.gz
Convert to unix fileformat
Diffstat (limited to 'Examples/lua/embed/example.c')
-rw-r--r--Examples/lua/embed/example.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/Examples/lua/embed/example.c b/Examples/lua/embed/example.c
index c6c6d7ba1..efd13f662 100644
--- a/Examples/lua/embed/example.c
+++ b/Examples/lua/embed/example.c
@@ -1,22 +1,22 @@
-/* File : example.c */
-
-#include <stdio.h>
-
-/* 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;
-}
-
-void greeting() {
- printf("Hello from the C function 'greeting'\n");
-}
+/* File : example.c */
+
+#include <stdio.h>
+
+/* 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;
+}
+
+void greeting() {
+ printf("Hello from the C function 'greeting'\n");
+}