Commit Graph

247 Commits

Author SHA1 Message Date
Project Nayuki c3edfaa877 Tweaked small bits of C code for clarity, without changing behavior. 2017-04-20 06:05:26 +00:00
Project Nayuki 02399cfd0b Updated C code to remove checked arithmetic functions but retain overflow checks (related to commit 481a1c0de3). 2017-04-20 05:43:13 +00:00
Project Nayuki cb6835fecb Updated C code to consolidate logic for finding minimum fitting version number, also tweaked arithmetic and control flow. 2017-04-20 05:36:03 +00:00
Project Nayuki 481a1c0de3 Added C functions to do basic arithmetic with overflow checks, updated code to use these functions. 2017-04-20 05:12:55 +00:00
Project Nayuki 6229fa48cd Moved more shared logic of C code into encodeQrCodeTail(), without changing behavior. 2017-04-20 04:55:28 +00:00
Project Nayuki 7eb3095acf Refactored a C function to add local variable for frequently used value. 2017-04-20 04:35:48 +00:00
Project Nayuki 35da4ef7bc Renamed all local variables 'size' to 'qrsize' in C library code, without changing behavior. 2017-04-20 04:34:18 +00:00
Project Nayuki 4d9b73c443 Tweaked C code to avoid unnecessary use of uint16_t type, without changing behavior. 2017-04-20 04:29:42 +00:00
Project Nayuki 79a56065f9 Renamed private function initializeFunctionModules() in C code. 2017-04-20 04:19:15 +00:00
Project Nayuki 7c173b79b4 Simplified code for 'upward' variable in all language versions, without changing behavior. 2017-04-20 04:18:22 +00:00
Project Nayuki 21212ba617 Fixed integer overflow checks in C code. 2017-04-20 04:10:53 +00:00
Project Nayuki 31634fc05c Fixed potential overflow in C and C++ code, in worst case when int type is int16. 2017-04-20 04:08:26 +00:00
Project Nayuki 3e634c9f26 Renamed variable 'upwards' to 'upward' in drawCodewords() of all language versions, without changing behavior. 2017-04-20 04:06:46 +00:00
Project Nayuki f020833cd4 Simplified code in all language versions of the library (C, C++, Java, JavaScript, Python) and reduced table size, without changing behavior. 2017-04-19 23:06:40 +00:00
Project Nayuki 26b4cf557c Added new integer constants to C code, updated existing code to make use of them. 2017-04-19 22:17:07 +00:00
Project Nayuki c81354658b Added C demo main program. 2017-04-19 22:14:08 +00:00
Project Nayuki df52f793fa Simplified C code's initializeFunctionalModules(). 2017-04-19 21:59:25 +00:00
Project Nayuki 0cfed8c5de Updated function-level comments in C code. 2017-04-19 21:40:14 +00:00
Project Nayuki a799abe654 Refactored C code to deduplicate logic into a new function. 2017-04-19 21:23:21 +00:00
Project Nayuki d704cc074b Added and updated section comments in C code. 2017-04-19 21:08:05 +00:00
Project Nayuki 9f9747de3e Refactored C code to use size instead of version in drawCodewords(). 2017-04-19 20:59:02 +00:00
Project Nayuki be2e9e7a3a Continued implementing C library by adding logic to support boosting ECC level. 2017-04-19 20:46:32 +00:00
Project Nayuki 47fc47938a Continued implementing C library by adding main QR Code encoding function for text, including support for alphanumeric and numeric mode segments. 2017-04-19 20:45:50 +00:00
Project Nayuki 53359d7ef2 Deleted text-testing functions in C library code. 2017-04-19 20:28:25 +00:00
Project Nayuki 9db04d77db Continued implementing C library by adding and updating code to support automatic mask selection and penalty calculation. 2017-04-19 19:32:27 +00:00
Project Nayuki d332c4a91c Continued implementing C library by adding a main QR Code encoding function and auxiliary functions. 2017-04-19 18:07:02 +00:00
Project Nayuki 316bb588f2 Fixed C code logic for drawing 3*6 blocks of version information, tweaked another piece of similar logic for consistency without changing behavior. 2017-04-19 17:56:36 +00:00
Project Nayuki 703fcf587d Continued implementing C library by adding functions to append Reed-Solomon ECC and interleave blocks. 2017-04-19 16:42:21 +00:00
Project Nayuki 3f6916d43e Continued implementing C library by adding functions to draw codewords and apply masking. 2017-04-17 20:36:38 +00:00
Project Nayuki a0033275e3 Continued implementing C library by adding functions to draw QR Code function patterns. 2017-04-17 20:02:51 +00:00
Project Nayuki 5e415ae08b Continued implementing C library by adding enums and macros. 2017-04-17 19:22:55 +00:00
Project Nayuki f49bee7a2d Fixed and tweaked some pieces of C library code. 2017-04-17 19:15:40 +00:00
Project Nayuki 261d57607b Continued implementing C library by adding functions to fill QR Code function patterns. 2017-04-17 18:26:29 +00:00
Project Nayuki f18ababe0d Continued implementing C library by adding low-level QR Code get/set functions. 2017-04-17 18:02:14 +00:00
Project Nayuki 18a10b6b99 Continued implementing C library by adding header file and text-testing functions. 2017-04-17 17:43:38 +00:00
Project Nayuki b9e3476420 Began writing new port of this library in C by implementing Reed-Solomon functions. 2017-04-17 17:34:21 +00:00
Project Nayuki 501d254a0f Deleted unused header #include. 2017-04-17 16:41:41 +00:00
Project Nayuki ceb51372d3 Updated C++ QrCode private methods to replace some int variables with long to prevent overflow. 2017-04-17 16:41:20 +00:00
Project Nayuki 873652a82f Updated C++ ByteBuffer and QrSegment code to check and handle integer overflow strictly. 2017-04-17 16:32:14 +00:00
Project Nayuki b7a4605e44 Fixed potential overflow in C++ code, in worst case when int type is int16. 2017-04-17 02:02:33 +00:00
Project Nayuki 5071995ab7 Replaced '>>' with '> >' in C++ code using templates, for robustness in parsing. 2017-04-17 02:01:32 +00:00
Project Nayuki 654520d0d4 Changed syntax so that every class member is explicitly prefixed with public/private like in Java/C# style, without changing any functionality. 2017-04-08 22:54:11 +00:00
Project Nayuki 9655cbc12a Updated text in Python setup script (related to commit 78d32b455f). 2017-03-21 18:22:51 +00:00
Project Nayuki 43987c0f28 Deleted unused arguments for main(), replaced return code with named constant. 2017-02-25 19:24:56 +00:00
Project Nayuki 78d32b455f Updated the readme introduction text. 2017-02-17 23:08:32 +00:00
Project Nayuki 12360bec33 Added and updated a few comments in QrSegmentAdvanced. 2017-02-10 03:31:03 +00:00
Project Nayuki e062a386d0 Deleted copyright year in all source files, updated year in readme document. 2017-02-10 03:19:39 +00:00
Project Nayuki 8033f9cec0 Fixed a constant value in QrSegmentAdvanced, which affects how the optimal segment switching is selected. 2017-02-10 03:17:18 +00:00
Project Nayuki bd470926ca Tweaked all Java code to replace explicit null checks with calls to Objects.requireNonNull() (requires Java SE 7+). 2017-01-25 01:13:57 +00:00
Project Nayuki b2e7844a94 Updated wording of documentation comments in {C++, JavaScript, Python} versions - changed the word "specified" to "given" for consistency. 2017-01-03 18:31:49 +00:00