Skip to content
Snippets Groups Projects
Commit 4540b655 authored by sof's avatar sof
Browse files

[project @ 1998-01-20 10:20:59 by sof]

Removed indexCharOffFO#: not needed anymore - part2
parent 1bb9b75f
No related merge requests found
......@@ -22,8 +22,7 @@ module PrimPacked
eqCharStrPrefixBA, -- :: Addr# -> ByteArray# -> Int# -> Int# -> Bool
eqStrPrefixFO, -- :: ForeignObj# -> ByteArray# -> Int# -> Int# -> Bool
addrOffset#, -- :: Addr# -> Int# -> Addr#
indexCharOffFO# -- :: ForeignObj# -> Int# -> Char#
addrOffset# -- :: Addr# -> Int# -> Addr#
) where
-- This #define suppresses the "import FastString" that
......@@ -122,14 +121,10 @@ copySubStrFO (ForeignObj fo) (I# start#) len@(I# length#) =
= write_ps_array arr_in# idx (chr# 0#) `seqStrictlyST`
returnStrictlyST ()
| otherwise
= case (indexCharOffFO# fo (idx +# start#)) of { ch ->
= case (indexCharOffForeignObj# fo (idx +# start#)) of { ch ->
write_ps_array arr_in# idx ch `seqStrictlyST`
fill_in arr_in# (idx +# 1#) }
{- ToDo: add FO primitives.. -}
indexCharOffFO# :: ForeignObj# -> Int# -> Char#
indexCharOffFO# fo i = indexCharOffForeignObj# fo i
-- step on (char *) pointer by x units.
addrOffset# :: Addr# -> Int# -> Addr#
addrOffset# a# i# =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment