ENIGMA Forums

General fluff => Announcements => Topic started by: Josh @ Dreamland on November 27, 2009, 03:24:50 pm

Title: Victory
Post by: Josh @ Dreamland on November 27, 2009, 03:24:50 pm
Code: [Select]
No error.
Parse time: 380 milliseconds
++++++++++++++++++++++++++++++++++++++++++++++++

Macros (518) [+]
Variables [+]
>>d
Define: acos
  acos:  Function with 1 parameters, returning double  Dereference path: (params = 1)</group>

After I had what I thought to be the basics down, all the Windows C headers parsed without error. The Linux ones, however... It was a constant uphill battle.
Math.h employs such faggotry as calling __CONCAT on itself, which only works if it's called internally as an alias. For example, the first code works, the second does not:

Code: [Select]
#define __CONCAT(a, b) a ## b
#define TRIPLE_CONCAT(a,b, c) ALIAS_CONCAT( __CONCAT(a,b),c)
#define ALIAS_CONCAT(a, b) __CONCAT(a,b)
int TRIPLE_CONCAT(X,Y,Z);
Code: [Select]
#define __CONCAT(a, b) a ## b
#define TRIPLE_CONCAT(a,b, c) __CONCAT( __CONCAT(a,b),c)
int TRIPLE_CONCAT(X,Y,Z);

I'm not entirely sure why, really, and I don't care. Both work for me, and I see no reason to change it just because GCC only likes the first.

Anyway, more work to do. (Along with two research papers and a "scientific" paper to write). I'm a bit swamped, as usual.

Title: Re: Victory
Post by: Fede-lasse on November 28, 2009, 06:37:37 am
Quote from: Josh @ Dreamland
I'm not entirely sure why
Quote from: Josh @ Dreamland
I'm a bit swamped,
Quote from: Josh @ Dreamland
and I don't care.
----------
Quote from: Josh @ Dreamland
After I had what I thought to be the basics down, all the
Quote from: Josh @ Dreamland
"scientific" paper
Quote from: Josh @ Dreamland
see no reason to change it
Quote from: Josh @ Dreamland
because
Quote from: Josh @ Dreamland
I
Quote from: Josh @ Dreamland
Parse time
----------
Quote from: Josh @ Dreamland
however...
Quote from: Josh @ Dreamland
Linux
Quote from: Josh @ Dreamland
only works if it's called internally as an alias.
[/size]

:v:

Sorry, I just couldn't help it.
Title: Re: Victory
Post by: kkg on November 28, 2009, 11:20:25 am
Fede that didn't even make sense ):
Title: Re: Victory
Post by: Josh @ Dreamland on November 28, 2009, 11:37:36 am
Fede's going a little stir-crazy over the amount of time since I've made a release. Maybe someone will take the incentive to splice R3 and R4... hehehe. Right.
Title: Re: Victory
Post by: Fede-lasse on November 28, 2009, 01:07:00 pm
Really? For me? You don't have to do that :ohdear:

:eng101:
:eng99:









:eng101:
Title: Re: Victory
Post by: Josh @ Dreamland on November 28, 2009, 08:01:30 pm
Okay, I won't.
Title: Re: Victory
Post by: notachair on November 28, 2009, 08:34:59 pm
Really? For me? You don't have to do that :ohdear:

:eng101:
:eng99:









:eng101:
:pseudo: