Add scm_from_latin1_keyword and scm_from_utf8_keyword
authorMark H Weaver <mhw@netris.org>
Wed, 9 Mar 2011 06:14:43 +0000 (01:14 -0500)
committerMark H Weaver <mhw@netris.org>
Wed, 9 Mar 2011 06:14:43 +0000 (01:14 -0500)
commitc428e58681fbd006d253bda51b3543110b317b8d
tree9b8f3108cab9cad997bc876aba8af64362336dad
parentce3ce21c623771ecafdf80c98519e80048cfedb7
Add scm_from_latin1_keyword and scm_from_utf8_keyword

* libguile/keywords.c (scm_from_latin1_keyword, scm_from_utf8_keyword):
  New functions appropriate for use when keyword name is a constant.

  (scm_from_locale_keyword, scm_from_locale_keywordn): Change formal
  parameter from `str' to `name'.

* libguile/keywords.h: Add prototypes for new functions.  Change formal
  parameter of scm_from_locale_keyword* from `str' to `name'.

* doc/ref/api-data.texi: Document new functions.  Remind users that
  scm_from_locale_keyword should not be used when the name is a C string
  constant.  Change formal parameter from `str' to `name'.
doc/ref/api-data.texi
libguile/keywords.c
libguile/keywords.h