mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Generate C code for "in.dst.write?(etc)".
This commit is contained in:
1 parent
88e2d4cf59
commit
f403d0faa8
8 files changed
+147
-29
No files matched your search
@@ -290,6 +290,13 @@ label_0_continue:;
|
||||
if ((v_code == v_save_code) && v_use_save_code) {
|
||||
self->f_stack[4095] = ((uint8_t)(v_c));
|
||||
}
|
||||
if ((a_dst->len - a_dst->wi) < (sizeof(self->f_stack) - v_s)) {
|
||||
status = puffs_gif_status_short_write;
|
||||
goto cleanup0;
|
||||
}
|
||||
memmove(a_dst->ptr + a_dst->wi, self->f_stack + v_s,
|
||||
sizeof(self->f_stack) - v_s);
|
||||
a_dst->wi += sizeof(self->f_stack) - v_s;
|
||||
if (v_use_save_code) {
|
||||
self->f_suffixes[v_save_code] = self->f_stack[4095];
|
||||
self->f_prefixes[v_save_code] = ((uint16_t)(v_prev_code));
|
||||
|
||||
Reference in new issue
Block a user