/[bison]/bison/lib/mbswidth.c
ViewVC logotype

Diff of /bison/lib/mbswidth.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by eggert, Sat Nov 23 07:08:51 2002 UTC revision 1.3 by eggert, Fri Feb 28 09:00:22 2003 UTC
# Line 1  Line 1 
1  /* Determine the number of screen columns needed for a string.  /* Determine the number of screen columns needed for a string.
2     Copyright (C) 2000-2002 Free Software Foundation, Inc.     Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
3    
4     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 21  Line 21 
21  # include <config.h>  # include <config.h>
22  #endif  #endif
23    
24    /* Get mbstate_t, mbrtowc(), mbsinit(), wcwidth().  This must be
25       included before "mbswidth.h", because UnixWare 7.1.1 <wchar.h>
26       declares its own mbswidth and we want mbswidth.h's "#define
27       mbswidth gnu_mbswidth" to take effect after <wchar.h> is
28       included.  */
29    #if HAVE_WCHAR_H
30    # include <wchar.h>
31    #endif
32    
33  /* Specification.  */  /* Specification.  */
34  #include "mbswidth.h"  #include "mbswidth.h"
35    
# Line 32  Line 41 
41  /* Get isprint().  */  /* Get isprint().  */
42  #include <ctype.h>  #include <ctype.h>
43    
 /* Get mbstate_t, mbrtowc(), mbsinit(), wcwidth().  */  
 #if HAVE_WCHAR_H  
 # include <wchar.h>  
 #endif  
   
44  /* Get iswprint(), iswcntrl().  */  /* Get iswprint(), iswcntrl().  */
45  #if HAVE_WCTYPE_H  #if HAVE_WCTYPE_H
46  # include <wctype.h>  # include <wctype.h>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26