Debian Codegraph @

tests/pycrc/ChangeLog

raw
1 2013-12-23 Thomas Pircher <[email protected]>
2
3 * crc_symtable.py:
4 The table-driven code for polynomials of width < 8 using a table index
5 width < 8 was producing a wrong checksum.
6 Thanks to Radosław Gancarz.
7
8 2013-12-23 Thomas Pircher <[email protected]>
9
10 * crc_symtable.py:
11 Small cleanups.
12
13 * test/test.py:
14 Small cleanups.
15 Added a tests for special cases. For now, added crc-5 with non-inverted
16 input. This test is currently failing.
17
18 2013-12-20 Thomas Pircher <[email protected]>
19
20 * crc_symtable.py:
21 * test/test.py:
22 Updated the generated code to cope with big Widths (>32 bits) on 32 bit
23 processors.
24 Since C89 does not give a way to specify the minimum length of a data type,
25 the test does not validate C89 code using Widths > 32.
26 For C99, the uint_fastN_t data types are used or long long, if the Width is
27 unknown.
28
29 2013-07-25 Thomas Pircher <[email protected]>
30
31 * crc_opt.py:
32 Removed warning about even polynomials. As Lars Pötter rightly pointed out,
33 polynomials may be even.
34
35 * doc/pycrc.xml:
36 Added a caveat emptor about even polinomials.
37
38 #
39 # Version 0.8.1, 2013-05-17
40 #
41
42 2013-04-19 Thomas Pircher <[email protected]>
43
44 * qm.py:
45 Updated qm.py from https://github.com/tpircher/quine-mccluskey.
46
47 2013-03-31 Thomas Pircher <[email protected]>
48
49 * README.md:
50 Esplicitly stated that the output of pycrc is not considered a substantial
51 part of the code of pycrc.
52
53 * crc_symtable.py:
54 Re-organised the symbol table: grouped the code by functionality, not by
55 algorithm.
56
57 2013-02-25 Thomas Pircher <[email protected]>
58
59 * pycrc.py:
60 * crc_algorithms.py:
61 The input to the CRC routines can now be bytes or strings.
62
63 2013-02-19 Thomas Pircher <[email protected]>
64
65 * pycrc.py:
66 Fixed a bug in the handling of hexstrings in Python3.
67 Thanks to Matthias Kuehlewein.
68
69 * test/test.py:
70 Added --check-hexstring to the tests.
71
72 2013-02-19 Thomas Pircher <[email protected]>
73
74 * doc/pycrc.xml:
75 Minor formatting change in the manpage.
76
77 * qm.py:
78 Better python3 compatibility.
79
80 * test/check_files.sh:
81 Added the files generated with the bwe algorithm to check_files.sh.
82
83 2013-01-12 Thomas Pircher <[email protected]>
84
85 * crc_models.py:
86 Remove obsolete and unused 'direct' parameter.
87 Merge pull request #2 from smurfix/master.
88 Thanks to Matthias Urlichs.
89
90 * test/test.py:
91 Don't recurse into main() when an unknown algorithm is selected.
92 Merge pull request #2 from smurfix/master.
93 Thanks to Matthias Urlichs.
94
95 #
96 # Version 0.8, 2013-01-04
97 #
98
99 2013-01-04 Thomas Pircher <[email protected]>
100
101 * pycrc.py:
102 * crc_parser.py:
103 * crc_lexer.py:
104 * crc_symtable.py:
105 * crc_opt.py:
106 * crc_models.py:
107 * qm.py:
108 * doc/pycrc.xml:
109 * test/test.py:
110 * test/performance.sh:
111 Merged (private) bitwise-expression branch to main.
112 This adds the highly experimental bitwise-expression (bwe) code generator
113 target, which might one day be almost as fast as the table-driven code but
114 much smaller.
115 At the moment the generated code is bigger and slower than any other
116 algorithm, so use at your own risk.
117
118 2013-01-02 Thomas Pircher <[email protected]>
119
120 * crc_opt.py:
121 * doc/pycrc.xml:
122 Now it is possible to specify the --include option multiple times.
123
124 2013-01-02 Thomas Pircher <[email protected]>
125
126 * doc/pycrc.xml:
127 Completely revisited and reworked the documentation.
128
129 * crc_opt.py:
130 Updated the command line help screen with more useful command descriptions.
131
132 2013-01-01 Thomas Pircher <[email protected]>
133
134 * all *.py files:
135 Removed the -*- coding: Latin-1 -*- string.
136 Updated the copyright year to 2013.
137
138 * COPYING:
139 Updated the copyright year to 2013.
140
141 2012-11-25 Thomas Pircher <[email protected]>
142
143 * crc_opt.py:
144 * doc/pycrc.xml:
145 Renamed abbreviations to bbb, bbf, tbl.
146
147 2012-11-18 Thomas Pircher <[email protected]>
148
149 * crc_opt.py:
150 It is possible now to abbreviate the algorithms (bbb for bit-by-bit,
151 bbf for bit-by-bit-fast and tbl for table-driven).
152 Added the list of supported CRC models to the error message when an
153 unknown model parameter was supplied.
154
155 * doc/pycrc.xml:
156 Documented the possibility to abbreviate the algorithms. Minor
157 improvements.
158
159 2012-11-17 Thomas Pircher <[email protected]>
160
161 * README.md:
162 Added a note to README.md that version 0.7.10 of pycrc is the last one
163 known to work with Python 2.4.
164
165 * doc/pycrc.xml:
166 Updated a link to the list of CRC models.
167
168 2012-10-22 Thomas Pircher <[email protected]>
169
170 * README.md:
171 Renamed from README.
172
173 * doc/pycrc.xml:
174 Updated link to the Catalogue of parametrised CRC algorithms.
175
176 #
177 # Version 0.7.11, 2012-10-20
178 #
179
180 2012-02-26 Thomas Pircher <[email protected]>
181
182 * crc_symtable.py:
183 * pycrc.py:
184 Improved Python3 compatibility. pycrc now requires Python 2.6 or later.
185
186 * test/test.py:
187 Added a test for compiled standard models.
188
189 2012-02-26 Thomas Pircher <[email protected]>
190
191 * crc_models.py:
192 Fixed a wrong "check" value of the crc-64-jones model.
193
194 * crc_symtable.py:
195 Don't use snprintf() with c89 code, changed to sprintf().
196
197 * test/test.sh:
198 * test/test.py:
199 Deleted test.sh shell script and replaced it with test.py.
200
201 #
202 # Version 0.7.10, 2012-02-13
203 #
204
205 2012-02-08 Thomas Pircher <[email protected]>
206
207 * crc_symtable.py:
208 Bad-looking C code generated; make sure the bit-by-bit(fast) code does not
209 contain two instructions on one line. Thanks to "intgr" for the fix.
210
211 * crc_symtable.py:
212 Some small code clean-up: use set() when appropriate.
213
214 2011-12-19 Thomas Pircher <[email protected]>
215
216 * crc_models.py:
217 * doc/pycrc.xml:
218 Added the models crc-12-3gpp, crc-16-genibus, crc-32-bzip2 and crc-64-xz.
219 Taken from Greg Cook's Catalogue of parametrised CRC algorithms:
220 http://regregex.bbcmicro.net/crc-catalogue.htm
221
222 2011-12-14 Thomas Pircher <[email protected]>
223
224 * doc/pycrc.xml:
225 Fixed a mistake in the man page that still used the old model name
226 crc-32mpeg instead of crc-32-mpeg. Thanks to Marek Erban.
227
228 #
229 # Version 0.7.9, 2011-12-08
230 #
231
232 2011-12-08 Thomas Pircher <[email protected]>
233
234 * crc_symtable.py:
235 Fixed a bug in the generated C89 code that included stdint.h.
236 Thanks to Frank (ftheile).
237 Closes issue 3454356.
238
239 2011-11-08 Thomas Pircher <[email protected]>
240
241 * crc_symtable.py:
242 Fixed a bug in the generated C89 code when using a 64 bit CRC.
243
244 * pycrc.py:
245 Using the --verbose option made pycrc quit without error message.
246
247 #
248 # Version 0.7.8, 2011-07-10
249 #
250
251 2011-07-10 Thomas Pircher <[email protected]>
252
253 * crc_symtable.py:
254 When generating C code for the C89 or ANSI standard, don't include <stdint.h>.
255 This closes issue 3338930
256
257 * crc_symtable.py:
258 If no output file name is given while generating a C file, then pycrc will
259 #include a hypothetical pycrc.h file instead of a stdout.h file.
260 Also, added a comment on that line to make debugging easier.
261 Closes issue 3325109.
262
263 * crc_symtable.py:
264 Removed unused variable "this_option_optind" in the generated option parser.
265
266 #
267 # Version 0.7.7, 2011-02-11
268 #
269
270 2011-02-11 Thomas Pircher <[email protected]>
271
272 * all files:
273 Updated the copyright year.
274 Fixed some coding style issues found by pylint and pychecker.
275
276 2010-12-13 Thomas Pircher <[email protected]>
277
278 * crc_opt.py:
279 Substituted the deprecated function atoi() with int(). Closes issue 3136566.
280 Thanks to Tony Smith.
281
282 * doc/pycrc.xml:
283 Updated the documentation using Windows-style calls to the Python interpreter.
284
285 #
286 # Version 0.7.6, 2010-10-21
287 #
288
289 2010-10-21 Thomas Pircher <[email protected]>
290
291 * crc_symtable.py:
292 Fixed a minor bug in the command line parsing of the generated main function.
293
294 2010-08-07 Thomas Pircher <[email protected]>
295
296 * crc_symtable.py, crc_parser.py, crc_lexer.py:
297 Rewritten macro parser from scratch. Simplified the macro language.
298
299 2010-08-03 Thomas Pircher <[email protected]>
300
301 * crc_symtable.py: changed a simple division (/) to a integer division (//)
302 for Python3 compatibility.
303
304 #
305 # Version 0.7.5, 2010-03-28
306 #
307
308 2010-03-27 Thomas Pircher <[email protected]>
309
310 * crc_symtable.py:
311 C/C++ code can now be generated for the table-driven algorithm with widths
312 that are not byte-ligned or less than 8.
313 This feature was heavily inspired by a similar feature in Danjel McGougan's
314 Universal Crc (http://mcgougan.se/universal_crc/).
315
316 W A R N I N G: introduced new variable crc_shift, member of the crc_cfg_t
317 structure, that must be initialised manually when the width
318 was undefined during C/C++ code generation.
319
320 2010-03-27 Thomas Pircher <[email protected]>
321
322 * crc_opt.py, crc_algorithms.py:
323 Python implementation of the table-driven algorithm can handle widths less
324 than 8.
325 * crc_symtable.py:
326 Suppressed warnings of unused cfg structure on partially defined models.
327
328 2010-03-26 Thomas Pircher <[email protected]>
329
330 * pycrc.py, crc_opt.py, crc_algorithms.py, crc_symtable.py:
331 Removed half-baken and confusing --direct option.
332
333 2010-02-10 Thomas Pircher <[email protected]>
334
335 * pycrc.py, crc_opt.py: minor code cleanup.
336
337 #
338 # Version 0.7.4, 2010-01-24
339 #
340
341 2010-01-24 Thomas Pircher <[email protected]>
342
343 * crc_models.py: changed the xor-in value of the crc-64-jones model.
344 * crc_models.py: Set xmodem parameters equal to the zmodem parameters.
345
346 2009-12-29 Thomas Pircher <[email protected]>
347
348 * pycrc.py, crc_opt.py, crc_parser: uniform error messages.
349 * crc_opt.py: added a warning for even polynomials.
350
351 2009-11-12 Thomas Pircher <[email protected]>
352
353 * crc_models.py: added crc-16-modbus. Closes issue 2896611.
354
355 2009-11-07 Thomas Pircher <[email protected]>
356
357 * crc_opt.py: Fix for unused variable argv.
358 Closes issue 2893224. Thanks to Marko von Oppen.
359
360 #
361 # Version 0.7.3, 2009-10-25
362 #
363
364 2009-10-25 Thomas Pircher <[email protected]>
365
366 * crc_models.py: renamed crc-32mpeg to crc-32-mpeg.
367
368 2009-10-19 Thomas Pircher <[email protected]>
369
370 * crc_models.py: added crc-64-jones CRC model. Thanks to Waterspirit.
371
372 #
373 # Version 0.7.2, 2009-09-30
374 #
375
376 2009-09-30 Thomas Pircher <[email protected]>
377
378 * pycrc.py: fixed a bug that caused the result of the Python table-driven
379 code not being evaluated at all.
380 Closes issue 2870630. Thanks to Ildar Muslukhov.
381
382 #
383 # Version 0.7.1, 2009-04-05
384 #
385
386 2009-03-26 Thomas Pircher <[email protected]>
387
388 * crc_models.py: added crc-32mpeg. Thanks to Thomas Edwards.
389
390 #
391 # Version 0.7, 2009-02-27
392 #
393
394 2009-02-15 Thomas Pircher <[email protected]>
395
396 * crc_algorithms.py: code tidy-up.
397 * crc_algorithms.py, crc_opt.py: added --direct option.
398 * crc_symtable.py: added --direct option for the generated code.
399
400 2009-02-03 Thomas Pircher <[email protected]>
401
402 * crc_opt.py: added --check-hexstring option. Closes issue 2545183.
403 Thanks to Arnim Littek.
404
405 2009-01-31 Thomas Pircher <[email protected]>
406
407 * crc_opt.py: added a check for extra arguments on the command line.
408 Closes issue 2545185. Thanks to Arnim Littek.
409
410 2008-12-24 Thomas Pircher <[email protected]>
411
412 * doc/pycrc.xml: Added one more example.
413
414 #
415 # Version 0.6.7, 2008-12-11
416 #
417
418 2008-12-11 Thomas Pircher <[email protected]>
419
420 * all files: run Python's 2to3 script on the files.
421 * all files: check the code on a x64 platform.
422 * crc_opt.py: fixed a bug that raised an exception when an unknown model
423 was selected.
424
425 #
426 # Version 0.6.6, 2008-06-05
427 #
428
429 2008-06-05 Thomas Pircher <[email protected]>
430
431 * crc_symtable.py: fixed a bug in the print_params function. Closes issue
432 1985197. Thanks to Artur Lipowski.
433
434 2008-03-03 Thomas Pircher <[email protected]>
435
436 * pycrc.xml: new license: Creative Commons Attribution-Share Alike 3.0
437 Unported License.
438
439 #
440 # Version 0.6.5, 2008-03-03
441 #
442
443 2008-03-02 Thomas Pircher <[email protected]>
444
445 * crc_models.py: added dallas-1-wire 8 bit CRC.
446
447 2008-02-07 Thomas Pircher <[email protected]>
448
449 * crc_symtable.py: fixed a problem with the generated code for
450 bit-by-bit-fast algorithms. Thanks to Hans Bacher.
451
452 2007-12-19 Thomas Pircher <[email protected]>
453
454 * crc_models.py: added r-crc-16 model (DECT (cordless digital standard)
455 packets A-field according to ETSI EN 300 175-3 v2.1.1).
456 Thanks to "raimondo".
457
458 2007-12-10 Thomas Pircher <[email protected]>
459
460 * crc_symtable.py: added extern "C" declaration to the generated C header
461 file. Thanks to Nathan Royer.
462
463 2007-12-10 Thomas Pircher <[email protected]>
464
465 * crc_algorithms.py: changed the API to take the CRC model direct as
466 parameter. Deleted the need for an obscure "opt" object.
467
468 2007-12-09 Thomas Pircher <[email protected]>
469
470 * crc_opt.py: added --crc-type and --include-file options.
471 * crc_models.py: added new file to handle CRC models
472
473 #
474 # Version 0.6.4, 2007-12-05
475 #
476
477 2007-12-05 Thomas Pircher <[email protected]>
478
479 * crc_symtable.py: fixed a bug in the code generator for the table-driven
480 algorithm. Thanks to Tom McDermott. Closes issue 1843774
481
482 #
483 # Version 0.6.3, 2007-10-13
484 #
485
486 2007-10-13 Thomas Pircher <[email protected]>
487
488 * crc_symtable.py: fixed some portability problems in the generated code.
489 Thanks to Helmut Bauer. Closes issue 1812894
490
491 2007-09-10 Thomas Pircher <[email protected]>
492
493 * crc_opt.py: added new models: crc-5, crc-15, crc-16-usb, crc-24, crc-64.
494 The new models are taken from Ray Burr's CrcMoose.
495 * pycrc.py: --check-file works now with --width < 8. Closes issue 1794343
496 * pycrc.py: Removed unnecessary restriction on the width when using the
497 bit-by-bit-fast algorithm. Closes issue 1794344
498
499 #
500 # Version 0.6.2, 2007-08-25
501 #
502
503 2007-08-25 Thomas Pircher <[email protected]>
504
505 * crc_opt.py: the parameter to --check-string was ignored. Closes issue
506 1781637
507 * pycrc.py: the parameter to --check-string was ignored. Closes issue
508 1781637
509
510 2007-08-18 Thomas Pircher <[email protected]>
511
512 * crc_symtable.py: simplified the table-driven code. Closes issue 1727128
513
514 2007-08-18 Thomas Pircher <[email protected]>
515
516 * crc_parser.py: changed the macro language syntax to a better format
517 * crc_lexer.py: changed the macro language syntax to a better format
518 * crc_symtable.py: changed the macro language syntax to a better format
519 * crc_parser.py: Renamed crc_code_gen.py to crc_parser.py
520 * all files: Documented the usage of the crc_* modules
521
522 #
523 # Version 0.6.1, 2007-08-12
524 #
525
526 2007-08-12 Thomas Pircher <[email protected]>
527
528 * test/test.sh: Added test for C89 compilation
529 * test/main.c: Added a test case to loop over the input bytes one by one
530 * crc_symtable.py: Bugfix in the source code generator for C89:
531 Compilation error due to mismatch of parameters in the crc_finalize
532 funtion
533 * crc_symtable.py: Changes related to 919107: Code generator includes
534 reflect() function even if not needed
535
536 2007-07-22 Thomas Pircher <[email protected]>
537
538 * crc_symtable.py: Fixed a typo in the C89 source code generator.
539 Thanks to Helmut Bauer
540
541 2007-06-10 Thomas Pircher <[email protected]>
542
543 * all files: Tidied up the documentation
544 * all files: Code cleanup
545
546 2007-05-15 Thomas Pircher <[email protected]>
547
548 * crc_opt.py: Deleted obsolete options
549
550 #
551 # Version 0.6, 2007-05-21
552 #
553
554 2007-05-15 Thomas Pircher <[email protected]>
555
556 * crc_opt.py: Added the --std option to generate C89 (ANSI) compliant code
557 * crc_symtable.py: Reduced the size of the symbol table by re-arranging
558 items
559
560 2007-05-13 Thomas Pircher <[email protected]>
561
562 * test/test.sh: Added a new check to the test script which validate all
563 possible combination of undefined parameters
564 * crc_code_gen.py: Made the generated main function cope with command line
565 arguments
566
567 2007-05-12 Thomas Pircher <[email protected]>
568
569 * pycrc.py: Added the --generate table option
570 * pycrc.py: Added a template engine for the code generation. Split up
571 pycrc.py into smaller modules
572
573 2007-04-11 Thomas Pircher <[email protected]>
574
575 * pycrc.py: Added obsolete options again tor legacy reasons.
576 Added a better handling of the --model parameter.
577
578 2007-04-07 Thomas Pircher <[email protected]>
579
580 * pycrc.py: Changed licence to the MIT licence. This makes the additional
581 clause for generated source code obsolete.
582 Changed all command line options with underscores to hyphen (e.g.
583 table_driven becomes table-driven).
584 Added the option --generate which obsoletes the old options --generate_c
585 --generate_h etc.
586
587 #
588 # Version 0.5, 2007-03-25
589 #
590
591 2007-03-25 Thomas Pircher <[email protected]>
592
593 * pycrc.py: Fixed bug 1686404: unhandled exception when called with
594 both options --table_idx_width and --check_file
595 * pycrc.py: Eliminated useless declaration of crc_reflect, when not used
596 * pycrc.py: Corrected typos in the documentation
597
598 #
599 # Version 0.4, 2007-01-26
600 #
601
602 2007-01-27 Thomas Pircher <[email protected]>
603
604 * pycrc.py: Eliminated needless documentation of not generated functions
605
606 2007-01-23 Thomas Pircher <[email protected]>
607
608 * pycrc.py: Added more parameter sets (now supported: crc-8, crc-16, citt,
609 kermit, x-25, xmodem, zmodem, crc-32, crc-32c, posix, jam, xfer) from
610 http://homepages.tesco.net/~rainstorm/crc-catalogue.htm
611 * doc/pycrc.xml: Many corrections to the manual (thanks Francesca)
612 Documented the new parameter sets
613 * test/test.sh: added some new tests, disabled the random loop
614
615 2007-01-21 Thomas Pircher <[email protected]>
616
617 * pycrc.py: Added Doxygen documentation strings to the functions.
618 Added the --symbol_prefix option
619 Added the --check_file option
620
621 * doc/pycrc.xml: Corrected many typos and bad phrasing (still a lot to do)
622 Documented the --symbol_prefix option
623
624 2007-01-17 Thomas Pircher <[email protected]>
625
626 * test/test.sh: Added a non-regression test on the generated C source
627
628 #
629 # Version 0.3, 2007-01-14
630 #
631
632 2007-01-14 Thomas Pircher <[email protected]>
633
634 * pycrc.py: first public release pycrc v0.3