summaryrefslogtreecommitdiff
path: root/src/upb.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-06-09 20:28:44 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-06-09 20:28:44 -0700
commit5743636ad19eafb11eddeefd29f2803052dadff2 (patch)
tree773a9d0254d8b27f2750ef2bc9ca8803e97082d0 /src/upb.c
parent992a03be55faf83d794b9ec5e8c4ca7e78c08a9b (diff)
Decoder compiler but doesn't work yet.
Diffstat (limited to 'src/upb.c')
-rw-r--r--src/upb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/upb.c b/src/upb.c
index 938c72d..bd41613 100644
--- a/src/upb.c
+++ b/src/upb.c
@@ -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);
+}
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback