/[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.3 by eggert, Fri Feb 28 09:00:22 2003 UTC revision 1.4 by eggert, Wed Mar 12 23:08:11 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, 2001, 2002, 2003 Free Software Foundation, Inc.     Copyright (C) 2000-2002 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    
 /* Get mbstate_t, mbrtowc(), mbsinit(), wcwidth().  This must be  
    included before "mbswidth.h", because UnixWare 7.1.1 <wchar.h>  
    declares its own mbswidth and we want mbswidth.h's "#define  
    mbswidth gnu_mbswidth" to take effect after <wchar.h> is  
    included.  */  
 #if HAVE_WCHAR_H  
 # include <wchar.h>  
 #endif  
   
24  /* Specification.  */  /* Specification.  */
25  #include "mbswidth.h"  #include "mbswidth.h"
26    
# Line 41  Line 32 
32  /* Get isprint().  */  /* Get isprint().  */
33  #include <ctype.h>  #include <ctype.h>
34    
35    /* Get mbstate_t, mbrtowc(), mbsinit(), wcwidth().  */
36    #if HAVE_WCHAR_H
37    # include <wchar.h>
38    #endif
39    
40  /* Get iswprint(), iswcntrl().  */  /* Get iswprint(), iswcntrl().  */
41  #if HAVE_WCTYPE_H  #if HAVE_WCTYPE_H
42  # include <wctype.h>  # include <wctype.h>

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

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