Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1713 → Rev 1714

/svarcom/trunk/cmd/ver.c
26,7 → 26,7
* ver
*/
 
#define PVER "2024.1"
#define PVER "2024.2"
#define COPYRDATE "2021-2024"
 
static enum cmd_result cmd_ver(struct cmd_funcparam *p) {
/svarcom/trunk/command.c
1,7 → 1,7
/* This file is part of the SvarCOM project and is published under the terms
* of the MIT license.
*
* Copyright (C) 2021-2023 Mateusz Viste
* Copyright (C) 2021-2024 Mateusz Viste
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
121,16 → 121,12
 
/* parses command line the hard way (directly from PSP) */
static void parse_argv(struct config *cfg) {
const unsigned char *cmdlinelen = (void *)0x80;
char *cmdline = (void *)0x81;
 
memset(cfg, 0, sizeof(*cfg));
 
/* set a NULL terminator on cmdline */
cmdline[*cmdlinelen] = 0;
while (*cmdline != 0x0d) {
 
while (*cmdline != 0) {
 
/* skip over any leading spaces */
if (*cmdline == ' ') {
cmdline++;
155,7 → 151,7
case 'K':
cmdline++;
cfg->execcmd = cmdline;
return; /* further arguments are for the executed program, not for me */
goto DONE; /* further arguments are for the executed program, not for me */
 
case 'y': /* /Y = execute batch file step-by-step (with /P, /K or /C) */
case 'Y':
203,8 → 199,14
 
/* move to next argument or quit processing if end of cmdline */
SKIP_TO_NEXT_ARG:
while ((*cmdline != 0) && (*cmdline != ' ') && (*cmdline != '/')) cmdline++;
while ((*cmdline != 0x0d) && (*cmdline != ' ') && (*cmdline != '/')) cmdline++;
}
 
DONE:
 
/* set a nul terminator on cmdline (expected later in the code) */
while (*cmdline != 0x0d) cmdline++;
*cmdline = 0;
}
 
 
/svarcom/trunk/history.txt
6,6 → 6,13
(ticket numbers at https://osdn.net/projects/svardos/ticket/ in [] brackets)
 
 
=== ver 2024.2 (xx.xx.2024) ==================================================
 
- command-line parsing modified to work around a DN bug. Thanks to bttr for
reporting the issue and to ECM for locating the root cause.
ref: https://github.com/SvarDOS/bugz/issues/67
 
 
=== ver 2024.1 (17.01.2023) ==================================================
 
- EDR-DOS compatibility fixes: resident module's PSP is being patched with