parent
6cde693354
commit
83d325cc43
@ -1 +1,2 @@
|
|||||||
/libdmtx-0.7.2.tar.bz2
|
/libdmtx-0.7.2.tar.bz2
|
||||||
|
/libdmtx-0.7.4.tar.bz2
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
diff -up libdmtx-0.7.2/wrapper/php/dmtx_write.c.php54 libdmtx-0.7.2/wrapper/php/dmtx_write.c
|
|
||||||
--- libdmtx-0.7.2/wrapper/php/dmtx_write.c.php54 2012-02-08 10:39:04.000000000 +0100
|
|
||||||
+++ libdmtx-0.7.2/wrapper/php/dmtx_write.c 2012-02-08 10:39:11.000000000 +0100
|
|
||||||
@@ -34,7 +34,7 @@ int le_dmtx_image;
|
|
||||||
|
|
||||||
ZEND_DECLARE_MODULE_GLOBALS(dmtx)
|
|
||||||
|
|
||||||
-static function_entry dmtx_functions[] = {
|
|
||||||
+static zend_function_entry dmtx_functions[] = {
|
|
||||||
PHP_FE(dmtx_write, NULL)
|
|
||||||
PHP_FE(dmtx_getRow, NULL)
|
|
||||||
PHP_FE(dmtx_getSize, NULL)
|
|
@ -1,23 +0,0 @@
|
|||||||
diff -up libdmtx-0.7.2/wrapper/ruby/Rdmtx.c.ruby19 libdmtx-0.7.2/wrapper/ruby/Rdmtx.c
|
|
||||||
--- libdmtx-0.7.2/wrapper/ruby/Rdmtx.c.ruby19 2012-02-08 10:49:04.000000000 +0100
|
|
||||||
+++ libdmtx-0.7.2/wrapper/ruby/Rdmtx.c 2012-02-08 10:49:36.000000000 +0100
|
|
||||||
@@ -35,7 +35,7 @@ static VALUE rdmtx_decode(VALUE self, VA
|
|
||||||
|
|
||||||
VALUE safeImageString = StringValue(rawImageString);
|
|
||||||
|
|
||||||
- char * imageBuffer = RSTRING(safeImageString)->ptr;
|
|
||||||
+ char * imageBuffer = RSTRING_PTR(safeImageString);
|
|
||||||
|
|
||||||
int width = NUM2INT(rb_funcall(image, rb_intern("columns"), 0));
|
|
||||||
int height = NUM2INT(rb_funcall(image, rb_intern("rows"), 0));
|
|
||||||
@@ -90,8 +90,8 @@ static VALUE rdmtx_encode(VALUE self, VA
|
|
||||||
dmtxEncodeSetProp(enc, DmtxPropSizeRequest, DmtxSymbolSquareAuto);
|
|
||||||
|
|
||||||
/* Create barcode image */
|
|
||||||
- if (dmtxEncodeDataMatrix(enc, RSTRING(safeString)->len,
|
|
||||||
- (unsigned char *)RSTRING(safeString)->ptr) == DmtxFail) {
|
|
||||||
+ if (dmtxEncodeDataMatrix(enc, RSTRING_LEN(safeString),
|
|
||||||
+ (unsigned char *)RSTRING_PTR(safeString)) == DmtxFail) {
|
|
||||||
// printf("Fatal error !\n");
|
|
||||||
dmtxEncodeDestroy(&enc);
|
|
||||||
return Qnil;
|
|
Loading…
Reference in new issue