mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-26 18:01:03 +02:00
* 20753: use ZS_memmove instead of memmove.
This commit is contained in:
parent
85e0b5f377
commit
efab849310
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-01-26 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 20753: Src/system.h, Src/Zle/zle_params.c: use ZS_memmove
|
||||
instead of memmove.
|
||||
|
||||
2005-01-26 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 20752: Src/system.h, Src/Zle/zle.h, Src/Zle/zle_hist.c,
|
||||
|
|
|
@ -242,8 +242,7 @@ set_lbuffer(UNUSED(Param pm), char *x)
|
|||
else
|
||||
y = ZLENULSTR, len = 0;
|
||||
sizeline(zlell - zlecs + len);
|
||||
memmove((char *)(zleline + len), (char *)(zleline + zlecs),
|
||||
(zlell - zlecs) * ZLE_CHAR_SIZE);
|
||||
ZS_memmove(zleline + len, zleline + zlecs, zlell - zlecs);
|
||||
ZS_memcpy(zleline, y, len);
|
||||
zlell = zlell - zlecs + len;
|
||||
zlecs = len;
|
||||
|
|
|
@ -727,6 +727,7 @@ typedef wchar_t *ZLE_STRING_T;
|
|||
#define ZLETAB L'\t'
|
||||
#define ZLENULSTR L""
|
||||
#define ZS_memcpy wmemcpy
|
||||
#define ZS_memmove wmemmove
|
||||
#define ZC_icntrl iswcntrl
|
||||
#else
|
||||
typedef int ZLE_CHAR_T;
|
||||
|
@ -738,5 +739,6 @@ typedef unsigned char *ZLE_STRING_T;
|
|||
#define ZLETAB '\t'
|
||||
#define ZLENULSTR ""
|
||||
#define ZS_memcpy memcpy
|
||||
#define ZS_memmove memmove
|
||||
#define ZC_icntrl icntrl
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue