1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/x11-toolkits/iv/files/patch-cg

30 lines
1.3 KiB
Plaintext
Raw Normal View History

--- src/bin/ibuild/ibmenu.c.orig Wed Dec 29 00:03:53 1999
+++ src/bin/ibuild/ibmenu.c Wed Dec 29 00:04:11 1999
@@ -403,7 +403,7 @@
const char* proc = menuItem->GetTrackNameVar()->GetName();
const char* text = menuItem->GetMenuItemGraphic()->GetText();
- boolean export = icomp->GetMemberNameVar()->GetExport();
+ boolean export_ = icomp->GetMemberNameVar()->GetExport();
Shape* shape = icomp->GetShapeVar()->GetShape();
if (icomp->GetClassNameVar()->IsSubclass()) {
@@ -411,7 +411,7 @@
out << "(";
} else {
- if (export && !_emitMain) {
+ if (export_ && !_emitMain) {
out << " " << mname << " = ";
out << "new " << MenuClass;
} else {
@@ -431,7 +431,7 @@
EndInstantiate(out);
if (!_emitMain && proc != nil && *proc != '\0') {
- if (!export || icomp->GetClassNameVar()->IsSubclass()) {
+ if (!export_ || icomp->GetClassNameVar()->IsSubclass()) {
out << " " << mname << "->SetCoreClass(this);\n";
out <<" "<< mname <<"->SetCoreFunc("<< "&" << coreclass;
out << "::" << proc << ");\n";