Commit graph

60 commits

Author SHA1 Message Date
Daniel Kochmański
5e8ec11bdd cosmetic: fix indent (rest of C) 2016-05-06 08:41:52 +02:00
Matthew Mondor
8f07cd58d8 The ECL code no longer uses tabulator characters, they were replaced
by spaces.

A custom script was used to insert/replace Emacs and ViM per-file editor
settings according to their type and the new ECL coding style.
2015-09-03 07:35:47 -04:00
Daniel Kochmański
4d19a27424 cosmetic: untabify
Signed-off-by: Daniel Kochmański <dkochmanski@turtle-solutions.eu>
2015-06-21 14:38:20 +02:00
Juan Jose Garcia Ripoll
825fc8cbd3 Cnil and Ct are now part of legacy 2012-06-30 23:01:40 +02:00
Juan Jose Garcia Ripoll
64a9168434 CHARACTERP, BASE_CHAR_P, BASE_CHAR_CODE_P, CODE_CHAR, CHAR_CODE, REAL_TYPE, IMMEDIATE, IMMEDIATE_TAG, FIXNUM_TAG, FIXNUM_MINUSP, FIXNUM_PLUSP, FIXNUMP and fix get the ecl_ prefix 2012-06-06 11:19:55 +02:00
Juan Jose Garcia Ripoll
e950fc51bb Detect the codepage in Windows. 2012-05-19 10:07:48 +02:00
Juan Jose Garcia Ripoll
0782f9a2fb ecl_musleep() no longer disables interrupts. 2012-03-17 19:35:33 +01:00
Juan Jose Garcia Ripoll
ce73d0a60a Implemented a wait queue for locks and other events. 2012-02-19 01:23:06 +01:00
Juan Jose Garcia Ripoll
14c352593b Implemented an interruptible version of musleep() also for Windows. 2012-02-18 10:48:47 +01:00
Juanjo Garcia-Ripoll
08d461f564 When using nanosleep() wait only for the time that is remaining. 2012-02-17 14:36:36 +01:00
Juan Jose Garcia Ripoll
d5296f2563 Implement mutexes using CAS. Deactivate condition variables temporarily. 2012-02-12 23:31:29 +01:00
Juan Jose Garcia Ripoll
80802e28aa The lisp handler for SIGCHLD is now a separate function, si:wait-for-all-processes 2011-03-19 22:30:44 +01:00
Juan Jose Garcia Ripoll
50bb32d2c6 Remove reference to isinf() in time.d 2010-12-16 16:04:57 +01:00
Juan Jose Garcia Ripoll
3801f5dfe3 Added a new file, impl/math_fenv.h, grouping all definitions related to floating point exceptions and their handling. This is completed with impl/math_fenv_msvc.h with inline definitions of the C99 fenv.h functions for Microsoft's compiler 2010-11-09 00:44:12 +01:00
Samium Gromoff
b999a2c8fb Fix gc.h stomping over _beginthread() declaration and other MinGW issues 2010-10-03 10:18:26 +02:00
Juan Jose Garcia Ripoll
2ff3ebe751 Fixing file name cases to work with Wine (G. Dos Reis) 2010-09-12 15:00:00 +02:00
Juan Jose Garcia Ripoll
f4f846b928 In some files windows.h was included before ecl.h 2010-08-22 23:02:52 +02:00
Juan Jose Garcia Ripoll
5c63cd8345 When compiling for the Windows API, define ECL_MS_WINDOWS_HOST instead of checking for mingw or _MSC_VER separately (Gabriel Dos Reis) 2010-08-22 22:29:21 +02:00
Trail@.(none)
973090bc55 Use __MINGW32__ instead of mingw32 as preprocessor criterion of MinGW-ness. 2010-04-05 22:31:53 +02:00
Juan Jose Garcia Ripoll
492bcc5fc4 Allow use of nanosleep() in Darwin 2010-02-17 23:55:23 +01:00
Juan Jose Garcia Ripoll
78e9859bd2 Code to implement mp:interrupt-process in Windows:
* unixint.d: capture exceptions caused by page guards.
* unixint.d: to interrupt a Windows thread, set up a page guard onto the
  ECL environment and in addition queue an APC call that accesses the
  environment to trigger that exception.
* stacks.h: CL_CATCH_ALL uses _try/_except to enforce ECL's exception
  handler. Without it, Windows behaves randomly and sometimes uses the
  default handler and sometimes it simply aborts.
* threads.d: we use ordinary handlers to identify threads.
* time.d: SLEEP now uses Windows' SleepEx, leaving the thread in an
  alertable state -- that is, it can be interrupted.
