libc: fix usings.

db4
John Benediktsson 2014-07-06 10:46:02 -07:00
parent fd19fadcc6
commit cf3fdfc23e
1 changed files with 5 additions and 8 deletions

View File

@ -2,16 +2,13 @@
! Copyright (C) 2007, 2010 Slava Pestov
! Copyright (C) 2007, 2008 Doug Coleman
! See http://factorcode.org/license.txt for BSD license.
USING: accessors alien alien.c-types alien.destructors alien.syntax assocs
combinators continuations destructors destructors.private kernel math
namespaces prettyprint sequences sets summary system vocabs vocabs.parser ;
USING: accessors alien alien.c-types alien.destructors
alien.syntax destructors destructors.private kernel math
namespaces prettyprint sequences sets summary system vocabs ;
IN: libc
HOOK: strerror os ( errno -- str )
! For libc.linux, libc.windows, libc.macosx...
<< "libc." os unparse append require >>
LIBRARY: factor
FUNCTION-ALIAS: errno
@ -123,5 +120,5 @@ FUNCTION: int system ( c-string command ) ;
DESTRUCTOR: free
DESTRUCTOR: (free)
! For strerror on Unix all platforms
<< os windows? [ "libc.unix" require ] unless >>
! For libc.linux, libc.windows, libc.macosx...
<< "libc." os unparse append require >>