[cc65] void structures (non-ANSI C feature)

Date view Thread view Subject view

From: Francesco Sblendorio (sblendorio.f_at_libero.it)
Date: 2003-05-06 10:51:58


I can't declare void data structure as local variables. Is it normal?
The error raised is:
test.c(6): Error: Expression expected
test.c(6): Error: Illegal type
test.c(6): Error: Illegal type
test.c(6): Error: Variable `var' has unknown size
test.c(6): Error: `;' expected
test.c(6): Error: `;' expected


The example: this code will compile:

---------------------------------
#include <stdio.h>

void var = {'c', 96, 300};

int main()
{
 printf("Hello\n");
 return 0;
}

---------------------------------


while, the following will not:


----------------------------------
#include <stdio.h>

int main()
{
 void var = {'c', 96, 300};
 printf("Hello\n");
 return 0;
}
----------------------------------



----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-05-06 10:55:14 CEST