mirror of https://github.com/tildeclub/ex-vi.git
* Some build fixes for diet libc have been made.
This commit is contained in:
parent
bac07daedd
commit
3a23482887
1
Changes
1
Changes
|
@ -35,6 +35,7 @@ Release ...
|
|||
following 'p' vi command pasted the text affected by the former vi command.
|
||||
It now pastes the text of the last yank or delete even if that was an ex
|
||||
command.
|
||||
* Some build fixes for diet libc have been made.
|
||||
|
||||
Release 12/2/04
|
||||
* Support for multibyte character locales was added.
|
||||
|
|
4
ex_put.c
4
ex_put.c
|
@ -73,7 +73,7 @@
|
|||
|
||||
#ifndef lint
|
||||
#ifdef DOSCCS
|
||||
static char sccsid[] = "@(#)ex_put.c 1.27 (gritter) 1/13/05";
|
||||
static char sccsid[] = "@(#)ex_put.c 1.28 (gritter) 1/16/05";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -1120,12 +1120,14 @@ ttcharoff(void)
|
|||
long vdis;
|
||||
|
||||
errno = 0;
|
||||
#ifndef __dietlibc__
|
||||
vdis = fpathconf(1, _PC_VDISABLE);
|
||||
if (errno)
|
||||
/*
|
||||
* Use the old value of 0377, hope it is not
|
||||
* the user's favourite character.
|
||||
*/
|
||||
#endif /* !__dietlibc__ */
|
||||
vdis = '\377';
|
||||
#else /* !_PC_VDISABLE */
|
||||
#define vdis '\377';
|
||||
|
|
|
@ -70,12 +70,12 @@
|
|||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* Sccsid @(#)ex_version.c 1.115 (gritter) 1/13/05
|
||||
* Sccsid @(#)ex_version.c 1.116 (gritter) 1/16/05
|
||||
*/
|
||||
|
||||
#include "ex.h"
|
||||
|
||||
static char *versionstring = "@(#)Version 4.0 (gritter) 1/13/05";
|
||||
static char *versionstring = "@(#)Version 4.0 (gritter) 1/16/05";
|
||||
|
||||
void
|
||||
printver(void)
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
|
||||
#ifndef lint
|
||||
#ifdef DOSCCS
|
||||
static char sccsid[] = "@(#)ex_vget.c 1.26 (gritter) 11/27/04";
|
||||
static char sccsid[] = "@(#)ex_vget.c 1.27 (gritter) 1/16/05";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -579,10 +579,14 @@ imacpush(int *ip, int canundo)
|
|||
char buf[BUFSIZ], *bp = buf;
|
||||
int n;
|
||||
|
||||
#ifdef MB
|
||||
do {
|
||||
n = wctomb(bp, *ip&TRIM);
|
||||
bp += n;
|
||||
} while (*ip++);
|
||||
#else /* !MB */
|
||||
while (*bp++ = *ip++);
|
||||
#endif /* !MB */
|
||||
macpush(buf, canundo);
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
|
||||
#ifndef lint
|
||||
#ifdef DOSCCS
|
||||
static char sccsid[] = "@(#)ex_vput.c 1.41 (gritter) 1/13/05";
|
||||
static char sccsid[] = "@(#)ex_vput.c 1.42 (gritter) 1/16/05";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -600,8 +600,10 @@ vinschar(int c)
|
|||
return c;
|
||||
}
|
||||
vputchar(c);
|
||||
#ifdef MB
|
||||
if (insmc1 == 0 && (vtube0[destcol]&(TRIM|MULTICOL))==MULTICOL)
|
||||
vtube0[destcol] = INVBIT;
|
||||
#endif /* MB */
|
||||
if (DEPTH(vcline) * WCOLS + !value(REDRAW) >
|
||||
(destline - LINE(vcline)) * WCOLS + destcol)
|
||||
return c;
|
||||
|
@ -686,9 +688,11 @@ vinschar(int c)
|
|||
endim();
|
||||
if (inscol + insmc0 != linend)
|
||||
doomed -= inssiz + insmc1;
|
||||
#ifdef MB
|
||||
if (insmc1 == 0 && c != '\t' &&
|
||||
vtube0[inscol+insmc0] & MULTICOL)
|
||||
vtube0[inscol+insmc0] = INVBIT;
|
||||
#endif /* MB */
|
||||
do
|
||||
vputchar(c);
|
||||
while (--inssiz);
|
||||
|
|
Loading…
Reference in New Issue