4 * [Generated from cmdLine, 25 September 1996]
7 #if !defined(__CC_NORCROFT) || !defined(__arm)
8 #error You must use the Norcroft ARM Compiler for Sapphire programs
11 #pragma include_only_once
12 #pragma force_top_level
21 /*----- Overview ----------------------------------------------------------*
30 * On entry: R0 == pointer to a command line string (ctrl terminated)
31 * R1 == pointer to a buffer (may be equal to R0)
33 * On exit: CS if another word found, and
34 * R0 == updated past next word
35 * R1 preserved, buffer filled with null terminated string
36 * R2 == pointer to terminating null character
38 * R0 == pointer to terminating character
39 * R1 preserved, buffer preserved
42 * Use: Extracts the next word from a command line string. If the
43 * string is in a writable buffer, you can set R1 == R0 to
44 * start with. You can build up a C-like argv array like this:
46 * ; R0 == pointer to command line in writable buffer
60 * This routine will handle quoted strings, considering them
61 * to be single arguments. Either type of quote will do,
62 * quote doubling is required to insert quotes in quoted
66 extern routine cl_next;
68 /*----- That's all, folks -------------------------------------------------*/