Let a short_src be either an error or a status.

Error-ness depends on whether there's possibly more source data.

Also rename short_dst and short_src to short_write and short_read, as
the new names don't depend on the function arguments being named exactly
dst and src.
This commit is contained in:
Nigel Tao committed 2017-06-04 12:11:37 +10:00
1 parent 9a27953faf
commit e49ec3fd90
5 files changed
+40 -35

No files matched your search

+3 -3
View File
@@ -60,9 +60,9 @@ typedef enum {
puffs_gif_error_bad_receiver = -4 + 1,
puffs_gif_error_bad_argument = -6 + 1,
puffs_gif_error_constructor_not_called = -8 + 1,
puffs_gif_status_short_dst = -10,
puffs_gif_status_short_src = -12,
puffs_gif_status_short_buffer = -14,
puffs_gif_error_unexpected_eof = -10 + 1,
puffs_gif_status_short_read = -12,
puffs_gif_status_short_write = -14,
} puffs_gif_status;
bool puffs_gif_status_is_error(puffs_gif_status s);