On 16 Dec 2005, at 18:38, Marco Bambini wrote:
The REALconstant structure is defined as:
struct REALconstant
{
const char *declaration;
void* reserved1;
int reserved2;
};
so I have written this:
REALconstant glConstants[] = {
{"VERSION_1_4 = 1", NULL, 0},
{"ACCUM = &h0100", NULL, 0},
{"LOAD = &h0101", NULL, 0},
{"RETURN = &h0102", NULL, 0},
{"MULT = &h0103", NULL, 0},
{"ADD = &h0104", NULL, 0},
{"NEVER = &h0200", NULL, 0},
{"LESS = &h0201", NULL, 0}
};
is this right?
It doesn't seems because RB gives me an error while using my plugin
"cannot compile a constant with no name"
GL.return looks suspicious.
Try prefixing everything with k.
It's simple
Replace all {" with {"k and then pray :)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
From Fri 16 Dec 2005 20:09:27 +0100
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
Received: from lists.realsoftware.com (209.198.132.125) by realsoftware.com
with ESMTP (Eudora Internet Mail Server 3.1.3);
Fri, 16 Dec 2005 13:09:39 -0600
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id DD97EF57E5B; Fri, 16 Dec 2005 13:09:40 -0600 (CST)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de
[80.67.18.13])
by lists.realsoftware.com (Postfix) with ESMTP id 622E9F57E4E
for <realbasic-plugins at lists dot realsoftware dot com>;
Fri, 16 Dec 2005 13:09:36 -0600 (CST)
Received: (qmail 21231 invoked from network); 16 Dec 2005 19:09:27 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 115 dot
239])
(envelope-sender <support at monkeybreadsoftware dot info>)
by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP
for <realbasic-plugins at lists dot realsoftware dot com>;
16 Dec 2005 19:09:27 -0000
To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
In-Reply-To: <C72528A8-B0DC-4EFD-A9B7-D24874E7F924 at elfdata dot com>
From: support at monkeybreadsoftware dot info (Christian Schmitz)
Date: Fri, 16 Dec 2005 20:09:27 +0100
Message-ID: <1h7oims dot 1aupf16yc26ioM%support at monkeybreadsoftware dot info>
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.7 (Mac OS X version 10.4.3)
Subject: Re: How to define constants?
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot
com>
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com
Theodore H. Smith <delete at elfdata dot com> wrote:
GL.return looks suspicious.
That is a thing which annoys me a lot.
The constant is x.for or x.return and this should be no problem to
parse!
Mfg
Christian
--
Around eleven thousand functions in one REALbasic plug-in.
The Monkeybread Software Realbasic Plugin.
<http://www.monkeybreadsoftware.info/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|