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 |
Project Nayuki
|
339efc46b8
|
Changed C code to prepend a size info byte to beginning of QR Code arrays. This has no visible behavioral change when using qrcodegen APIs, but the array data will be different and all buffers need one extra byte. Old code using the API needs to be recompiled because the buffer length calculation macros changed.
|
8 years ago |
Project Nayuki
|
b0123fee3d
|
Reduced lines in copyright notice of each source file (related to commit 4bba4c03ed ).
|
8 years ago |
Project Nayuki
|
cfb4caa377
|
Updated encodeText() C code to generate zero segments when given zero-length string, to synchronize the output behavior with all other language implementations of encodeText(); adjusted/tweaked some surrounding code and comments for clarity.
|
8 years ago |
Project Nayuki
|
f82ee7ab78
|
Changed argument type of applyMask() in C code to the enum for improved clarity.
|
8 years ago |
Project Nayuki
|
53da031f1f
|
Tweaked casting between int and enum in C code (only affects this code being compiled in C++ mode).
|
8 years ago |
Project Nayuki
|
d27ee77082
|
Tweaked comments in C code.
|
8 years ago |
Project Nayuki
|
771bdaf069
|
Updated C worker program code to properly check return value of scanf() (due to GCC warning).
|
8 years ago |
Project Nayuki
|
e1f8c2df7a
|
Added and deleted some comments in Python and C programs.
|
8 years ago |
Project Nayuki
|
ccca906299
|
Added makefiles for C and C++ code bundles.
|
8 years ago |
Project Nayuki
|
6c5f8d087b
|
Added test worker programs for Java, Python, C; added batch tester in Python.
|
8 years ago |
Project Nayuki
|
55c5510057
|
Fixed C code fitVersionToData() to check version upper bound correctly on every iteration.
|
8 years ago |
Project Nayuki
|
7580ee38e0
|
Added more standard library header #includes to C code to be strict.
|
8 years ago |
Project Nayuki
|
7f20791aa8
|
Tweaked comment formatting in C demo code.
|
8 years ago |
Project Nayuki
|
9b57973245
|
Added C test cases for 5 functions.
|
8 years ago |
Project Nayuki
|
822c339b4e
|
Added simple test program and suite of cases for C library.
|
8 years ago |
Project Nayuki
|
e1596c3b07
|
Fixed bug in C code due to implicit non-Boolean conditions and incorrect refactoring (related to commit af67fe1c0b ).
|
8 years ago |
Project Nayuki
|
18b7180580
|
Added doVarietyDemo() to C demo program code.
|
8 years ago |
Project Nayuki
|
aa50d1906d
|
Heavily rearranged functions in C code without making internal changes, also added/updated section heading comments.
|
8 years ago |
Project Nayuki
|
8cb33d44d8
|
Added comments to C code.
|
8 years ago |
Project Nayuki
|
af67fe1c0b
|
Refactored C code to split out text properties into new function, and tweaked logic for clarity.
|
8 years ago |
Project Nayuki
|
9a100aed7d
|
Updated and added numerous comments in C code.
|
8 years ago |
Project Nayuki
|
c91d29dcee
|
Tweaked blank lines in C code for clarity.
|
8 years ago |
Project Nayuki
|
c3edfaa877
|
Tweaked small bits of C code for clarity, without changing behavior.
|
8 years ago |
Project Nayuki
|
02399cfd0b
|
Updated C code to remove checked arithmetic functions but retain overflow checks (related to commit 481a1c0de3 ).
|
8 years ago |
Project Nayuki
|
cb6835fecb
|
Updated C code to consolidate logic for finding minimum fitting version number, also tweaked arithmetic and control flow.
|
8 years ago |
Project Nayuki
|
481a1c0de3
|
Added C functions to do basic arithmetic with overflow checks, updated code to use these functions.
|
8 years ago |
Project Nayuki
|
6229fa48cd
|
Moved more shared logic of C code into encodeQrCodeTail(), without changing behavior.
|
8 years ago |
Project Nayuki
|
7eb3095acf
|
Refactored a C function to add local variable for frequently used value.
|
8 years ago |
Project Nayuki
|
35da4ef7bc
|
Renamed all local variables 'size' to 'qrsize' in C library code, without changing behavior.
|
8 years ago |
Project Nayuki
|
4d9b73c443
|
Tweaked C code to avoid unnecessary use of uint16_t type, without changing behavior.
|
8 years ago |
Project Nayuki
|
79a56065f9
|
Renamed private function initializeFunctionModules() in C code.
|
8 years ago |
Project Nayuki
|
7c173b79b4
|
Simplified code for 'upward' variable in all language versions, without changing behavior.
|
8 years ago |
Project Nayuki
|
21212ba617
|
Fixed integer overflow checks in C code.
|
8 years ago |
Project Nayuki
|
31634fc05c
|
Fixed potential overflow in C and C++ code, in worst case when int type is int16.
|
8 years ago |
Project Nayuki
|
3e634c9f26
|
Renamed variable 'upwards' to 'upward' in drawCodewords() of all language versions, without changing behavior.
|
8 years ago |
Project Nayuki
|
f020833cd4
|
Simplified code in all language versions of the library (C, C++, Java, JavaScript, Python) and reduced table size, without changing behavior.
|
8 years ago |
Project Nayuki
|
26b4cf557c
|
Added new integer constants to C code, updated existing code to make use of them.
|
8 years ago |
Project Nayuki
|
c81354658b
|
Added C demo main program.
|
8 years ago |
Project Nayuki
|
df52f793fa
|
Simplified C code's initializeFunctionalModules().
|
8 years ago |
Project Nayuki
|
0cfed8c5de
|
Updated function-level comments in C code.
|
8 years ago |
Project Nayuki
|
a799abe654
|
Refactored C code to deduplicate logic into a new function.
|
8 years ago |
Project Nayuki
|
d704cc074b
|
Added and updated section comments in C code.
|
8 years ago |
Project Nayuki
|
9f9747de3e
|
Refactored C code to use size instead of version in drawCodewords().
|
8 years ago |
Project Nayuki
|
be2e9e7a3a
|
Continued implementing C library by adding logic to support boosting ECC level.
|
8 years ago |
Project Nayuki
|
47fc47938a
|
Continued implementing C library by adding main QR Code encoding function for text, including support for alphanumeric and numeric mode segments.
|
8 years ago |
Project Nayuki
|
53359d7ef2
|
Deleted text-testing functions in C library code.
|
8 years ago |
Project Nayuki
|
9db04d77db
|
Continued implementing C library by adding and updating code to support automatic mask selection and penalty calculation.
|
8 years ago |
Project Nayuki
|
d332c4a91c
|
Continued implementing C library by adding a main QR Code encoding function and auxiliary functions.
|
8 years ago |
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.
|
8 years ago |
Project Nayuki
|
703fcf587d
|
Continued implementing C library by adding functions to append Reed-Solomon ECC and interleave blocks.
|
8 years ago |
Project Nayuki
|
3f6916d43e
|
Continued implementing C library by adding functions to draw codewords and apply masking.
|
8 years ago |
Project Nayuki
|
a0033275e3
|
Continued implementing C library by adding functions to draw QR Code function patterns.
|
8 years ago |
Project Nayuki
|
5e415ae08b
|
Continued implementing C library by adding enums and macros.
|
8 years ago |
Project Nayuki
|
f49bee7a2d
|
Fixed and tweaked some pieces of C library code.
|
8 years ago |
Project Nayuki
|
261d57607b
|
Continued implementing C library by adding functions to fill QR Code function patterns.
|
8 years ago |
Project Nayuki
|
f18ababe0d
|
Continued implementing C library by adding low-level QR Code get/set functions.
|
8 years ago |
Project Nayuki
|
18a10b6b99
|
Continued implementing C library by adding header file and text-testing functions.
|
8 years ago |
Project Nayuki
|
b9e3476420
|
Began writing new port of this library in C by implementing Reed-Solomon functions.
|
8 years ago |