bug1.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 38 行

C
38
字号
struct _XtTextSource {	/* ... */    	void (* SetSelection)();	/* ... */    };typedef struct _XtTextSource *XtTextSource;typedef struct _TextPart {    	XtTextSource source;	/* ... */} TextPart;typedef struct _TextRec {	/* ... */	TextPart    text;} TextRec;typedef struct _TextRec      *TextWidget;void XtTextUnsetSelection(w)    TextWidget          w;		   /* original is: Widget w; */{    register TextWidget ctx = (TextWidget) w;    void (*nullProc)() = 0;/* * the following line causes the error, when optimizing: */    if (ctx->text.source->SetSelection != nullProc) {	foo();    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?