TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Brenton Vettoretti
from: Paul Edwards
date: 1994-11-23 07:59:30
subject: sex

PE>> You can pick up most of my programs and compile them any damn
 PE>> place you want.  C has a very well-defined standard, which is
 PE>> very very good.  Anything you can depend upon is documented.

 BV> Hmmm...Strange...MSC v5.1 and Visual C++ 1.5 both barf on PKTJOIN

MSC 5.1 is not a conforming implementation.  Try MSC 7.0, which I
thought you had?  MSC 6.0 I don't think is fully conforming, but
it compiled it anyway.

 BV> For starters there is no definition for EXIT_SUCCESS or EXIT_FAILURE
 
They are in the standard, and in MSC 6.0 too.
 
 BV> Then there is a minor problem with the way you have prototyped trav
 BV> in TRAV.H  The function definition itself in TRAV.C is okay and if
 BV> you used the same style in TRAV.H it would be okay.
 
Not a problem in 6.0.  However, in OZPD I have changed trav.h to
be the same as trav.c.  I don't know how long ago I changed that. 
 
 BV> Then there is a minor problem with all of your findfirst() etc. stuff.

MSC 6.0 is polluting the namespace with the word "MSDOS".  Add
"-UMSDOS" to the command line to get rid of it.

 BV> But other than that, you are probably correct :)

 BV> Oh...I think there are a few type conversions or casts required too :)

The conversions will only produce warnings.

 BV> But HEY, I'm not complaining :)

Well you should be - about MSC 5.1.  Get a REAL compiler!  BTW,
searching the directories is a machine-specific activity which
is why I have isolated it to "trav.c", with #ifdef's around it
all.  If I haven't implemented a particular environment, then
it defaults to just processing the single file that you passed
as a parameter.  The #ifdef MSDOS really means 
"#ifdef BORLAND_COMPILER_ON_MSDOS".  I should probably write
those support functions in assembler.  I use trav a lot e.g if
I want to change  to  I can write a program that
will take *.c *.d as parameters.  On a machine that I haven't
implemented directory search on, you would have to go
temp.c temp.d instead, and only the one file will get processed.

You haven't been able to buy MSC 5.1 for something like 5
years.  Try a later version please!  BFN.  Paul.
@EOT:

--- Mksmsg
* Origin: none (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.