Skip to content

Commit

Permalink
- rename of jscript target to js, all ffi calls should change sourcet…
Browse files Browse the repository at this point in the history
…ext. Internally in naming convention JScript changed to JavaScript

- version bump to 1.1.3
- branches/jurrien-xp from now is obsolete, soon to be replaced by javascript specific experimentation branch in branches/js

WARNING: make clean; rerun ./configure
  • Loading branch information
atzedijkstra committed Jan 27, 2012
1 parent 92bbe8b commit def45a1
Show file tree
Hide file tree
Showing 150 changed files with 908 additions and 640 deletions.
6 changes: 3 additions & 3 deletions EHC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ include $(SRC_PREFIX)rts/files.mk
ifeq ($(ENABLE_JAVA),yes)
-include $(SRC_PREFIX)jazy/files.mk
endif
ifeq ($(ENABLE_JSCRIPT),yes)
-include $(SRC_PREFIX)jscript/files.mk
ifeq ($(ENABLE_JS),yes)
-include $(SRC_PREFIX)javascript/files.mk
endif
include $(SRC_PREFIX)ehc/files2.mk
-include $(SRC_PREFIX)agprimer/files.mk
Expand Down Expand Up @@ -275,7 +275,7 @@ uhc-install-postprocess-core:

uhc-install-postprocess-jazy:

uhc-install-postprocess-jscript:
uhc-install-postprocess-js:

uhc-install-postprocess-llvm:

Expand Down
2 changes: 1 addition & 1 deletion EHC/SVNREVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2421M
2422M
2 changes: 1 addition & 1 deletion EHC/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.2
1.1.3
20 changes: 10 additions & 10 deletions EHC/configure
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ javacCmd
jarCmd
JAVAC_CMD
JAR_CMD
ENABLE_JSCRIPT
ENABLE_JS
ENABLE_CMM
ENABLE_CWHOLEPROG
ENABLE_LLVM
Expand Down Expand Up @@ -756,7 +756,7 @@ GCC_EHC_EXTRA_EXTERN_LIBS
SUFFIX_SHELL
SUFFIX_EXEC
SUFFIX_LIBC
SUFFIX_LIBJSCRIPT
SUFFIX_LIBJS
PREFIX_LIB
PATHS_SEP
SLASH
Expand Down Expand Up @@ -2370,10 +2370,10 @@ echo "$as_me: error:

fi

### enable options: jscript (JavaScript), default is yes
# AC_ARG_ENABLE(jscript, AS_HELP_STRING([--enable-jscript],[include JavaScript code generation]), [enableJScript=yes], [enableJScript=no])
enableJScript="yes"
ENABLE_JSCRIPT=$enableJScript
### enable options: js (JavaScript), default is yes
# AC_ARG_ENABLE(js, AS_HELP_STRING([--enable-js],[include JavaScript code generation]), [enableJavaScript=yes], [enableJavaScript=no])
enableJavaScript="yes"
ENABLE_JS=$enableJavaScript


### enable options: cmm, default is no, temporary until development is ready
Expand Down Expand Up @@ -31416,7 +31416,7 @@ GCC_EHC_EXTRA_EXTERN_LIBS="$gcc_ehc_extra_extern_libs"
suffix_shell=""
suffix_exec=""
suffix_libC=".a"
suffix_libJScript=".mjs"
suffix_libJavaScript=".mjs"
prefix_lib=""
# development platform
development_platform="UNIX"
Expand Down Expand Up @@ -31475,7 +31475,7 @@ SUFFIX_EXEC="$suffix_exec"

SUFFIX_LIBC="$suffix_libC"

SUFFIX_LIBJSCRIPT="$suffix_libJScript"
SUFFIX_LIBJS="$suffix_libJavaScript"

PREFIX_LIB="$prefix_lib"

