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:
ratmice 2004-11-29 00:19:46 +00:00
parent 85868f4307
commit 5876c20dba
2 changed files with 12 additions and 4 deletions

View file

@ -69,12 +69,14 @@
NSMutableData *data = [NSMutableData data];
MAKE_DISPLAY(dpy);
#define append(a, b) v1 = a;v2 = b;[data appendBytes: &v1 length: sizeof(v1)];\
[data appendBytes: &v2 length: sizeof(v2)]
#define append1(a) v1 = a;[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)];} while (0)
#define append1(a) do {v1 = a;[data appendBytes: &v1 length: sizeof(v1)];} while (0)
if (GSglxMinorVersion (dpy) < 3)
append1 (GLX_RGBA);
{
append1 (GLX_RGBA);
}
while(*ptr)
{