TIP: Click on subject to list as thread! ANSI
echo: makenl_ng
to: BJRN FELTEN
from: ANDREW CLARKE
date: 2014-11-30 23:01:00
subject: The MakeNl makefile for A

30 Nov 14 11:38, you wrote to me:

 ac>> At first glance I don't see any Amiga-specific code in there
 ac>> though.

 BF>    I have this in osamiga.h:

Ah I remember now. The osxxx.h/osxxx.c stuff became unmaintainable and was all
merged into two files - os.h & os.c - but the Amiga code got left out because I
had no way to build/test it.

Earlier this evening I had a bit of a play with the UAE Amiga emulator and had
a crash course in how to use AmigaShell. I've only used a real Amiga a couple
of times 20+ years ago.

I managed to get Aztec C running in the emulator but couldn't find anywhere to
download SASC let alone install it.

Anyway, this section needs to be put into os.h:

 BF> #include 
 BF> #include 
 BF> #include 

 BF> #define STR_DIRSEPARATOR "/"
 BF> #define UNREFERENCED(x) x=x;

 BF> #define MYMAXFILE  64
 BF> #define MYMAXDIR   1024
 BF> #define MYMAXPATH  1088
 BF> #define MYMAXEXT   12
 BF> #define MYMAXDRIVE 3

 BF> #define filecmp    strcmp
 BF> #define strcasecmp stricmp
 BF> #define filenodir(x) (strchr(x,'/') == NULL)

And the contents of the osami*.c files appended to os.c:

 BF> /* Needed definitions */
 BF> #define OSFND "osamifnd.c"
 BF> #define OSFUL "osamiful.c"

 BF> /* Overrides over defaults */

 BF> #undef OSDSL
 BF> #define OSDSL "osamidsl.c"
 BF> #undef OSRMS
 BF> #define OSRMS "osamirms.c"

... with the correct #ifdef compiler/platform guards.

I don't know what SASC uses as a compiler #define. __SASC__ maybe?

You'll also need to #define CC_NAME and OS_NAME in the right places.

--- GoldED+/BSD 1.1.5-b20130910
* Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)

SOURCE: echomail via QWK@docsplace.org

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™.