Expand Down Expand Up @@ -32289,7 +32289,7 @@ javacCmd!$javacCmd$ac_delim
jarCmd!$jarCmd$ac_delim
JAVAC_CMD!$JAVAC_CMD$ac_delim
JAR_CMD!$JAR_CMD$ac_delim
ENABLE_JSCRIPT!$ENABLE_JSCRIPT$ac_delim
ENABLE_JS!$ENABLE_JS$ac_delim
ENABLE_CMM!$ENABLE_CMM$ac_delim
ENABLE_CWHOLEPROG!$ENABLE_CWHOLEPROG$ac_delim
ENABLE_LLVM!$ENABLE_LLVM$ac_delim
Expand Down Expand Up @@ -32405,7 +32405,7 @@ GCC_EHC_EXTRA_EXTERN_LIBS!$GCC_EHC_EXTRA_EXTERN_LIBS$ac_delim
SUFFIX_SHELL!$SUFFIX_SHELL$ac_delim
SUFFIX_EXEC!$SUFFIX_EXEC$ac_delim
SUFFIX_LIBC!$SUFFIX_LIBC$ac_delim
SUFFIX_LIBJSCRIPT!$SUFFIX_LIBJSCRIPT$ac_delim
SUFFIX_LIBJS!$SUFFIX_LIBJS$ac_delim
PREFIX_LIB!$PREFIX_LIB$ac_delim
PATHS_SEP!$PATHS_SEP$ac_delim
SLASH!$SLASH$ac_delim
Expand Down
12 changes: 6 additions & 6 deletions EHC/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ then
AC_SUBST(JAR_CMD,$jarCmd)
fi

### enable options: jscript (JavaScript), default is yes
# AC_ARG_ENABLE(jscript, AS_HELP_STRING([--enable-jscript],[include JavaScript code generation]), [enableJScript=yes], [enableJScript=no])
enableJScript="yes"
AC_SUBST(ENABLE_JSCRIPT,$enableJScript)
### enable options: js (JavaScript), default is yes
# AC_ARG_ENABLE(js, AS_HELP_STRING([--enable-js],[include JavaScript code generation]), [enableJavaScript=yes], [enableJavaScript=no])
enableJavaScript="yes"
AC_SUBST(ENABLE_JS,$enableJavaScript)

### enable options: cmm, default is no, temporary until development is ready
AC_ARG_ENABLE(cmm, AS_HELP_STRING([--enable-cmm],[include cmm code generation]), [enableCmm=yes], [enableCmm=no])
Expand Down Expand Up @@ -989,7 +989,7 @@ AC_SUBST(GCC_EHC_EXTRA_EXTERN_LIBS,"$gcc_ehc_extra_extern_libs")
suffix_shell=""
suffix_exec=""
suffix_libC=".a"
suffix_libJScript=".mjs"
suffix_libJavaScript=".mjs"
prefix_lib=""
# development platform
development_platform="UNIX"
Expand Down Expand Up @@ -1045,7 +1045,7 @@ esac
AC_SUBST(SUFFIX_SHELL,"$suffix_shell")
AC_SUBST(SUFFIX_EXEC,"$suffix_exec")
AC_SUBST(SUFFIX_LIBC,"$suffix_libC")
AC_SUBST(SUFFIX_LIBJSCRIPT,"$suffix_libJScript")
AC_SUBST(SUFFIX_LIBJS,"$suffix_libJavaScript")
AC_SUBST(PREFIX_LIB,"$prefix_lib")
AC_SUBST(PATHS_SEP,"$paths_sep")
AC_SUBST(SLASH,"$slash")
Expand Down
6 changes: 3 additions & 3 deletions EHC/ehclib/base/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Prelude
, module UHC.Show
, module UHC.Read
, module UHC.Run
#if ( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JSCRIPT__) || defined (__UHC_TARGET_LLVM__) )
#if ( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JS__) || defined (__UHC_TARGET_LLVM__) )
, module UHC.OldIO
#else
, module System.IO
Expand Down Expand Up @@ -69,13 +69,13 @@ import UHC.Show
import UHC.Read
import UHC.IOBase
( IOError, ioError, userError, catch, unsafePerformIO
#if (defined(__UHC_TARGET_C__) || defined (__UHC_TARGET_LLVM__)) && !defined(__UHC_TARGET_JSCRIPT__)
#if (defined(__UHC_TARGET_C__) || defined (__UHC_TARGET_LLVM__)) && !defined(__UHC_TARGET_JS__)
, FilePath
#endif
)
import UHC.Run

