Different dictionary.h files? #20

Open
opened 2026-01-29 20:29:10 +00:00 by claunia · 0 comments
Owner

Originally created by @ericlaw1979 on GitHub (Sep 8, 2015).

Shouldn't \dec\dictionary.h and \enc\dictionary.h be identical?

https://github.com/google/brotli/blob/master/enc/dictionary.h looks like it may be out-of-date; it doesn't include, e.g. the

#if defined(__cplusplus) || defined(c_plusplus)
}    /* extern "C" */
#endif

...block at the end, for instance.

(Incidentally, declaration of the constant in a header file is apparently frowned upon per people smarter than me. Naively building brotli.exe with VS2015 results in 6 copies of the constant array in the resulting executable.)

Originally created by @ericlaw1979 on GitHub (Sep 8, 2015). Shouldn't `\dec\dictionary.h` and `\enc\dictionary.h` be identical? https://github.com/google/brotli/blob/master/enc/dictionary.h looks like it may be out-of-date; it doesn't include, e.g. the ``` #if defined(__cplusplus) || defined(c_plusplus) } /* extern "C" */ #endif ``` ...block at the end, for instance. (Incidentally, declaration of the constant in a header file is apparently frowned upon per people smarter than me. Naively building brotli.exe with VS2015 results in _6_ copies of the constant array in the resulting executable.)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#20