From b3f6daf83d8adf0040a1bf9401342c811502f690 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Thu, 11 Dec 2014 18:58:04 -0800 Subject: Amalgamated distribution (upb.c/upb.h) tool. There are a number of tweaks to get this to work: - The #include dependence graph wasn't quite complete, and I had to add a few #includes to get the tool to work. - I had to change a number of symbol names to avoid conflicts between 'static' definitions in different .c files. This could be avoided if the tool were smart enough to rename static symbols to have unique prefixes instead, but (i) this requires semantic understanding of C, and (ii) the macro-defined static functions (e.g., handlers for primitive types in several places) would probably trip this up. Verified that the resulting upb.h/upb.c compiles and doesn't have any unresolved references. --- upb/handlers.h | 1 + 1 file changed, 1 insertion(+) (limited to 'upb/handlers.h') diff --git a/upb/handlers.h b/upb/handlers.h index ca28cff..2267d98 100644 --- a/upb/handlers.h +++ b/upb/handlers.h @@ -23,6 +23,7 @@ #define UPB_HANDLERS_H #include "upb/def.h" +#include "upb/table.int.h" #ifdef __cplusplus namespace upb { -- cgit v1.2.3