home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.lbl.gov
/
2014.05.ftp.ee.lbl.gov.tar
/
ftp.ee.lbl.gov
/
ns
/
sunpro.txt
< prev
Wrap
Text File
|
1996-01-12
|
8KB
|
160 lines
These patches are included in the v1.0a18 release of ns:
Date: Sun, 17 Dec 1995 15:45:41 -0600
From: pearce@ukraine.corp.mot.com (Michael Pearce)
Message-Id: <9512172145.AA29914@gabon.mot.com>
To: ns@ee.lbl.gov
Subject: Patches to port ns-1.0a16 to Solaris 2.4 with SunPro C++ v3.0.1
Greetings;
I have ported ns, version 1.0a16, to Solaris 2.4 using the SunPro C++
v3.0.1 compiler. Several minor changes needed to be made to the
sources, and the patch is included below. The changes fell into the
following categories:
o In Tcl.cc and Tcl.h, my compiler complained about static
TclObject::command(ClientData...) not being accessible to class
Tcl. This required moving it from private to public.
o In Tcl.cc and Tcl.h, my compiler could not distinguish between
static TclObject::command(ClientData...) and virtual
TclObject::command(int...). This required changing the name of
the static TclObject::command(ClientData...) to s_command. You
may want to solve this in a different way, but in my opinion,
overloading should only occur between semantically similar
functions, which is not quite true in this case (one is a C to
C++ interfacing hack to support callbacks, and the other is the
real command).
o In object.h, the declaration of NsObject::set() specifies
indentically named parameters (the implementation in object.cc
is correct, however). Simple change of the first parameter name
from 'val' to 'var'.
o In random.cc and random.h, the ifdef's for __svr4__ are not
effective on my compiler, since it defines only provides __SVR4.
Simple fix by adding __SVR4 clauses to existing __svr4__
ifdef's.
o Numerous missing prototypes for exit() and abort(), requiring
inclusion if <stdlib.h>.
Regards,
Mike
--
Mike Pearce, Senior Engineer, Motorola Chicago Corporate R & D,
Advanced Communications Systems Research
email: Michael_Pearce-AMP001@email.mot.com
"Don't worry Doc - this won't hurt a bit."
---- Cut Here and feed the following to sh ----
#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 1995-12-17 15:18 CST by <pearce@ukraine.corp.mot.com>.
# Source directory was `/home/pearce/incoming/lbl'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 6439 -rw-r----- ns-1.0a16-sol24-patch
#
# ============= ns-1.0a16-sol24-patch ==============
if test -f 'ns-1.0a16-sol24-patch' && test X"$1" != X"-c"; then
echo 'x - skipping ns-1.0a16-sol24-patch (file already exists)'
else
echo 'x - extracting ns-1.0a16-sol24-patch (compressed)'
sed 's/^X//' << 'SHAR_EOF' | uudecode &&
Xbegin 600 _sharcmp.tmp
XM'YV,9-*8,0.B19T9!>6`<#.G10P7,,+$L/&"RA@V+L:,6=CP8<2)+>"\D4.G
XM#)F*%S..4="B)4>'$"52M(A18X(I==R`</+H@8,D#(D*HRB,'[FR%%#
XMP8JG+SW*##FRY$F:*F_F!$&DS,88-W[.T#'CZ(R@,98V!0*D(-@:+,*N>!L7
XM!%L%(/;@34#3!`@Z%T'T`$%3AXXT#.F$<3.F#(H4._::&0D"!<TG8M1XI:,"
XM!!S!(,*P8?-EAV<0(0;#,/UY,)P6/MR4P4/G2XJ\+!,D`(QQB)PR84H.>=.F
XMS6(R*%['#M/&<0H6(,80-^Z'040]BD*>.I'@85+`@0X#LE/=O%WX!BY\
XM^O'DL-TP=PY]SA?IQ8]?S[Z]^W?%XI%G'@BZ*8=88W#0D<8;;CP6&8%]X!4A
XM6P7)``,,+``%P@H68JCA703*U]P7H,EV1W1HA"''%CJM\%,7#R8P!QURC`%'
XM'BB(6,87T.DX8`("519">F2HN,9CM^G5`GHIK1=<&</E5UV.\_$8G7O5[:<=
XM=]Z!EP(=:*0QAX"1K<!D;[\]&25UR.EHI7WXL:EE?UT""*:89.X%)&-E)+A@
XM@S]&"(*@+"%&!V$78:;9&'08%N=[_''Y7QC168<H:4ET5X8<<*@`G:&AC0'=
XM&"G*H4)G8=B1@E.@7I;99H;!B25RD?H'7J70T?1%IB5QZBD(H(8A*HHJGAJ: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=#?3N&[95@/91H#<UVU@Z(W#*)'BN'?H
XM!@,CN6[I^#(R`(<;,I.(MU84:`;D%726^'B8>(^J6'F=N(\>^'*C2!FC5WJ+
XMF)";R(JM9Y`(&90&Q9`+Y9`\J)'#2'8/H1%S5Y%9.75;N1).B)6OH959484E
XM4W[#92%%010P@#(E^85%B))E"99G2'Y?H88Q=!03X8850I,<(H?R5&`DIY.+
XMQY3Y"'F9R),9.)2?&(JX=I0*D92H.)"M^(H'&8N'*94+:78-J8-.EXMXMQ'>
XMYY57EXP9"9&CF0!H.8YK24XTX)8UM(TF.9=T!W8KF88M:8`6XI<M`'_O1WCP
XMN'GUMV\@T&__IG_/<IJB@G#6)X`RT'!9.$.Q.3$UM`9FX&(@X(#'"8$@)W+S
XM5)@FQYF<>'G\")G_^'DC&!K5`9!*>7KD&5ZUJ)F<R7,B\W/U294,!)JX^&RO
XMU!@3^6U;]Y\%)Y;*6(3^M$H`:A-HEP9J!Q;8)EQD48UQV94#JJ`%F@#4QY+G
XM!P/1=!:^.0/L^'[O.)@XV5:;R9B<^),"A8]":9Y%:6_I*8+OF8J,*0($6G2(
X(.7NUAT$LN'CL
X`
Xend
SHAR_EOF
echo 'uncompressing file ns-1.0a16-sol24-patch' &&
compress -d < _sharcmp.tmp > 'ns-1.0a16-sol24-patch' && rm -f _sharcmp.tmp &&
chmod 0640 'ns-1.0a16-sol24-patch' ||
echo 'restore of ns-1.0a16-sol24-patch failed'
shar_count="`wc -c < 'ns-1.0a16-sol24-patch'`"
test 6439 -eq "$shar_count" ||
echo "ns-1.0a16-sol24-patch: original size 6439, current size $shar_count"
fi
exit 0