View previous topic :: View next topic |
Author |
Message |
heromyth
Joined: 26 Nov 2006 Posts: 46
|
Posted: Wed Jun 20, 2007 7:53 pm Post subject: Support for the newest keywords |
|
|
I have downloaded the schooner-3. However, I have found something should be updated. Here is an example:
Code: | void glAlphaFunc( GLenum func, GLclampf ref); |
the word ref now is a keyword. |
|
Back to top |
|
|
Phrozen
Joined: 07 Aug 2007 Posts: 8
|
Posted: Tue Aug 07, 2007 2:42 pm Post subject: |
|
|
Actually I found the same problem while using schooner-3 and the last DMD compiler.
Code: |
void glAlphaFunc(GLenum func, GLclampf ref);
void glStencilFunc(GLenum func, GLint ref, GLuint mask);
typedef void(* PFNGLINDEXFUNCEXTPROC)(GLenum func, GLclampf ref);
|
Compiler throws errors cause ref is a reserved keyword now. Here's the output, hope this helps. Cause I'm new using schooner and i really wanna get started.
Quote: |
D:\Code\D\schooner-3-win32-dmd\gl\imports\gl.di(2866): found 'ref' when expecting ')'
D:\Code\D\schooner-3-win32-dmd\gl\imports\gl.di(2866): semicolon expected following function declaration
D:\Code\D\schooner-3-win32-dmd\gl\imports\gl.di(2866): Declaration expected, not ')'
D:\Code\D\schooner-3-win32-dmd\gl\imports\gl.di(3110): found 'ref' when expecting ')'
D:\Code\D\schooner-3-win32-dmd\gl\imports\gl.di(3110): semicolon expected following function declaration
D:\Code\D\schooner-3-win32-dmd\gl\imports\gl.di(3110): Declaration expected, not ','
D:\Code\D\schooner-3-win32-dmd\gl\imports\gl.di(11003): found 'ref' when expecting ')'
D:\Code\D\schooner-3-win32-dmd\gl\imports\gl.di(11003): semicolon expected to close typedef declaration
D:\Code\D\schooner-3-win32-dmd\gl\imports\gl.di(11003): Declaration expected, not ')'
|
Thanks. Does someone know how can I start using Schooner bypassing this thing?? |
|
Back to top |
|
|
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Wed Aug 08, 2007 11:45 pm Post subject: |
|
|
That problem can be easily fixed by just changing the name 'ref' to something else. Like 'ref_' or 'refr' or "bobs_your_uncle".
But I think with the latest DMD you'll still have problems after that. I did at least. I'll post a patch. |
|
Back to top |
|
|
|