Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion djgpp/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ C_OPT = -Wall -O2 -Wmissing-declarations -Wwrite-strings -I $(SRCDIR) -I . \
# avoid CMOVxx instructions
C_OPT += -march=i386
LINK_OPT =
SRCS = $(SRCDIR)/command.c $(SRCDIR)/cmdbuf.c $(SRCDIR)/ms.c $(SRCDIR)/djterm.c \
SRCS = $(SRCDIR)/command.c $(SRCDIR)/cmdbuf.c $(SRCDIR)/ms.c $(SRCDIR)/djterm.c $(SRCDIR)/mem.c \
$(SRCDIR)/env.c $(SRCDIR)/psp.c $(SRCDIR)/umb.c $(SRCDIR)/ae0x.c \
$(SRCDIR)/compl.c $(SRCDIR)/clip.c memmem.c fmemcpy.c findclos.c
ASSRCS = $(SRCDIR)/asm.S $(SRCDIR)/int23.S $(SRCDIR)/int0.S $(SRCDIR)/int75.S \
Expand Down
9 changes: 8 additions & 1 deletion src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
#include "ae0x.h"
#include "compl.h"
#include "clip.h"
#include "mem.h"
#include "command.h"

/*
Expand Down Expand Up @@ -305,6 +306,7 @@ struct built_in_cmd cmd_table[] =
{"loadhigh", perform_loadhigh, "", "load program to UMB"},
{"md", perform_md, "", "create directory"},
{"mkdir", perform_md, "", "create directory"},
{"mem", perform_mem, " [/c] [/f] [/d] [/p]", "display memory statistics"},
{"move", perform_move, "", "move file"},
{"more", perform_more, "", "scroll-pause long output"},
{"mouseopt", perform_mouseopt, "", "mouse options"},
Expand Down Expand Up @@ -412,7 +414,12 @@ static int has_wildcard(char *s)
return false;
}

static void reset_batfile_call_stack(void)
const char *get_cmd_args(void)
{
return cmd_args;
}

void reset_batfile_call_stack(void)
{
static int first_time = true;
int ba;
Expand Down
5 changes: 5 additions & 0 deletions src/command.h
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,11 @@ struct built_in_cmd

extern struct built_in_cmd cmd_table[];
extern const int CMD_TABLE_COUNT;
extern void reset_batfile_call_stack(void);
/* full argument string of the command being executed: built-in commands
* are handed only the first argument, so anything that takes more than
* one switch needs this */
extern const char *get_cmd_args(void);

unsigned short keyb_get_shift_states(void);

Expand Down
4 changes: 2 additions & 2 deletions src/makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ DJCFLAGS = -Wall -O2 -Wmissing-declarations -Wwrite-strings \
DJCPPFLAGS += -I. -I$(srcdir) -DCOMCOM_VERSION=\"$(VERSION)\"
DJASFLAGS += -I. -I$(srcdir)
DJASCPPFLAGS += -I. -I$(srcdir)
SOURCES = command.c cmdbuf.c mouse.c env.c psp.c umb.c ae0x.c compl.c clip.c \
SOURCES = command.c cmdbuf.c mouse.c env.c psp.c umb.c ae0x.c compl.c clip.c mem.c \
djterm.c thunks_a.c thunks_c.c
HEADERS = $(addprefix $(srcdir)/,ae0x.h cmdbuf.h compl.h psp.h command.h env.h mouse.h umb.h \
glob_asm.h asm.h)
mem.h glob_asm.h asm.h)
PDHDR = $(srcdir)/asm.h
GLOB_ASM = $(srcdir)/glob_asm.h
OBJECTS = $(SOURCES:.c=.o)
Expand Down
Loading