Minor tweaks to delimiter handling in read.c
authorMark H Weaver <mhw@netris.org>
Tue, 23 Oct 2012 03:28:56 +0000 (23:28 -0400)
committerMark H Weaver <mhw@netris.org>
Wed, 24 Oct 2012 02:42:34 +0000 (22:42 -0400)
commit603234c611b50cdc8770b2a822cd333812eed98d
tree4635d1e48475536da971b25c8720981276f9ec9e
parent493ceb99e520a307c51fbee3633d89f688e2d3f7
Minor tweaks to delimiter handling in read.c

* libguile/read.c (CHAR_IS_R5RS_DELIMITER, CHAR_IS_DELIMITER): Move the
  '[' and ']' delimiters from CHAR_IS_R5RS_DELIMITER to
  CHAR_IS_DELIMITER.  Parenthesize all references to the macro
  parameter.  Don't check the global square-brackets read option until
  after we know the character is '[' or ']'.
  (scm_read_sexp): Don't check the global square-brackets read option
  until after we know the character is ']'.
libguile/read.c