1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

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

This commit is contained in:
Sébastien Helleu
2017-10-03 21:16:11 +02:00
parent 682979bb90
commit 255e46eaef
2 changed files with 4 additions and 3 deletions
+2 -2
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("")