aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2007-10-17 21:43:55 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2007-10-17 21:43:55 +0000
commit9c65c6b044f1f43f3dfbeedfd32488bce3e3ec75 (patch)
tree764c1fe7ba2923b6a947e0995b364402a8433c01
parentfe042d2ebcac4080bb4948bf035d36ac7bd3b791 (diff)
downloadswig-9c65c6b044f1f43f3dfbeedfd32488bce3e3ec75.tar.gz
Remove cvs $Header$
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--Lib/attribute.i69
-rw-r--r--Lib/perl5/Makefile.in1
-rw-r--r--Lib/python/Makefile.in1
-rw-r--r--Lib/swig.swg2
-rw-r--r--Lib/tcl/Makefile.in1
5 files changed, 1 insertions, 73 deletions
diff --git a/Lib/attribute.i b/Lib/attribute.i
index 57f4903e9..45c3c5b64 100644
--- a/Lib/attribute.i
+++ b/Lib/attribute.i
@@ -7,73 +7,6 @@
* SWIG library file for implementing attributes.
* ----------------------------------------------------------------------------- */
-/*
-
- The following macros convert a pair of set/get methods
- into a "native" attribute.
-
- Use %attribute when you have a pair of get/set methods
- like in:
-
- %attribute(A, int, a, get_a, set_a);
-
- struct A
- {
- int get_a() const;
- void set_a(int aa);
- };
-
- If you don't provide a 'set' method, a 'read-only' attribute
- is generated, ie, like in:
-
- %attribute(A, int, c, get_c);
-
-
- Use %attribute_ref when you have const/non-const reference
- access methods, like in:
-
- %attribute_ref(A, int, b);
-
- struct A
- {
- const int& b() const;
- int& b();
- };
-
- %attribute_ref(B, int, c);
-
- struct B
- {
- int& c();
- };
-
- You can also use
-
- %attribute_ref(class, type, refname, attr);
-
- if the internal C++ reference methods have a different name from the
- attribute you want.
-
- Then you can use the instances like:
-
- x = A()
- x.a = 3 # calls A::set_a
- print x.a # calls A::get_a
-
- x.b = 3 # calls A::b()
- print x.b # calls A::b() const
-
- NOTE: remember that if the type contains commas, such as
- 'std::pair<int,int>', you need to use the macro like:
-
- %attribute_ref(A, %arg(std::pair<int,int>), pval);
-
- where %arg() 'normalize' the type to be understood as a single
- argument, otherwise the macro will get confused (see the 'cpp'
- documentation).
-
-*/
-
/* we use a simple exception warning here */
%{
#include <stdio.h>
@@ -84,7 +17,7 @@
#define %arg(x) x
#endif
-#ifndef %mange
+#ifndef %mangle
#define %mangle(Type...) #@Type
#endif
diff --git a/Lib/perl5/Makefile.in b/Lib/perl5/Makefile.in
index 36ab94805..dde01894d 100644
--- a/Lib/perl5/Makefile.in
+++ b/Lib/perl5/Makefile.in
@@ -1,5 +1,4 @@
# ---------------------------------------------------------------
-# $Header$
# SWIG Perl5 Makefile
#
# This file can be used to build various Perl5 extensions with SWIG.
diff --git a/Lib/python/Makefile.in b/Lib/python/Makefile.in
index eb18214d0..3243b3df4 100644
--- a/Lib/python/Makefile.in
+++ b/Lib/python/Makefile.in
@@ -1,5 +1,4 @@
# ---------------------------------------------------------------
-# $Header$
# SWIG Python Makefile
#
# This file can be used to build various Python extensions with SWIG.
diff --git a/Lib/swig.swg b/Lib/swig.swg
index 6dc2ea81f..bccdf10d1 100644
--- a/Lib/swig.swg
+++ b/Lib/swig.swg
@@ -1,8 +1,6 @@
/* -----------------------------------------------------------------------------
* swig.swg
*
- * $Header$
- *
* Common macro definitions for various SWIG directives. This file is always
* included at the top of each input file.
* ----------------------------------------------------------------------------- */
diff --git a/Lib/tcl/Makefile.in b/Lib/tcl/Makefile.in
index 0ed59f274..523349bb5 100644
--- a/Lib/tcl/Makefile.in
+++ b/Lib/tcl/Makefile.in
@@ -1,5 +1,4 @@
# ---------------------------------------------------------------
-# $Header$
# SWIG Tcl/Tk Makefile
#
# This file can be used to build various Tcl extensions with SWIG.