1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Fix build on gcc-3.3.x

Submitted by:   Simon Barner <barner@in.tum.de>
This commit is contained in:
Maho Nakata 2003-08-02 02:36:11 +00:00
parent 08ba0589fe
commit c2d82a9ad6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=86172
56 changed files with 708 additions and 15 deletions

View File

@ -0,0 +1,19 @@
--- texts.h.orig Wed Jul 23 03:48:19 2003
+++ texts.h Wed Jul 23 03:48:56 2003
@@ -1,6 +1,6 @@
#define E_MY_PRGNAME "xjumpjump"
-#define E_VERSION "JumpJump-0.12 for X, Feb 26th 1997 by
+#define E_VERSION "JumpJump-0.12 for X, Feb 26th 1997 by \
nihil (nihil@makosteszta.sote.hu)"
#define E_MY_TITLE "XJumpJump v0.12"
#define E_MY_TITLE2 "by nihil\nHungary\n1997.02.26"
@@ -9,7 +9,7 @@
#define E_STR_PRACTISE "Hmm... practise a bit more!"
#define H_STR_PRACTISE "Hmm... gyakorolj még egy picit!"
#define E_STR_CONGRAT "Congratulations! You have succeed!"
-#define H_STR_CONGRAT "Gratulálok! Sikerült ezt a pályát
+#define H_STR_CONGRAT "Gratulálok! Sikerült ezt a pályát \
leküzdened!"
#define E_STR_BUT_NEW "New Game"

View File

@ -23,10 +23,6 @@ USE_GMAKE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500113
BROKEN= "Does not compile (bad C++ code)"
.endif
post-patch:
@${REINPLACE_CMD} -e "s,-O3 -Wall -Werror,${CXXFLAGS},g ; \
s,gtk-config,${GTK_CONFIG},g ; \

View File

@ -0,0 +1,27 @@
--- Makefile.orig Mon Jul 21 19:59:12 2003
+++ Makefile Mon Jul 21 19:59:38 2003
@@ -27,7 +27,6 @@
# C
-CC := gcc
CFLAGS = ${DEPENDFLAGS}
%.o : %.c
@@ -35,7 +34,6 @@
# C++
-CXX := g++
CXXFLAGS = ${DEPENDFLAGS}
%.o : %.cc
@@ -57,7 +55,7 @@
# linker
-LINKER := g++
+LINKER := ${CXX}
LDFLAGS =
LOADLIBES := -O3 -lm `gtk-config --libs`

View File

