Commit graph

300 commits

Author SHA1 Message Date
Juan Jose Garcia Ripoll
afafaae325 file.d now signals file-errors and stream-errors when stream operators fail due to the C library 2012-10-02 00:39:24 +02:00
Juan Jose Garcia Ripoll
215647b3d0 Separate filed in the stream object to store the file column 2012-08-21 22:51:38 +02:00
Juan Jose Garcia Ripoll
0a0f5c4583 winsock_stream_listen() was broken -- it relied on old code for unread_char. 2012-08-18 20:21:06 +02:00
Juan Jose Garcia Ripoll
e54d9a6173 Rename type_of -> ecl_t_of 2012-07-05 23:07:34 +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
738d844fc0 Prefix the smm_ enumeration values 2012-06-30 22:11:48 +02:00
Juan Jose Garcia Ripoll
288d5e8ce6 Force LISTP,CONSP,ATOM and SYMBOLP into legacy.h 2012-06-30 21:59:10 +02:00
Juan Jose Garcia-Ripoll
8441a08c97 VALUES() is now part of legacy.h 2012-06-30 11:48:01 +02:00
Juan Jose Garcia Ripoll
d6a56f0596 Redefine CHAR_CODE_LIMIT -> ECL_CHAR_CODE_LIMIT 2012-06-27 22:16:39 +02:00
Juan Jose Garcia-Ripoll
05a16801ca Rename cl_va_* macros to ecl_va_* 2012-06-24 20:46:55 +02:00
Juan Jose Garcia Ripoll
41b26f98b4 Removed debug statement. 2012-06-20 21:15:16 +02:00
Juanjo Garcia-Ripoll
dfbb4b6c26 ECL must change the mode of open files to _O_BINARY so that its external formats take effect 2012-06-17 16:27:18 +02:00
Juan Jose Garcia Ripoll
52512c15a4 Rename the stp_* and aet_* enumeration names with the ecl_ prefix 2012-06-08 00:12:48 +02:00
Juan Jose Garcia Ripoll
cb1cf92713 Rename ecl_fix() to ecl_fixnum(), just like ecl_long_float() or ecl_double_float() 2012-06-07 23:55:43 +02:00
Juan Jose Garcia Ripoll
235a587cc6 Rename sf(), df(), and the bignum suffixes big_size, big_dim and big_limbs. Old versions moved to legacy.h 2012-06-06 21:08:47 +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
6f2fd54130 Recursive processing of some encodings lead to stack overflows 2012-06-02 21:18:12 +02:00
Juanjo Garcia-Ripoll
a85aa2fa1c Recursively process the output of MAKE-ENCODING 2012-05-30 16:18:49 +02:00
Juan Jose Garcia Ripoll
a9fcca6cea ecl_stream_to_handle() must fail with the console and socket streams 2012-05-26 00:27:04 +02:00
Juan Jose Garcia Ripoll
260a93c2f7 Some streams were created with an unspecified value of eof_char. 2012-05-22 22:51:52 +02:00
Juan Jose Garcia Ripoll
0385830033 Fixed typo in file.d 2012-05-22 09:45:10 +02:00
Juan Jose Garcia Ripoll
e950fc51bb Detect the codepage in Windows. 2012-05-19 10:07:48 +02:00
Juan Jose Garcia Ripoll
b3e6bf772a New console streams for Windows. 2012-05-19 09:34:35 +02:00
Juan Jose Garcia Ripoll
fbd3587b1a Removed further warnings about uninitialized or unused variables and functions 2012-04-11 23:04:27 +02:00
Juan Jose Garcia Ripoll
036cb55928 Fixes to remove warnings about unused variables. Replaced some uses of @(return) with ecl_return*() 2012-04-10 23:20:40 +02:00
Juan Jose Garcia Ripoll
5c1dca4c67 Fixed another sign problem when handling the output of fread(). 2012-04-10 21:03:33 +02:00
Juan Jose Garcia Ripoll
4c4b58c5cf Fixed various type warnings issued by Clang 2012-04-09 22:31:09 +02:00
Juan Jose Garcia Ripoll
b45695b642 Remove change that slipped from previous debugging sessions. 2012-03-31 11:30:06 +02:00
Juan Jose Garcia Ripoll
b9cebb0cf7 print_lock() is now more like printf(). New implementation of the queue. 2012-03-29 12:45:22 +02:00
Juanjo Garcia-Ripoll
72f7b1ea7d Propagate UNREAD-CHAR from an ECHO-STREAM to its actual input stream (R. M. Kreuter) 2012-02-03 18:29:53 +01:00
Juan Jose Garcia Ripoll
ca845a76e8 safe_close() did not return output flag. 2012-02-02 23:43:21 +01:00
Juan Jose Garcia Ripoll
b541769e77 Fixed wrong #ifdef in file.d 2012-01-22 23:28:49 +01:00
Juan Jose Garcia Ripoll
d377e4daf8 Cleanup ecl_open_stream, removing gotos. Instead of using open() to check for the existence of a file, rely on si_file_kind(). 2012-01-15 12:00:41 +01:00
Juan Jose Garcia Ripoll
4547742042 Create safe_* versions of open, fdopen, fopen, close, fclose, which are protected from interrupts. 2012-01-15 11:22:10 +01:00
Juan Jose Garcia Ripoll
09cc3970d4 Fixes in the sequence-input/output-streams. UNREAD-CHAR did not work properly on them 2012-01-06 19:48:52 +01:00
Juan Jose Garcia Ripoll
542735dcc0 Restrict sequence input/output streams to byte arrays 2012-01-06 11:46:25 +01:00
Juan Jose Garcia Ripoll
0102aed9f5 We introduce two functions, ecl_to_fix/ecl_to_size, which may be inlined and are more focused than fixint/fixnnint 2012-01-01 23:39:01 +01:00
Juan Jose Garcia Ripoll
da15b84a8b Fixed the UCS2-BE/LE decoders 2011-12-30 23:22:58 +01:00
Juan Jose Garcia Ripoll
ee13dcd388 Introduce _ecl_funcall[0-5] to move the core from using cl_funcall to ecl_function_dispatch. 2011-12-18 00:26:53 +01:00
Juan Jose Garcia Ripoll
64ee7557e7 Fixed typo in make-sequence-output-stream 2011-08-28 13:28:22 +02:00
Juan Jose Garcia Ripoll
9296feb56b Change the semantics of sequence streams when the vector is a string. 2011-08-28 13:10:08 +02:00
Juan Jose Garcia Ripoll
1da52973ee Fix the endianness and the external format for sequence streams with strings. 2011-08-28 11:41:08 +02:00
Juan Jose Garcia Ripoll
4190f5a484 SEQUENCE-INPUT-STREAMS did not read from the desired position. 2011-08-28 10:59:09 +02:00
Juan Jose Garcia Ripoll
dd05b04372 Implemented SEQUENCE-STREAMs 2011-08-27 17:33:12 +02:00
Juan Jose Garcia Ripoll
40f4a2a26f Let OPEN default to UTF8 and CHARACTER as demanded by the Hyperspec. 2011-07-31 21:37:09 +02:00
Juan Jose Garcia Ripoll
0a7e582beb :external-format :pass-through did not implement actual pass-through in Unicode builds. 2011-06-28 19:32:01 +02:00
Juan Jose Garcia Ripoll
84ece8b4c6 Add an :OFFSET keyword argument to EXT:MMAP 2011-06-19 21:51:37 +02:00
Juan Jose Garcia Ripoll
3fe33a08bf In ecl_make_file_stream_from_fd(), when the argument was not a smm_..._file type, it was not corrected. 2011-06-19 17:07:12 +02:00
Juan Jose Garcia Ripoll
ee7ce02155 pasthrough_encoder() should only reference encoding_error() when we have encodings. 2011-04-13 22:04:21 +02:00
Juan Jose Garcia Ripoll
5056fe59a8 In utf_8_decoder(), decoding_error() was invoked with the wrong number of buffer bytes. 2011-02-12 23:48:30 +01:00