Skip to content

Commit

Permalink
amiga specific updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcoles committed Mar 5, 2024
1 parent 1716c59 commit 93655eb
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions SCOPTIONS
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ DEFINE NO_ARCHIVES
IGNORE=161
IGNORE=100
STARTUP=cres
MATH=Standard
6 changes: 3 additions & 3 deletions SMakefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ TEXI2DVI = texi2dvi
ETAGS = etags -w
CTAGS = ctags -w

#guile = guile.o
guile = guile.o

objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o \
rule.o implicit.o default.o variable.o expand.o function.o \
vpath.o version.o ar.o arscan.o signame.o strcache.o hash.o \
output.o remote-$(REMOTE).o $(GLOB) $(GETOPT) $(ALLOCA) \
load.o output.o remote-$(REMOTE).o $(GETOPT) $(ALLOCA) \
$(extras) $(guile)

srcs = $(srcdir)commands.c $(srcdir)job.c $(srcdir)dir.c \
Expand Down Expand Up @@ -165,7 +165,7 @@ make.ps: make.dvi
dvi2ps make.dvi > make.ps

make: $(objs) glob/glob.lib
$(CC) Link $(LDFLAGS) $(objs) $(LOADLIBES) To make.new
$(CC) Link $(LDFLAGS) $(objs) $(GLOB) $(LOADLIBES) To make.new
-delete quiet make
rename make.new make

Expand Down
5 changes: 3 additions & 2 deletions amiga.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
#include <proto/exec.h>
#include <proto/dos.h>

static const char Amiga_version[] = "$VER: Make 3.74.3 (12.05.96) \n"
"Amiga Port by A. Digulla (digulla@home.lake.de)";
static const char Amiga_version[] = "$VER: Make 4.2 (05.03.24) \n"
"Amiga Port by A. Digulla (digulla@home.lake.de)\n"
"Updates by Darren Coles\n";

int
MyExecute (char **argv)
Expand Down
1 change: 1 addition & 0 deletions function.c
Original file line number Diff line number Diff line change
Expand Up @@ -1909,6 +1909,7 @@ func_shell_base (char *o, char **argv, int trim_newlines)
BPTR child_stdout;
char tmp_output[FILENAME_MAX];
unsigned int maxlen = 200, i;
char **command_argv;
int cc;
char * buffer, * ptr;
char ** aptr;
Expand Down
2 changes: 1 addition & 1 deletion glob/fnmatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ USA. */
#include <fnmatch.h>
#include <ctype.h>

#if HAVE_STRING_H || defined _LIBC
#if defined HAVE_STRING_H || defined _LIBC
# include <string.h>
#else
# include <strings.h>
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
#endif

#ifdef _AMIGA
int __stack = 20000; /* Make sure we have 20K of stack space */
long __stack = 20000; /* Make sure we have 20K of stack space */
#endif
#ifdef VMS
int vms_use_mcr_command = 0;
Expand Down
2 changes: 1 addition & 1 deletion output.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ log_working_directory (int entering)
static void
set_append_mode (int fd)
{
#if defined(F_GETFL) && defined(F_SETFL) && defined(O_APPEND)
#if defined(F_GETFL) && defined(F_SETFL) && defined(O_APPEND) && ! defined _AMIGA
int flags = fcntl (fd, F_GETFL, 0);
if (flags >= 0)
fcntl (fd, F_SETFL, flags | O_APPEND);
Expand Down
6 changes: 6 additions & 0 deletions read.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ this program. If not, see <http://www.gnu.org/licenses/>. */

#include <assert.h>

#include <glob.h>

#include "filedef.h"
#include "dep.h"
#include "job.h"
Expand Down Expand Up @@ -1092,6 +1094,10 @@ eval (struct ebuffer *ebuf, int set_default)
colonp > p2 && isalpha ((unsigned char)colonp[-1]) &&
(colonp == p2 + 1 || strchr (" \t(", colonp[-2]) != 0))
colonp = find_char_unquote (colonp + 1, MAP_COLON);
#endif
#ifdef _AMIGA
while (colonp && !(isspace(colonp[1]) || !colonp[1] || isspace(colonp[-1])))
colonp = find_char_unquote (colonp + 1, MAP_COLON);
#endif
if (colonp != 0)
break;
Expand Down

0 comments on commit 93655eb

Please sign in to comment.