Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 106987 Details for
Bug 89533
new package suggestion: Code::Blocks - a cross-platform C/C++ IDE
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes Squirrel Bindings on x86_64
code-blocks-x64-patch.patch (text/plain), 3.62 KB, created by
Dan Kozlowski
on 2007-01-14 19:11:37 UTC
(
hide
)
Description:
Fixes Squirrel Bindings on x86_64
Filename:
MIME Type:
Creator:
Dan Kozlowski
Created:
2007-01-14 19:11:37 UTC
Size:
3.62 KB
patch
obsolete
>Index: src/sdk/scripting/sqplus/SquirrelObject.h >=================================================================== >--- src/sdk/scripting/sqplus/SquirrelObject.h (revision 3483) >+++ src/sdk/scripting/sqplus/SquirrelObject.h (working copy) >@@ -11,7 +11,7 @@ > SquirrelObject(HSQOBJECT o); > SquirrelObject & operator =(const SquirrelObject &o); > SquirrelObject & operator =(int n); >- void AttachToStackObject(int idx); >+ void AttachToStackObject(SQInteger idx); > void Reset(void); // Release (any) reference and reset _o. > SquirrelObject Clone(); > BOOL SetValue(const SquirrelObject &key,const SquirrelObject &val); >@@ -102,21 +102,21 @@ > _top = sq_gettop(v); > this->v = v; > } >- SQFloat GetFloat(int idx) { >+ SQFloat GetFloat(SQInteger idx) { > SQFloat x = 0.0f; > if(idx > 0 && idx <= _top) { > sq_getfloat(v,idx,&x); > } > return x; > } >- SQInteger GetInt(int idx) { >+ SQInteger GetInt(SQInteger idx) { > SQInteger x = 0; > if(idx > 0 && idx <= _top) { > sq_getinteger(v,idx,&x); > } > return x; > } >- HSQOBJECT GetObjectHandle(int idx) { >+ HSQOBJECT GetObjectHandle(SQInteger idx) { > HSQOBJECT x; > if(idx > 0 && idx <= _top) { > sq_resetobject(&x); >@@ -124,7 +124,7 @@ > } > return x; > } >- const SQChar *GetString(int idx) >+ const SQChar *GetString(SQInteger idx) > { > const SQChar *x = NULL; > if(idx > 0 && idx <= _top) { >@@ -132,7 +132,7 @@ > } > return x; > } >- SQUserPointer GetUserPointer(int idx) >+ SQUserPointer GetUserPointer(SQInteger idx) > { > SQUserPointer x = 0; > if(idx > 0 && idx <= _top) { >@@ -140,14 +140,14 @@ > } > return x; > } >- SQUserPointer GetInstanceUp(int idx,SQUserPointer tag) >+ SQUserPointer GetInstanceUp(SQInteger idx,SQUserPointer tag) > { > SQUserPointer self; > if(SQ_FAILED(sq_getinstanceup(v,idx,(SQUserPointer*)&self,tag))) > return NULL; > return self; > } >- SQUserPointer GetUserData(int idx,SQUserPointer tag=0) >+ SQUserPointer GetUserData(SQInteger idx,SQUserPointer tag=0) > { > SQUserPointer otag; > SQUserPointer up; >@@ -159,7 +159,7 @@ > } > return NULL; > } >- BOOL GetBool(int idx) >+ BOOL GetBool(SQInteger idx) > { > SQBool ret; > if(idx > 0 && idx <= _top) { >@@ -168,7 +168,7 @@ > } > return FALSE; > } >- int GetType(int idx) >+ int GetType(SQInteger idx) > { > if(idx > 0 && idx <= _top) { > return sq_gettype(v,idx); >Index: src/sdk/scripting/sqplus/SquirrelObject.cpp >=================================================================== >--- src/sdk/scripting/sqplus/SquirrelObject.cpp (revision 3483) >+++ src/sdk/scripting/sqplus/SquirrelObject.cpp (working copy) >@@ -71,7 +71,7 @@ > } > } > >-void SquirrelObject::AttachToStackObject(int idx) >+void SquirrelObject::AttachToStackObject(SQInteger idx) > { > HSQOBJECT t; > sq_getstackobj(SquirrelVM::_VM,idx,&t); >Index: src/sdk/scripting/bindings/sc_dialog.cpp >=================================================================== >--- src/sdk/scripting/bindings/sc_dialog.cpp (revision 3483) >+++ src/sdk/scripting/bindings/sc_dialog.cpp (working copy) >@@ -98,7 +98,7 @@ > if (!s_ActiveDialog) > { > cbMessageBox(_("XRCID() only valid while inside a ShowDialog() call..."), _("Error"), wxICON_ERROR); >- return sa.Return(-1); >+ return sa.Return((SQInteger)-1); > } > > wxWindow* win = 0; >@@ -106,7 +106,7 @@ > win = wxWindow::FindWindowByName(cbC2U(sa.GetString(2)), s_ActiveDialog); > else > win = wxWindow::FindWindowByName(*SqPlus::GetInstance<wxString>(v, 2), s_ActiveDialog); >- return sa.Return(win ? win->GetId() : -1); >+ return sa.Return(win ? (SQInteger)win->GetId() : (SQInteger)-1); > } > > void Register_Dialog()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 89533
:
61678
|
61679
|
61680
|
61687
|
64486
|
65194
|
65195
|
72819
|
72820
|
73968
|
75046
|
75048
|
76289
|
76841
|
77788
|
77813
|
81421
|
81457
|
82344
|
82345
|
82346
|
86408
|
86560
|
95867
|
101642
| 106987