diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-06-09 20:28:44 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-06-09 20:28:44 -0700 |
commit | 5743636ad19eafb11eddeefd29f2803052dadff2 (patch) | |
tree | 773a9d0254d8b27f2750ef2bc9ca8803e97082d0 /src/upb.c | |
parent | 992a03be55faf83d794b9ec5e8c4ca7e78c08a9b (diff) |
Decoder compiler but doesn't work yet.
Diffstat (limited to 'src/upb.c')
-rw-r--r-- | src/upb.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -7,6 +7,7 @@ #include <stdarg.h> #include <stddef.h> +#include <string.h> #include "upb.h" @@ -21,3 +22,10 @@ void upb_seterr(upb_status *status, enum upb_status_code code, va_end(args); } } + +void upb_copyerr(upb_status *to, upb_status *from) +{ + to->code = from->code; + strcpy(to->msg, from->msg); +} + |