Commit Graph

225 Commits (master)

Author SHA1 Message Date
Project Nayuki 8329a7108f Slightly simplified the calculation of alignment pattern spacing in a non-obvious way, adapted from David Evans's "Lean QR" project.
3 months ago
Project Nayuki c147f7e328 Clarified a magic value in C code and reflowed some associated comments.
2 years ago
Project Nayuki f3705873ab Rewrote comments for top-level QR-encoding functions in C, to correspond better to other language ports.
3 years ago
Project Nayuki 33af976bba Fixed a misspelled word in C comments.
3 years ago
Project Nayuki 52a3273d8c Updated documentation comments for QrCode::{encode_text(),encode_binary()} in Rust-no-heap and C ports.
3 years ago
Project Nayuki d4085a443a Revamped documentation comments about argument arrays in the C and Rust-no-heap ports.
3 years ago
Project Nayuki 5990e6a99c - In the project (top-level) readme file, kept one language's code example and moved all others out to language-specific readme files.
3 years ago
Project Nayuki c99a727c8b Updated function-level comments in the C language port.
3 years ago
Project Nayuki c7ab2582aa Added value range assertions to QrCode.getPenaltyScore(), in all language ports.
3 years ago
Project Nayuki c53c754acf Added/tweaked comments in C code to correspond to the other language ports.
3 years ago
Project Nayuki 359c42557c Renamed a C library internal function getModule() to getModuleBounded().
3 years ago
Project Nayuki 94aca572e4 Renamed a C library internal function setModule() to setModuleBounded().
3 years ago
Project Nayuki a078f19cf4 Renamed a C library internal function setModuleBounded() to setModuleUnbounded().
3 years ago
Project Nayuki 2fc287904a Tweaked C code to avoid unused-parameter warning when compiling without asserts.
3 years ago
Project Nayuki a06aef7c62 Added null checks and error termination logic to runnable main C code after calls to malloc()/calloc(), removed an unnecessary non-null assertion.
3 years ago
Project Nayuki 0e80f23c04 Reordered QrSegment.{isNumeric(),isAlphanumeric()} in {C, C++, Rust} versions.
3 years ago
Project Nayuki 764749bd8a Added spaces around multiplication operators in QrCode.getAlignmentPatternPositions() for all language versions, for consistency with other code.
3 years ago
Project Nayuki 42bc11c763 Updated C API comments to match the existing code logic requiring non-overlapping array buffers.
3 years ago
Project Nayuki 2261248957 Removed the test worker program in every language and the Python batch tester, because this is not core functionality and is hard to explain.
3 years ago
Project Nayuki 1fd0216dfe Changed the word "black" to "dark" in {comments, local variables,} in order to match the vocabulary in the QR Code specification document.
3 years ago
Project Nayuki 99e7d59383 Changed the word "white" to "light" in {comments, local variables, a private C function} in order to match the vocabulary in the QR Code specification document.
3 years ago
Project Nayuki 455e0b2427 Merged.
4 years ago
Thomas Klausner 5217af7cf6 Honor LDFLAGS when building executables.
5 years ago
Project Nayuki 13a25580a3 Simplified QrCode.getPenalty() in all language versions except Rust, related to commit 1439e8e4a5.
5 years ago
Project Nayuki 6e088f72d3 Added an assertion to QrCode.getNumRawDataModules() in all language versions.
5 years ago
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.
5 years ago
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.)
5 years ago
Project Nayuki 1a254cf67f Refactored C qrcodegen-test's testCalcSegmentBitLength() to add a test case struct.
5 years ago
Project Nayuki 42f753cfcf Fixed indentation in a line of C code.
5 years ago
Project Nayuki a492346364 Clarified C qrcodegen-worker so that two internal variables use size_t instead of int.
5 years ago
Project Nayuki ae0ff71ff1 Clarified C qrcodegen-test testAddEccAndInterleave() so that its internals use size_t instead of int.
5 years ago
Project Nayuki 68d4cb5217 Clarified C qrcodegen-test addEccAndInterleaveReference() so that its internals use size_t instead of int.
5 years ago
Project Nayuki 9312480978 In C version, added many explicit integer type casts for signedness, with the help of GCC's "-Wsign-conversion" and "-Wconversion".
5 years ago
Project Nayuki 76127b8bfe Renamed functions and variables, and updated comments, thus synchronizing the C language version with the previous changeset.
5 years ago
Project Nayuki c5ad557eea Updated the finder pattern detector logic in the other 6 language versions to match Java code.
5 years ago
Project Nayuki 1ca214499b Renamed a local variable in all language versions (although the Java version has different logic).
5 years ago
Project Nayuki 40d24f38aa Fixed argument type of qrcodegen_encodeSegmentsAdvanced() mask in C code.
6 years ago
Project Nayuki a072562461 Simplified an integer comparison in C code.
6 years ago
Project Nayuki 3a28ba7dfd Added missing null check in C code after malloc.
6 years ago
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.
6 years ago
Project Nayuki 76de28378e Added a const to C code for safety.
6 years ago
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.
6 years ago
Project Nayuki 5ac0e2a938 Inverted some if-else statements in QrCode.getPenaltyScore() without changing behavior, in all languages.
6 years ago
Project Nayuki 111b20b2b9 Tweaked logic in QrCode.getPenaltyScore() for future expansion, without changing behavior, in all languages.
6 years ago
Project Nayuki a14de3d959 Renamed colorX, colorY local variables in QrCode.getPenaltyScore() to just color, in all language versions.
6 years ago
Project Nayuki f2ea49b7d4 Tweaked QrCode.drawFormatBits() to use end-exclusive range in second copy for clarity, in most languages.
6 years ago
Project Nayuki 7dbfabd388 Reordered functions and sections in C code for better flow for human readers, without changing functionality.
6 years ago
Project Nayuki 614169fc88 Fixed a comment in C code.
6 years ago
Project Nayuki f011e52770 Updated and synchronized documentation comments for QrCode's instance methods, in all languages.
6 years ago
Project Nayuki 76f97dd0b8 Updated and synchronized documentation comments for QrCode class's constructor and static factory functions, in all languages.
6 years ago