[BACK]Return to term_ascii.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/term_ascii.c between version 1.38 and 1.39

version 1.38, 2014/10/28 17:36:19 version 1.39, 2014/10/28 18:49:33
Line 19 
Line 19 
   
 #include <sys/types.h>  #include <sys/types.h>
   
   #include <assert.h>
 #if HAVE_WCHAR  #if HAVE_WCHAR
 #include <locale.h>  #include <locale.h>
 #endif  #endif
Line 337  ascii_uc2str(int uc)
Line 338  ascii_uc2str(int uc)
         "j",    "DZ",   "Dz",   "dz",   "'\bG", "'\bg", "HV",   "W",          "j",    "DZ",   "Dz",   "dz",   "'\bG", "'\bg", "HV",   "W",
         "`\bN", "`\bn", "A",    "a",    "'\bAE","'\bae","O",    "o"};          "`\bN", "`\bn", "A",    "a",    "'\bAE","'\bae","O",    "o"};
   
         if (uc < 0)          assert(uc >= 0);
                 return("<?>");  
         if ((size_t)uc < sizeof(tab)/sizeof(tab[0]))          if ((size_t)uc < sizeof(tab)/sizeof(tab[0]))
                 return(tab[uc]);                  return(tab[uc]);
         return(mchars_uc2str(uc));          return(mchars_uc2str(uc));

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

CVSweb