@ -0,0 +1,10 @@
--- ./src/Edges/CEdgeContainer.h.orig Mon Jul 21 18:32:59 2003
+++ ./src/Edges/CEdgeContainer.h Mon Jul 21 18:33:24 2003
@@ -13,6 +13,7 @@
#include "CEdge.h"
+using std::set;
/*
*******************************************************************************

View File

@ -0,0 +1,11 @@
--- ./src/Editor/StatusBar.h.orig Mon Jul 21 16:36:37 2003
+++ ./src/Editor/StatusBar.h Mon Jul 21 16:36:49 2003
@@ -9,7 +9,7 @@
#include <gtk/gtkwidget.h>
-
+using std::string;
class StatusBar
{

View File

@ -0,0 +1,11 @@
--- ./src/Editor/Toolbox.h.orig Mon Jul 21 18:37:37 2003
+++ ./src/Editor/Toolbox.h Mon Jul 21 18:37:46 2003
@@ -13,7 +13,7 @@
#include <gtk/gtkwidget.h>
-
+using std::string;
class Toolbox
{

View File

@ -0,0 +1,11 @@
--- ./src/Events/Event.h.orig Mon Jul 21 16:31:20 2003
+++ ./src/Events/Event.h Mon Jul 21 16:31:32 2003
@@ -10,7 +10,7 @@
#define EVENTH
#include <string>
-
+using std::string;

View File

@ -0,0 +1,10 @@
--- ./src/Faces/CFace.h.orig Mon Jul 21 18:33:51 2003
+++ ./src/Faces/CFace.h Mon Jul 21 18:34:02 2003
@@ -17,6 +17,7 @@
#include "Point3.h"
+using std::vector;
/*
*******************************************************************************

View File

@ -0,0 +1,11 @@
--- ./src/FileIO/fileio.h.orig Mon Jul 21 16:28:28 2003
+++ ./src/FileIO/fileio.h Mon Jul 21 16:28:40 2003
@@ -8,7 +8,7 @@
#include <stdio.h>
#include <string>
-
+using std::string;
string readString(FILE *f);
void writeString(FILE *f, const string& s);

View File

@ -0,0 +1,11 @@
--- ./src/Journal/JournalTaskProgress.h.orig Mon Jul 21 16:38:59 2003
+++ ./src/Journal/JournalTaskProgress.h Mon Jul 21 16:39:09 2003
@@ -10,7 +10,7 @@
#include "MultiThreading.h"
-
+using std::string;
class JournalTaskProgress

View File

@ -0,0 +1,11 @@
--- ./src/LogGrid/CGrid.h.orig Mon Jul 21 16:32:01 2003
+++ ./src/LogGrid/CGrid.h Mon Jul 21 16:32:11 2003
@@ -6,7 +6,7 @@
#define CGRIDH
#include <list>
-
+using std::list;
#include "array.h"

View File

@ -0,0 +1,10 @@
--- ./src/Math/BBox.h.orig Mon Jul 21 16:29:27 2003
+++ ./src/Math/BBox.h Mon Jul 21 16:30:21 2003
@@ -12,6 +12,7 @@
#include "Point3.h"
#include "Plane.h"
#include "Line3.h"
+using std::vector;

View File

@ -0,0 +1,23 @@
--- ./src/Model/CModel.cpp.orig Mon Jul 21 18:40:40 2003
+++ ./src/Model/CModel.cpp Mon Jul 21 18:41:05 2003
@@ -68,17 +68,17 @@
}
-BBox CModel::getBBox(bool selectedOnly = true) const
+BBox CModel::getBBox(bool selectedOnly) const
{
return BBox();
}
-BBox CModel::getBBox(const Matrix4& m, bool selectedOnly = true) const
+BBox CModel::getBBox(const Matrix4& m, bool selectedOnly) const
{
return BBox();
}
-BBox CModel::getBBox(const Transformation *x, bool selectedOnly = true) const
+BBox CModel::getBBox(const Transformation *x, bool selectedOnly) const
{
return BBox();
}

View File

@ -0,0 +1,19 @@
--- ./src/ObjEdit/ObjectCollection.cpp.orig Mon Jul 21 18:47:55 2003
+++ ./src/ObjEdit/ObjectCollection.cpp Mon Jul 21 19:44:26 2003
@@ -326,11 +326,14 @@
UniqueId ObjectCollection::getUniqueId(const string& name) const
{
IdTable::const_iterator iter = nameToId.find(name);
- if ( iter != objects.end() )
+
+ //if (iter != objects.end() )
+ // Is this correct? 21.7.03, barner@in.tum.de
+ if (iter != nameToId.end())
{
return (*iter).second;
}
- else
+ else
{
return -1;
}

View File

@ -0,0 +1,14 @@
--- ./src/ObjEdit/ObjectCollection.h.orig Mon Jul 21 18:43:57 2003
+++ ./src/ObjEdit/ObjectCollection.h Mon Jul 21 18:47:09 2003
@@ -23,7 +23,10 @@
#include "Journal.h"
#include "ListManager.h"
-
+using std::string;
+using std::map;
+using std::set;
+using std::list;
class ObjectCollection : public JournalCollection

View File

@ -0,0 +1,11 @@
--- ./src/Patch/Patch.h.orig Mon Jul 21 16:20:46 2003
+++ ./src/Patch/Patch.h Mon Jul 21 16:27:54 2003
@@ -7,6 +7,8 @@
#include <vector>
+using std::vector;
+
//generates the indices of the vertices which make up quadrilateral faces, which
//form a rectangular patch
void patchGenerateQuadList(vector<int>& quads, int widthFaces, int heightFaces,

View File

@ -0,0 +1,11 @@
--- ./src/PolylineTools/ToolPolyDraw.cpp.orig Mon Jul 21 19:13:35 2003
+++ ./src/PolylineTools/ToolPolyDraw.cpp Mon Jul 21 19:14:06 2003
@@ -27,7 +27,7 @@
#include "Point3.h"
-
+using std::ostrstream;

View File

@ -0,0 +1,11 @@
--- ./src/SelectTools/ToolSelectBase.cpp.orig Mon Jul 21 19:10:28 2003
+++ ./src/SelectTools/ToolSelectBase.cpp Mon Jul 21 19:11:17 2003
@@ -146,7 +146,7 @@
ToolSelectBase::ToolSelectBase( CadView *v,
ObjPainterManager *pman,
const string& funcName, const string& optTitle,
- int tableWidth = 1 )
+ int tableWidth )
: ToolSelectModel( v, pman, funcName, optTitle, tableWidth ),
CadClickAndDragEventHandler( v->getCadArea() )
{

View File

@ -0,0 +1,12 @@
--- ./src/Tools/ToolGroup.h.orig Mon Jul 21 18:34:42 2003
+++ ./src/Tools/ToolGroup.h Mon Jul 21 18:34:57 2003
@@ -13,7 +13,8 @@
#include "GridLayout.h"
-
+using std::vector;
+using std::string;
class ToolGroup
{

View File

@ -0,0 +1,12 @@
--- ./src/Tools/Toolset.h.orig Mon Jul 21 16:35:45 2003
+++ ./src/Tools/Toolset.h Mon Jul 21 16:36:04 2003
@@ -18,7 +18,8 @@
#include "CadView.h"
#include "Toolbox.h"
-
+using std::string;
+using std::vector;
class Toolset
{

View File

@ -0,0 +1,14 @@
--- ./src/TypeManager/TypeManager.h.orig Mon Jul 21 16:37:26 2003
+++ ./src/TypeManager/TypeManager.h Mon Jul 21 16:38:08 2003
@@ -10,7 +10,10 @@
#include <map>
#include <list>
-
+using std::string;
+using std::vector;
+using std::map;
+using std::list;

View File

@ -0,0 +1,11 @@
--- ./src/Widgets/ListManager.cpp.orig Mon Jul 21 19:25:18 2003
+++ ./src/Widgets/ListManager.cpp Mon Jul 21 19:25:30 2003
@@ -10,7 +10,7 @@
#include "ListManager.h"
-
+using std::set;
ListManager::ListManager(const string& columnTitle)

View File

@ -0,0 +1,12 @@
--- ./src/Widgets/ListManager.h.orig Mon Jul 21 18:41:55 2003
+++ ./src/Widgets/ListManager.h Mon Jul 21 18:43:28 2003
@@ -14,7 +14,8 @@
#include <gtk/gtkwidget.h>
-
+using std::multiset;
+using std::string;
class ListManager

View File

@ -0,0 +1,13 @@
--- ./src/Widgets/NameDialog.cpp.orig Mon Jul 21 19:27:45 2003
+++ ./src/Widgets/NameDialog.cpp Mon Jul 21 19:28:18 2003
@@ -44,8 +44,8 @@
}
NameDialog::NameDialog(NameDialogListener *l,
- const string& title = "Name",
- const string& prompt = "name:")
+ const string& title,
+ const string& prompt )
{
listener = l;
constructorCommon(title, prompt);

View File

@ -0,0 +1,11 @@
--- ./src/Widgets/NameDialog.h.orig Mon Jul 21 19:26:12 2003
+++ ./src/Widgets/NameDialog.h Mon Jul 21 19:26:22 2003
@@ -15,7 +15,7 @@
#include "callback.h"
-
+using std::string;
class NameDialog;

View File

@ -0,0 +1,12 @@
--- ./src/Widgets/VectorWidget.cpp.orig Mon Jul 21 19:22:12 2003
+++ ./src/Widgets/VectorWidget.cpp Mon Jul 21 19:23:30 2003
@@ -13,7 +13,8 @@
#include "VectorWidget.h"
-
+using std::ostrstream;
+using std::istrstream;
/*
*******************************************************************************

View File

@ -0,0 +1,12 @@
--- ./src/Widgets/messageBox.h.orig Mon Jul 21 18:59:01 2003
+++ ./src/Widgets/messageBox.h Mon Jul 21 18:59:17 2003
@@ -8,7 +8,8 @@
#include <string>
#include <vector>
-
+using std::string;
+using std::vector;
/*
*******************************************************************************

View File

@ -0,0 +1,11 @@
--- ./src/WorkArea/CAEH_grid.cpp.orig Mon Jul 21 16:34:35 2003
+++ ./src/WorkArea/CAEH_grid.cpp Mon Jul 21 16:34:54 2003
@@ -8,7 +8,7 @@
#include "CAEH_grid.h"
#include <strstream>
-
+using std::ostrstream;
CAEH_grid::CAEH_grid(CadArea *c, const CGrid& gr)

View File

@ -0,0 +1,11 @@
--- ./src/WorkArea/DrawingArea.h.orig Mon Jul 21 16:32:55 2003
+++ ./src/WorkArea/DrawingArea.h Mon Jul 21 16:33:25 2003
@@ -27,7 +27,7 @@
#include "Geometry.h"
#include "PointerStatus.h"
-
+using std::list;
/******************************************************************************
******************************************************************************

View File

@ -0,0 +1,11 @@
--- ./src/XformTools/ToolTransformModel.cpp.orig Mon Jul 21 19:05:58 2003
+++ ./src/XformTools/ToolTransformModel.cpp Mon Jul 21 19:06:20 2003
@@ -15,7 +15,7 @@
ObjPainterManager *pman,
const string& funcName,
const string& optTitle,
- int tableWidth = 1)
+ int tableWidth)
: ToolModifyModel(v, pman, funcName, optTitle, tableWidth)
{
}

View File

@ -25,10 +25,6 @@ RESTRICTED= "Non-commercial use only"
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500113
BROKEN= "Does not compile"
.endif
.if defined(WANT_DGA)
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= gforce-1.1.6xp3.dga.patch.gz

View File

@ -0,0 +1,11 @@
--- _Unix-X/libxpce/xvhandler.c.orig Thu Jul 24 03:04:02 2003
+++ _Unix-X/libxpce/xvhandler.c Thu Jul 24 03:04:12 2003
@@ -342,7 +342,7 @@
/* x_DCTCEDoComp() - Do one component for DCTCE */
int x_DCTCEDoComp(int mask, int color) {
- static const char cnames[] = { "red", "green", "blue" };
+ static const char *cnames[] = { "red", "green", "blue" };
static const char cflags[] = { DoRed, DoGreen, DoBlue };
static unsigned long int * const carrays[] = { X_redmap,
X_greenmap,

View File

@ -0,0 +1,15 @@
--- source/paths.h.orig Sun Apr 6 00:00:00 1997
+++ source/paths.h Fri Jul 18 19:18:09 2003
@@ -34,9 +34,9 @@
# define INC_XMU(aaa) <XMU_DIRECTORY/aaa>
# define INC_XAW(aaa) <XAW_DIRECTORY/aaa>
#else
-# define INC_X11(aaa) <X11/##aaa##>
-# define INC_XMU(aaa) <X11/Xmu/##aaa##>
-# define INC_XAW(aaa) <X11/Xaw3d/##aaa##>
+# define INC_X11(aaa) <X11/aaa>
+# define INC_XMU(aaa) <X11/Xmu/aaa>
+# define INC_XAW(aaa) <X11/Xaw3d/aaa>
#endif
#endif /* _PATHS_H_ */

View File

@ -0,0 +1,11 @@
--- metaps.c.orig Sat Jul 19 02:38:38 2003
+++ metaps.c Sat Jul 19 02:39:09 2003
@@ -209,7 +209,7 @@
// rectangle clipping
// x1 y1 x2 y2 setclip
static char setclipmacro[]= "/setclip {\n\
-gsave
+gsave\
/y2 exch def\n\
/x2 exch def\n\
/y1 exch def\n\

View File

@ -0,0 +1,13 @@
--- rdf.c.orig Sat Jul 19 05:08:36 2003
+++ rdf.c Sat Jul 19 05:09:00 2003
@@ -445,8 +445,8 @@
printf("calculate_rdf(): a = %f b = %f c = %f alpha = %f beta = %f gamma = %f\n",
model->pbc[0], model->pbc[1], model->pbc[2],
model->pbc[3], model->pbc[4], model->pbc[5]);
- printf("calculate_rdf(): latmat[0] = %f latmat[1] = %f latmat[2] = %f
- \ncalculate_rdf(): latmat[3] = %f latmat[4] = %f latmat[5] = %f
+ printf("calculate_rdf(): latmat[0] = %f latmat[1] = %f latmat[2] = %f\
+ \ncalculate_rdf(): latmat[3] = %f latmat[4] = %f latmat[5] = %f\
\ncalculate_rdf(): latmat[6] = %f latmat[7] = %f latmat[8] = %f\n",
model->latmat[0], model->latmat[1], model->latmat[2],
model->latmat[3], model->latmat[4], model->latmat[5],

View File

@ -0,0 +1,31 @@
--- mod_index_rss.c.orig Tue Jul 22 04:37:54 2003
+++ mod_index_rss.c Tue Jul 22 04:39:22 2003
@@ -11,18 +11,18 @@
#define TIME_FORMAT "%a %b %d %H:%M:%S %Y"
/* This is the XML header file */
-#define HEADER "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
-
-<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"
- \"http://www.scripting.com/dtd/rss-0_91.dtd\">
-
-<rss version=\"0.91\">
-
-<channel>
+#define HEADER "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\
+\n\
+<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n\
+ \"http://www.scripting.com/dtd/rss-0_91.dtd\">\n\
+\n\
+<rss version=\"0.91\">\n\
+\n\
+<channel>\n\
"
-#define FOOTER "</channel>
-</rss>
+#define FOOTER "</channel>\n\
+</rss>\n\
"

View File

@ -30,10 +30,6 @@ USE_MOTIF= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
.if ${OSVERSION} >= 500113
BROKEN= "Does not compile (bad C++ code)"
.endif
post-patch:
@${REINPLACE_CMD} -e 's/^CFLAGS=/CFLAGS+=/g ; \
s/^CXXFLAGS=/CXXFLAGS+=/g ; \

View File

@ -0,0 +1,12 @@
--- ./Vk/VkAlignmentGroup.h.orig Wed Jul 23 02:43:07 2003
+++ ./Vk/VkAlignmentGroup.h Wed Jul 23 02:45:35 2003
@@ -24,6 +24,9 @@
#include <Vk/VkWidgetList.h>
#include <Vk/VkOptionMenu.h>
+#include <iostream>
+
+using std::ostream;
class VkAlignmentGroup : public VkWidgetList {
public:

View File

@ -0,0 +1,12 @@
--- ./Vk/VkCallbackList.h.orig Wed Jul 23 02:06:54 2003
+++ ./Vk/VkCallbackList.h Wed Jul 23 02:07:15 2003
@@ -44,6 +44,9 @@
#include <Vk/VkComponent.h>
#include <Vk/VkCallbackObject.h>
+using std::vector;
+using std::string;
+
struct VkCallbackListEntry {
enum CallbackType type;
VkCallbackObject *component;

View File

@ -0,0 +1,11 @@
--- ./Vk/VkCallbackObject.h.orig Wed Jul 23 02:07:33 2003
+++ ./Vk/VkCallbackObject.h Wed Jul 23 02:07:48 2003
@@ -42,6 +42,8 @@
#include <Vk/VkConfig.h>
+using std::vector;
+
class VkCallbackObject;
typedef void (VkCallbackObject::*VkCallbackMethod)(

View File

@ -0,0 +1,24 @@
--- ./Vk/VkComponentList.h.orig Wed Jul 23 02:09:51 2003
+++ ./Vk/VkComponentList.h Wed Jul 23 02:18:22 2003
@@ -41,6 +41,8 @@
#include <Vk/VkConfig.h>
+using std::vector;
+
class VkComponent;
class VkComponentList {
@@ -59,10 +61,10 @@
VkComponent* operator[](int indx) const { return elements[indx]; }
void insert(int pos, VkComponent* c)
- { elements.insert(&elements[pos], c); }
+ { elements.insert(elements.begin () + pos, c); }
void remove(int pos)
- { elements.erase(&elements[pos]); }
+ { elements.erase(elements.begin () + pos); }
private:
vector<VkComponent*> elements;

View File

@ -0,0 +1,11 @@
--- ./Vk/VkDialogManager.h.orig Wed Jul 23 02:13:42 2003
+++ ./Vk/VkDialogManager.h Wed Jul 23 02:13:57 2003
@@ -49,6 +49,8 @@
#include <Vk/VkResource.h>
#include <Vk/VkSimpleWindow.h>
+using std::string;
+
class VkDialogManager : public VkComponent {
public:
typedef enum {OK, APPLY, CANCEL} VkDialogReason;

View File

@ -0,0 +1,11 @@
--- ./Vk/VkMenuItem.h.orig Wed Jul 23 02:22:17 2003
+++ ./Vk/VkMenuItem.h Wed Jul 23 02:22:29 2003
@@ -41,6 +41,8 @@
#include <Vk/VkComponent.h>
#include <Vk/VkWidgetList.h>
+using std::string;
+
typedef enum {ACTION, ACTIONWIDGET, CONFIRMFIRSTACTION, TOGGLE, LABEL,
SEPARATOR, SUBMENU, RADIOSUBMENU, BAR, OPTION, POPUP, OBJECT,
END} VkMenuItemType;

View File

@ -0,0 +1,12 @@
--- ./Vk/VkNameList.h.orig Wed Jul 23 02:23:57 2003
+++ ./Vk/VkNameList.h Wed Jul 23 02:24:28 2003
@@ -43,6 +43,9 @@
#include <Xm/Xm.h>
#include <Vk/VkConfig.h>
+using std::vector;
+using std::string;
+
class VkNameList {
public:
VkNameList();

View File

@ -0,0 +1,11 @@
--- ./Vk/VkPrefItem.h.orig Wed Jul 23 02:40:46 2003
+++ ./Vk/VkPrefItem.h Wed Jul 23 02:41:01 2003
@@ -45,6 +45,8 @@
#include <string>
+using std::string;
+
class VkPrefItem : public VkComponent {
public:
enum VkPrefItemType {PI_group, PI_list, PI_radio, PI_text, PI_toggle,

View File

@ -0,0 +1,11 @@
--- ./VkAlignmentGroup.C.orig Wed Jul 23 02:44:15 2003
+++ ./VkAlignmentGroup.C Wed Jul 23 02:45:22 2003
@@ -36,6 +36,8 @@
#include <Vk/VkAlignmentGroup.h>
+using std::endl;
+
VkAlignmentGroup::VkAlignmentGroup()
: VkWidgetList(),
_maxWidth(0),

View File

@ -0,0 +1,12 @@
--- ./VkCallbackObject.C.orig Wed Jul 23 02:08:26 2003
+++ ./VkCallbackObject.C Wed Jul 23 02:09:04 2003
@@ -45,6 +45,9 @@
#include <Vk/VkCallbackObject.h>
#include <Vk/VkCallbackList.h>
+using std::cerr;
+using std::endl;
+
VkCallbackObject::VkCallbackObject()
{
}

View File

@ -0,0 +1,13 @@
--- ./VkComponent.C.orig Wed Jul 23 02:12:18 2003
+++ ./VkComponent.C Wed Jul 23 02:13:09 2003
@@ -46,6 +46,10 @@
#include <Vk/VkComponent.h>
#include <Vk/VkApp.h>
+using std::string;
+using std::cerr;
+using std::endl;
+
const char *const VkComponent::deleteCallback = "VkComponentDeleteCallback";
VkComponent::VkComponent(const char *name)

View File

@ -0,0 +1,11 @@
--- ./VkNameList.C.orig Wed Jul 23 02:39:09 2003
+++ ./VkNameList.C Wed Jul 23 02:39:23 2003
@@ -105,7 +105,7 @@
}
void
-VkNameList::remove(int index, int count=1)
+VkNameList::remove(int index, int count)
{
_contents.erase(_contents.begin() + index,
_contents.begin() + index + count);

View File

@ -0,0 +1,11 @@
--- ./VkPipe.C.orig Wed Jul 23 02:33:13 2003
+++ ./VkPipe.C Wed Jul 23 03:05:28 2003
@@ -67,7 +67,7 @@
_input->attach(pipefd[0], XtInputReadMask);
_input->addCallback(VkInput::inputCallback,
this,
- (VkCallbackMethod)&(VkPipe::handleInput));
+ (VkCallbackMethod)(&VkPipe::handleInput));
}
VkPipe::~VkPipe()

View File

@ -0,0 +1,13 @@
--- ./VkPrefRadio.C.orig Wed Jul 23 02:42:07 2003
+++ ./VkPrefRadio.C Wed Jul 23 02:42:38 2003
@@ -40,6 +40,10 @@
#include <Xm/Form.h>
#include <Vk/VkPrefRadio.h>
+#include <iostream>
+
+using std::cerr;
+using std::endl;
// A VkPrefRadio is a vertical VkPrefGroup with no label
VkPrefRadio::VkPrefRadio(const char *name,

View File

@ -0,0 +1,31 @@
--- ./VkRadioGroup.C.orig Wed Jul 23 02:25:08 2003
+++ ./VkRadioGroup.C Wed Jul 23 02:31:58 2003
@@ -47,11 +47,15 @@
#include <Xm/ToggleBG.h>
#include <Xm/PushB.h>
#include <Xm/PushBG.h>
+#include <iostream>
+
+using std::cerr;
+using std::endl;
VkRadioGroup::VkRadioGroup()
: VkWidgetList()
{
- _currentlySelected = 0;
+ //_currentlySelected = 0;
}
void
@@ -77,9 +81,9 @@
void
VkRadioGroup::remove(Widget item)
{
- if (*_currentlySelected == item)
+ /*if (*_currentlySelected == item)
_currentlySelected = 0;
- else if (_currentlySelected > VkWidgetList::find(item))
+ else */ if (_currentlySelected > VkWidgetList::find(item))
_currentlySelected --;
XtRemoveCallback(item, XmNvalueChangedCallback,

View File

@ -0,0 +1,13 @@
--- ./VkSimpleWindow.C.orig Wed Jul 23 02:18:56 2003
+++ ./VkSimpleWindow.C Wed Jul 23 02:20:37 2003
@@ -44,6 +44,10 @@
#include <X11/Xutil.h>
#include <X11/Xmu/Editres.h>
+using std::cerr;
+using std::endl;
+using std::exception;
+
static char* rcsid
#ifdef __GNUC__
__attribute__ ((unused))

View File

@ -0,0 +1,13 @@
--- ./VkSubProcess.C.orig Wed Jul 23 02:39:49 2003
+++ ./VkSubProcess.C Wed Jul 23 02:40:21 2003
@@ -40,6 +40,10 @@
#include <signal.h>
#include <stdio.h>
#include <unistd.h> // for exec*
+#include <iostream>
+
+using std::cerr;
+using std::endl;
VkSubProcess::VkSubProcess(char *prog,
VkNameList *given,

View File

@ -1,10 +1,16 @@
--- VkTrace.C.orig Wed Jun 5 00:04:51 2002
+++ VkTrace.C Wed Jun 5 00:05:25 2002
@@ -28,6 +28,7 @@
--- VkTrace.C.orig Thu Jul 11 08:46:58 2002
+++ VkTrace.C Wed Jul 23 03:22:53 2003
@@ -28,8 +28,13 @@
#include <stdio.h>
#include <time.h>
#include <string.h>
+#include <stdarg.h>
#include <Vk/VkTrace.h>
+#include <fstream>
+
+using std::ofstream;
+using std::endl;
ofstream* vkTraceOut = 0;

View File

@ -0,0 +1,13 @@
--- ./VkWindow.C.orig Wed Jul 23 02:21:06 2003
+++ ./VkWindow.C Wed Jul 23 02:21:39 2003
@@ -42,6 +42,10 @@
#include <Vk/VkWindow.h>
#include <iostream.h>
+using std::cerr;
+using std::endl;
+using std::exception;
+
VkWindow::VkWindow(const char* name,
ArgList args,
Cardinal argCount)