hns - 日記自動生成システム - Version 2.19.9

先月 2011年06月 来月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2011年06月03日(金) 旧暦 [n年日記] [更新:"2011/06/03 10:09:24"]

#1 [programming] anthy-9100h/src-diclib/logger.c

   22  static void
   23  do_log(int lv, const char *str, va_list arg)
   24  {
   25    if (lv < current_level) {
   26      return ;
   27    }
   28    fprintf(stderr, "Anthy: ");
   29    vfprintf(stderr, str, arg);
   30  }
   31
   32  void
   33  anthy_log(int lv, const char *str, ...)
   34  {
   35    va_list arg;
   36    if (lv > current_level) {
   37      return ;
   38    }
   39    va_start(arg, str);
   40    do_log(lv, str, arg);
   41    va_end(arg);
   42  }
何故 > < の向きが逆なのだろう ?
t-105@makoto 08:58:17/110603(..inputmethod/anthy)% uim-xim
uim <-> XIM bridge. Supporting multiple locales.
Using full-synchronous XIM event flow
libuim: [fatal] anthy_init() failed
libuim: All functionality has been disabled to save user application data.
libuim: [fatal] anthy_init() failed
libuim: [fatal] All functionality has been disabled to save user application data.
Supported conversion engines:
  None.
aborting...
本当は次の部分を見たかった
    71  anthy_init(void)
    72  {
    73    char *hfn;
    74    if (is_init_ok) {
    75      /* 2度初期化しないように */
    76      return 0;
    77    }
    78  
    79    /* 各サブシステムを順に初期化する */
    80    if (anthy_init_dic()) {
    81      anthy_log(0, "Failed to initialize dictionary.\n");
    82      return -1;
    83    }
    84  
    85    if (anthy_init_splitter()) {
    86      anthy_log(0, "Failed to init splitter.\n");
    87      return -1;
    88    }
    89    anthy_init_contexts();
    90    anthy_init_personality();
    91    anthy_infosort_init();
    92    anthy_relation_init();
    93  
    94    /**/
    95    default_encoding = ANTHY_EUC_JP_ENCODING;
    96    is_init_ok = 1;
    97    history_file = NULL;
    98    hfn = getenv("ANTHY_HISTORY_FILE");
    99    if (hfn) {
   100      history_file = strdup(hfn);
   101    }
   102  
   103    /**/
   104    return 0;
   105  }



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)