* top.lsp: fixed and improved the code that handles console interrupts,
  by first using ordinary conditions and then using an interactive
  query function to decide which process to interrupt.
2009-09-22 20:13:23 +02:00
Juan Jose Garcia Ripoll
77cde5c2f8 Several fixes for various compiler warnings. 2009-06-07 00:02:49 +02:00
Juan Jose Garcia Ripoll
42fdda5e1c Whenever isfinite is not defined, use finite(). Additionally, in Solaris, load ieefp.h before using this macro. 2009-05-20 19:29:16 +02:00
jjgarcia
612ef5b5f5 WinSock.h is needed for struct timeval (Claus Brod) 2008-09-28 22:41:44 +00:00
jjgarcia
9a2b12e34c struct timeval is now defined in windows as well. 2008-09-19 17:23:30 +00:00
jjgarcia
fff7731bec By using WIN32_LEAN_AND_MEAN we removed some critical headers 2008-08-28 19:10:13 +00:00
jgarcia
932c7d0dc8 Include get-universal-time in the core library 2008-02-01 11:40:41 +00:00
jgarcia
5ef5d32e74 Enforce indent and mode conditions on files 2008-01-26 10:30:41 +00:00
jgarcia
91f5dc078a Fixed the routine for computing the run time of a windows process (Yaroslav Kavenchuck) 2007-10-19 14:53:30 +00:00
jgarcia
c07c27628e timeval structure does exist in Windows 2007-05-22 15:55:36 +00:00
jgarcia
f8765e14f1 Increase resolution of the time routines GET-INTERNAL-REAL/RUN-TIME 2007-05-21 18:27:32 +00:00
jgarcia
aa3dfe4058 Prefix most functions with 'ecl_' to avoid name collisions when embedding ECL in other libraries 2007-01-18 11:46:07 +00:00
jgarcia
406be1454e Reduced the number of headers globally included. 2006-10-23 21:13:14 +00:00
jgarcia
2b5679789b Measure time with 1/60 seconds precision on Windows (by Dustin Long) 2006-10-03 07:54:53 +00:00
jgarcia
aeb8425289 Implemented subsecond sleeping in Windows/Mingw32 (contributed by Larry Clapp) 2006-08-02 10:16:40 +00:00
jgarcia
ff0be77070 Support for unicode strings as data structure (no clever handling of characters yet) contributed by Brian Spilsbury. 2006-05-29 08:51:21 +00:00
jjgarcia
d9997268f8 Final fixes to make the new directory structure work with MSVC++ 2006-02-28 14:21:26 +00:00
jjgarcia
936b7fb6f6 Header files are now kept in a directory named 'ecl', so as to avoid name clashes with other headers. 2006-02-28 14:05:47 +00:00
jjgarcia
ec31caef2a Move some internal functions from time.d and the SI package to mislib without exporting the names. 2005-11-04 11:24:32 +00:00
jjgarcia
3c75e19b61 Make DECODE/ENCODE-UNIVERSAL-TIME work with dates which are bignums. 2005-11-04 11:23:49 +00:00
goffioul
5d0c5ebafe Mingw32 Typo. 2005-10-19 08:03:02 +00:00
goffioul
22b5fdf705 Fix compilation problems under MSVC and enable threads support 2005-02-10 15:18:40 +00:00
jjgarcia
8a4afd0424 Thread support for Mingw32 2005-01-31 17:59:46 +00:00
jjgarcia
6b219625b5 Port to Microsoft VC++ by Goffioul Michael <goffioul@imec.be> 2004-10-25 16:34:20 +00:00
jjgarcia
860dbd69ec Fixes due to type sizes, updates of the old garbage collector and the terrible bug with hash tables merged into main trunk 2004-02-29 15:47:01 +00:00
jjgarcia
7dd5586d9e Sleep is bogus under windows and counts the time in milliseconds. 2003-12-02 10:47:02 +00:00
jjgarcia
4eac79774e Preliminary support for POSIX threads. 2003-11-18 11:23:07 +00:00
jjgarcia
d0cd173cf4 Initial patches for supporting MINGW32 2003-07-08 17:36:41 +00:00
jjgarcia
41c0868469 Bunch of fixes. See CHANGELOG. 2003-03-17 10:39:08 +00:00
jjgarcia
62141f9f5d Replace int -> cl_fixnum, cl_index, to avoid problems with 64-bit archit.
Make sure that structure/instance slots may be indexed with a simple integer.
2002-12-09 12:10:33 +00:00