diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-06-12 07:08:41 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-06-12 07:08:41 -0700 |
commit | ff7c7432e48776dbfc970d19bb81c6fe6075c117 (patch) | |
tree | 470c512cff9fa840d1dd17bdd071a64032143c2f /txr.1 | |
parent | 7f28776c14136be6deebf0c72c3b0b532d70f5a9 (diff) | |
download | txr-ff7c7432e48776dbfc970d19bb81c6fe6075c117.tar.gz txr-ff7c7432e48776dbfc970d19bb81c6fe6075c117.tar.bz2 txr-ff7c7432e48776dbfc970d19bb81c6fe6075c117.zip |
* match.c (v_load): use the abs_path_p function instead of
checking for leading slash.
* stream.c (abs_path_p): New function.
(stream_init): Register abs_path_p as abs-path-p.
* stream.h (abs_path_p): Declared.
* txr.1: Documented abs-path-p.
* dep.mk: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -12452,6 +12452,42 @@ there are no files, then read from standard input: @line @(end) +.SS Function abs-path-p + +.TP +Syntax: + + (abs-path-p <path>) + +.TP +Description: + +The abs-path-function whether the argument <path> is an absolute path. +If this is true, it returns t, otherwise nil. + +An absolute path is a string which either begins with a slash or backslash +character, or which begins with an alphanumeric word, followed by a colon, +followed by a slash or backslash. + +Examples of absolute paths: + + /etc + + c:/tmp + + ftp://user@server + + disk0:/home + + Z:\eUsers + +Examples of strings which are not absolute paths. + + (the empty string) + . + abc + foo:bar/x + $:\eabc .SS Function read |