diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-01-08 19:13:43 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-01-08 19:13:43 +1100 |
commit | 1b6f0e17752445668237167e88229adbb14cb64d (patch) | |
tree | 49ec65249d88936f392e8620d32d6ea1ff953f20 /src/testmain.hs | |
parent | 9c88780375c5fd42f305746156484257c02245c7 (diff) |
New preference data array structure in Ada, currently won't link
Diffstat (limited to 'src/testmain.hs')
-rw-r--r-- | src/testmain.hs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/testmain.hs b/src/testmain.hs new file mode 100644 index 0000000..3f340c2 --- /dev/null +++ b/src/testmain.hs @@ -0,0 +1,21 @@ +{-# LANGUAGE ForeignFunctionInterface #-} + + + +import qualified Storage as Store + + + +foreign import ccall adainit :: IO Int +foreign import ccall adafinal :: IO Int + + + +main = do + adainit + s <- Store.createStorage 10 5 + Store.pokePref s 1 2 3 + r <- Store.peekPref s 1 2 3 + putStrLn (show r) + adafinal + |