Add the "const" keyword.

This commit is contained in:
Nigel Tao committed 2017-07-16 12:02:12 +10:00
1 parent 04a41987f0
commit b78807d60a
13 files changed
+292 -4

No files matched your search

+8
View File
@@ -115,6 +115,8 @@ bool puffs_flate_status_is_error(puffs_flate_status s);
const char* puffs_flate_status_string(puffs_flate_status s);
// ---------------- Public Consts
// ---------------- Structs
typedef struct {
@@ -269,6 +271,12 @@ const char* puffs_flate_status_string(puffs_flate_status s) {
return i < n ? a[i] : "flate: unknown status";
}
// ---------------- Private Consts
static const uint8_t puffs_flate_code_order[19] = {
16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15,
};
// ---------------- Private Constructor and Destructor Prototypes
// ---------------- Private Function Prototypes
+4
View File
@@ -113,6 +113,8 @@ bool puffs_gif_status_is_error(puffs_gif_status s);
const char* puffs_gif_status_string(puffs_gif_status s);
// ---------------- Public Consts
// ---------------- Structs
typedef struct {
@@ -323,6 +325,8 @@ const char* puffs_gif_status_string(puffs_gif_status s) {
return i < n ? a[i] : "gif: unknown status";
}
// ---------------- Private Consts
// ---------------- Private Constructor and Destructor Prototypes
// ---------------- Private Function Prototypes
+2
View File
@@ -115,6 +115,8 @@ bool puffs_flate_status_is_error(puffs_flate_status s);
const char* puffs_flate_status_string(puffs_flate_status s);
// ---------------- Public Consts
// ---------------- Structs
typedef struct {
+2
View File
@@ -113,6 +113,8 @@ bool puffs_gif_status_is_error(puffs_gif_status s);
const char* puffs_gif_status_string(puffs_gif_status s);
// ---------------- Public Consts
// ---------------- Structs
typedef struct {