diff options
author | Leo Uino <leo@norisys.jp> | 2011-07-17 09:45:26 +0900 |
---|---|---|
committer | Leo Uino <leo@norisys.jp> | 2011-07-17 09:45:26 +0900 |
commit | a3234f7d7e36ad7d1bad6a85b868b05addf40e9b (patch) | |
tree | ccabef44ef93405d3e082ef1a13710b9aa651b5e /lpg/libqr/constants.h | |
parent | fed32fca55210ce26e103a7f941a71694945311c (diff) | |
download | pdf-simple-sign-a3234f7d7e36ad7d1bad6a85b868b05addf40e9b.tar.gz pdf-simple-sign-a3234f7d7e36ad7d1bad6a85b868b05addf40e9b.tar.xz pdf-simple-sign-a3234f7d7e36ad7d1bad6a85b868b05addf40e9b.zip |
Tweak some types
Diffstat (limited to 'lpg/libqr/constants.h')
-rw-r--r-- | lpg/libqr/constants.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lpg/libqr/constants.h b/lpg/libqr/constants.h index e6cfa3c..c13ae5a 100644 --- a/lpg/libqr/constants.h +++ b/lpg/libqr/constants.h @@ -4,20 +4,20 @@ #include <qr/types.h> /* XOR mask for format data: 101 0100 0001 0010 */ -#define QR_FORMAT_MASK (0x5412) +static const unsigned int QR_FORMAT_MASK = 0x5412; /* Format info EC polynomial * G(x) = x^10 + x^8 + x^5 + x^4 + x^2 + x + 1 */ -#define QR_FORMAT_POLY (0x537) +static const unsigned int QR_FORMAT_POLY = 0x537; /* Version info EC polynomial * G(x) = x^12 + x^11 + x^10 + x^9 + x^8 + x^5 + x^2 + 1 */ -#define QR_VERSION_POLY (0x1F25) +static const unsigned int QR_VERSION_POLY = 0x1F25; /* A QR-code word is always 8 bits, but CHAR_BIT might not be */ -#define QR_WORD_BITS (8) +static const unsigned int QR_WORD_BITS = 8; extern const int QR_ALIGNMENT_LOCATION[40][7]; extern const int QR_DATA_WORD_COUNT[40][4]; |