From: John L. <jr...@us...> - 2008-10-22 05:31:50
|
Update of /cvsroot/wxlua/wxLua/docs In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv9558/wxLua/docs Modified Files: binding.html changelog.txt Log Message: Swap parameters to the %typedef tag to follow C/C++ nomenclature Call AllocDataType in genwxbind.lua for the %typedef automatically. Index: changelog.txt =================================================================== RCS file: /cvsroot/wxlua/wxLua/docs/changelog.txt,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** changelog.txt 2 Feb 2008 17:10:12 -0000 1.63 --- changelog.txt 22 Oct 2008 05:31:45 -0000 1.64 *************** *** 2,5 **** --- 2,13 ---- =============== + version 2.8.9.0 + -------------------------------------------------------------------- + + * Changed the %typedef binding to work as the C/C++ typedefs work. + The usage is reversed from how it was in previous versions. + You will need to swap the parameters for it in your bindings. + Example: %typedef long wxTextCoord + version 2.8.7.0 (released 02/02/2008) -------------------------------------------------------------------- Index: binding.html =================================================================== RCS file: /cvsroot/wxlua/wxLua/docs/binding.html,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** binding.html 21 Oct 2008 04:23:18 -0000 1.28 --- binding.html 22 Oct 2008 05:31:45 -0000 1.29 *************** *** 786,798 **** single line or a whole class.</li> ! </ul><i><b>%typedef ! UNKNOWN_CLASS KNOWN_CLASS</b></i><br> ! <ul> <li>Declares to the binding that the <i>UNKNOWN_CLASS</i> ! should be treated as <i>KNOWN_CLASS</i>. </li> <li>An example of ! this is <i>"%typedef wxNotebookPage wxWindow"</i> where ! the wxNotebookPage is really just a typedef to a wxWindow in C++ and so ! there's no reason to actually declare the %class wxNotebookPage for ! wxLua.</li> </ul><b><i>%ungc</i></b><i><br> </i><ul> <li>For use before a userdata parameter of --- 786,798 ---- single line or a whole class.</li> ! </ul><i><b>%typedef KNOWN_DATATYPE</b></i> <i><b>UNKNOWN_DATATYPE</b></i> ! <ul> <li>Declares to the binding that the <i>UNKNOWN_DATATYPE</i> ! should be treated as <i>KNOWN_DATATYPE</i>. </li> <li>An example of ! this is <i>"%typedef long wxTextCoord"</i> where ! the wxTextCoord is just a long integer.</li><li>Without ! the %typedef the binding generator would give an error about an unknown ! data type, since it would assume that a typo or an error in the ! interface file has been made.</li> </ul><b><i>%ungc</i></b><i><br> </i><ul> <li>For use before a userdata parameter of |