URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
struct _XtTextSource {
|
struct _XtTextSource {
|
/* ... */
|
/* ... */
|
void (* SetSelection)();
|
void (* SetSelection)();
|
/* ... */
|
/* ... */
|
};
|
};
|
|
|
typedef struct _XtTextSource *XtTextSource;
|
typedef struct _XtTextSource *XtTextSource;
|
|
|
typedef struct _TextPart {
|
typedef struct _TextPart {
|
XtTextSource source;
|
XtTextSource source;
|
/* ... */
|
/* ... */
|
} TextPart;
|
} TextPart;
|
|
|
typedef struct _TextRec {
|
typedef struct _TextRec {
|
/* ... */
|
/* ... */
|
TextPart text;
|
TextPart text;
|
} TextRec;
|
} TextRec;
|
|
|
typedef struct _TextRec *TextWidget;
|
typedef struct _TextRec *TextWidget;
|
|
|
|
|
void XtTextUnsetSelection(w)
|
void XtTextUnsetSelection(w)
|
TextWidget w; /* original is: Widget w; */
|
TextWidget w; /* original is: Widget w; */
|
{
|
{
|
register TextWidget ctx = (TextWidget) w;
|
register TextWidget ctx = (TextWidget) w;
|
void (*nullProc)() = 0;
|
void (*nullProc)() = 0;
|
|
|
/*
|
/*
|
* the following line causes the error, when optimizing:
|
* the following line causes the error, when optimizing:
|
*/
|
*/
|
|
|
if (ctx->text.source->SetSelection != nullProc) {
|
if (ctx->text.source->SetSelection != nullProc) {
|
|
|
foo();
|
foo();
|
|
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.