Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jan 2000 16:20:24 +0100 (CET)
From:      Alexander Langer <alex@cichlids.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/16255: fix math/simpack (bentofied)
Message-ID:  <200001211520.QAA21588@cichlids.cichlids.com>

next in thread | raw e-mail | index | archive | help

>Number:         16255
>Category:       ports
>Synopsis:       fix math/simpack (bentofied)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 21 07:30:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Langer
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
no
>Environment:

-current

>Description:

bento found another failure that is because the new compiler thinks to strictly follow ANSI C++ (dumb).

This patch includes just many const STUFF -> const int STUFF
declarations which makes the port compile and run.

There are still many warning messages, but the port runs.

>How-To-Repeat:

see bento

>Fix:

add these to the patches subdir:

patch-ad

--- func/event/include/capi.h.old	Fri Jan 21 15:47:27 2000
+++ func/event/include/capi.h	Fri Jan 21 15:47:52 2000
@@ -18,11 +18,11 @@
 
 // extract info from init_simpack()'s parameter:
 
-    const FEL_TYPE_MASK     = 0x000f; // new
-    const REMOVE_DUP_MASK   = 0x0010; // orig REMOVE_DUPLICATES was pound-defined as 16 but not used
-    const REMOVE_DUPLICATES = 0x0010; // for compat w/simpack appl code qnet
-    const RESEED_MASK       = 0x0020; // orig RESEED was pound-defined as 32 but not used
-    const RESEED            = 0x0020; // for compat w/simpack
+    const int FEL_TYPE_MASK     = 0x000f; // new
+    const int REMOVE_DUP_MASK   = 0x0010; // orig REMOVE_DUPLICATES was pound-defined as 16 but not used
+    const int REMOVE_DUPLICATES = 0x0010; // for compat w/simpack appl code qnet
+    const int RESEED_MASK       = 0x0020; // orig RESEED was pound-defined as 32 but not used
+    const int RESEED            = 0x0020; // for compat w/simpack
 
 // Group 1: related to class Future:
 
patch-ae

--- func/event/include/vlist.h.old	Fri Jan 21 15:49:25 2000
+++ func/event/include/vlist.h	Fri Jan 21 15:49:48 2000
@@ -136,9 +136,9 @@
 -----------------------------------------------------------------------------*/
 
 #if TURBOC
-  const STANDARD_HEAP_CAPACITY = 100; // heap size
+  const int STANDARD_HEAP_CAPACITY = 100; // heap size
 #else
-  const STANDARD_HEAP_CAPACITY = 50000;
+  const int STANDARD_HEAP_CAPACITY = 50000;
 #endif
 
 class Heap : public Vlist
@@ -227,7 +227,7 @@
   const long MAX_NBUCKETS = 32768-1;
 #endif
 
-const LARGEST_CALENDAR_SAMPLE = 25;
+const int LARGEST_CALENDAR_SAMPLE = 25;
 
 class Calendar : public Vlist
   {

patch-af

--- func/event/include/facility.h.old	Fri Jan 21 15:52:05 2000
+++ func/event/include/facility.h	Fri Jan 21 15:52:29 2000
@@ -12,11 +12,11 @@
 created with the c++ API (Facility constructor).
 -----------------------------------------------------------------------------*/
 
-const MAX_FACILITIES = 1000; // max number of facilities
+const int MAX_FACILITIES = 1000; // max number of facilities
 
 
 enum FacStatus {FREE, BUSY};
-const MAX_FAC_NAME_LEN = 64;
+const int MAX_FAC_NAME_LEN = 64;
 const double MINUS_INFINITY = -1.0e77; // for debug during development
 
 /*=============================================================================

patch-ag

--- func/event/include/token.h.old	Fri Jan 21 15:53:54 2000
+++ func/event/include/token.h	Fri Jan 21 15:54:10 2000
@@ -9,9 +9,9 @@
 ****************************************************************************/
 
 // symbolic name
-const AUTO = -1;
-const MAX_NUM_RATTR = 5;
-const MAX_NUM_IATTR = 3;
+const int AUTO = -1;
+const int MAX_NUM_RATTR = 5;
+const int MAX_NUM_IATTR = 3;
 
 class Token
   {

patch-ah

--- func/event/include/queuing.h.old	Fri Jan 21 15:58:43 2000
+++ func/event/include/queuing.h	Fri Jan 21 15:59:06 2000
@@ -31,15 +31,15 @@
     enum YesNo {NO, YES};
     enum Switch {OFF, ON};
     enum TrueFalse {FALSE, TRUE};
-    const NOT_FOUND    =  -1; // in Event
-    const MAX_NAME_LEN = 100; // in Facility
-    const ES_STG_LEN   =  24; // in Estatus and Event
-    const BFR_SIZ      = 222; // in Facility & Future
-    const TINY_BFR_SIZ =  16;
+    const int NOT_FOUND    =  -1; // in Event
+    const int MAX_NAME_LEN = 100; // in Facility
+    const int ES_STG_LEN   =  24; // in Estatus and Event
+    const int BFR_SIZ      = 222; // in Facility & Future
+    const int TINY_BFR_SIZ =  16;
 
 // Class dfns:
 
-    const MAX_NUM_ATTR = 5; // for old style token, for compatibility mode
+    const int MAX_NUM_ATTR = 5; // for old style token, for compatibility mode
     struct TOKEN // old style token
       {
       float attr [MAX_NUM_ATTR];

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001211520.QAA21588>