-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 176 alt #178
Issue 176 alt #178
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,15 +22,22 @@ void logofill(void); | |
|
||
#define GR_SIZE 60000 | ||
|
||
#define checkX { \ | ||
#define checkX(ret) { \ | ||
if (have_x < 0) real_window_init(); \ | ||
if (!have_x) { \ | ||
err_logo(BAD_GRAPH_INIT,NIL); \ | ||
return ret; \ | ||
} \ | ||
} | ||
/* XXX: Can this be safely used? */ | ||
#define checkXnoreturn { \ | ||
if (have_x < 0) real_window_init(); \ | ||
if (!have_x) { \ | ||
err_logo(BAD_GRAPH_INIT,NIL); \ | ||
return; \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if this is going to cause an error to be missed somewhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the other hand, it possibly needs to return an error code to actually have this noticed? |
||
} \ | ||
} | ||
|
||
#define prepare_to_draw {checkX; placate_x();} | ||
#define prepare_to_draw {checkXnoreturn; placate_x();} | ||
#define done_drawing XFlush(dpy) | ||
extern void placate_x(); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be checking for non-char values here?