gap-system / ward

Code generation tool needed for HPC-GAP
Boost Software License 1.0
3 stars 7 forks source link

C99 support #36

Open ChrisJefferson opened 7 years ago

ChrisJefferson commented 7 years ago

Ward does not support C99-style variable declarations (the Int i = 0 at the start of the for loop)

for (Int i = 0; i < HookCount; ++i) {
     struct InterpreterHooks * hook = activeHooks[i];
    if (hook && hook->visitStat) { (hook->visitStat)(stat); } 
};
rbehrends commented 7 years ago

A related C99 issue is the support for variable declarations that occur in the middle of a statement block and that also need to be handled properly.