summaryrefslogtreecommitdiffstats
path: root/japanese/iv/files/patch-bg
blob: b86bd7ffa4aaa6c8ce4cf201316805b189149365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
--- ./src/bin/ibuild/ibcode.c.orig	Tue Oct 20 02:58:01 1992
+++ ./src/bin/ibuild/ibcode.c	Wed Jul  9 00:22:23 2003
@@ -41,11 +41,26 @@
 #include <Unidraw/Graphic/pspaint.h>
 #include <InterViews/shape.h>
 #include <InterViews/transformer.h>
+
+#if __FreeBSD__ >= 2
+#include <osreldate.h>
+#if (__FreeBSD_cc_version < 400002 && __FreeBSD_version < 500000)
 #include <osfcn.h>
+#endif
+#endif
+#if __FreeBSD_cc_version >= 400003
+#include <stdio.h>
+#endif
 #include <stdlib.h>
 #include <stream.h>
 #include <string.h>
 
+#if (__FreeBSD_version > 500000)
+extern "C" {
+    extern int      sprintf(char * __restrict, const char * __restrict, ...);
+}
+#endif
+
 /*****************************************************************************/
 
 char* FilterName (const char* name) {
@@ -362,7 +377,7 @@
 	ButtonStateVar* bsVar = intcomp->GetButtonStateVar();
 	const char* bsname = bsVar->GetName();
 	const char* proc = bsVar->GetFuncName();
-        boolean export = bsVar->GetExport();
+        boolean getexport = bsVar->GetExport();
         const char* subclass = bsVar->GetSubclassName();
 
         if (!bsVar->IsSubclass() && !_emitMain) {
@@ -375,7 +390,7 @@
 	if (!_bsinitslist->Search(bsname)) {
 	    _bsinitslist->Append(bsname);
 
-            if (export && !_emitMain) {
+            if (getexport && !_emitMain) {
                 out << "    " << bsname;
             } else {
                 out << "    " << ButtonClass << "* " << bsname;
@@ -384,7 +399,7 @@
             out << bsVar->GetInitial() << ");\n";
 
             if (!_emitMain && proc != nil && *proc != '\0') {
-                if (!export || bsVar->IsSubclass()) {
+                if (!getexport || bsVar->IsSubclass()) {
                     out << "    " << bsname << "->SetCoreClass(this);\n";
                     out <<"    "<< bsname<<"->SetCoreFunc("<< "&" << coreclass;
                     out << "::" << proc << ");\n";
@@ -1598,10 +1613,10 @@
 void CodeView::BeginInstantiate (ostream& out) {
     InteractorComp* icomp = GetIntComp();
     const char* mname = icomp->GetMemberNameVar()->GetName();
-    boolean export = icomp->GetMemberNameVar()->GetExport();
+    boolean getexport = icomp->GetMemberNameVar()->GetExport();
     const char* classname = icomp->GetClassNameVar()->GetName();
 
-    if (export && !_emitMain) {
+    if (getexport && !_emitMain) {
         out << "    " << mname << " = new ";
     } else {
         out << "    " << classname << "* ";
OpenPOWER on IntegriCloud