diff --git a/Examples/chicken/multimap/example.i b/Examples/chicken/multimap/example.i index 9228fd1e0..7bacadab7 100644 --- a/Examples/chicken/multimap/example.i +++ b/Examples/chicken/multimap/example.i @@ -1,5 +1,15 @@ /* File : example.i */ %module example + +%{ +extern int gcd(int x, int y); +extern int gcdmain(int argc, char *argv[]); +extern int count(char *bytes, int len, char c); +extern void capitalize (char *str, int len); +extern void circle (double cx, double cy); +extern int squareCubed (int n, int *OUTPUT); +%} + %include exception.i %include typemaps.i diff --git a/Examples/chicken/simple/example.i b/Examples/chicken/simple/example.i index e18502c7c..5b3e95580 100644 --- a/Examples/chicken/simple/example.i +++ b/Examples/chicken/simple/example.i @@ -6,8 +6,11 @@ %include typemaps.i +%rename(mod) my_mod; + +%inline %{ extern double My_variable; extern int fact(int); -%rename(mod) my_mod; extern int my_mod(int n, int m); extern char *get_time(); +%} diff --git a/Examples/contract/simple_c/example.i b/Examples/contract/simple_c/example.i index c044a7d11..49df09af6 100644 --- a/Examples/contract/simple_c/example.i +++ b/Examples/contract/simple_c/example.i @@ -14,4 +14,6 @@ ensure: Circle >= 0; } +%inline %{ extern int Circle (int x, int y, int radius); +%} diff --git a/Examples/csharp/funcptr/example.h b/Examples/csharp/funcptr/example.h index 58989db79..9936e24fc 100644 --- a/Examples/csharp/funcptr/example.h +++ b/Examples/csharp/funcptr/example.h @@ -5,3 +5,5 @@ extern int add(int,int); extern int sub(int,int); extern int mul(int,int); +extern int (*funcvar)(int,int); + diff --git a/Examples/csharp/simple/example.i b/Examples/csharp/simple/example.i index 6702abb1e..24093b9bf 100644 --- a/Examples/csharp/simple/example.i +++ b/Examples/csharp/simple/example.i @@ -1,5 +1,7 @@ /* File : example.i */ %module example +%inline %{ extern int gcd(int x, int y); extern double Foo; +%} diff --git a/Examples/csharp/variables/example.i b/Examples/csharp/variables/example.i index f776451e8..591b871ed 100644 --- a/Examples/csharp/variables/example.i +++ b/Examples/csharp/variables/example.i @@ -5,6 +5,7 @@ %} /* Some global variable declarations */ +%inline %{ extern int ivar; extern short svar; extern long lvar; @@ -23,19 +24,26 @@ extern char name[256]; extern Point *ptptr; extern Point pt; +%} /* Some read-only variables */ %immutable; + +%inline %{ extern int status; extern char path[256]; +%} + %mutable; /* Some helper functions to make it easier to test */ +%inline %{ extern void print_vars(); extern int *new_int(int value); extern Point *new_Point(int x, int y); extern char *Point_print(Point *p); extern void pt_print(); +%} diff --git a/Examples/guile/multimap/example.i b/Examples/guile/multimap/example.i index e9cb6507d..6bd018d68 100644 --- a/Examples/guile/multimap/example.i +++ b/Examples/guile/multimap/example.i @@ -1,5 +1,15 @@ /* File : example.i */ %module example + +%{ +extern int gcd(int x, int y); +extern int gcdmain(int argc, char *argv[]); +extern int count(char *bytes, int len, char c); +extern void capitalize (char *str, int len); +extern void circle (double cx, double cy); +extern int squareCubed (int n, int *OUTPUT); +%} + %include exception.i %include typemaps.i diff --git a/Examples/guile/simple/example.i b/Examples/guile/simple/example.i index 8821439c9..1a9930a14 100644 --- a/Examples/guile/simple/example.i +++ b/Examples/guile/simple/example.i @@ -4,9 +4,11 @@ /* Put headers and other declarations here */ %} +%inline %{ extern double My_variable; extern int fact(int); extern int mod(int n, int m); extern char *get_time(); +%} %include guile/guilemain.i diff --git a/Examples/java/funcptr/example.h b/Examples/java/funcptr/example.h index 58989db79..9936e24fc 100644 --- a/Examples/java/funcptr/example.h +++ b/Examples/java/funcptr/example.h @@ -5,3 +5,5 @@ extern int add(int,int); extern int sub(int,int); extern int mul(int,int); +extern int (*funcvar)(int,int); + diff --git a/Examples/java/multimap/example.i b/Examples/java/multimap/example.i index 43f2d0a1c..8d67282a5 100644 --- a/Examples/java/multimap/example.i +++ b/Examples/java/multimap/example.i @@ -1,6 +1,15 @@ /* File : example.i */ %module example +%{ +extern int gcd(int x, int y); +extern int gcdmain(int argc, char *argv[]); +extern int count(char *bytes, int len, char c); +extern void capitalize (char *str, int len); +extern void circle (double cx, double cy); +extern int squareCubed (int n, int *OUTPUT); +%} + extern int gcd(int x, int y); %typemap(jni) (int argc, char *argv[]) "jobjectArray" diff --git a/Examples/java/pointer/example.i b/Examples/java/pointer/example.i index 4483b0f77..a8ac79499 100644 --- a/Examples/java/pointer/example.i +++ b/Examples/java/pointer/example.i @@ -1,6 +1,12 @@ /* File : example.i */ %module example +%{ +extern void add(int *, int *, int *); +extern void sub(int *, int *, int *); +extern int divide(int, int, int *); +%} + /* This example illustrates a couple of different techniques for manipulating C pointers */ diff --git a/Examples/java/simple/example.i b/Examples/java/simple/example.i index 6702abb1e..24093b9bf 100644 --- a/Examples/java/simple/example.i +++ b/Examples/java/simple/example.i @@ -1,5 +1,7 @@ /* File : example.i */ %module example +%inline %{ extern int gcd(int x, int y); extern double Foo; +%} diff --git a/Examples/java/variables/example.i b/Examples/java/variables/example.i index 56d7f4a55..591b871ed 100644 --- a/Examples/java/variables/example.i +++ b/Examples/java/variables/example.i @@ -5,6 +5,7 @@ %} /* Some global variable declarations */ +%inline %{ extern int ivar; extern short svar; extern long lvar; @@ -23,22 +24,26 @@ extern char name[256]; extern Point *ptptr; extern Point pt; +%} /* Some read-only variables */ %immutable; + +%inline %{ extern int status; extern char path[256]; +%} + %mutable; /* Some helper functions to make it easier to test */ +%inline %{ extern void print_vars(); extern int *new_int(int value); extern Point *new_Point(int x, int y); extern char *Point_print(Point *p); extern void pt_print(); - - - +%} diff --git a/Examples/modula3/simple/example.i b/Examples/modula3/simple/example.i index e78a0b6de..1694e6dbe 100644 --- a/Examples/modula3/simple/example.i +++ b/Examples/modula3/simple/example.i @@ -1,5 +1,7 @@ /* File : example.i */ %module Example +%inline %{ extern int gcd(int x, int y); extern double Foo; +%} diff --git a/Examples/mzscheme/multimap/example.i b/Examples/mzscheme/multimap/example.i index 6ca7dc33e..b2c839e48 100644 --- a/Examples/mzscheme/multimap/example.i +++ b/Examples/mzscheme/multimap/example.i @@ -1,5 +1,15 @@ /* File : example.i */ %module example + +%{ +extern int gcd(int x, int y); +extern int gcdmain(int argc, char *argv[]); +extern int count(char *bytes, int len, char c); +extern void capitalize (char *str, int len); +extern void circle (double cx, double cy); +extern int squareCubed (int n, int *OUTPUT); +%} + %include exception.i %include typemaps.i diff --git a/Examples/mzscheme/simple/example.i b/Examples/mzscheme/simple/example.i index 405fbc9d4..5b3e95580 100644 --- a/Examples/mzscheme/simple/example.i +++ b/Examples/mzscheme/simple/example.i @@ -6,8 +6,11 @@ %include typemaps.i +%rename(mod) my_mod; + +%inline %{ extern double My_variable; extern int fact(int); -%name(mod) extern int my_mod(int n, int m); extern int my_mod(int n, int m); extern char *get_time(); +%} diff --git a/Examples/ocaml/simple/example.i b/Examples/ocaml/simple/example.i index 6702abb1e..24093b9bf 100644 --- a/Examples/ocaml/simple/example.i +++ b/Examples/ocaml/simple/example.i @@ -1,5 +1,7 @@ /* File : example.i */ %module example +%inline %{ extern int gcd(int x, int y); extern double Foo; +%} diff --git a/Examples/perl5/funcptr/example.h b/Examples/perl5/funcptr/example.h index 58989db79..9936e24fc 100644 --- a/Examples/perl5/funcptr/example.h +++ b/Examples/perl5/funcptr/example.h @@ -5,3 +5,5 @@ extern int add(int,int); extern int sub(int,int); extern int mul(int,int); +extern int (*funcvar)(int,int); + diff --git a/Examples/perl5/multimap/example.i b/Examples/perl5/multimap/example.i index bee53775c..6ccf8c838 100644 --- a/Examples/perl5/multimap/example.i +++ b/Examples/perl5/multimap/example.i @@ -1,5 +1,15 @@ /* File : example.i */ %module example + +%{ +extern int gcd(int x, int y); +extern int gcdmain(int argc, char *argv[]); +extern int count(char *bytes, int len, char c); +extern void capitalize (char *str, int len); +extern void circle (double cx, double cy); +extern int squareCubed (int n, int *OUTPUT); +%} + %include exception.i %include typemaps.i diff --git a/Examples/perl5/pointer/example.i b/Examples/perl5/pointer/example.i index 4483b0f77..a8ac79499 100644 --- a/Examples/perl5/pointer/example.i +++ b/Examples/perl5/pointer/example.i @@ -1,6 +1,12 @@ /* File : example.i */ %module example +%{ +extern void add(int *, int *, int *); +extern void sub(int *, int *, int *); +extern int divide(int, int, int *); +%} + /* This example illustrates a couple of different techniques for manipulating C pointers */ diff --git a/Examples/perl5/simple/example.i b/Examples/perl5/simple/example.i index 6702abb1e..24093b9bf 100644 --- a/Examples/perl5/simple/example.i +++ b/Examples/perl5/simple/example.i @@ -1,5 +1,7 @@ /* File : example.i */ %module example +%inline %{ extern int gcd(int x, int y); extern double Foo; +%} diff --git a/Examples/perl5/value/example.i b/Examples/perl5/value/example.i index 83c1f9cd6..1fad8b161 100644 --- a/Examples/perl5/value/example.i +++ b/Examples/perl5/value/example.i @@ -6,8 +6,10 @@ %} /* Some functions that manipulate Vectors by value */ +%inline %{ extern double dot_product(Vector a, Vector b); extern Vector vector_add(Vector a, Vector b); +%} /* Include this because the vector_add() function will leak memory */ void free(void *); diff --git a/Examples/perl5/variables/example.i b/Examples/perl5/variables/example.i index 56d7f4a55..591b871ed 100644 --- a/Examples/perl5/variables/example.i +++ b/Examples/perl5/variables/example.i @@ -5,6 +5,7 @@ %} /* Some global variable declarations */ +%inline %{ extern int ivar; extern short svar; extern long lvar; @@ -23,22 +24,26 @@ extern char name[256]; extern Point *ptptr; extern Point pt; +%} /* Some read-only variables */ %immutable; + +%inline %{ extern int status; extern char path[256]; +%} + %mutable; /* Some helper functions to make it easier to test */ +%inline %{ extern void print_vars(); extern int *new_int(int value); extern Point *new_Point(int x, int y); extern char *Point_print(Point *p); extern void pt_print(); - - - +%} diff --git a/Examples/php4/funcptr/example.h b/Examples/php4/funcptr/example.h index 58989db79..9936e24fc 100644 --- a/Examples/php4/funcptr/example.h +++ b/Examples/php4/funcptr/example.h @@ -5,3 +5,5 @@ extern int add(int,int); extern int sub(int,int); extern int mul(int,int); +extern int (*funcvar)(int,int); + diff --git a/Examples/php4/pointer/example.i b/Examples/php4/pointer/example.i index 52e6df190..66fb19956 100644 --- a/Examples/php4/pointer/example.i +++ b/Examples/php4/pointer/example.i @@ -1,6 +1,12 @@ /* File : example.i */ %module example +%{ +extern void add(int *, int *, int *); +extern void sub(int *, int *, int *); +extern int divide(int, int, int *); +%} + /* This example illustrates a couple of different techniques for manipulating C pointers */ diff --git a/Examples/php4/simple/example.i b/Examples/php4/simple/example.i index 6702abb1e..24093b9bf 100644 --- a/Examples/php4/simple/example.i +++ b/Examples/php4/simple/example.i @@ -1,5 +1,7 @@ /* File : example.i */ %module example +%inline %{ extern int gcd(int x, int y); extern double Foo; +%} diff --git a/Examples/php4/value/example.i b/Examples/php4/value/example.i index db3d5b96b..b25c15db1 100644 --- a/Examples/php4/value/example.i +++ b/Examples/php4/value/example.i @@ -6,8 +6,10 @@ %} /* Some functions that manipulate Vectors by value */ +%inline %{ extern double dot_product(Vector a, Vector b); extern Vector vector_add(Vector a, Vector b); +%} /* Include this because the vector_add() function will leak memory */ void free(void *); diff --git a/Examples/php4/variables/example.i b/Examples/php4/variables/example.i index 0cb715173..9ec751d71 100644 --- a/Examples/php4/variables/example.i +++ b/Examples/php4/variables/example.i @@ -5,6 +5,7 @@ %} /* Some global variable declarations */ +%inline %{ extern int ivar; extern short svar; extern long lvar; @@ -23,15 +24,21 @@ extern char name[256]; extern Point *ptptr; extern Point pt; +%} /* Some read-only variables */ %immutable; + +%inline %{ extern int status; extern char path[256]; +%} + %mutable; /* Some helper functions to make it easier to test */ +%inline %{ extern void print_vars(); extern int *new_int(int value); extern int value_ent(int *value); @@ -39,7 +46,5 @@ extern int value_ent(int *value); extern Point *new_Point(int x, int y); extern char *Point_print(Point *p); extern void pt_print(); - - - +%} diff --git a/Examples/pike/simple/example.i b/Examples/pike/simple/example.i index 6702abb1e..24093b9bf 100644 --- a/Examples/pike/simple/example.i +++ b/Examples/pike/simple/example.i @@ -1,5 +1,7 @@ /* File : example.i */ %module example +%inline %{ extern int gcd(int x, int y); extern double Foo; +%} diff --git a/Examples/python/contract/example.i b/Examples/python/contract/example.i index aacae2c4e..8fd1a80af 100644 --- a/Examples/python/contract/example.i +++ b/Examples/python/contract/example.i @@ -14,6 +14,8 @@ ensure: fact >= 1; } +%inline %{ extern int gcd(int x, int y); extern int fact(int n); extern double Foo; +%} diff --git a/Examples/python/funcptr/example.h b/Examples/python/funcptr/example.h index 58989db79..9936e24fc 100644 --- a/Examples/python/funcptr/example.h +++ b/Examples/python/funcptr/example.h @@ -5,3 +5,5 @@ extern int add(int,int); extern int sub(int,int); extern int mul(int,int); +extern int (*funcvar)(int,int); + diff --git a/Examples/python/funcptr2/example.h b/Examples/python/funcptr2/example.h index 58989db79..9936e24fc 100644 --- a/Examples/python/funcptr2/example.h +++ b/Examples/python/funcptr2/example.h @@ -5,3 +5,5 @@ extern int add(int,int); extern int sub(int,int); extern int mul(int,int); +extern int (*funcvar)(int,int); + diff --git a/Examples/python/multimap/example.i b/Examples/python/multimap/example.i index 2ef71c4dd..e776a249d 100644 --- a/Examples/python/multimap/example.i +++ b/Examples/python/multimap/example.i @@ -1,5 +1,15 @@ /* File : example.i */ %module example + +%{ +extern int gcd(int x, int y); +extern int gcdmain(int argc, char *argv[]); +extern int count(char *bytes, int len, char c); +extern void capitalize (char *str, int len); +extern void circle (double cx, double cy); +extern int squareCubed (int n, int *OUTPUT); +%} + %include exception.i %include typemaps.i diff --git a/Examples/python/pointer/example.i b/Examples/python/pointer/example.i index 4483b0f77..a8ac79499 100644 --- a/Examples/python/pointer/example.i +++ b/Examples/python/pointer/example.i @@ -1,6 +1,12 @@ /* File : example.i */ %module example +%{ +extern void add(int *, int *, int *); +extern void sub(int *, int *, int *); +extern int divide(int, int, int *); +%} + /* This example illustrates a couple of different techniques for manipulating C pointers */ diff --git a/Examples/python/simple/example.i b/Examples/python/simple/example.i index 6702abb1e..24093b9bf 100644 --- a/Examples/python/simple/example.i +++ b/Examples/python/simple/example.i @@ -1,5 +1,7 @@ /* File : example.i */ %module example +%inline %{ extern int gcd(int x, int y); extern double Foo; +%} diff --git a/Examples/python/variables/example.i b/Examples/python/variables/example.i index 56d7f4a55..591b871ed 100644 --- a/Examples/python/variables/example.i +++ b/Examples/python/variables/example.i @@ -5,6 +5,7 @@ %} /* Some global variable declarations */ +%inline %{ extern int ivar; extern short svar; extern long lvar; @@ -23,22 +24,26 @@ extern char name[256]; extern Point *ptptr; extern Point pt; +%} /* Some read-only variables */ %immutable; + +%inline %{ extern int status; extern char path[256]; +%} + %mutable; /* Some helper functions to make it easier to test */ +%inline %{ extern void print_vars(); extern int *new_int(int value); extern Point *new_Point(int x, int y); extern char *Point_print(Point *p); extern void pt_print(); - - - +%} diff --git a/Examples/ruby/funcptr/example.h b/Examples/ruby/funcptr/example.h index 58989db79..9936e24fc 100644 --- a/Examples/ruby/funcptr/example.h +++ b/Examples/ruby/funcptr/example.h @@ -5,3 +5,5 @@ extern int add(int,int); extern int sub(int,int); extern int mul(int,int); +extern int (*funcvar)(int,int); + diff --git a/Examples/ruby/funcptr2/example.h b/Examples/ruby/funcptr2/example.h index 58989db79..9936e24fc 100644 --- a/Examples/ruby/funcptr2/example.h +++ b/Examples/ruby/funcptr2/example.h @@ -5,3 +5,5 @@ extern int add(int,int); extern int sub(int,int); extern int mul(int,int); +extern int (*funcvar)(int,int); + diff --git a/Examples/ruby/multimap/example.i b/Examples/ruby/multimap/example.i index 48ee3d0b5..56952ec9e 100644 --- a/Examples/ruby/multimap/example.i +++ b/Examples/ruby/multimap/example.i @@ -1,5 +1,14 @@ %module example +%{ +extern int gcd(int x, int y); +extern int gcdmain(int argc, char *argv[]); +extern int count(char *bytes, int len, char c); +extern void capitalize (char *str, int len); +extern void circle (double cx, double cy); +extern int squareCubed (int n, int *OUTPUT); +%} + %include exception.i %include typemaps.i diff --git a/Examples/ruby/pointer/example.i b/Examples/ruby/pointer/example.i index 4483b0f77..a8ac79499 100644 --- a/Examples/ruby/pointer/example.i +++ b/Examples/ruby/pointer/example.i @@ -1,6 +1,12 @@ /* File : example.i */ %module example +%{ +extern void add(int *, int *, int *); +extern void sub(int *, int *, int *); +extern int divide(int, int, int *); +%} + /* This example illustrates a couple of different techniques for manipulating C pointers */ diff --git a/Examples/ruby/simple/example.i b/Examples/ruby/simple/example.i index 6702abb1e..24093b9bf 100644 --- a/Examples/ruby/simple/example.i +++ b/Examples/ruby/simple/example.i @@ -1,5 +1,7 @@ /* File : example.i */ %module example +%inline %{ extern int gcd(int x, int y); extern double Foo; +%} diff --git a/Examples/ruby/value/example.i b/Examples/ruby/value/example.i index 83c1f9cd6..1fad8b161 100644 --- a/Examples/ruby/value/example.i +++ b/Examples/ruby/value/example.i @@ -6,8 +6,10 @@ %} /* Some functions that manipulate Vectors by value */ +%inline %{ extern double dot_product(Vector a, Vector b); extern Vector vector_add(Vector a, Vector b); +%} /* Include this because the vector_add() function will leak memory */ void free(void *); diff --git a/Examples/ruby/variables/example.i b/Examples/ruby/variables/example.i index 56d7f4a55..591b871ed 100644 --- a/Examples/ruby/variables/example.i +++ b/Examples/ruby/variables/example.i @@ -5,6 +5,7 @@ %} /* Some global variable declarations */ +%inline %{ extern int ivar; extern short svar; extern long lvar; @@ -23,22 +24,26 @@ extern char name[256]; extern Point *ptptr; extern Point pt; +%} /* Some read-only variables */ %immutable; + +%inline %{ extern int status; extern char path[256]; +%} + %mutable; /* Some helper functions to make it easier to test */ +%inline %{ extern void print_vars(); extern int *new_int(int value); extern Point *new_Point(int x, int y); extern char *Point_print(Point *p); extern void pt_print(); - - - +%} diff --git a/Examples/tcl/contract/example.i b/Examples/tcl/contract/example.i index aacae2c4e..8fd1a80af 100644 --- a/Examples/tcl/contract/example.i +++ b/Examples/tcl/contract/example.i @@ -14,6 +14,8 @@ ensure: fact >= 1; } +%inline %{ extern int gcd(int x, int y); extern int fact(int n); extern double Foo; +%} diff --git a/Examples/tcl/funcptr/example.h b/Examples/tcl/funcptr/example.h index 58989db79..9936e24fc 100644 --- a/Examples/tcl/funcptr/example.h +++ b/Examples/tcl/funcptr/example.h @@ -5,3 +5,5 @@ extern int add(int,int); extern int sub(int,int); extern int mul(int,int); +extern int (*funcvar)(int,int); + diff --git a/Examples/tcl/multimap/example.i b/Examples/tcl/multimap/example.i index 721cfe04c..658b4f145 100644 --- a/Examples/tcl/multimap/example.i +++ b/Examples/tcl/multimap/example.i @@ -1,5 +1,15 @@ /* File : example.i */ %module example + +%{ +extern int gcd(int x, int y); +extern int gcdmain(int argc, char *argv[]); +extern int count(char *bytes, int len, char c); +extern void capitalize (char *str, int len); +extern void circle (double cx, double cy); +extern int squareCubed (int n, int *OUTPUT); +%} + %include exception.i extern int gcd(int x, int y); diff --git a/Examples/tcl/pointer/example.i b/Examples/tcl/pointer/example.i index 841a2de4c..4d5b523bf 100644 --- a/Examples/tcl/pointer/example.i +++ b/Examples/tcl/pointer/example.i @@ -1,6 +1,12 @@ /* File : example.i */ %module example +%{ +extern void add(int *, int *, int *); +extern void sub(int *, int *, int *); +extern int divide(int, int, int *); +%} + /* This example illustrates a couple of different techniques for manipulating C pointers */ diff --git a/Examples/tcl/simple/example.i b/Examples/tcl/simple/example.i index 6702abb1e..24093b9bf 100644 --- a/Examples/tcl/simple/example.i +++ b/Examples/tcl/simple/example.i @@ -1,5 +1,7 @@ /* File : example.i */ %module example +%inline %{ extern int gcd(int x, int y); extern double Foo; +%} diff --git a/Examples/tcl/value/example.i b/Examples/tcl/value/example.i index 83c1f9cd6..1fad8b161 100644 --- a/Examples/tcl/value/example.i +++ b/Examples/tcl/value/example.i @@ -6,8 +6,10 @@ %} /* Some functions that manipulate Vectors by value */ +%inline %{ extern double dot_product(Vector a, Vector b); extern Vector vector_add(Vector a, Vector b); +%} /* Include this because the vector_add() function will leak memory */ void free(void *); diff --git a/Examples/tcl/variables/example.i b/Examples/tcl/variables/example.i index 56d7f4a55..591b871ed 100644 --- a/Examples/tcl/variables/example.i +++ b/Examples/tcl/variables/example.i @@ -5,6 +5,7 @@ %} /* Some global variable declarations */ +%inline %{ extern int ivar; extern short svar; extern long lvar; @@ -23,22 +24,26 @@ extern char name[256]; extern Point *ptptr; extern Point pt; +%} /* Some read-only variables */ %immutable; + +%inline %{ extern int status; extern char path[256]; +%} + %mutable; /* Some helper functions to make it easier to test */ +%inline %{ extern void print_vars(); extern int *new_int(int value); extern Point *new_Point(int x, int y); extern char *Point_print(Point *p); extern void pt_print(); - - - +%}