change some data to const

This commit is contained in:
lixianjing 2019-10-24 15:11:06 +08:00
parent 1806611363
commit 4c8b43f381
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ enum BreakAction
* adjusted after special processing as per LB8a of Revision 41) and CB
* (manually added as per LB20).
*/
static enum BreakAction baTable[LBP_CB][LBP_CB] = {
static const enum BreakAction baTable[LBP_CB][LBP_CB] = {
{ /* OP */
PRH_BRK, PRH_BRK, PRH_BRK, PRH_BRK, PRH_BRK, PRH_BRK, PRH_BRK,
PRH_BRK, PRH_BRK, PRH_BRK, PRH_BRK, PRH_BRK, PRH_BRK, PRH_BRK,

View File

@ -8,7 +8,7 @@ typedef struct _color_map_t {
const char* value;
} color_map_t;
static color_map_t colors_map[] = {{"aliceblue", "#f0f8ff"},
static color_map_t const colors_map[] = {{"aliceblue", "#f0f8ff"},
{"antiquewhite", "#faebd7"},
{"aqua", "#00ffff"},
{"aquamarine", "#7fffd4"},