回文章列表
作者om.bbs@cpu.tfcis.org (om) 看板: itoc
標題[問題] Windtop 轉 maple-itoc
時間動力核心 (2009/12/07 Mon 19:58:51)
我手上有一個之前一個站的資料 (版本應該是windtop  maple 2.36左右)

依照在這個板爬文的做法

其中一個步驟要把舊資料中的struct.h 的ACCT 和BRD

抄到windtop.h 的userec 和boardheader

因為原ACCT 和userec 是相同的所以不用更改

可是BRD 比boardheader 多了下面這幾樣

  usint expiremax;        /* Expire Max Post */
  usint expiremin;        /* Expire Min Post */
  usint expireday;        /* Expire old Post */
  usint n_reads;          /* 看板閱讀累計 times/hour */
  usint n_posts;          /* 看板發表累計 times/hour */
  usint n_news;           /* 看板轉信累計 times/hour */
  usint n_bans;           /* 看板檔信累計 times/hour */
  char  reserve[100];     /* 保留未用 */

如果把他們註解掉再編譯的話,編譯到windtop2brd.c就會過不了

因為有用到被註解掉的那些東西,如下

if (bh.expireday && bh.expiremax && bh.expiremin)
{
   sprintf(buf, "%s\t%d\t%d\t%d\n", brd.brdname, bh.expireday,
                                    bh.expiremax, bh.expiremin);
   f_cat("etc/expire.conf", buf);
}

請問這個地方要怎麼改掉呢?也註解掉嗎?

--
=[:摃��:﹎Origin ]|[  Ocpu.tfcis.org  ]|[�搟說:]=
=[:摃�╱�:Author ]|[60-198-35-85.dynamic.tfn.e]|[�:]=
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