From 937bbbc172bad28bfb7fe667952dace78c3bd096 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 9 Feb 2012 05:47:26 +0000 Subject: [PATCH] fix size_t typedef, don't use wx prefix on BG_STYLE_CUSTOM alias git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etg/defs.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etg/defs.py b/etg/defs.py index 2258c1a5..d14982e1 100644 --- a/etg/defs.py +++ b/etg/defs.py @@ -47,11 +47,12 @@ def run(): module.find('wxSwap').ignore() module.find('wxVaCopy').ignore() - # add some typedefs for wxChar, wxUChar, etc. + # Add some typedefs for basic wx types and others so the backend + # generator knows what they are td = module.find('wxUIntPtr') module.insertItemAfter(td, etgtools.TypedefDef(type='wchar_t', name='wxUChar')) module.insertItemAfter(td, etgtools.TypedefDef(type='wchar_t', name='wxChar')) - module.insertItemAfter(td, etgtools.TypedefDef(type='unsigned int', name='size_t')) + module.insertItemAfter(td, etgtools.TypedefDef(type='unsigned long', name='size_t')) module.insertItemAfter(td, etgtools.TypedefDef(type='long', name='time_t')) module.insertItemAfter(td, etgtools.TypedefDef(type='int', name='wxPrintQuality')) module.insertItemAfter(td, etgtools.TypedefDef(type='long long', name='wxFileOffset')) @@ -94,7 +95,7 @@ def run(): const int SUBRELEASE_NUMBER; """)) - module.addPyCode("wx.BG_STYLE_CUSTOM = wx.BG_STYLE_PAINT") + module.addPyCode("BG_STYLE_CUSTOM = BG_STYLE_PAINT") #-----------------------------------------------------------------