guile: return integer (0/1) instead of boolean in API functions

v2.8-utf8proc
Sébastien Helleu 2017-10-03 21:16:11 +02:00
parent 682979bb90
commit 255e46eaef
2 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,8 @@ Bug fixes::
* api: change type of arguments status/gnutls_rc/sock in hook_connect() callback from string to integer (in scripts)
* api: change type of argument fd in hook_fd() callback from string to integer (in scripts)
* buflist: remove recursive evaluation of extra variables (issue #1060)
* guile: fix return value of static strings
* guile: return integer (0/1) instead of boolean in API functions
* guile: fix return value of static strings in API functions
* irc: fix CTCP PING reply when the option irc.ctcp.ping is set to non-empty value
* relay: fix parsing of CAP command without arguments in irc protocol, send ACK only if all capabilities received are OK and NAK otherwise (issue #1040)

View File

@ -68,10 +68,10 @@
}
#define API_RETURN_OK \
API_FREE_STRINGS; \
return SCM_BOOL_T
return scm_from_int (1)
#define API_RETURN_ERROR \
API_FREE_STRINGS \
return SCM_BOOL_F
return scm_from_int (0)
#define API_RETURN_EMPTY \
API_FREE_STRINGS; \
return scm_from_locale_string("")