Opened 15 years ago

Closed 15 years ago

#309 closed task (wontfix)

Relax main method signature requirements

Reported by: zirkel Owned by:
Priority: major Milestone:
Component: model Version: 1.1
Keywords: Cc:

Description

Right now main is required to have one of two signatures.

int main()
int main(int argc, char* argv[])

In the C99 standard, main can have other equivalent signatures. In example.c, we use

int main(int argc, char** argv)

It is also legal for these types to be replaced with equivalent typedef names.

Change History (3)

comment:1 by Stephen Siegel, 15 years ago

Is it possible for the Model Builder to just replace these alternate parameters with the one standard one?
It will really simplify the model module.

comment:2 by zirkel, 15 years ago

I could probably do that.

comment:3 by Stephen Siegel, 15 years ago

Resolution: wontfix
Status: newclosed

Pushing problem onto the ast2model module.

Note: See TracTickets for help on using tickets.