~ubuntu-branches/ubuntu/hardy/belocs-locales-data/hardy

« back to all changes in this revision

Viewing changes to localedata/tests-mbwc/tst_wcwidth.c

  • Committer: Bazaar Package Importer
  • Author(s): Denis Barbier
  • Date: 2005-05-17 22:09:38 UTC
  • Revision ID: james.westby@ubuntu.com-20050517220938-814x2iu6tkj3ml2o
Tags: upstream-2.3.4
ImportĀ upstreamĀ versionĀ 2.3.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  WCWIDTH: int wcwidth (wchar_t wc);
 
3
*/
 
4
 
 
5
#define TST_FUNCTION wcwidth
 
6
 
 
7
#include "tsp_common.c"
 
8
#include "dat_wcwidth.c"
 
9
 
 
10
int
 
11
tst_wcwidth (FILE * fp, int debug_flg)
 
12
{
 
13
  TST_DECL_VARS (int);
 
14
  wchar_t wc;
 
15
 
 
16
  TST_DO_TEST (wcwidth)
 
17
  {
 
18
    TST_HEAD_LOCALE (wcwidth, S_WCWIDTH);
 
19
    TST_DO_REC (wcwidth)
 
20
    {
 
21
      TST_GET_ERRET (wcwidth);
 
22
      wc = TST_INPUT (wcwidth).wc;
 
23
      ret = wcwidth (wc);
 
24
 
 
25
      if (debug_flg)
 
26
        {
 
27
          fprintf (stdout, "wcwidth() [ %s : %d ] ret  = %d\n", locale,
 
28
                   rec + 1, ret);
 
29
        }
 
30
 
 
31
      TST_IF_RETURN (S_WCWIDTH)
 
32
      {
 
33
      }
 
34
    }
 
35
  }
 
36
 
 
37
  return err_count;
 
38
}