Skip to content

Commit

Permalink
Version 0.6.1
Browse files Browse the repository at this point in the history
Fixed critical issue <#1> which
was leading to a ImportError because of not including the proper headers when
compiling.
  • Loading branch information
jashandeep-sohi committed Jun 5, 2014
1 parent 778798e commit 28e9646
Show file tree
Hide file tree
Showing 10 changed files with 16,995 additions and 18,028 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include pysbf/c_crc.h
17,944 changes: 8,841 additions & 9,103 deletions pysbf/blocks.c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pysbf/c_crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static const uint16_t CRC_16CCIT_TABLE[256] = {
0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0
};

uint16_t c_crc16(const void *buf, size_t buf_length, uint16_t crc){
uint16_t crc16(const void *buf, size_t buf_length, uint16_t crc){
const uint8_t *buf8 = buf;
while (buf_length--)
crc = (crc << 8) ^ CRC_16CCIT_TABLE[ (crc >> 8) ^ *buf8++ ];
Expand Down
4 changes: 4 additions & 0 deletions pysbf/crc.pyx → pysbf/c_crc.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
#This file is part of "pysbf".
#Copyright (c) 2013, Jashandeep Sohi ([email protected])
#
Expand All @@ -13,3 +14,6 @@
#You should have received a copy of the GNU General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
uint16_t crc16(const void *buf, size_t buf_length, uint16_t crc);
Loading

0 comments on commit 28e9646

Please sign in to comment.