Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 988 → Rev 989

/svarcom/trunk/cmd/verify.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 Mateusz Viste
* Copyright (C) 2021-2022 Mateusz Viste
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
29,14 → 29,16
static enum cmd_result cmd_verify(struct cmd_funcparam *p) {
 
if (cmd_ishlp(p)) {
outputnl("Tells DOS whether to verify that files are written correctly to disk.");
outputnl("\r\nVERIFY [ON | OFF]\r\n");
outputnl("Type VERIFY without a parameter to display its current setting.");
nls_outputnl(19,0); /* "Tells DOS whether to verify that files are written correctly to disk." */
outputnl("");
outputnl("VERIFY [ON | OFF]");
outputnl("");
nls_outputnl(19,1); /* "Type VERIFY without a parameter to display its current setting." */
return(CMD_OK);
}
 
if (p->argc > 1) {
outputnl("Too many parameters");
nls_outputnl(0,4); /* "Too many parameters" */
return(CMD_FAIL);
}
 
50,9 → 52,9
pop ax
}
if (verstate == 0) {
outputnl("VERIFY is off");
nls_outputnl(19,2); /* "VERIFY is off" */
} else {
outputnl("VERIFY is on");
nls_outputnl(19,3); /* "VERIFY is on" */
}
return(CMD_OK);
}
79,7 → 81,7
pop ax
}
} else {
outputnl("Must specify ON or OFF");
nls_outputnl(19,4); /* "Must specify ON or OFF" */
return(CMD_FAIL);
}