回文章列表
作者Straydog.bbs@jingmeihuhu.sdorm.ntnu.edu.tw (汪汪狗 看板: itoc
標題推文未讀修改疑問
時間景華街的天空 (2007/05/08 Tue 15:56:47)
小弟按照itoc大大04年11月推文修改成未讀的討論串
修改完post.c出去make linux install update之後出現Error
如下
但是我不知道fhdr這要怎麼修改(訊息是否是未是fhdr未宣告或未建立的意思呢@@)

目前還沒有成功修改的經驗,請各位大大不吝賜教,謝謝

post.c: In function `post_history':
post.c:948: `fhdr' undeclared (first use in this function)
post.c:948: (Each undeclared identifier is reported only once
post.c:948: for each function it appears in.)
make[1]: *** [post.o] Error 1
make[1]: Leaving directory `/home/bbs/src/maple'
make: *** [linux] Error 2
-bash-2.05b$ vi post.c
-bash-2.05b$ vi post.c
-bash-2.05b$ make linux install update
make[1]: Entering directory `/home/bbs/src/maple'
gcc -DLINUX -O2 -pipe -fomit-frame-pointer -Wunused -I../include   -c -o post.o post.c
post.c: In function `post_history':
post.c:948: `fhdr' undeclared (first use in this function)
post.c:948: (Each undeclared identifier is reported only once
post.c:948: for each function it appears in.)
make[1]: *** [post.o] Error 1
make[1]: Leaving directory `/home/bbs/src/maple'
make: *** [linux] Error 2
-bash-2.05b$


但是只找到兩個post_history
一個在這個段落
    hdr_fpath(fpath, dir, hdr);

    /* Thor.990204: 為考慮more 傳回值 */
    if ((key = more(fpath, FOOTER_POST)) < 0)
      break;

    post_history(xo, hdr);
    strcpy(currtitle, str_ttl(hdr->title));

另一個在這個段落

  static void
  post_history(xo, hdr)             /* 將 hdr 這篇加入 brh */
  XO *xo;
  HDR *hdr;
{
    time_t prev, chrono, next;
    time_t prevS, scorestamp, nextS;
    int unreadC, unreadS;
    int pos, top;
    char  *dir;
  HDR buf;

--
  Origin:  景美高級班˙景華街的天空  jingmeihuhu.sdorm.ntnu.edu.tw 
  Author: Straydogstraydog.sdorm.ntnu.edu.tw 發表
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