Commit graph

157 commits

Author SHA1 Message Date
Christopher Chavez
0f3d6e08d1 Fix spelling 2020-09-11 02:11:26 +00:00
Marius Gerbershagen
c6b4296bb8 cosmetic: fix some compiler warnings 2020-04-29 20:35:37 +02:00
Marius Gerbershagen
24dcb778cf clean up functions creating base strings from C strings
Make functions behave as documented, remove use of legacy names.
    Fixes #462.
2019-01-07 18:43:55 +01:00
Daniel Kochmanski
436e6a62ca pathname-match-p: fix invalid comparison
(pathname-match-p "foo" "foo?") returned T, because we had too weak
comparison. Now it returns NIL.
2017-08-18 07:59:57 +02:00
Fabrizio Fabbri
390caa3e51
Revert "Revert "Merge branch 'develop' into 'develop'""
This reverts commit cf416f6fd4.
2017-06-03 12:57:17 +02:00
Daniel Kochmanski
cf416f6fd4 Revert "Merge branch 'develop' into 'develop'"
This reverts commit b75802f122, reversing
changes made to 5e3ccb1955.
2017-05-26 14:38:52 +02:00
Fabrizio Fabbri
73ed08df0b
fix coverity issue 1434897 Uninitialized scalar variable
https://scan7.coverity.com/reports.htm#v29377/p15116/fileInstanceId=18706960&defectInstanceId=4324855&mergedDefectId=1434897&eventIds=4324837-8
2017-05-16 18:31:55 +02:00
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
Matthew Mondor
fb09755db4 FIXNUM_BITS -> ECL_FIXNUM_BITS consistently, second try 2015-08-30 16:35:14 -04:00
Daniel Kochmański
6c0860b3cf pathname: fix logical translation wrt wildcards
Fixes #103.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-08-19 10:09:17 +02: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
Daniel Kochmański
88b8ad015a pathname: Make type of pathname being (simple-array character (*)).
Removes coercion to base-string and improves some use cases. Due to
recent change in double-quote reader (conformity fix), now type of
each read string is (simple-array character (*)), so when pathnames
were created, it were copying it to (simple-array base-char (*)), lead
to buggy results. Consider:

(let ((path
       (let ((x "foo"))
	 (make-pathname :name x :type x))))
  (eql (pathname-name path)
       (pathname-type path))) ; => T

Before change, this construct was returning NIL, what in case of
serialization might be a problem, and wasn't `the right thing`® to do.

Signed-off-by: Daniel Kochmański <dkochmanski@turtle-solutions.eu>
2015-05-03 11:52:08 +02:00
Juanjo Garcia-Ripoll
3dd9b227bd Fixed typo 2013-10-15 09:57:25 +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
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
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
ac518d8e33 MAKE-PATHNAME should not simplify :BACK in the directory part. 2012-04-14 19:30:12 +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
f37055af48 New function to detect wild pathname components. 2012-03-18 16:53:44 +01:00
Juan Jose Garcia Ripoll
01f333fa87 In pathnames, .. is translated to :UP, not :BACK. 2011-12-31 16:21:17 +01:00
Juan Jose Garcia Ripoll
0d1de5ba90 Dots are removed from pathnames when parsing them. 2011-12-31 03:23:14 +01:00
Juan Jose Garcia Ripoll
5fcd784bb9 Slightly more verbose message when coercing to filenames. 2011-03-06 23:57:53 +01:00
Juan Jose Garcia Ripoll
37c4e79d1a Fixed path with uninitialized variable in ecl_make_pathname (J. James) 2011-01-21 16:58:34 +01:00
Juan Jose Garcia Ripoll
bfbde7508c The code for removing redundant :BACK items in MERGE-PATHNAMES had disappeared 2010-12-25 21:57:48 +01:00
Juan Jose Garcia Ripoll
13a5dfc5b5 When doing pathname translations, missing components must be filled using the from-pathname 2010-12-15 19:39:17 +01:00
Juan Jose Garcia Ripoll
eaeec27748 When possible, coerce all pathname elements from (array character) to (array base-char), so that they can be manipulated by the ANSI C routines directly -- otherwise they complain. 2010-12-12 20:07:16 +01:00
Juan Jose Garcia Ripoll
f042896b53 Fixed changing of cases in pathname translations. 2010-12-01 22:35:15 +01:00
Juan Jose Garcia Ripoll
f1d3f7f953 Merging of pathnames takes care of the case. 2010-11-27 19:05:51 +01:00
Juan Jose Garcia Ripoll
bd4b329908 Fixed handling of pathname case when retreiving components and building pathnames. 2010-11-27 18:08:47 +01: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
Juan Jose Garcia Ripoll
8ce8d5aeb4 When chaining pathname translations, case was not properly translated. 2010-07-01 22:02:02 +02:00
Juan Jose Garcia Ripoll
24a6ae8c4e Fixes in the implementation of MAKE-PATHNAME and NAMESTRING 2010-06-28 21:33:04 +02:00
Juan Jose Garcia Ripoll
2e1b5463e0 Logical pathnames are now uppercased 2010-06-03 20:41: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
86fd17197c Function get_string_start_end() rewritten to provide more useful error messages 2010-02-28 12:00:53 +01:00
Juan Jose Garcia Ripoll
01e227c402 Replaced many uses of type_of() with specialized macros (ECL_BIT_VECTOR_P, ECL_BASE_STRING_P, etc) 2010-02-28 01:09:13 +01:00
Juan Jose Garcia Ripoll
86c211a6a1 Optimize ecl-inl.h for small cons and use of ecl_unlikely. New macros ECL_CONSP, ECL_LISTP, ECL_ATOM, ECL_SYMBOLP 2010-02-27 09:47:05 +01:00
Juan Jose Garcia Ripoll
6e4d572bfb Tag many error checks using ecl_unlikely 2010-02-26 10:43:37 +01:00
Juan Jose Garcia Ripoll
53a1d16b4d Replace many uses of FEwrong_type_argument with *_{nth,only}_arg 2010-02-26 09:13:03 +01:00
Juan Jose Garcia Ripoll
9da71f93a9 Replaced ecl_check_type_string with FEwrong_type_*_arg 2010-02-25 22:22:12 +01:00
Juan Jose Garcia Ripoll
e0a268376f Normalize names after @(defun tags so that the appear in the TAGS file. 2010-02-24 08:17:37 +01:00
Juan Jose Garcia Ripoll
bed20ae0c9 In ecl_merge_pathnames(), the version type :default overrides the version of the
default pathname.
2010-02-17 19:59:48 +01:00
Juan Jose Garcia Ripoll
4dabdb645f ecl_merge_pathnames() now admits a version type :default which chooses the appropriate version number for the pathname: NIL for a directory, :NEWEST for a file. 2010-02-17 19:51:21 +01:00
Juan Jose Garcia Ripoll
4e2a7d1d43 PATHNAME-MATCH-P now uses the same pattern syntax as DIRECTORY 2009-12-19 23:10:33 +01:00
Juan Jose Garcia Ripoll
9400d37101 src/c/pathname.d,unixfsys.d: added support for Windows UNC pathnames 2009-11-27 15:47:26 +01:00