summaryrefslogtreecommitdiff
path: root/Lib/octave/director.swg
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-12-23 19:50:41 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-12-23 19:50:41 +0000
commit135a7cc558442062ce8d65de834870a71eb30aca (patch)
treec3c68ae61768f9ff18bf72ba6ccff630705f1c49 /Lib/octave/director.swg
parent279ebdc0cf655feca4c80c23f115e90ce0470102 (diff)
downloadswig-135a7cc558442062ce8d65de834870a71eb30aca.tar.gz
Beautify director.swg files
Also some comment corrections for Perl
Diffstat (limited to 'Lib/octave/director.swg')
-rw-r--r--Lib/octave/director.swg15
1 files changed, 11 insertions, 4 deletions
diff --git a/Lib/octave/director.swg b/Lib/octave/director.swg
index 5e5d6f1f4..ce4377ef1 100644
--- a/Lib/octave/director.swg
+++ b/Lib/octave/director.swg
@@ -1,3 +1,10 @@
+/* -----------------------------------------------------------------------------
+ * director.swg
+ *
+ * This file contains support for director classes so that D proxy
+ * methods can be called from C++.
+ * ----------------------------------------------------------------------------- */
+
# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
@@ -62,7 +69,7 @@ namespace Swig {
}
};
- SWIGINTERN rtdir_map* get_rtdir_map() {
+ SWIGINTERN rtdir_map *get_rtdir_map() {
static swig_module_info *module = 0;
if (!module)
module = SWIG_GetModule(0);
@@ -74,19 +81,19 @@ namespace Swig {
}
SWIGINTERNINLINE void set_rtdir(void *vptr, Director *d) {
- rtdir_map* rm = get_rtdir_map();
+ rtdir_map *rm = get_rtdir_map();
if (rm)
(*rm)[vptr] = d;
}
SWIGINTERNINLINE void erase_rtdir(void *vptr) {
- rtdir_map* rm = get_rtdir_map();
+ rtdir_map *rm = get_rtdir_map();
if (rm)
(*rm).erase(vptr);
}
SWIGINTERNINLINE Director *get_rtdir(void *vptr) {
- rtdir_map* rm = get_rtdir_map();
+ rtdir_map *rm = get_rtdir_map();
if (!rm)
return 0;
rtdir_map::const_iterator pos = rm->find(vptr);