cleaned up c99-isms

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28903 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2009-10-28 18:46:31 +00:00
parent 1f84a6a21f
commit 71d0bbdcaa
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2009-10-28 Riccardo Mottola <rmottola@users.sf.net>
* Source/x11/XGGLFormat.m
cleaned up c99-isms
2009-10-25 Thomas Gamper <icicle@cg.tuwien.ac.at>
* Source/x11/XGServerWindow.m

View file

@ -77,10 +77,11 @@
forAttribute: (NSOpenGLPixelFormatAttribute)attrib
forVirtualScreen: (GLint)screen
{
int error;
NSAssert((fbconfig != NULL || visualinfo != NULL) && configurationCount > 0,
NSInternalInconsistencyException);
int error;
if (glxminorversion >= 3)
{
@ -308,6 +309,9 @@ do \
- (id)initWithAttributes:(NSOpenGLPixelFormatAttribute *)attribs
{
NSMutableData * glxAttributes;
NSDictionary * dsattributes;
self = [super init];
fbconfig = NULL;
@ -319,8 +323,8 @@ do \
glxminorversion = [XGGLPixelFormat glxMinorVersion];
NSDebugMLLog(@"GLX", @"minor version %d", glxminorversion);
NSMutableData * glxAttributes = [self assembleGLXAttributes:attribs];
NSDictionary * dsattributes = [GSCurrentServer() attributes];
glxAttributes = [self assembleGLXAttributes:attribs];
dsattributes = [GSCurrentServer() attributes];
if (glxminorversion >= 3)
{