chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Error when emitting import libraries for modul


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Error when emitting import libraries for modules that don't exist
Date: Thu, 19 Nov 2015 16:05:48 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hi all,

Here's a reasonably simple patch for fixing #1188: if you request an
import library to be emitted with "-j foo" and there's no such module
defined, currently the compiler will silently continue.  It's nicer to
give an error because possibly the user misspelled or made some other
mistake.

I'm not 100% happy with the way this patch mutates the import libraries
list, but it's the simplest way I could think of.  Another approach
could be to maintain a second list with the libraries that were emitted
and check the original list against that, but that's a bit more
complicated and adds yet another global variable.

Cheers,
Peter

Attachment: 0001-Error-out-when-emitting-import-libraries-for-nonexis.chicken-5.patch
Description: Text Data

Attachment: 0001-Error-out-when-emitting-import-libraries-for-nonexis.master.patch
Description: Text Data

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]