mysql的代碼table.h
。有在課本下面的代碼C中的雙指針問題(next爲單指針,prev爲雙指針)
typedef struct st_table_share
{
...
struct st_table_share * next, /* Link to unused shares */
**prev;
,我們usally有
sometype *next, *prev;
,但在這裏使用**prev
代替*prev
。什麼原因使用雙指針prev
?
也許如果你檢查它在代碼中的用處,你會看到爲什麼...... – jswolf19 2011-05-27 03:46:28