projects
/
blerg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ace197d
)
Return empty lists for list functions instead of undef
author
Chip Black
<bytex64@bytex64.net>
Tue, 19 Nov 2013 10:40:12 +0000
(
04:40
-0600)
committer
Chip Black
<bytex64@bytex64.net>
Sat, 29 Mar 2014 03:56:23 +0000
(22:56 -0500)
lib/perl/Blerg-Database/Database.xs
patch
|
blob
|
history
diff --git
a/lib/perl/Blerg-Database/Database.xs
b/lib/perl/Blerg-Database/Database.xs
index
04406c8
..
69d2442
100644
(file)
--- a/
lib/perl/Blerg-Database/Database.xs
+++ b/
lib/perl/Blerg-Database/Database.xs
@@
-132,7
+132,7
@@
void tag_list(const char *tag, const char *str_offset, int direction)
offset = strtoull(str_offset, NULL, 0);
list = tag_list(tag, offset, &count, direction);
if (list == NULL) {
- XSRETURN_
UNDEF
;
+ XSRETURN_
EMPTY
;
}
i = count - 1;
@@
-165,7
+165,7
@@
void _subscription_list(const char *author, const char *str_offset, int directio
offset = strtoull(str_offset, NULL, 0);
list = subscription_list(author, offset, &count, direction);
if (list == NULL) {
- XSRETURN_
UNDEF
;
+ XSRETURN_
EMPTY
;
}
i = count - 1;