#if ( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JSCRIPT__) || defined (__UHC_TARGET_LLVM__) )
#if ( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JS__) || defined (__UHC_TARGET_LLVM__) )
import UHC.OldIO
#else
import System.IO
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/base/System/CPUTime.hsc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}

-----------------------------------------------------------------------------
-- |
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/base/System/Console/GetOpt.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}

-----------------------------------------------------------------------------
-- |
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/base/System/Environment.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE CPP #-}
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}

-----------------------------------------------------------------------------
-- |
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/files2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ ehclib-codegentargetspecific-C: $(if $(EHC_CFG_USE_GRIN),$(INSTALL_LIB_RTS),)

ehclib-codegentargetspecific-jazy: $(if $(ENABLE_JAVA),$(INSTALL_LIB_JAZY),)

ehclib-codegentargetspecific-jscript: $(if $(ENABLE_JSCRIPT),$(INSTALL_LIB_JSCRIPT),)
ehclib-codegentargetspecific-js: $(if $(ENABLE_JS),$(INSTALL_LIB_JS),)

ehclib-codegentargetspecific-core:

Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/CError.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module CError (module Foreign.C.Error) where
import Foreign.C.Error
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/CForeign.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module CForeign ( module Foreign.C ) where
import Foreign.C
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/CPUTime.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module CPUTime (
getCPUTime, cpuTimePrecision
) where
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/CString.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module CString (module Foreign.C.String) where
import Foreign.C.String
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/CTypes.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module CTypes (module Foreign.C.Types) where
import Foreign.C.Types
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/Directory.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module Directory (
Permissions( Permissions, readable, writable, executable, searchable ),
createDirectory, removeDirectory, removeFile,
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/ForeignPtr.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module ForeignPtr (module Foreign.ForeignPtr) where
import Foreign.ForeignPtr
32 changes: 16 additions & 16 deletions EHC/ehclib/haskell98/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,40 @@

module IO (
Handle,
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JSCRIPT__) )
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JS__) )
HandlePosn,
#endif
IOMode(ReadMode,WriteMode,AppendMode,ReadWriteMode),
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JSCRIPT__) )
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JS__) )
BufferMode(NoBuffering,LineBuffering,BlockBuffering),
SeekMode(AbsoluteSeek,RelativeSeek,SeekFromEnd),
#endif
#if !defined(__UHC_TARGET_JSCRIPT__)
#if !defined(__UHC_TARGET_JS__)
stdin,
#endif
stdout, stderr,
#if !defined(__UHC_TARGET_JSCRIPT__)
#if !defined(__UHC_TARGET_JS__)
openFile,
#endif
hClose,
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JSCRIPT__) )
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JS__) )
hFileSize, hIsEOF, isEOF,
hSetBuffering, hGetBuffering,
#endif
hFlush,
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JSCRIPT__) )
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JS__) )
hGetPosn, hSetPosn, hSeek,
hWaitForInput, hReady, hGetChar, hGetLine, hLookAhead,
#endif
#if !defined(__UHC_TARGET_JSCRIPT__)
#if !defined(__UHC_TARGET_JS__)
hGetContents,
#endif
hPutChar, hPutStr, hPutStrLn,
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JSCRIPT__) )
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JS__) )
hPrint,
hIsOpen, hIsClosed, hIsReadable, hIsWritable, hIsSeekable,
#endif
#if !( defined(__UHC_TARGET_JSCRIPT__) )
#if !( defined(__UHC_TARGET_JS__) )
isAlreadyExistsError, isDoesNotExistError, isAlreadyInUseError,
isFullError, isEOFError,
isIllegalOperation, isPermissionError, isUserError,
Expand All @@ -46,29 +46,29 @@ module IO (

-- ...and what the Prelude exports
IO,
#if !( defined(__UHC_TARGET_JSCRIPT__) )
#if !( defined(__UHC_TARGET_JS__) )
FilePath,
#endif
IOError, ioError, userError, catch,
#if !defined(__UHC_TARGET_JSCRIPT__)
#if !defined(__UHC_TARGET_JS__)
interact,
#endif
putChar, putStr, putStrLn, print,
#if !defined(__UHC_TARGET_JSCRIPT__)
#if !defined(__UHC_TARGET_JS__)
getChar, getLine, getContents,
readFile, writeFile, appendFile,
#endif
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JSCRIPT__) )
#if !( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JS__) )
readIO, readLn
#endif
) where

