Fixes to Octave examples
- rename example modules from "example" to "swigexample", to avoid a warning from shadowing the Octave built-in function "example" - remove deprecated "static" Makefile targets: there is no longer an option to build static Octave modules in the Examples Makefile - emacs whitespace cleanup run on all files
This commit is contained in:
parent
7964ebe34f
commit
c28d0c6c80
63 changed files with 211 additions and 345 deletions
|
|
@ -3,17 +3,17 @@
|
|||
# This file illustrates the proxy class C++ interface generated
|
||||
# by SWIG.
|
||||
|
||||
example
|
||||
swigexample
|
||||
|
||||
# ----- Object creation -----
|
||||
|
||||
printf("Creating some objects:\n");
|
||||
c = example.Circle(10)
|
||||
s = example.Square(10)
|
||||
c = swigexample.Circle(10)
|
||||
s = swigexample.Square(10)
|
||||
|
||||
# ----- Access a static member -----
|
||||
|
||||
printf("\nA total of %i shapes were created\n", example.Shape.nshapes);
|
||||
printf("\nA total of %i shapes were created\n", swigexample.Shape.nshapes);
|
||||
|
||||
# ----- Member data access -----
|
||||
|
||||
|
|
@ -46,7 +46,5 @@ printf("\nGuess I'll clean up now\n");
|
|||
clear c
|
||||
clear s
|
||||
|
||||
printf("%i shapes remain\n", example.Shape.nshapes);
|
||||
printf("%i shapes remain\n", swigexample.Shape.nshapes);
|
||||
printf("Goodbye\n");
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue