Project Nayuki
c9553ead71
Simplified code in QrCode.drawFunctionPatterns() in all language versions, but differently in Python.
2018-08-26 01:49:27 +00:00
Project Nayuki
0ee6c41c9c
Renamed QrCode.appendErrorCorrection() to addEccAndInterleave() in all language versions.
2018-08-26 01:33:06 +00:00
Project Nayuki
8d6dcf2631
Simplified and reformatted QrCode.getAlignmentPatternPositions() in different ways in all language versions.
2018-08-22 20:58:16 +00:00
Project Nayuki
62e73f787a
Renamed variable in QrCode.drawVersion() in all language versions.
2018-08-22 19:52:50 +00:00
Project Nayuki
23ae555dde
Added variable for clarity to QrCode.drawFormatBits() in all language versions.
2018-08-22 19:48:29 +00:00
Project Nayuki
d1f53e6e7d
Added and updated 4 comments in all language versions.
2018-08-22 19:22:00 +00:00
Project Nayuki
c0b684bc18
Tweaked comment for kanji demo in multiple languages, so that it corresponds to the order in the sample text string.
2018-06-24 03:33:22 +00:00
Project Nayuki
693304b8c3
Updated all language versions to add getBit() helper function and refactor existing arithmetic code to use it.
2018-04-13 19:48:59 +00:00
Project Nayuki
908dbbfb31
Added initial values to some variables in C and C++ code to avoid potential compiler warnings.
2017-12-10 16:36:02 +00:00
Project Nayuki
7e18dfe885
Tweaked C code to be slightly more efficient by using static constant data.
2017-11-28 17:08:00 +00:00
Project Nayuki
30a9474596
Added initial values to some variables in C code to avoid potential compiler warnings.
2017-11-28 17:07:20 +00:00
Project Nayuki
6a71e09f72
Added/tweaked comments and blank lines in demo programs of all language versions except JavaScript.
2017-10-23 03:51:13 +00:00
Project Nayuki
8fe7878e1e
Changed output format of C and C++ demo programs to match design intent and other languages.
2017-10-23 03:46:22 +00:00
Project Nayuki
b86466ecd5
- Deleted constructors/functions/code for remasking existing QrCode object (due to doubtful real-world usefulness): C++, Java, JavaScript, Python, Rust.
...
- Tweaked code and comments due to feature removal: JavaScript, Python.
- Updated demo programs to reflect new API usage and add new example: C, C++, Java, Python, Rust.
2017-10-23 03:45:24 +00:00
Project Nayuki
c4c8d6ba45
Added examples of custom segments to C demo program.
2017-09-09 15:55:05 +00:00
Project Nayuki
202fdd39d3
Edited and added numerous comments for C library members.
2017-09-09 06:09:17 +00:00
Project Nayuki
e36f6953dc
Simplified a bit of C code.
2017-09-09 05:46:24 +00:00
Project Nayuki
2b9770f54a
Added comments to numerous new C functions.
2017-09-09 05:46:11 +00:00
Project Nayuki
55b0056f38
Added some assertions to new C functions.
2017-09-09 05:36:08 +00:00
Project Nayuki
13c136db8b
Made C function getTotalBits() testable, added test cases.
2017-09-09 05:27:18 +00:00
Project Nayuki
dcdd743ef5
Simplified C library's numCharCountBits() function, updated dependent code.
2017-09-09 05:14:32 +00:00
Project Nayuki
9e9eaf488e
Deleted 3 unused C private functions, deleted 1 associated test case.
2017-09-09 04:37:41 +00:00
Project Nayuki
562f478d26
Rewrote and simplified C functions encodeText() and encodeBinary() to use new encodeSegmentsAdvanced(), without changing behavior (except for bugs).
2017-09-09 04:36:31 +00:00
Project Nayuki
66f6500220
Added unused C functions to make a QR Code based on a list of segments.
2017-09-09 04:33:31 +00:00
Project Nayuki
ad46d5e434
Added some argument null checks to C code.
2017-09-09 03:28:56 +00:00
Project Nayuki
fb544495e7
Added C functions to make numeric and alphanumeric segments, added test cases.
2017-09-08 07:06:22 +00:00
Project Nayuki
d126f7b1ed
Added C functions to make byte and ECI segments, added test cases.
2017-09-08 06:43:25 +00:00
Project Nayuki
ec24c428ba
Added C functions to test whether strings can be encoded in certain segment modes, added test cases.
2017-09-08 06:13:16 +00:00
Project Nayuki
08108ee6d8
Added C functions to calculate segment buffer size and bit length, added test cases.
2017-09-08 05:57:10 +00:00
Project Nayuki
4f823c3039
Added new unused enum and struct to C library code to represent segments.
2017-09-08 03:16:43 +00:00
Project Nayuki
272ca8bb54
Split long lines in various {Java, JavaScript, Python, C++, C, Rust} code, without changing behavior.
2017-08-31 20:19:41 +00:00
Project Nayuki
8ec5d75766
Simplified a bit of C code.
2017-08-28 04:03:29 +00:00
Project Nayuki
4d6185a5d3
Reorganized a chunk of code in worker program of {Java, Python, C, C++} language versions, without changing behavior.
2017-08-28 04:03:05 +00:00
Project Nayuki
7e512971df
Fixed some arithmetic checks in Java and C code.
2017-08-18 03:31:35 +00:00
Project Nayuki
16f504be67
Inlined the 'size' variable in getAlignmentPatternPositions() in 3 language versions.
2017-08-18 00:44:24 +00:00
Project Nayuki
49f6538682
Updated a comment in getAlignmentPatternPositions() in most language versions (except JavaScript).
2017-08-18 00:39:30 +00:00
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.
2017-07-21 19:00:43 -04:00
Project Nayuki
c936e2c1de
Added variable for library file name, added library to the default build - in the C makefile.
2017-07-21 18:57:09 -04:00
Project Nayuki
ea59bedc93
Reordered definition and added comment to C makefile.
2017-07-21 18:55:02 -04:00
Ben Kelly
a3dcc36dd4
Add shared library make target for C library
2017-07-21 12:22:17 +03:00
Project Nayuki
88cc1c05fd
Fully fixed C library code to be compilable in C++ mode (polyglot).
2017-07-04 06:18:14 +00:00
Project Nayuki
ce58036cb2
Tweaked C library code to not use gotos, to make it more friendly to compile in C++ mode.
2017-07-04 06:18:00 +00:00
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.
2017-07-04 06:17:08 +00:00
Project Nayuki
f089897e04
Tweaked C test suite code to make test vectors immutable (const).
2017-07-04 05:42:05 +00:00
Project Nayuki
047f85d164
Tweaked C code to be more correct regarding #include <stddef.h> for size_t.
2017-07-04 05:27:18 +00:00
Project Nayuki
c42fd75b77
Tweaked C demo code to be more correct by declaring nullary functions with '(void)'.
2017-06-26 04:45:51 +00:00
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.
2017-05-08 07:30:53 +00:00
Project Nayuki
50c1a6b8af
Simplified a few lines of code in constructor of ReedSolomonGenerator in all language versions.
2017-05-08 05:21:05 +00:00
Project Nayuki
5d1069a93c
Added 'extern "C"' directives to make the C header file usable in C++ code.
2017-05-07 21:51:08 +00:00
Project Nayuki
a712ccc230
Added test cases for C function appendErrorCorrection().
2017-05-06 16:54:44 +00:00