Commit Graph

208 Commits (42bc11c763782ff98e063e9d6c042cc12304c1a8)

Author SHA1 Message Date
Project Nayuki 87868d7920 Renamed loop variables in QrCode.{drawFinderPattern(),drawAlignmentPattern()} for clarity, in all languages (but somewhat differently in C).
6 years ago
Project Nayuki 440efef8bf Tweaked C code to avoid unnecessary array initialization.
6 years ago
Project Nayuki 0920922a32 Tweaked qrcodegen.c to not be compilable in C++ mode (undoing commit 88cc1c05fd).
6 years ago
Project Nayuki 30aed54c47 Simplified C code to directly assign useful values to the segment mode enum.
6 years ago
Project Nayuki be143456be Revamped C and C++ makefiles by copying structure from another library of mine, removed shared library output from C library (from commit a3dcc36dd4) due to problematic linkage in some enviroments.
6 years ago
Project Nayuki 070daf8c9e Tweaked C header file to be friendly to C++.
6 years ago
Project Nayuki 67bb2b4267 Removed C macros for MALLOC() to not support compiling code verbatim in C++ mode (undoing commit eb536b43c5).
6 years ago
Project Nayuki 957219dc91 Reformatted some whitespace for alignment in all language versions.
6 years ago
Project Nayuki e7854eb797 Reformatted some whitespace for alignment in all language versions.
6 years ago
Project Nayuki 3ead3dbb84 Updated up to 8 comments in all language versions, but somewhat differently in each language.
6 years ago
Project Nayuki 362d552c92 Simplified QrSegment.Mode.numCharCountBits() in all language versions.
6 years ago
Project Nayuki 16b59e207d Deleted unnecessary version range check in two private functions, in all language versions except Rust.
6 years ago
Project Nayuki 9c670453a8 Tweaked small pieces of code.
6 years ago
Project Nayuki 4ede209d9a Changed QrCode.getAlignmentPatternPositions() from static function to instance method, tweaked its logic, and updated comment - in all languages but differently in each.
6 years ago
Project Nayuki 4c882636bb Updated comments for QrSegment.getTotalBits() in all language versions, but somewhat differently per language.
6 years ago
Project Nayuki 0bf2d3306b Simplified some code.
6 years ago
Project Nayuki 669585590b Added an assertion to QrCode.encodeSegmentsAdvanced() in all language versions.
6 years ago
Project Nayuki 87cab22ffc Revamped addEccAndInterleave() in C code for simplicity and robustness.
6 years ago
Project Nayuki 2c055c2e67 Renamed some related variables in C code to match other language versions.
6 years ago
Project Nayuki 08f7bba796 Simplified C code to eliminate a loop variable.
6 years ago
Project Nayuki de2603ab5f Simplified some C code for overflow-safe calculation.
6 years ago
Project Nayuki f1a1ab189b Clarified and simplified some pieces of C code.
6 years ago
Project Nayuki 536a881416 Reformatted small pieces of C code.
6 years ago
Project Nayuki e2789cd5c4 Updated and added comments in C code.
6 years ago
Project Nayuki d3fbf3173b Tweaked C code to change dummy value initializations to early exits (return statements).
6 years ago
Project Nayuki 45c4ac7f2e Added new private constant to C code.
6 years ago
Project Nayuki e7d2449957 Deleted comment and calculated the constant in QrCode.getNumRawDataModules() in all language versions except Java, because only the Java code explains the calculation in detail.
6 years ago
Project Nayuki 98d1f0cc91 Reformatted a comment in all language versions (related to commit 5073db4487).
6 years ago
Project Nayuki 5073db4487 Somewhat simplified black/white balance penalty calculation in all language versions.
6 years ago
Project Nayuki c8f05d24d1 Tweaked comments about inclusive ranges so that the word is consistently parenthesized.
6 years ago
Project Nayuki c86dacacb7 Tweaked code and comment in QrCode.encodeSegments() in all language versions.
6 years ago
Project Nayuki c9553ead71 Simplified code in QrCode.drawFunctionPatterns() in all language versions, but differently in Python.
6 years ago
Project Nayuki 0ee6c41c9c Renamed QrCode.appendErrorCorrection() to addEccAndInterleave() in all language versions.
6 years ago
Project Nayuki 8d6dcf2631 Simplified and reformatted QrCode.getAlignmentPatternPositions() in different ways in all language versions.
6 years ago
Project Nayuki 62e73f787a Renamed variable in QrCode.drawVersion() in all language versions.
6 years ago
Project Nayuki 23ae555dde Added variable for clarity to QrCode.drawFormatBits() in all language versions.
6 years ago
Project Nayuki d1f53e6e7d Added and updated 4 comments in all language versions.
6 years ago
Project Nayuki c0b684bc18 Tweaked comment for kanji demo in multiple languages, so that it corresponds to the order in the sample text string.
7 years ago
Project Nayuki 693304b8c3 Updated all language versions to add getBit() helper function and refactor existing arithmetic code to use it.
7 years ago
Project Nayuki 908dbbfb31 Added initial values to some variables in C and C++ code to avoid potential compiler warnings.
7 years ago
Project Nayuki 7e18dfe885 Tweaked C code to be slightly more efficient by using static constant data.
7 years ago
Project Nayuki 30a9474596 Added initial values to some variables in C code to avoid potential compiler warnings.
7 years ago
Project Nayuki 6a71e09f72 Added/tweaked comments and blank lines in demo programs of all language versions except JavaScript.
7 years ago
Project Nayuki 8fe7878e1e Changed output format of C and C++ demo programs to match design intent and other languages.
7 years ago
Project Nayuki b86466ecd5 - Deleted constructors/functions/code for remasking existing QrCode object (due to doubtful real-world usefulness): C++, Java, JavaScript, Python, Rust.
7 years ago
Project Nayuki c4c8d6ba45 Added examples of custom segments to C demo program.
7 years ago
Project Nayuki 202fdd39d3 Edited and added numerous comments for C library members.
7 years ago
Project Nayuki e36f6953dc Simplified a bit of C code.
7 years ago
Project Nayuki 2b9770f54a Added comments to numerous new C functions.
7 years ago
Project Nayuki 55b0056f38 Added some assertions to new C functions.
7 years ago
Project Nayuki 13c136db8b Made C function getTotalBits() testable, added test cases.
7 years ago
Project Nayuki dcdd743ef5 Simplified C library's numCharCountBits() function, updated dependent code.
7 years ago
Project Nayuki 9e9eaf488e Deleted 3 unused C private functions, deleted 1 associated test case.
7 years ago
Project Nayuki 562f478d26 Rewrote and simplified C functions encodeText() and encodeBinary() to use new encodeSegmentsAdvanced(), without changing behavior (except for bugs).
7 years ago
Project Nayuki 66f6500220 Added unused C functions to make a QR Code based on a list of segments.
7 years ago
Project Nayuki ad46d5e434 Added some argument null checks to C code.
7 years ago
Project Nayuki fb544495e7 Added C functions to make numeric and alphanumeric segments, added test cases.
7 years ago
Project Nayuki d126f7b1ed Added C functions to make byte and ECI segments, added test cases.
7 years ago
Project Nayuki ec24c428ba Added C functions to test whether strings can be encoded in certain segment modes, added test cases.
7 years ago
Project Nayuki 08108ee6d8 Added C functions to calculate segment buffer size and bit length, added test cases.
7 years ago
Project Nayuki 4f823c3039 Added new unused enum and struct to C library code to represent segments.
7 years ago
Project Nayuki 272ca8bb54 Split long lines in various {Java, JavaScript, Python, C++, C, Rust} code, without changing behavior.
7 years ago
Project Nayuki 8ec5d75766 Simplified a bit of C code.
7 years ago
Project Nayuki 4d6185a5d3 Reorganized a chunk of code in worker program of {Java, Python, C, C++} language versions, without changing behavior.
7 years ago
Project Nayuki 7e512971df Fixed some arithmetic checks in Java and C code.
7 years ago
Project Nayuki 16f504be67 Inlined the 'size' variable in getAlignmentPatternPositions() in 3 language versions.
7 years ago
Project Nayuki 49f6538682 Updated a comment in getAlignmentPatternPositions() in most language versions (except JavaScript).
7 years ago
Project Nayuki 7075db21d1 Changed C makefile rules to use the shared library when possible, and to fix library build rule if there is more than one .c source file.
7 years ago
Project Nayuki c936e2c1de Added variable for library file name, added library to the default build - in the C makefile.
7 years ago
Project Nayuki ea59bedc93 Reordered definition and added comment to C makefile.
7 years ago
Ben Kelly a3dcc36dd4 Add shared library make target for C library
7 years ago
Project Nayuki 88cc1c05fd Fully fixed C library code to be compilable in C++ mode (polyglot).
8 years ago
Project Nayuki ce58036cb2 Tweaked C library code to not use gotos, to make it more friendly to compile in C++ mode.
8 years ago
Project Nayuki eb536b43c5 Tweaked C test program sto be more C++-friendly by adding macro to cast malloc(), refactored existing code to use the macro.
8 years ago
Project Nayuki f089897e04 Tweaked C test suite code to make test vectors immutable (const).
8 years ago
Project Nayuki 047f85d164 Tweaked C code to be more correct regarding #include <stddef.h> for size_t.
8 years ago
Project Nayuki c42fd75b77 Tweaked C demo code to be more correct by declaring nullary functions with '(void)'.
8 years ago
Project Nayuki 0482a1ec5b Simplified a small bit of variables and logic of QrCode.getPenaltyScore() in all language versions, but in a subtly different way per language.
8 years ago
Project Nayuki 50c1a6b8af Simplified a few lines of code in constructor of ReedSolomonGenerator in all language versions.
8 years ago
Project Nayuki 5d1069a93c Added 'extern "C"' directives to make the C header file usable in C++ code.
8 years ago
Project Nayuki a712ccc230 Added test cases for C function appendErrorCorrection().
8 years ago
Project Nayuki d11707d06a Added test cases for C function appendBitsToBuffer().
8 years ago
Project Nayuki 652ee37f59 Updated comment for QrCode.getNumRawDataModules() in all language versions.
8 years ago
Project Nayuki 84dd6f4e07 Updated comment for multiply()/finiteFieldMultiply() in C++ and C code.
8 years ago
Project Nayuki 1a2b0065fe Updated comments in C code.
8 years ago
Project Nayuki 0b4dba367a Added line breaks to some long C function prototypes (matching line breaks in the definitions).
8 years ago
Project Nayuki c99bb61f41 Added local variables to a C function to shorten code width.
8 years ago
Project Nayuki 73b05e36fb Added null checks to all public C functions.
8 years ago
Project Nayuki c82c6f478b Tweaked C code to give explicit value to Ecc enum, to approve of casting enum values to/from int.
8 years ago
Project Nayuki 23244832b5 Heavily edited (and slightly fixed) public API comments for C library.
8 years ago
Project Nayuki fffe81aeb1 Added C test case for getModule(), setModule(), etc.
8 years ago
Project Nayuki 0bd7684198 Added C test case for initializeFunctionModules().
8 years ago
Project Nayuki 546029090c Changed C API functions qrcodegen_encodeText() and qrcodegen_encodeBinary() to return boolean status instead of integer version number, updated runnable programs to work with modified API.
8 years ago
Project Nayuki 767084b80d Refactored 4 private C functions to move qrsize variable from parameter to local variable, updated callers, without changing behavior.
8 years ago
Project Nayuki bc12aa1dc6 Refactored C demo program code to remove unused parameter, without changing behavior.
8 years ago
Project Nayuki 454534ee33 Changed C API function qrcodegen_getSize() to receive array instead of int, updated runnable programs, deleted test cases for this function.
8 years ago
Project Nayuki df1c49cc39 Changed C API function qrcodegen_getModule() to remove version argument, updated runnable programs.
8 years ago
Project Nayuki 12bd5401ab Refactored private C function getModule() to read size from QR Code array and remove parameter.
8 years ago
Project Nayuki 2b4bd9ee24 Refactored private C function fillRectangle() to remove unused size parameter.
8 years ago
Project Nayuki e19c42014b Refactored private C functions setModule() and setModuleBounded() to read size from QR Code array and remove parameter.
8 years ago