作者shane123 (家产有八十七亿  ﰩ
看板PttCurrent
标题请问我若要加功能上去
时间Thu May 26 07:13:57 2005
假设我想在文章列表按p的话执行某个function
那我到底要把这个地方写在
bbs.c
const onekey_t read_comms[] = {
show_filename, // Ctrl('A')
NULL, // Ctrl('B')
NULL, // Ctrl('C')
..
..
function, //p
还是写在
read.c
static int
i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem,
int bid, int bottom_line)
case 'p':
function(headers);
break;
我试过只有写在read.c里面才能动
若是写在bbs.c完全没办法让function动起来
能给点提示吗??
thanks~
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.62.97.25