mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-02 07:51:09 +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>
|
2005-01-26 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* 20752: Src/system.h, Src/Zle/zle.h, Src/Zle/zle_hist.c,
|
* 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
|
else
|
||||||
y = ZLENULSTR, len = 0;
|
y = ZLENULSTR, len = 0;
|
||||||
sizeline(zlell - zlecs + len);
|
sizeline(zlell - zlecs + len);
|
||||||
memmove((char *)(zleline + len), (char *)(zleline + zlecs),
|
ZS_memmove(zleline + len, zleline + zlecs, zlell - zlecs);
|
||||||
(zlell - zlecs) * ZLE_CHAR_SIZE);
|
|
||||||
ZS_memcpy(zleline, y, len);
|
ZS_memcpy(zleline, y, len);
|
||||||
zlell = zlell - zlecs + len;
|
zlell = zlell - zlecs + len;
|
||||||
zlecs = len;
|
zlecs = len;
|
||||||
|
|
|
@ -727,6 +727,7 @@ typedef wchar_t *ZLE_STRING_T;
|
||||||
#define ZLETAB L'\t'
|
#define ZLETAB L'\t'
|
||||||
#define ZLENULSTR L""
|
#define ZLENULSTR L""
|
||||||
#define ZS_memcpy wmemcpy
|
#define ZS_memcpy wmemcpy
|
||||||
|
#define ZS_memmove wmemmove
|
||||||
#define ZC_icntrl iswcntrl
|
#define ZC_icntrl iswcntrl
|
||||||
#else
|
#else
|
||||||
typedef int ZLE_CHAR_T;
|
typedef int ZLE_CHAR_T;
|
||||||
|
@ -738,5 +739,6 @@ typedef unsigned char *ZLE_STRING_T;
|
||||||
#define ZLETAB '\t'
|
#define ZLETAB '\t'
|
||||||
#define ZLENULSTR ""
|
#define ZLENULSTR ""
|
||||||
#define ZS_memcpy memcpy
|
#define ZS_memcpy memcpy
|
||||||
|
#define ZS_memmove memmove
|
||||||
#define ZC_icntrl icntrl
|
#define ZC_icntrl icntrl
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue