mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
De-duplicate the gen/c/* files
The gen/c/* files are not checked in, due to the .gitignore file In Wuffs version 0.1, they were checked in, and programs were expected to #include them directly. Another goal was for them to be self-contained, without any #include lines to other Wuffs files, so that they would be easy to build, without having to configure an -I dir to a C compiler. They therefore inlined what would otherwise be an #include. For example, the generated std/gif.h code would inline the contents of the std/lzw.h file. The genrelease program would have to de-duplicate these inlines in order to produce a clean, monolithic release/c/* file. In Wuffs version 0.2 (the latest version), programs don't #include gen/c/*. Instead, they #include the monolithic release/c/*. Avoiding the need to configure an -I directory isn't as important as it used to be. This change removes that inlining, using the simpler #include line, and the genrelease program is then simpler because it doesn't need to de-duplicate.
This commit is contained in:
1 parent
51a0b347ed
commit
61d03537c2
7 files changed
+222
-289
No files matched your search
@@ -14,6 +14,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE
|
||||
#define WUFFS_INCLUDE_GUARD__BASE
|
||||
|
||||
#if defined(WUFFS_IMPLEMENTATION) && !defined(WUFFS_CONFIG__MODULES)
|
||||
#define WUFFS_CONFIG__MODULES
|
||||
#define WUFFS_CONFIG__MODULE__BASE
|
||||
#endif
|
||||
|
||||
// !! WUFFS MONOLITHIC RELEASE DISCARDS EVERYTHING ABOVE.
|
||||
|
||||
// !! INSERT base-public.h.
|
||||
|
||||
// WUFFS C HEADER ENDS HERE.
|
||||
@@ -29,3 +39,7 @@
|
||||
// defined(WUFFS_CONFIG__MODULE__BASE)
|
||||
|
||||
#endif // WUFFS_IMPLEMENTATION
|
||||
|
||||
// !! WUFFS MONOLITHIC RELEASE DISCARDS EVERYTHING BELOW.
|
||||
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE
|
||||
@@ -1,8 +1,5 @@
|
||||
// After editing this file, run "go generate" in the parent directory.
|
||||
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -722,5 +719,3 @@ wuffs_base__io_writer__set_mark(wuffs_base__io_writer* o, uint8_t* mark) {
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
Reference in new issue
Block a user