Break cgen's generated data into chapters

This will hopefully lessen the diff of subsequent changes.
This commit is contained in:
Nigel Tao committed 2018-04-17 10:57:08 +10:00
1 parent 6656b6e5e9
commit 9c2330e6fd
8 files changed
+119 -56

No files matched your search

+8 -2
View File
@@ -883,8 +883,6 @@ typedef struct {
// Uncomment this #include for printf-debugging.
// #include <stdio.h>
// ---------------- Static Inline Functions
//
// The helpers below are functions, instead of macros, because their arguments
// can be an expression that we shouldn't evaluate more than once.
//
@@ -901,6 +899,8 @@ typedef struct {
// inline attribute to guide optimizations such as inlining, to avoid the
// -Wunused-function warning, and we like to compile with -Wall -Werror.
// ---------------- Fundamentals
static inline uint16_t wuffs_base__load_u16be(uint8_t* p) {
return ((uint16_t)(p[0]) << 8) | ((uint16_t)(p[1]) << 0);
}
@@ -989,6 +989,8 @@ static inline uint64_t wuffs_base__slice_u8__copy_from_slice(
return length;
}
// ---------------- I/O
static inline uint32_t wuffs_base__io_writer__copy_from_history32(
uint8_t** ptr_ptr,
uint8_t* start, // May be NULL, meaning an unmarked io_writer.
@@ -1155,6 +1157,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__mark(
return ((wuffs_base__empty_struct){});
}
// ---------------- Images
// No Images related helpers yet.
static const char* wuffs_base__status__strings[13] = {
"ok",
"bad wuffs version",
+8 -2
View File
@@ -975,8 +975,6 @@ typedef struct {
// Uncomment this #include for printf-debugging.
// #include <stdio.h>
// ---------------- Static Inline Functions
//
// The helpers below are functions, instead of macros, because their arguments
// can be an expression that we shouldn't evaluate more than once.
//
@@ -993,6 +991,8 @@ typedef struct {
// inline attribute to guide optimizations such as inlining, to avoid the
// -Wunused-function warning, and we like to compile with -Wall -Werror.
// ---------------- Fundamentals
static inline uint16_t wuffs_base__load_u16be(uint8_t* p) {
return ((uint16_t)(p[0]) << 8) | ((uint16_t)(p[1]) << 0);
}
@@ -1081,6 +1081,8 @@ static inline uint64_t wuffs_base__slice_u8__copy_from_slice(
return length;
}
// ---------------- I/O
static inline uint32_t wuffs_base__io_writer__copy_from_history32(
uint8_t** ptr_ptr,
uint8_t* start, // May be NULL, meaning an unmarked io_writer.
@@ -1247,6 +1249,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__mark(
return ((wuffs_base__empty_struct){});
}
// ---------------- Images
// No Images related helpers yet.
static const char* wuffs_base__status__strings[13] = {
"ok",
"bad wuffs version",
+8 -2
View File
@@ -993,8 +993,6 @@ typedef struct {
// Uncomment this #include for printf-debugging.
// #include <stdio.h>
// ---------------- Static Inline Functions
//
// The helpers below are functions, instead of macros, because their arguments
// can be an expression that we shouldn't evaluate more than once.
//
@@ -1011,6 +1009,8 @@ typedef struct {
// inline attribute to guide optimizations such as inlining, to avoid the
// -Wunused-function warning, and we like to compile with -Wall -Werror.
// ---------------- Fundamentals
static inline uint16_t wuffs_base__load_u16be(uint8_t* p) {
return ((uint16_t)(p[0]) << 8) | ((uint16_t)(p[1]) << 0);
}
@@ -1099,6 +1099,8 @@ static inline uint64_t wuffs_base__slice_u8__copy_from_slice(
return length;
}
// ---------------- I/O
static inline uint32_t wuffs_base__io_writer__copy_from_history32(
uint8_t** ptr_ptr,
uint8_t* start, // May be NULL, meaning an unmarked io_writer.
@@ -1265,6 +1267,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__mark(
return ((wuffs_base__empty_struct){});
}
// ---------------- Images
// No Images related helpers yet.
static const char* wuffs_base__status__strings[13] = {
"ok",
"bad wuffs version",
+8 -2
View File
@@ -1179,8 +1179,6 @@ typedef struct {
// Uncomment this #include for printf-debugging.
// #include <stdio.h>
// ---------------- Static Inline Functions
//
// The helpers below are functions, instead of macros, because their arguments
// can be an expression that we shouldn't evaluate more than once.
//
@@ -1197,6 +1195,8 @@ typedef struct {
// inline attribute to guide optimizations such as inlining, to avoid the
// -Wunused-function warning, and we like to compile with -Wall -Werror.
// ---------------- Fundamentals
static inline uint16_t wuffs_base__load_u16be(uint8_t* p) {
return ((uint16_t)(p[0]) << 8) | ((uint16_t)(p[1]) << 0);
}
@@ -1285,6 +1285,8 @@ static inline uint64_t wuffs_base__slice_u8__copy_from_slice(
return length;
}
// ---------------- I/O
static inline uint32_t wuffs_base__io_writer__copy_from_history32(
uint8_t** ptr_ptr,
uint8_t* start, // May be NULL, meaning an unmarked io_writer.
@@ -1451,6 +1453,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__mark(
return ((wuffs_base__empty_struct){});
}
// ---------------- Images
// No Images related helpers yet.
static const char* wuffs_base__status__strings[13] = {
"ok",
"bad wuffs version",
+8 -2
View File
@@ -1105,8 +1105,6 @@ typedef struct {
// Uncomment this #include for printf-debugging.
// #include <stdio.h>
// ---------------- Static Inline Functions
//
// The helpers below are functions, instead of macros, because their arguments
// can be an expression that we shouldn't evaluate more than once.
//
@@ -1123,6 +1121,8 @@ typedef struct {
// inline attribute to guide optimizations such as inlining, to avoid the
// -Wunused-function warning, and we like to compile with -Wall -Werror.
// ---------------- Fundamentals
static inline uint16_t wuffs_base__load_u16be(uint8_t* p) {
return ((uint16_t)(p[0]) << 8) | ((uint16_t)(p[1]) << 0);
}
@@ -1211,6 +1211,8 @@ static inline uint64_t wuffs_base__slice_u8__copy_from_slice(
return length;
}
// ---------------- I/O
static inline uint32_t wuffs_base__io_writer__copy_from_history32(
uint8_t** ptr_ptr,
uint8_t* start, // May be NULL, meaning an unmarked io_writer.
@@ -1377,6 +1379,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__mark(
return ((wuffs_base__empty_struct){});
}
// ---------------- Images
// No Images related helpers yet.
static const char* wuffs_base__status__strings[13] = {
"ok",
"bad wuffs version",