[問題] pmore

看板PttCurrent作者 (分子旋光性)時間16年前 (2009/10/10 18:22), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
新增 pmore2 之後 M3 就編不起來了~ 麻煩 piaip 大神幫忙看一下~ 我想應該是之前的寫法 是直接把按鍵傳回 現在是傳回FULLUPDATE M3 沒有這個 gcc -DBSD44 -O2 -pipe -fomit-frame-pointer -Wunused -I../include -c pmore.c pmore.c: In function 'pmore2': pmore.c:2453: error: 'FULLUPDATE' undeclared (first use in this function) pmore.c:2453: error: (Each undeclared identifier is reported only once pmore.c:2453: error: for each function it appears in.) *** Error code 1 (行數僅供參考) 是這幾行 /* ------------------ EXITING KEYS --------------------- */ case KEY_LEFT: flExit = 1, retval = FULLUPDATE; break; case 'q': flExit = 1, retval = FULLUPDATE; break; 我這裡有個小小的patch #ifdef M3_USE_PMORE ... #define RELATE_PREV '[' #define RELATE_NEXT ']' #define READ_NEXT 'j' #define READ_PREV 'k' + #define FULLUPDATE XO_HEAD -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.249.58 ※ 編輯: hrs113355 來自: 140.112.249.58 (10/10 18:24)
文章代碼(AID): #1Aq61y1s (PttCurrent)
討論串 (同標題文章)
文章代碼(AID): #1Aq61y1s (PttCurrent)