Added locale item (sysmon.cd)
[AROS.git] / workbench / c / shellcommands / EndSkip.c
blob52d1e0326e3cfc9e97f5063a8c2924a9ed2d38c2
1 /*
2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 /******************************************************************************
11 NAME
13 EndSkip
15 SYNOPSIS
17 LOCATION
21 FUNCTION
23 Ends a skip block in a script.
25 INPUTS
27 RESULT
29 NOTES
31 EXAMPLE
33 BUGS
35 SEE ALSO
37 Skip, Lab
39 INTERNALS
41 This command is quite similar to EndIf.
43 ******************************************************************************/
45 #include <proto/dos.h>
46 #include <dos/dos.h>
47 #include <dos/dosextens.h>
48 #include "dos_commanderrors.h"
50 #include <aros/shcommands.h>
52 AROS_SH0(EndSkip,41.1)
54 AROS_SHCOMMAND_INIT
56 struct CommandLineInterface *cli = Cli();
59 if ((cli != NULL) && (cli->cli_CurrentInput != cli->cli_StandardInput))
61 return RETURN_OK; /* Normal operation: do nothing! */
63 else
65 PrintFault(ERROR_SCRIPT_ONLY, "EndSkip");
67 return RETURN_ERROR;
70 AROS_SHCOMMAND_EXIT