-
Notifications
You must be signed in to change notification settings - Fork 230
(master) kdrive: parentheses around macro argument symbols #2940
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
base: master
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -351,8 +351,8 @@ extern const KdOsFuncs *kdOsFuncs; | |
| #define KdGetScreenPriv(pScreen) ((KdPrivScreenPtr) \ | ||
| dixLookupPrivate(&(pScreen)->devPrivates, kdScreenPrivateKey)) | ||
| #define KdSetScreenPriv(pScreen,v) \ | ||
| dixSetPrivate(&(pScreen)->devPrivates, kdScreenPrivateKey, v) | ||
| #define KdScreenPriv(pScreen) KdPrivScreenPtr pScreenPriv = KdGetScreenPriv(pScreen) | ||
| dixSetPrivate(&(pScreen)->devPrivates, kdScreenPrivateKey, (v)) | ||
| #define KdScreenPriv(pScreen) KdPrivScreenPtr pScreenPriv = KdGetScreenPriv((pScreen)) | ||
|
Contributor
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. Function parentheses already serve as parentheses. |
||
|
|
||
| /* kcmap.c */ | ||
| void | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,7 +65,7 @@ | |
| #define DEV_INPUT_EVENT_PREFIX_LEN (sizeof(DEV_INPUT_EVENT_PREFIX) - 1) | ||
| #endif | ||
|
|
||
| #define AtomFromName(x) MakeAtom(x, strlen(x), 1) | ||
| #define AtomFromName(x) MakeAtom((x), strlen((x)), 1) | ||
|
Contributor
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. Function/Macro parentheses already serve as parentheses. |
||
|
|
||
| #define KD_KEY_COUNT 248 | ||
| #define KD_MIN_KEYCODE 8 | ||
|
|
@@ -2120,7 +2120,7 @@ KdWakeupHandler(ScreenPtr pScreen, int result) | |
| KdProcessSwitch(); | ||
| } | ||
|
|
||
| #define KdScreenOrigin(pScreen) (&(KdGetScreenPriv(pScreen)->screen->origin)) | ||
| #define KdScreenOrigin(pScreen) (&(KdGetScreenPriv((pScreen))->screen->origin)) | ||
|
Contributor
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. Function/Macro parentheses already serve as parentheses. |
||
|
|
||
| static Bool | ||
| KdCursorOffScreen(ScreenPtr *ppScreen, int *x, int *y) | ||
|
|
||
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.
Function/Macro parentheses already serve as parentheses.