Commit Graph

204 Commits

Author SHA1 Message Date
Richard Ramos 1bcbf53e63 crosscompile to amd64 when building on darwin/arm64 2021-09-23 10:03:05 -04:00
Richard Ramos 6d8cc8bee9
fix: remove double dash 2020-06-23 13:40:41 -04:00
Project Nayuki 13a25580a3 Simplified QrCode.getPenalty() in all language versions except Rust, related to commit 1439e8e4a5. 2020-01-29 17:52:21 +00:00
Project Nayuki 6e088f72d3 Added an assertion to QrCode.getNumRawDataModules() in all language versions. 2019-09-13 04:09:42 +00:00
Project Nayuki 7eac8beffe Updated C and C++ makefiles to exclude warnings and sanitizers by default, instead recommending extra flags for manually doing a diagnostic/debug build. 2019-08-09 23:00:13 +00:00
Project Nayuki 0ebd221a27 Updated C test suite for an internal function because the parameter is size_t and not int. (The function and test were introduced in commit 08108ee6d8ae.) 2019-07-22 17:56:28 +00:00
Project Nayuki 1a254cf67f Refactored C qrcodegen-test's testCalcSegmentBitLength() to add a test case struct. 2019-07-22 17:44:19 +00:00
Project Nayuki 42f753cfcf Fixed indentation in a line of C code. 2019-07-22 17:31:19 +00:00
Project Nayuki a492346364 Clarified C qrcodegen-worker so that two internal variables use size_t instead of int. 2019-07-22 17:30:40 +00:00
Project Nayuki ae0ff71ff1 Clarified C qrcodegen-test testAddEccAndInterleave() so that its internals use size_t instead of int. 2019-07-22 17:26:56 +00:00
Project Nayuki 68d4cb5217 Clarified C qrcodegen-test addEccAndInterleaveReference() so that its internals use size_t instead of int. 2019-07-22 17:07:09 +00:00
Project Nayuki 9312480978 In C version, added many explicit integer type casts for signedness, with the help of GCC's "-Wsign-conversion" and "-Wconversion". 2019-07-22 16:31:22 +00:00
Project Nayuki 76127b8bfe Renamed functions and variables, and updated comments, thus synchronizing the C language version with the previous changeset. 2019-07-14 17:09:51 +00:00
Project Nayuki c5ad557eea Updated the finder pattern detector logic in the other 6 language versions to match Java code. 2019-07-06 03:30:51 +00:00
Project Nayuki 1ca214499b Renamed a local variable in all language versions (although the Java version has different logic). 2019-07-06 01:43:20 +00:00
Project Nayuki 40d24f38aa Fixed argument type of qrcodegen_encodeSegmentsAdvanced() mask in C code. 2019-02-14 01:53:57 +00:00
Project Nayuki a072562461 Simplified an integer comparison in C code. 2019-02-14 01:47:14 +00:00
Project Nayuki 3a28ba7dfd Added missing null check in C code after malloc. 2018-12-04 23:46:38 +00:00
Project Nayuki fd083f70e8 Reordered calls to applyMask()/drawFormatBits() for conceptual clarity, without changing output (because masks don't affect format bits), in all language versions. 2018-11-04 19:26:33 +00:00
Project Nayuki 76de28378e Added a const to C code for safety. 2018-11-04 18:56:47 +00:00
Project Nayuki af872343c0 Completely rewrote the algorithm for detecting finder-like patterns, making it more accurate and compliant with the QR Code specification, in all languages. 2018-10-26 06:53:12 +00:00
Project Nayuki 5ac0e2a938 Inverted some if-else statements in QrCode.getPenaltyScore() without changing behavior, in all languages. 2018-10-26 05:24:21 +00:00
Project Nayuki 111b20b2b9 Tweaked logic in QrCode.getPenaltyScore() for future expansion, without changing behavior, in all languages. 2018-10-26 05:21:34 +00:00
Project Nayuki a14de3d959 Renamed colorX, colorY local variables in QrCode.getPenaltyScore() to just color, in all language versions. 2018-10-26 03:47:04 +00:00
Project Nayuki f2ea49b7d4 Tweaked QrCode.drawFormatBits() to use end-exclusive range in second copy for clarity, in most languages. 2018-10-13 19:54:30 +00:00
Project Nayuki 7dbfabd388 Reordered functions and sections in C code for better flow for human readers, without changing functionality. 2018-10-08 18:01:14 +00:00
Project Nayuki 614169fc88 Fixed a comment in C code. 2018-10-08 03:02:56 +00:00
Project Nayuki f011e52770 Updated and synchronized documentation comments for QrCode's instance methods, in all languages. 2018-10-06 03:26:54 +00:00
Project Nayuki 76f97dd0b8 Updated and synchronized documentation comments for QrCode class's constructor and static factory functions, in all languages. 2018-10-06 03:11:03 +00:00
Project Nayuki 95e5f14c36 Updated and synchronized QrCode class's top-level documentation comment, in all languages. 2018-10-05 21:17:52 +00:00
Project Nayuki a5b6c28a1f Updated and synchronized documentation comments for QrCode class's fields and constants, in all languages. 2018-10-05 20:56:50 +00:00
Project Nayuki eebae19fb2 Reduced the use of the word "symbol" when referring to QR Codes, in all languages. 2018-10-05 20:30:26 +00:00
Project Nayuki 79796901ea Updated and synchronized documentation comments for QrSegment class's {top-level, constructor, makeBytes()}, in all languages. 2018-10-05 19:38:36 +00:00
Project Nayuki 85eb6493fd Updated and synchronized documentation comments for QrSegment's constants/functions involving character sets, in all languages. 2018-10-05 19:34:42 +00:00
Project Nayuki 139e67eee2 Updated and synchronized documentation comments for QrSegment's fields, in all languages. 2018-10-05 19:27:11 +00:00
Project Nayuki 179f7be089 Updated and synchronized QrCode.Ecc and QrSegment.Mode enums' documentation comments, in all languages. 2018-10-05 17:58:16 +00:00
Project Nayuki 29479efedf Updated class BitBuffer's documentation comments, in all languages. 2018-10-05 17:35:18 +00:00
Project Nayuki 7d49af97e1 Updated documentation comments for three QrSegment members, in all language versions. 2018-10-05 00:21:12 +00:00
Project Nayuki 4ee7f6df96 Updated documentation comments for two QrSegment.Mode members, in all language versions. 2018-10-04 22:16:25 +00:00
Project Nayuki af6a247121 Tweaked logic in QrSegment.makeEci() to reduce redundancy, in all languages except Rust. 2018-10-04 19:26:21 +00:00
Project Nayuki 0cded0ba36 Aligned main comments in demo programs. 2018-10-04 19:08:23 +00:00
Project Nayuki dd47ef10c7 Split long text constants in demo programs. 2018-10-04 19:06:54 +00:00
Project Nayuki dce44caf8f Tweaked BitBuffer.appendBits() comment in several language versions. 2018-10-02 08:55:34 +00:00
Project Nayuki aa264f5a4d Simplified the arithmetic of an internal C function. 2018-09-18 08:58:30 +00:00
Project Nayuki a19c7aa21b Reformatted a bit of whitespace in C code, to match other languages (commit 5a5626edb2). 2018-09-17 04:15:29 +00:00
Project Nayuki 6903d28c90 Swapped {dy,dx} variables in commutative operations for clarity, in all languages. 2018-09-17 03:51:57 +00:00
Project Nayuki 87868d7920 Renamed loop variables in QrCode.{drawFinderPattern(),drawAlignmentPattern()} for clarity, in all languages (but somewhat differently in C). 2018-09-17 03:47:58 +00:00
Project Nayuki 440efef8bf Tweaked C code to avoid unnecessary array initialization. 2018-09-17 03:40:08 +00:00
Project Nayuki 0920922a32 Tweaked qrcodegen.c to not be compilable in C++ mode (undoing commit 88cc1c05fd). 2018-09-17 03:39:40 +00:00
Project Nayuki 30aed54c47 Simplified C code to directly assign useful values to the segment mode enum. 2018-09-17 03:31:00 +00:00