This macro evaluates X twice, which may lead to side effects if used
incorrectly. It's also likely to be inefficient if X calls a
- procedure. Use 'scm_c_make_char' in those cases. */
+ procedure. Use 'scm_i_make_char' in those cases. */
#define SCM_MAKE_CHAR(x) \
((x) <= 1 \
? SCM_MAKE_ITAG8 ((scm_t_bits) (unsigned char) (x), scm_tc8_char) \
SCM_API SCM scm_char_titlecase (SCM chr);
SCM_API SCM scm_char_general_category (SCM chr);
-SCM_INLINE SCM scm_c_make_char (scm_t_wchar c);
+SCM_INLINE SCM scm_i_make_char (scm_t_wchar c);
SCM_API scm_t_wchar scm_c_upcase (scm_t_wchar c);
SCM_API scm_t_wchar scm_c_downcase (scm_t_wchar c);
SCM_API scm_t_wchar scm_c_titlecase (scm_t_wchar c);
#if SCM_CAN_INLINE || defined SCM_INLINE_C_IMPLEMENTING_INLINES
SCM_INLINE_IMPLEMENTATION SCM
-scm_c_make_char (scm_t_wchar c)
+scm_i_make_char (scm_t_wchar c)
{
return SCM_MAKE_CHAR(c);
}
} while (0)
#define REF_IN_CHARSET(s, i, cs) \
- (scm_is_true (scm_char_set_contains_p ((cs), scm_c_make_char (scm_i_string_ref (s, i)))))
+ (scm_is_true (scm_char_set_contains_p ((cs), scm_i_make_char (scm_i_string_ref (s, i)))))
SCM_DEFINE (scm_string_null_p, "string-null?", 1, 0, 0,
(SCM str),
while (cstart < cend)
{
res = scm_call_1 (char_pred,
- scm_c_make_char (scm_i_string_ref (s, cstart)));
+ scm_i_make_char (scm_i_string_ref (s, cstart)));
if (scm_is_true (res))
break;
cstart++;
while (cstart < cend)
{
res = scm_call_1 (char_pred,
- scm_c_make_char (scm_i_string_ref (s, cstart)));
+ scm_i_make_char (scm_i_string_ref (s, cstart)));
if (scm_is_false (res))
break;
cstart++;
{
SCM res;
- res = scm_call_1 (char_pred, scm_c_make_char (scm_i_string_ref (s, cstart)));
+ res = scm_call_1 (char_pred, scm_i_make_char (scm_i_string_ref (s, cstart)));
if (scm_is_false (res))
break;
cstart++;
{
SCM res;
- res = scm_call_1 (char_pred, scm_c_make_char (scm_i_string_ref (s, cend - 1)));
+ res = scm_call_1 (char_pred, scm_i_make_char (scm_i_string_ref (s, cend - 1)));
if (scm_is_false (res))
break;
cend--;
{
SCM res;
- res = scm_call_1 (char_pred, scm_c_make_char (scm_i_string_ref (s, cstart)));
+ res = scm_call_1 (char_pred, scm_i_make_char (scm_i_string_ref (s, cstart)));
if (scm_is_false (res))
break;
cstart++;
{
SCM res;
- res = scm_call_1 (char_pred, scm_c_make_char (scm_i_string_ref (s, cend - 1)));
+ res = scm_call_1 (char_pred, scm_i_make_char (scm_i_string_ref (s, cend - 1)));
if (scm_is_false (res))
break;
cend--;
while (cstart < cend)
{
SCM res;
- res = scm_call_1 (char_pred, scm_c_make_char (scm_i_string_ref (s, cstart)));
+ res = scm_call_1 (char_pred, scm_i_make_char (scm_i_string_ref (s, cstart)));
if (scm_is_true (res))
goto found;
cstart++;
{
SCM res;
cend--;
- res = scm_call_1 (char_pred, scm_c_make_char (scm_i_string_ref (s, cend)));
+ res = scm_call_1 (char_pred, scm_i_make_char (scm_i_string_ref (s, cend)));
if (scm_is_true (res))
goto found;
}
while (cstart < cend)
{
SCM res;
- res = scm_call_1 (char_pred, scm_c_make_char (scm_i_string_ref (s, cstart)));
+ res = scm_call_1 (char_pred, scm_i_make_char (scm_i_string_ref (s, cstart)));
if (scm_is_false (res))
goto found;
cstart++;
{
SCM res;
cend--;
- res = scm_call_1 (char_pred, scm_c_make_char (scm_i_string_ref (s, cend)));
+ res = scm_call_1 (char_pred, scm_i_make_char (scm_i_string_ref (s, cend)));
if (scm_is_false (res))
goto found;
}
while (cstart < cend)
{
SCM res;
- res = scm_call_1 (char_pred, scm_c_make_char (scm_i_string_ref (s, cstart)));
+ res = scm_call_1 (char_pred, scm_i_make_char (scm_i_string_ref (s, cstart)));
if (scm_is_true (res))
count++;
cstart++;
str = scm_i_string_start_writing (str);
for(i = start; i < end; i++)
{
- ch = scm_c_make_char (scm_i_string_ref (str, i));
+ ch = scm_i_make_char (scm_i_string_ref (str, i));
if (scm_is_true (scm_char_alphabetic_p (ch)))
{
if (!in_word)
cend--;
while (cstart < cend)
{
- tmp = scm_c_make_char (scm_i_string_ref (str, cstart));
+ tmp = scm_i_make_char (scm_i_string_ref (str, cstart));
scm_i_string_set_x (str, cstart, scm_i_string_ref (str, cend));
scm_i_string_set_x (str, cend, SCM_CHAR (tmp));
cstart++;
result = knil;
while (cstart < cend)
{
- result = scm_call_2 (kons, scm_c_make_char (scm_i_string_ref (s, cstart)), result);
+ result = scm_call_2 (kons, scm_i_make_char (scm_i_string_ref (s, cstart)), result);
cstart++;
}
result = knil;
while (cstart < cend)
{
- result = scm_call_2 (kons, scm_c_make_char (scm_i_string_ref (s, cend-1)), result);
+ result = scm_call_2 (kons, scm_i_make_char (scm_i_string_ref (s, cend-1)), result);
cend--;
}
4, end, cend);
while (cstart < cend)
{
- scm_call_1 (proc, scm_c_make_char (scm_i_string_ref (s, cstart)));
+ scm_call_1 (proc, scm_i_make_char (scm_i_string_ref (s, cstart)));
cstart++;
}
while (idx < cend)
{
SCM res, ch;
- ch = scm_c_make_char (scm_i_string_ref (s, idx));
+ ch = scm_i_make_char (scm_i_string_ref (s, idx));
res = scm_call_1 (char_pred, ch);
if (scm_is_true (res))
ls = scm_cons (ch, ls);
idx = cstart;
while (idx < cend)
{
- SCM res, ch = scm_c_make_char (scm_i_string_ref (s, idx));
+ SCM res, ch = scm_i_make_char (scm_i_string_ref (s, idx));
res = scm_call_1 (char_pred, ch);
if (scm_is_false (res))
ls = scm_cons (ch, ls);