summaryrefslogtreecommitdiff
path: root/Src
AgeCommit message (Collapse)AuthorFilesLines
2006-03-07Changed struct listnode to use "prev" for the previous pointer,Wayne Davison2-24/+24
not "last".
2006-03-07Changed some structures to avoid gcc's type-punned warnings.Wayne Davison34-1066/+1043
2006-03-0722328, modified: add -o option to compaddPeter Stephenson3-2/+6
add _list_files helper to handle new file-list style for _path_files
2006-03-07Tweaked a couple comments.Wayne Davison1-2/+2
2006-03-0622321: optimize 22318.Bart Schaefer3-17/+36
2006-03-0322318: uniquifying special arrays was brokenPeter Stephenson1-1/+2
2006-03-0222317: exit status from code backgrounded in functionPeter Stephenson4-40/+105
22277, 22281, tweaks: standardize behaviour of wait builtin with trapped signals
2006-03-01Added "mod_export" to the declaration of makecommaspecial().Wayne Davison1-1/+1
2006-02-20Optimized away a recently-added call to strlen().Wayne Davison1-1/+1
2006-02-19Made the realocation of the line buffer in add_match_data() use aWayne Davison1-8/+9
little more optimal size. Also tweaked the code just a little.
2006-02-1922284: add --disable-dynamic-nss configure switch to disable use of ↵Clint Adams6-13/+38
getpw*(), getgr*(), initgroups() functions.
2006-02-18The code in add_match_data() that looks for invalid charactersWayne Davison1-25/+26
now properly parses the string as metafied.
2006-02-16Made ${(A)=name:=word} (which is an array assignment) not split onWayne Davison1-14/+10
quoted whitespace, just like the new ${1+"$@"} handling.
2006-02-15Fixed another ${name+word} problem when word consisted of anWayne Davison1-29/+19
array followed by a scalar. Also updated several comments.
2006-02-15- Fixed: setopt shwordsplit; set 1 '2 3' 4; print -l ${1+"$@"}Wayne Davison1-36/+89
- Fixed: setopt shwordsplit; foo='1 2'; print -l ${==foo+$foo} - Fixed: emulate sh; touch '1 2'; print -l ${1:-*\ *} - Improved multsub() and its comments.
2006-02-13Replaced a flawed look-behind algorithm for backslash detectionWayne Davison1-8/+8
with one that looks forward (avoiding an accidental quoting of a char after a "\\" sequence).
2006-02-13Made add_match_data() look for invalid multibyte chars in theWayne Davison1-4/+61
names and substitute $'\123' sequences for them.
2006-02-13Call makecommaspecial() when we notice we're completing insideWayne Davison1-0/+5
an open brace list.
2006-02-13Added the makecommaspecial() routine that completion uses whenWayne Davison1-0/+14
it is completing filenames into an open brace list.
2006-02-09Call ZS_memchr() instead of plain memchr() so that suffix-removalWayne Davison1-2/+2
works again.
2006-02-09Define ZS_memchr() as either wmemchr() or memchr().Wayne Davison1-0/+2
2006-02-0722200: process text wasn't unmetafied for output.Peter Stephenson1-4/+18
2006-02-0722198: do always set HOME in native emulationPeter Stephenson2-5/+25
2006-02-07Added the missing return value to a newly-added "return".Wayne Davison1-1/+1
2006-02-0622195: don't set HOME in the shellPeter Stephenson5-16/+20
2006-01-2822169: hook function zle-keymap-select called when $KEYMAP changesPeter Stephenson1-1/+17
2006-01-17Tweaked the code that handles %D so that: (1) we don't free() a NULLWayne Davison1-4/+3
pointer (we use zsfree() instead), and (2) we avoid a rare bug that could call free() on same memory twice (e.g. "%D{}%D").
2006-01-13Got rid of unused-variable compiler warning when compiling aWayne Davison1-1/+1
non-multibyte zsh.
2006-01-13Got rid of some superfluous STOUC() calls (such as the ones I addedWayne Davison4-13/+13
for the arg of calls to nicechar(), which doesn't need this).
2006-01-13A better version of my last change.Wayne Davison1-12/+4
2006-01-13Metafy the output of the ztrftime() string since that's what theWayne Davison1-1/+12
prompt expects and some date names might not be ASCII.
2006-01-13Values being stored in an array or a hash needed to be metafiedWayne Davison1-5/+5
(using META_DUP) instead of just duplicated via ztrdup().
2006-01-13If we are saving the ztrftime() value in a variable, we now metafyWayne Davison1-1/+1
the string (using META_DUP) instead of duplicating it via ztrdup().
2006-01-12The new "eol" var was being set in singlerefresh(), but not accessed.Wayne Davison1-1/+1
2006-01-12- When mbrtowc() returns -2 when given all the remaining chars in aWayne Davison1-21/+30
string, set an end-of-line flag and avoid calling mbrtowc() again for any of the incomplete characters that remain in the string. - Use "mbs" for the multi-byte state variable name (for consistency). - Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t -1 and -2 values (respectively).
2006-01-12- Use "mbs" for the multi-byte state variable name (for consistency).Wayne Davison1-5/+5
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t -1 and -2 values (respectively).
2006-01-12- When mbrtowc() returns -2 when given all the remaining chars in aWayne Davison4-31/+42
string, set an end-of-line flag and avoid calling mbrtowc() again for any of the incomplete characters that remain in the string. - Use "mbs" for the multi-byte state variable name (for consistency). - Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t -1 and -2 values (respectively).
2006-01-12- The return value of mbsrtowcs() is also a size_t (like mbrtowc()).Wayne Davison1-21/+33
- When mbrtowc() returns -2 when given all the remaining chars in a string, set an end-of-line flag and avoid calling mbrtowc() again for any of the incomplete characters that remain in the string. - Use "mbs" for the multi-byte state variable name (for consistency). - Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t -1 and -2 values (respectively).
2006-01-12- The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-61/+71
assign it to an int and then check for negativity, as that won't work on a system where an int is larger than a size_t. - When mbrtowc() returns -2 when given all the remaining chars in a string, set an end-of-line flag and avoid calling mbrtowc() again for any of the incomplete characters that remain in the string. - Use STOUC() when passing a char value to nicechar(). - Use "mbs" for the multi-byte state variable name (for consistency). - Be sure to reset the mbs state if mbrtowc() returns -1. - Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t -1 and -2 values (respectively).
2006-01-12Define MB_INCOMPLETE and MB_INVALID for MULTIBYTE_SUPPORT.Wayne Davison1-0/+3
2006-01-11Tweaked the code to handle mbrtowc() converting '\0' the same way asWayne Davison1-11/+20
the other callers do. Also, changed the variable name to 'cnt'.
2006-01-11Decided to use a switch() in mb_niceformat().Wayne Davison1-7/+12
2006-01-11The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-6/+6
assign it to an int and then check if it's <= 0, as that won't work on a system where an int is larger than a size_t.
2006-01-11The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-5/+7
assign it to an int and then check if it's >= 0, as that won't work on a system where an int is larger than a size_t.
2006-01-11The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-3/+6
assign it to an int and then check if it's < 0, as that won't work on a system where an int is larger than a size_t.
2006-01-1022151: bug outputting here-strings from which etc. when already quotedPeter Stephenson1-10/+11
2006-01-09Changed the name of the "ret" variable in mb_niceformat() to "cnt"Wayne Davison1-8/+7
because "ret" is usually used for a variable name to hold the return value of the function. Also, changed the test when checking for a \0 to only check if "cnt" is 0, since we must always change a value of 0 to 1.
2006-01-09Changed the name of the "ret" variable in mb_niceformat() to "cnt"Wayne Davison1-8/+8
because "ret" is usually used for a variable name to hold the return value of the function. Also, changed the test when checking for a \0 to one that checks if "cnt" is 0, since we must always change a value of 0 to 1.
2006-01-09A test for (size_t)-1 needed to check for (size_t)-2 too.Wayne Davison1-1/+1
2006-01-09The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-10/+9
assign it to an int and then check if it's < 0, as that won't work on a system where an int is larger than a size_t. Also, the code that handled partial multibyte characters (that were assembled from multiple bytes of a metafied string) was not advancing past all the assembled bytes, nor was it handling the decoding of a '\0' char (it looks like it could have infinite looped in that case).