Add source properties to many more types of data
authorMark H Weaver <mhw@netris.org>
Wed, 8 Feb 2012 20:51:38 +0000 (15:51 -0500)
committerMark H Weaver <mhw@netris.org>
Wed, 8 Feb 2012 21:27:41 +0000 (16:27 -0500)
commitb131b233ff9530546ca7afbb4daa682b65015e8b
tree1d9bc09044b12e128881519c1976c7366b26770a
parent043850d984c184a1e642a60a38723e63bf3be73a
Add source properties to many more types of data

* libguile/read.c (scm_read_array): New internal helper that
  calls scm_i_read_array and sets its source property if the
  'positions' reader option is set.

  (scm_read_string): Set source properties on strings if the 'positions'
  reader option is set.

  (scm_read_vector, scm_read_srfi4_vector, scm_read_bytevector,
  scm_read_guile_bitvector, scm_read_sharp): Add new arguments for the
  'line' and 'column' of the first character of the datum being read.
  Set source properties if the 'positions' reader option is set.

  (scm_read_expression): Pass 'line' and 'column' to scm_read_sharp.

* doc/ref/api-debug.texi (Source Properties): Update manual.
doc/ref/api-debug.texi
libguile/read.c