-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dxfread (and DISABLED_DXF/WRITE source inclusion issues) #888
base: master
Are you sure you want to change the base?
Conversation
@rurban dxf_read_file was defined only when USE_WRITE was enabled, in what appears to be your commit. |
I assumed LIBREDWG_DISABLE_WRITE is intended to exclude functions that write the dwg structure to any kind of file. |
USE_WRITE is needed because preR13 needs the add api for the control objects. |
Ok thanks, shoulnd't USE_WRITE then ideally only be used to include preR13 support in dxf_read_file? |
@rurban would it be appropriate if I change dwgfuzz to support any input to any output? I ended up fixing the USE_WRITE issue by including encode.c when USE_WRITE is disabled but DXF is enabled. |
Sure, as in llvmfuzz |
This serves my use case of a javascript production environment (I'm using it already); converting to/from JSON uing CLI, until I can produce an npm or WASM equivalent of DXF <-> JSON converter.
Javascript is the most popular language dominating many platforms and it seems very uncommon for a library to not have bindings for it.
Converting indirectly through DWG is undesirable since this is very error prone and makes end users have to wait longer; the DXF files that I have to support are tens of MB.
Having this in the master branch would greatly simplify further development, especially since most of the DXF that I have to support are currently failing.