[Chicken-users] Missing file-type in posix import

2013-04-24 Thread J Altfas
When I was trying to use (file-type ...) in a compiled module, it was a
big surprise when csc instantly ground to a halt, issuing an error
saying file-type was an unknown identifier.  (And no, I didn't forgot to
put (import posix) in the module.)

It was especially puzzling since (file-type ) worked just fine in csi.

Checking posix.import.scm sure enough showed file-type was not among
the exported identifiers.  Adding it to the list of exports, recompiling and
reinstalling Chicken was the solution.

Here's the whole change:

--- posix.import.orig.scm   2013-04-23 21:58:54.0 -0700
posix.import.scm2013-04-22 22:52:52.0 -0700
@@ -120,6  120,7 @@
file-test-lock
file-truncate
file-type
file-unlock
file-write

Actually, I was grateful this was pretty simple to rectify, as it allowed
me to quickly return to my usual pursuit of obscure bugs of my own making.

Thanks,
Jules Altfas.
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Missing file-type in posix import

2013-04-24 Thread Christian Kellermann
Hi Jules,

* J Altfas p...@bmedctr.com [130424 08:52]:
 When I was trying to use (file-type ...) in a compiled module, it was a
 big surprise when csc instantly ground to a halt, issuing an error
 saying file-type was an unknown identifier.  (And no, I didn't forgot to
 put (import posix) in the module.)
 
 Checking posix.import.scm sure enough showed file-type was not among
 the exported identifiers.  Adding it to the list of exports, recompiling and
 reinstalling Chicken was the solution.

Thanks for reporting this issue, I have pushed your proposed fix
to master.

Kind regards,

Christian

-- 
In the world, there is nothing more submissive and weak than
water. Yet for attacking that which is hard and strong, nothing can
surpass it. --- Lao Tzu

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Missing file-type in posix import

2013-04-24 Thread Jim Ursetto
I also pushed this to stability.  Thanks.
Jim

On Apr 24, 2013, at 2:40 AM, Christian Kellermann wrote:

 Hi Jules,
 
 * J Altfas p...@bmedctr.com [130424 08:52]:
 When I was trying to use (file-type ...) in a compiled module, it was a
 big surprise when csc instantly ground to a halt, issuing an error
 saying file-type was an unknown identifier.  (And no, I didn't forgot to
 put (import posix) in the module.)
 
 Checking posix.import.scm sure enough showed file-type was not among
 the exported identifiers.  Adding it to the list of exports, recompiling and
 reinstalling Chicken was the solution.
 
 Thanks for reporting this issue, I have pushed your proposed fix
 to master.
 
 Kind regards,
 
 Christian
 
 -- 
 In the world, there is nothing more submissive and weak than
 water. Yet for attacking that which is hard and strong, nothing can
 surpass it. --- Lao Tzu
 
 ___
 Chicken-users mailing list
 Chicken-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/chicken-users


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users