#if ( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JSCRIPT__) )
#if ( defined(__UHC_TARGET_C__) || defined(__UHC_TARGET_JS__) )
import UHC.OldIO
#else
import System.IO
#endif
#if !( defined(__UHC_TARGET_JSCRIPT__) )
#if !( defined(__UHC_TARGET_JS__) )
import System.IO.Error
#endif

Expand All @@ -80,7 +80,7 @@ import System.IO.Error
-- The version of @bracket@ in "Control.Exception" handles all exceptions,
-- and should be used instead.

#if !( defined(__UHC_TARGET_JSCRIPT__) )
#if !( defined(__UHC_TARGET_JS__) )
bracket :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c
bracket before after m = do
x <- before
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/Int.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module Int ( module Data.Int ) where
import Data.Int
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/Locale.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module Locale (
TimeLocale(..), defaultTimeLocale
) where
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/MarshalAlloc.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module MarshalAlloc (module Foreign.Marshal.Alloc) where
import Foreign.Marshal.Alloc
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/MarshalArray.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module MarshalArray (module Foreign.Marshal.Array) where
import Foreign.Marshal.Array
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/MarshalError.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module MarshalError (
module Foreign.Marshal.Error,
IOErrorType,
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/MarshalUtils.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module MarshalUtils (module Foreign.Marshal.Utils) where
import Foreign.Marshal.Utils
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/Ptr.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}

module Ptr (module Foreign.Ptr) where
import Foreign.Ptr
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/Random.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module Random (
RandomGen(next, split, genRange),
StdGen, mkStdGen,
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/StablePtr.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module StablePtr (module Foreign.StablePtr) where
import Foreign.StablePtr
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/Storable.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module Storable (module Foreign.Storable) where
import Foreign.Storable
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/System.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE CPP #-}
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}

module System (
ExitCode(ExitSuccess,ExitFailure),
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/Time.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module Time (
ClockTime,
Month(January,February,March,April,May,June,
Expand Down
2 changes: 1 addition & 1 deletion EHC/ehclib/haskell98/Word.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{-# EXCLUDE_IF_TARGET jscript #-}
{-# EXCLUDE_IF_TARGET js #-}
module Word ( module Data.Word ) where
import Data.Word
2 changes: 1 addition & 1 deletion EHC/ehclib/uhcbase/Data/Bits.hs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ instance Bits Int where
shiftR = primShiftRightInt
rotateL = primRotateLeftInt
rotateR = primRotateRightInt
#if defined( __UHC_TARGET_JSCRIPT__ )
#if defined( __UHC_TARGET_JS__ )
bitSize _ = 31 -- for now...
#elif defined( __UHC_TARGET_BC__ )
bitSize _ = SIZEOF_HSINT*8 - BITSIZEOF_WORDTAG
Expand Down
Loading

0 comments on commit def45a1

Please sign in to comment.