[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #839: lzma egg uses deprecated null-pointer? procedur
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #839: lzma egg uses deprecated null-pointer? procedure |
Date: |
Sun, 13 May 2012 14:54:35 -0000 |
#839: lzma egg uses deprecated null-pointer? procedure
------------------------+---------------------------------------------------
Reporter: sjamaan | Owner: alaricsp
Type: defect | Status: new
Priority: minor | Milestone:
Component: extensions | Version: 4.7.x
Keywords: |
------------------------+---------------------------------------------------
This was found by Mario's scrutiny/specialization run of Salmonella, see
http://parenteses.org/mario/misc/specialize-report/install/lzma.html
Attached is a patch that changes the check for {{{null-pointer?}}} to one
for {{{#f}}}; c-pointer never returned null-pointer objects anyway, it has
always returned {{{#f}}} for {{{NULL}}} pointers AFAIK so I guess this has
always been a bug in this egg. While I was writing the patch I noticed an
unneccessary {{{begin}}} inside a {{{let}}} (which always has an implicit
{{{begin}}}), so I removed that. Then I saw I had a {{{(let ((x ...))
(and x (let ((y ...)) ...)))}}} pattern, which can be simplified to your
favorite macro, {{{and-let*}}}. So here's a patch that does that! :)
PS: I wasn't able to test this because in pkgsrc, archivers/lzmalib
conflicts with archivers/xz, which is used by graphics/tiff and www/links-
gui; graphics/tiff is of course used by lots and lots of packages like
print/ghostscript and even editors/emacs! Perhaps it's an idea to change
your egg to use archivers/xz instead? It's clearly the more popular of
the LZMA libraries...
--
Ticket URL: <http://bugs.call-cc.org/ticket/839>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #839: lzma egg uses deprecated null-pointer? procedure,
Chicken Trac <=