From 735ac78241422c1e99aad3dca2fb4fa8a20b7d83 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 16 Mar 2006 01:44:26 +0000 Subject: [PATCH] fix mispelled prepend, reported by Jeremy McCormick git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9007 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Doc/Manual/Python.html | 8 ++++---- Lib/python/pyuserdir.swg | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Doc/Manual/Python.html b/Doc/Manual/Python.html index 9925eca15..199425ea5 100644 --- a/Doc/Manual/Python.html +++ b/Doc/Manual/Python.html @@ -3033,7 +3033,7 @@ proxy, just before the return statement. // Add python code to bar() -%feature("pythonpreppend") Foo::bar(int) %{ +%feature("pythonprepend") Foo::bar(int) %{ #do something before C++ call %} @@ -3050,10 +3050,10 @@ public:

-Notes: Usually the pythonappend and pythonpreppend +Notes: Usually the pythonappend and pythonprepend features are safer to use than the shadow feature. Also, from SWIG version 1.3.28 you can use the directive forms -%pythonappend and %pythonpreppend as follows:

+%pythonappend and %pythonprepend as follows:

@@ -3062,7 +3062,7 @@ SWIG version 1.3.28 you can use the directive forms // Add python code to bar() -%pythonpreppend Foo::bar(int) %{ +%pythonprepend Foo::bar(int) %{ #do something before C++ call %} diff --git a/Lib/python/pyuserdir.swg b/Lib/python/pyuserdir.swg index 4eb7b629d..c370ff7a4 100644 --- a/Lib/python/pyuserdir.swg +++ b/Lib/python/pyuserdir.swg @@ -173,12 +173,12 @@ These methods "may be called" if needed. /* Add python code to the proxy/shadow code - %pythonpreppend - Add code before the C++ function is called + %pythonprepend - Add code before the C++ function is called %pythonappend - Add code after the C++ function is called */ -#define %pythonpreppend %feature("pythonpreppend") -#define %clearpythonpreppend %feature("pythonpreppend","") +#define %pythonprepend %feature("pythonprepend") +#define %clearpythonprepend %feature("pythonprepend","") #define %pythonappend %feature("pythonappend") #define %clearpythonappend %feature("pythonappend","")