Skip to content

Commit

Permalink
Add reflection to build
Browse files Browse the repository at this point in the history
Add reflection support to libfyaml. No hooking with the library
is done yet, merely it is added to the build.

Wip on reflection, more wip, more fixes and wip, prune system, clang fixes,
Fix for !libclang, more clang fixes, more clang fixes #2, type include exclude and stuff,
eponymous offsets, doc entries, cooking, generics, more wip on generics, generics continue,
more cleanup of generics, generics continued, generics continued#3, goind on, destroy,
more allocator fun, getting there, allocators, generic_allocator -> allocator, reorg generic,
cleanup of generics, indirect document, generic lookups and compares, emitting now, oops,
deduping in progress, deduping in progress 2, dedup working, emitter, alias resolution,
tag-reorg complete, wip dedup, dedup threshold, mremap arena done, working id, remove schema stuff now,
gd -> gdp, ready for some tightening, more streamlining, indirect wip, indirect wip #2,
alias wip, tag fun, error reporting and unwinding, tag fun continued, emitter stuff, allocas,
ongoing, tag fun continues, alloca, remove anchor from generic document, removed generic destroy,
generic copy, decoder, decoder move, encoder in progress, encoder moved, debug,
memset encoder, going for carbonite, in progress, wip best allocator, streamline allocators, reset,
decode/encode all documents, relocation, caching in the usa, indirects, more indirect, packed indirect,
generic merge keys, auto alloc finishing, fix ws, normalize type names

Signed-off-by: Pantelis Antoniou <[email protected]>
  • Loading branch information
pantoniou committed Aug 30, 2023
1 parent 3d86226 commit 53aada1
Show file tree
Hide file tree
Showing 33 changed files with 17,763 additions and 240 deletions.
981 changes: 981 additions & 0 deletions include/libfyaml.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libfyaml.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ includedir=@includedir@
Name: libfyaml
Description: Fancy YAML 1.3 parser library
Version: @PACKAGE_VERSION@
Libs: -L${libdir} @ASAN_LIBS@ -lfyaml @PTHREAD_LIBS@
Libs: -L${libdir} @ASAN_LIBS@ -lfyaml @PTHREAD_LIBS@ @LIBCLANG_LDFLAGS@ @LIBCLANG_LIBS@
Cflags: -I${includedir} @ASAN_CFLAGS@ @PTHREAD_CFLAGS@
26 changes: 25 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,25 @@ libfyaml_la_SOURCES = \
util/fy-utils.c util/fy-utils.h \
util/fy-endian.h \
util/fy-blob.c util/fy-blob.h \
util/fy-id.h
util/fy-id.h \
util/fy-vlsize.h \
util/fy-allocator.c util/fy-allocator.h \
util/fy-allocator-linear.c util/fy-allocator-linear.h \
util/fy-allocator-malloc.c util/fy-allocator-malloc.h \
util/fy-allocator-mremap.c util/fy-allocator-mremap.h \
util/fy-allocator-dedup.c util/fy-allocator-dedup.h \
util/fy-allocator-auto.c util/fy-allocator-auto.h \
util/fy-generic.c util/fy-generic.h \
util/fy-generic-decoder.c util/fy-generic-decoder.h \
util/fy-generic-encoder.c util/fy-generic-encoder.h \
reflection/fy-reflection.c reflection/fy-reflection-private.h \
reflection/fy-packed-backend.c reflection/fy-packed-backend.h \
reflection/fy-registry.c

if HAVE_LIBCLANG
libfyaml_la_SOURCES += \
reflection/fy-clang-backend.c reflection/fy-clang-backend.h
endif

libfyaml_la_CPPFLAGS = $(AM_CPPFLAGS) \
-I$(top_srcdir)/src/lib \
Expand All @@ -39,6 +57,12 @@ libfyaml_la_CFLAGS = $(AM_CFLAGS)
libfyaml_la_LDFLAGS = -no-undefined $(AM_LDFLAGS) $(AM_LIBLDFLAGS) \
-version $(LIBTOOL_VERSION)

if HAVE_LIBCLANG
libfyaml_la_CPPFLAGS += $(LIBCLANG_CPPFLAGS)
libfyaml_la_CFLAGS += $(LIBCLANG_CFLAGS)
libfyaml_la_LDFLAGS += $(LIBCLANG_LDFLAGS) $(LIBCLANG_LIBS)
endif

bin_PROGRAMS =
noinst_PROGRAMS =

Expand Down
Loading

0 comments on commit 53aada1

Please sign in to comment.