mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Convert some extern variables to static
These probably should have been static all along, it was only forgotten out of sloppiness. Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce@eisentraut.org
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
*/
|
||||
|
||||
/* where the digit set begins, and how many of them are in the table */
|
||||
const unsigned EAN13_index[10][2] = {
|
||||
static const unsigned EAN13_index[10][2] = {
|
||||
{0, 6},
|
||||
{6, 1},
|
||||
{7, 1},
|
||||
@ -23,7 +23,7 @@ const unsigned EAN13_index[10][2] = {
|
||||
{90, 17},
|
||||
{107, 12},
|
||||
};
|
||||
const char *EAN13_range[][2] = {
|
||||
static const char *EAN13_range[][2] = {
|
||||
{"000", "019"}, /* GS1 US */
|
||||
{"020", "029"}, /* Restricted distribution (MO defined) */
|
||||
{"030", "039"}, /* GS1 US */
|
||||
|
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
/* where the digit set begins, and how many of them are in the table */
|
||||
const unsigned ISBN_index[10][2] = {
|
||||
static const unsigned ISBN_index[10][2] = {
|
||||
{0, 6},
|
||||
{6, 6},
|
||||
{12, 8},
|
||||
@ -47,7 +47,7 @@ const unsigned ISBN_index[10][2] = {
|
||||
{192, 718},
|
||||
};
|
||||
|
||||
const char *ISBN_range[][2] = {
|
||||
static const char *ISBN_range[][2] = {
|
||||
{"0-00", "0-19"},
|
||||
{"0-200", "0-699"},
|
||||
{"0-7000", "0-8499"},
|
||||
@ -967,7 +967,7 @@ const char *ISBN_range[][2] = {
|
||||
*/
|
||||
|
||||
/* where the digit set begins, and how many of them are in the table */
|
||||
const unsigned ISBN_index_new[10][2] = {
|
||||
static const unsigned ISBN_index_new[10][2] = {
|
||||
{0, 0},
|
||||
{0, 5},
|
||||
{5, 0},
|
||||
@ -980,7 +980,7 @@ const unsigned ISBN_index_new[10][2] = {
|
||||
{5, 0},
|
||||
};
|
||||
|
||||
const char *ISBN_range_new[][2] = {
|
||||
static const char *ISBN_range_new[][2] = {
|
||||
{"10-00", "10-19"},
|
||||
{"10-200", "10-699"},
|
||||
{"10-7000", "10-8999"},
|
||||
|
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
/* where the digit set begins, and how many of them are in the table */
|
||||
const unsigned ISMN_index[10][2] = {
|
||||
static const unsigned ISMN_index[10][2] = {
|
||||
{0, 5},
|
||||
{5, 0},
|
||||
{5, 0},
|
||||
@ -42,7 +42,7 @@ const unsigned ISMN_index[10][2] = {
|
||||
{5, 0},
|
||||
{5, 0},
|
||||
};
|
||||
const char *ISMN_range[][2] = {
|
||||
static const char *ISMN_range[][2] = {
|
||||
{"0-000", "0-099"},
|
||||
{"0-1000", "0-3999"},
|
||||
{"0-40000", "0-69999"},
|
||||
|
@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
/* where the digit set begins, and how many of them are in the table */
|
||||
const unsigned ISSN_index[10][2] = {
|
||||
static const unsigned ISSN_index[10][2] = {
|
||||
{0, 1},
|
||||
{0, 1},
|
||||
{0, 1},
|
||||
@ -43,7 +43,7 @@ const unsigned ISSN_index[10][2] = {
|
||||
{0, 1},
|
||||
{0, 1},
|
||||
};
|
||||
const char *ISSN_range[][2] = {
|
||||
static const char *ISSN_range[][2] = {
|
||||
{"0000-000", "9999-999"},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
@ -11,7 +11,7 @@
|
||||
*/
|
||||
|
||||
/* where the digit set begins, and how many of them are in the table */
|
||||
const unsigned UPC_index[10][2] = {
|
||||
static const unsigned UPC_index[10][2] = {
|
||||
{0, 0},
|
||||
{0, 0},
|
||||
{0, 0},
|
||||
@ -23,6 +23,6 @@ const unsigned UPC_index[10][2] = {
|
||||
{0, 0},
|
||||
{0, 0},
|
||||
};
|
||||
const char *UPC_range[][2] = {
|
||||
static const char *UPC_range[][2] = {
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
Reference in New Issue
Block a user