"bar" here stands for an array of enums, as you see.
Somewhere in my prog (after correctly allocating needed number of foo`s and bar`s) I have to access Nth bar in foo. I'm currently using this line:
/tmp/ccBC1D3W.s: Assembler messages:
/tmp/ccBC1D3W.s:191: Error: suffix or operands invalid for `call'
/tmp/ccBC1D3W.s:198: Error: suffix or operands invalid for `call'
/tmp/ccBC1D3W.s:204: Error: suffix or operands invalid for `call'
That's what happen when I try myfoo->bar[N].
Name:
Anonymous2008-05-09 4:54
>>4 /tmp/ccBC1D3W.s: Assembler messages:
Now you have 2 problems...
Name:
Anonymous2008-05-09 4:58
It compiles, but does not assemble? Truly, you now have two problems.
Name:
Anonymous2008-05-09 5:02
Your compiler and/or assembler is/are broken. Get a new one/two.
Name:
Anonymous2008-05-09 5:15
Well, maybe it(they) is(are), GCC 3.3.4 by the way. Then I will just stick with the working solution, but first I'd ask you is it possible to write a macro that will substitute myfoo->bar[N] for that fucked line form >>1?
Name:
Anonymous2008-05-09 5:23
GCC
Now you have 3 problems.
Name:
Anonymous2008-05-09 5:52
Your compiler has too many bits. Remove some of them.
Name:
Anonymous2008-05-09 7:46
You could make a function that returns the value of the n'th thing in the enumerator.