From: William F. <wsf...@us...> - 2005-06-28 21:11:51
|
Update of /cvsroot/swig/SWIG/Examples/python/variables In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30583/python/variables Modified Files: example.i Log Message: fix extern declarations Index: example.i =================================================================== RCS file: /cvsroot/swig/SWIG/Examples/python/variables/example.i,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** example.i 15 Jun 2004 20:12:21 -0000 1.5 --- example.i 28 Jun 2005 21:11:10 -0000 1.6 *************** *** 6,9 **** --- 6,10 ---- /* Some global variable declarations */ + %inline %{ extern int ivar; extern short svar; *************** *** 24,27 **** --- 25,29 ---- extern Point *ptptr; extern Point pt; + %} *************** *** 29,37 **** --- 31,44 ---- %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); *************** *** 39,44 **** extern char *Point_print(Point *p); extern void pt_print(); ! ! ! --- 46,49 ---- extern char *Point_print(Point *p); extern void pt_print(); ! %} |