Section One BBS

Welcome, Guest.


Subject: The MakeNl makefile for Amiga -- yes, it still exists! Date: Sun Nov 30 2014 11:38 am
From: Bj”rn Felten To: andrew clarke

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

   I have this in osamiga.h:

#include <sys/types.h>
#include <stdlib.h>
#include <sys/dir.h>

#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)

Previous Message       Next Message
In Reply To: The MakeNl makefile for Amiga -- yes, it still exists! (andrew clarke)
Replies: The MakeNl makefile for Amiga -- yes, it still exists! (andrew clarke)