mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
* symbols.h, symbols.c (scm_string_ci_to_symbol): Moved here, next
to scm_string_to_symbol. * deprecated.c, load.c, posix.c, unif.c, symbols.c: Include "srfi-13.h" instead of "strop.h".
This commit is contained in:
parent
2c0b7c1fa0
commit
1206efbe07
2 changed files with 16 additions and 0 deletions
|
@ -34,6 +34,8 @@
|
|||
#include "libguile/hashtab.h"
|
||||
#include "libguile/weaks.h"
|
||||
#include "libguile/modules.h"
|
||||
#include "libguile/read.h"
|
||||
#include "libguile/srfi-13.h"
|
||||
|
||||
#include "libguile/validate.h"
|
||||
#include "libguile/symbols.h"
|
||||
|
@ -245,6 +247,19 @@ SCM_DEFINE (scm_string_to_symbol, "string->symbol", 1, 0, 0,
|
|||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
SCM_DEFINE (scm_string_ci_to_symbol, "string-ci->symbol", 1, 0, 0,
|
||||
(SCM str),
|
||||
"Return the symbol whose name is @var{str}. @var{str} is\n"
|
||||
"converted to lowercase before the conversion is done, if Guile\n"
|
||||
"is currently reading symbols case-insensitively.")
|
||||
#define FUNC_NAME s_scm_string_ci_to_symbol
|
||||
{
|
||||
return scm_string_to_symbol (SCM_CASE_INSENSITIVE_P
|
||||
? scm_string_downcase(str)
|
||||
: str);
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
#define MAX_PREFIX_LENGTH 30
|
||||
|
||||
SCM_DEFINE (scm_gensym, "gensym", 0, 1, 0,
|
||||
|
|
|
@ -41,6 +41,7 @@ SCM_API SCM scm_symbol_interned_p (SCM sym);
|
|||
SCM_API SCM scm_make_symbol (SCM name);
|
||||
SCM_API SCM scm_symbol_to_string (SCM s);
|
||||
SCM_API SCM scm_string_to_symbol (SCM s);
|
||||
SCM_API SCM scm_string_ci_to_symbol (SCM s);
|
||||
|
||||
SCM_API SCM scm_symbol_fref (SCM s);
|
||||
SCM_API SCM scm_symbol_pref (SCM s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue