From: cuz Date: Wed, 28 Apr 2004 09:10:23 +0000 (+0000) Subject: Fixed a comment X-Git-Tag: V2.12.0~839 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=28eec78cade0ba5aaf78ca413d15130f79f77eb0;p=cc65 Fixed a comment git-svn-id: svn://svn.cc65.org/cc65/trunk@2987 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/c64/mainargs.s b/libsrc/c64/mainargs.s index ffd396cf9..1bee04249 100644 --- a/libsrc/c64/mainargs.s +++ b/libsrc/c64/mainargs.s @@ -3,20 +3,21 @@ ; Ullrich von Bassewitz, 2003-03-07 ; Based on code from Stefan A. Haubenthal, ; 2003-05-18, Greg King +; 2004-04-28, Ullrich von Bassewitz ; ; Scan a group of arguments that are in BASIC's input-buffer. ; Build an array that points to the beginning of each argument. ; Send, to main(), that array and the count of the arguments. - +; ; Command-lines look like these lines: ; ; run -; run : rem no arguments because no comma! -; run:rem,arg1," arg 2" , arg 3 ,, arg5, ... +; run : rem +; run:rem arg1 " arg 2 is quoted " arg3 "" arg5 +; +; "run" and "rem" are entokenned; the args. are not. Leading and trailing +; spaces outside of quotes are ignored. ; -; "run" and "rem" are entokenned; the args. are not. Leading spaces are -; ignored; trailing spaces are included -- unless the argument was quoted. - ; TO-DO: ; - The "file-name" might be a path-name; don't copy the directory-components. ; - Add a control-character quoting mechanism. @@ -133,4 +134,4 @@ name: .res NAME_LEN + 1 .data argv: .addr name .res MAXARGS * 2 - +