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

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

   I have this in osamiga.h:

#include 
#include 
#include 

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

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

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

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

/* Overrides over defaults */

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

struct _filefind
{
  char path[MYMAXDIR];
  char mask[MYMAXFILE];
  DIR *dirp;
  struct dirent *pentry;
  int flags;
};

/*
   TODO

   a separate osamiful.c rather than the one for linux ?
   what is #define MYMAXxxx ?
   does wildcards work in findnext()?
   what does filenodir() do? might have to be changed. e.g. fido:nodelist is a
proper path on the amiga.
   does this influence other parts?

*/

--- Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.1.16) Gecko/20101125
* Origin: news://felten.yi.org (2:203/2)

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