Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
dd42cd26
Commit
dd42cd26
authored
Mar 01, 1999
by
sof
Browse files
[project @ 1999-03-01 08:59:45 by sof]
foreign imports: stdcall --> ccall
parent
e1989165
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/lib/std/Time.lhs
View file @
dd42cd26
...
...
@@ -578,32 +578,32 @@ formatTimeDiff l fmt (TimeDiff year month day hour min sec _)
\begin{code}
#ifdef __HUGS__
foreign import
std
call "libHS_cbits.so" "get_tm_sec" get_tm_sec :: Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "get_tm_min" get_tm_min :: Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "get_tm_hour" get_tm_hour :: Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "get_tm_mday" get_tm_mday :: Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "get_tm_mon" get_tm_mon :: Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "get_tm_year" get_tm_year :: Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "get_tm_wday" get_tm_wday :: Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "get_tm_yday" get_tm_yday :: Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "get_tm_isdst" get_tm_isdst :: Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "get_tm_sec" get_tm_sec :: Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "get_tm_min" get_tm_min :: Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "get_tm_hour" get_tm_hour :: Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "get_tm_mday" get_tm_mday :: Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "get_tm_mon" get_tm_mon :: Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "get_tm_year" get_tm_year :: Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "get_tm_wday" get_tm_wday :: Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "get_tm_yday" get_tm_yday :: Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "get_tm_isdst" get_tm_isdst :: Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "prim_ZONE" prim_ZONE :: Bytes -> IO Addr
foreign import
std
call "libHS_cbits.so" "prim_GMTOFF" prim_GMTOFF :: Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "prim_ZONE" prim_ZONE :: Bytes -> IO Addr
foreign import
c
call "libHS_cbits.so" "prim_GMTOFF" prim_GMTOFF :: Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "prim_SETZONE" prim_SETZONE :: Bytes -> Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "prim_SETZONE" prim_SETZONE :: Bytes -> Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "sizeof_word" sizeof_word :: Int
foreign import
std
call "libHS_cbits.so" "sizeof_struct_tm" sizeof_struct_tm :: Int
foreign import
std
call "libHS_cbits.so" "sizeof_time_t" sizeof_time_t :: Int
foreign import
c
call "libHS_cbits.so" "sizeof_word" sizeof_word :: Int
foreign import
c
call "libHS_cbits.so" "sizeof_struct_tm" sizeof_struct_tm :: Int
foreign import
c
call "libHS_cbits.so" "sizeof_time_t" sizeof_time_t :: Int
-- believed to be at least 1 bit (the sign bit!) bigger than sizeof_time_t
sizeof_int64 :: Int
sizeof_int64 = 8
foreign import
std
call "libHS_cbits.so" "prim_getClockTime" prim_getClockTime :: Bytes -> Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "prim_toClockSec" prim_toClockSec :: Int -> Int -> Int -> Int -> Int -> Int -> Int -> Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "prim_toLocalTime" prim_toLocalTime :: Int64 -> Bytes -> IO Int
foreign import
std
call "libHS_cbits.so" "prim_toUTCTime" prim_toUTCTime :: Int64 -> Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "prim_getClockTime" prim_getClockTime :: Bytes -> Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "prim_toClockSec" prim_toClockSec :: Int -> Int -> Int -> Int -> Int -> Int -> Int -> Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "prim_toLocalTime" prim_toLocalTime :: Int64 -> Bytes -> IO Int
foreign import
c
call "libHS_cbits.so" "prim_toUTCTime" prim_toUTCTime :: Int64 -> Bytes -> IO Int
#endif
\end{code}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment