1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

Put prototypes for the functions exported by wcwidth.c in putty.h, and remove

one from terminal.c.  Have wcwidth.c include putty.h to get its prototypes.

[originally from svn r2377]
This commit is contained in:
Ben Harris 2002-12-29 15:08:27 +00:00
parent 4345935c22
commit 873b95deff
3 changed files with 8 additions and 1 deletions

View File

@ -599,6 +599,12 @@ char *cp_enumerate (int index);
char *cp_name(int codepage);
void get_unitab(int codepage, wchar_t * unitab, int ftype);
/*
* Exports from wcwidth.c
*/
int wcwidth(wchar_t ucs);
int wcswidth(const wchar_t *pwcs, size_t n);
/*
* Exports from mscrypto.c
*/

View File

@ -1542,7 +1542,6 @@ void term_out(Terminal *term)
term->logctx)
logtraffic(term->logctx, (unsigned char) c, LGTYP_ASCII);
{
extern int wcwidth(wchar_t ucs);
int width = 0;
if (DIRECT_CHAR(c))
width = 1;

View File

@ -8,6 +8,8 @@
#include <stddef.h>
#include "putty.h"
struct interval {
unsigned short first;
unsigned short last;