add the new function utf_ptradj() which does the same as utf_widthadj()
except it doesn't return a value and is much cheaper (no internal con- version to UCS-2, just range checking on the multibytes)
This commit is contained in:
3
sh.h
3
sh.h
@@ -8,7 +8,7 @@
|
||||
/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
|
||||
/* $OpenBSD: tty.h,v 1.5 2004/12/20 11:34:26 otto Exp $ */
|
||||
|
||||
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.54 2006/11/09 00:11:39 tg Exp $"
|
||||
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.55 2006/11/09 00:39:27 tg Exp $"
|
||||
#define MKSH_VERSION "R29 2006/11/08"
|
||||
|
||||
#if HAVE_SYS_PARAM_H
|
||||
@@ -1059,6 +1059,7 @@ int x_bind(const char *, const char *, int, int);
|
||||
/* UTF-8 hack stuff */
|
||||
int utf_widthadj(const char *, const char **);
|
||||
#define utf_width(x) utf_widthadj(x, NULL);
|
||||
void utf_ptradj(char *, char **);
|
||||
/* eval.c */
|
||||
char *substitute(const char *, int);
|
||||
char **eval(char **, int);
|
||||
|
Reference in New Issue
Block a user