From harold.wadleigh at gmail.com Mon Jan 1 20:37:58 2007 From: harold.wadleigh at gmail.com (Harold Wadleigh) Date: Mon Jan 1 20:34:28 2007 Subject: [C2hs] Is the darcs repository consistent? Message-ID: <83353a880701011737s11aee7f9o522b0dc1aa345fa0@mail.gmail.com> I'm having trouble fetching the c2hs repository. When getting or attempting to repair I'm seeing: Applying patch 107 of 175... Unapplicable patch: Wed May 18 03:42:11 Eastern Daylight Time 2005 chak@cse.unsw.edu.au * rearranging darcs repo darcs failed: Error applying hunk to file ./base/todo I'm using windows/cygwin. Anyone else seeing this? --Harold -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/c2hs/attachments/20070101/e67e3415/attachment.htm From chak at cse.unsw.edu.au Tue Jan 2 13:19:44 2007 From: chak at cse.unsw.edu.au (Manuel M T Chakravarty) Date: Tue Jan 2 13:17:12 2007 Subject: [C2hs] Is the darcs repository consistent? In-Reply-To: <83353a880701011737s11aee7f9o522b0dc1aa345fa0@mail.gmail.com> References: <83353a880701011737s11aee7f9o522b0dc1aa345fa0@mail.gmail.com> Message-ID: <1167761984.2330.52.camel@trinity.localdomain> Harold, > I'm having trouble fetching the c2hs repository. When getting or > attempting to repair I'm seeing: > Applying patch 107 of 175... Unapplicable patch: > Wed May 18 03:42:11 Eastern Daylight Time 2005 chak@cse.unsw.edu.au > * rearranging darcs repo > > darcs failed: Error applying hunk to file ./base/todo > > I'm using windows/cygwin. Anyone else seeing this? This is a problem with the handling of case in filenames in windows/cygwin. However, Ganesh Sittampalam prepared a modified version of the c2hs repo a while ago that works around that problem. I have replaced the repo at http://darcs.haskell.org/c2hs/ with Ganesh's. Please check whether that solves your problem. Manuel From arjan at debian.org Sat Jan 27 07:41:39 2007 From: arjan at debian.org (Arjan Oosting) Date: Sat Jan 27 07:37:05 2007 Subject: [C2hs] A little documentation patch Message-ID: <1169901699.6370.1.camel@nebula.arriesoft.nl> Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Dit berichtdeel is digitaal ondertekend Url : http://www.haskell.org/pipermail/c2hs/attachments/20070127/f6963d81/attachment-0001.bin From duncan.coutts at worc.ox.ac.uk Sat Jan 27 19:34:55 2007 From: duncan.coutts at worc.ox.ac.uk (Duncan Coutts) Date: Sat Jan 27 19:40:53 2007 Subject: [C2hs] A little documentation patch In-Reply-To: <1169901699.6370.1.camel@nebula.arriesoft.nl> References: <1169901699.6370.1.camel@nebula.arriesoft.nl> Message-ID: <1169944495.16642.80.camel@localhost> On Sat, 2007-01-27 at 13:41 +0100, Arjan Oosting wrote: > Hi, > > As maintainer of the Debian packages of c2hs, I received a bug report > about a little error in the documentation. The documentation erroneously > says that context hooks have three parameters. > > The attached patch should fix this. Applied, thanks. Duncan From duncan.coutts at worc.ox.ac.uk Sat Jan 27 19:45:47 2007 From: duncan.coutts at worc.ox.ac.uk (Duncan Coutts) Date: Sat Jan 27 19:40:55 2007 Subject: [C2hs] patch applied (c2hs): Try parsing C99 compound literals Message-ID: <20070128004547.GA32321@cvs.haskell.org> Mon May 29 03:50:14 PDT 2006 Duncan Coutts * Try parsing C99 compound literals M ./c2hs/c/CAST.hs +4 M ./c2hs/c/CNames.hs +1 M ./c2hs/c/CParser.y +5 From duncan.coutts at worc.ox.ac.uk Sat Jan 27 19:45:48 2007 From: duncan.coutts at worc.ox.ac.uk (Duncan Coutts) Date: Sat Jan 27 19:40:56 2007 Subject: [C2hs] patch applied (c2hs): Change handling of gnu __extension__ keyword Message-ID: <20070128004548.GA32341@cvs.haskell.org> Mon May 29 06:32:54 PDT 2006 Duncan Coutts * Change handling of gnu __extension__ keyword GNU C allows __extension__ in various places we don't at the moment. This is a bit tricky to follow exactly without getting lots of shift/reduce conflicts. So what I've got here is a compromise. Sadly allowing __extension__ in expressions conflicts with it's use in declerations. So, instead of allowing __extension__ in any declaration I only allow it in an external decleration (top level). Fortunately I think that almost all uses of __extension__ in declarations are actually external declarations. So I think this is the right compromise. M ./c2hs/c/CParser.y -18 +9 From duncan.coutts at worc.ox.ac.uk Sat Jan 27 19:45:50 2007 From: duncan.coutts at worc.ox.ac.uk (Duncan Coutts) Date: Sat Jan 27 19:40:57 2007 Subject: [C2hs] patch applied (c2hs): Use precedence to eliminate an s/r in the C if-then-else syntax Message-ID: <20070128004550.GA32355@cvs.haskell.org> Mon May 29 06:55:34 PDT 2006 Duncan Coutts * Use precedence to eliminate an s/r in the C if-then-else syntax M ./c2hs/c/CParser.y -3 +4 From duncan.coutts at worc.ox.ac.uk Sat Jan 27 19:45:51 2007 From: duncan.coutts at worc.ox.ac.uk (Duncan Coutts) Date: Sat Jan 27 19:40:57 2007 Subject: [C2hs] patch applied (c2hs): Doc fic for comments about context hook Message-ID: <20070128004551.GA32369@cvs.haskell.org> Sat Jan 27 16:30:19 PST 2007 Duncan Coutts * Doc fic for comments about context hook They have 2 parameters, not 3. Thanks to Debian's Arjan Oosting for the patch. M ./doc/c2hs/c2hs.sgml -2 +2 From duncan.coutts at worc.ox.ac.uk Mon Jan 29 07:55:34 2007 From: duncan.coutts at worc.ox.ac.uk (Duncan Coutts) Date: Mon Jan 29 07:50:33 2007 Subject: [C2hs] Re: [Haskell-cafe] c2hs failed to process __extension__ In-Reply-To: References: Message-ID: <1170075335.16642.199.camel@localhost> On Mon, 2007-01-29 at 21:25 +0900, ?? ? wrote: > c2hs fails to process __extension__? > > From the changelog, c2hs now can understand __extension. > Is this an exceptional case? Did you try the very latest darcs version of c2hs? Yesterday I added a couple patches that try to cope with more uses of __extension. Duncan From duncan.coutts at worc.ox.ac.uk Mon Jan 29 17:26:00 2007 From: duncan.coutts at worc.ox.ac.uk (Duncan Coutts) Date: Mon Jan 29 17:20:56 2007 Subject: [C2hs] Re: [Haskell-cafe] c2hs failed to process __extension__ In-Reply-To: References: <1170075335.16642.199.camel@localhost> Message-ID: <1170109560.16642.215.camel@localhost> On Mon, 2007-01-29 at 22:26 +0900, ?? ? wrote: > On 2007/01/29, at 21:55, Duncan Coutts wrote: > > Did you try the very latest darcs version of c2hs? Yesterday I added a > > couple patches that try to cope with more uses of __extension. > > Yes. I use the latest version of c2hs from darcs. Then sorry, my extensions fixes didn't help. You can try the technique of using cpp to make it go away: http://www.haskell.org/pipermail/c2hs/2006-May/000577.html Come to think of it, for the __extension__ token we could just drop them in the lexer... hmmm. Duncan From duncan.coutts at worc.ox.ac.uk Mon Jan 29 18:15:15 2007 From: duncan.coutts at worc.ox.ac.uk (Duncan Coutts) Date: Mon Jan 29 18:10:18 2007 Subject: [C2hs] Re: [Haskell-cafe] c2hs failed to process __extension__ In-Reply-To: <1170109560.16642.215.camel@localhost> References: <1170075335.16642.199.camel@localhost> <1170109560.16642.215.camel@localhost> Message-ID: <1170112515.16642.218.camel@localhost> On Mon, 2007-01-29 at 22:26 +0000, Duncan Coutts wrote: > On Mon, 2007-01-29 at 22:26 +0900, ?? ? wrote: > > On 2007/01/29, at 21:55, Duncan Coutts wrote: > > > Did you try the very latest darcs version of c2hs? Yesterday I added a > > > couple patches that try to cope with more uses of __extension. > > > > Yes. I use the latest version of c2hs from darcs. > > Then sorry, my extensions fixes didn't help. You can try the technique > of using cpp to make it go away: > > http://www.haskell.org/pipermail/c2hs/2006-May/000577.html > > Come to think of it, for the __extension__ token we could just drop them > in the lexer... hmmm. Try the attached patch, if it works for you, I'll apply it. Duncan -------------- next part -------------- A non-text attachment was scrubbed... Name: ignore-extension.patch Type: text/x-patch Size: 6142 bytes Desc: not available Url : http://www.haskell.org/pipermail/c2hs/attachments/20070129/cf221d67/ignore-extension.bin