mirror of
https://github.com/gnustep/libs-back.git
synced 2025-06-01 09:42:17 +00:00
2004-11-28 Matt Rice <ratmice@yahoo.com>
* Source/x11/XGGLFormat.m (-initWithAttributes:,append,append1): Add missing curly brackets, fix append and append1 macros so they can safely be used without curly brackets. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20392 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
85868f4307
commit
5876c20dba
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-11-28 Matt Rice <ratmice@yahoo.com>
|
||||||
|
|
||||||
|
* Source/x11/XGGLFormat.m (-initWithAttributes:,append,append1): Add
|
||||||
|
missing curly brackets, fix append and append1 macros so they can safely
|
||||||
|
be used without curly brackets.
|
||||||
|
|
||||||
2004-11-28 Richard Frith-Macdonald <rfm@gnu.org>
|
2004-11-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Tools/gpbs.m: When run as daemon, re-execute with --no-fork flag
|
* Tools/gpbs.m: When run as daemon, re-execute with --no-fork flag
|
||||||
|
|
|
@ -69,12 +69,14 @@
|
||||||
NSMutableData *data = [NSMutableData data];
|
NSMutableData *data = [NSMutableData data];
|
||||||
MAKE_DISPLAY(dpy);
|
MAKE_DISPLAY(dpy);
|
||||||
|
|
||||||
#define append(a, b) v1 = a;v2 = b;[data appendBytes: &v1 length: sizeof(v1)];\
|
#define append(a, b) do {v1 = a;v2 = b;[data appendBytes: &v1 length: sizeof(v1)];\
|
||||||
[data appendBytes: &v2 length: sizeof(v2)]
|
[data appendBytes: &v2 length: sizeof(v2)];} while (0)
|
||||||
#define append1(a) v1 = a;[data appendBytes: &v1 length: sizeof(v1)]
|
#define append1(a) do {v1 = a;[data appendBytes: &v1 length: sizeof(v1)];} while (0)
|
||||||
|
|
||||||
if (GSglxMinorVersion (dpy) < 3)
|
if (GSglxMinorVersion (dpy) < 3)
|
||||||
append1 (GLX_RGBA);
|
{
|
||||||
|
append1 (GLX_RGBA);
|
||||||
|
}
|
||||||
|
|
||||||
while(*ptr)
|
while(*ptr)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue