Welcome, Guest. Please login or register.

Author Topic: Does SASC have a secret C99 switch?  (Read 3040 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Does SASC have a secret C99 switch?
« on: December 03, 2005, 12:40:38 PM »
VBCC is handy as a C99 compiler, although it doesn't implement everything in the C99 specification. That said, I haven't had any problems with it.
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Does SASC have a secret C99 switch?
« Reply #1 on: December 03, 2005, 03:11:06 PM »
Quote

Piru wrote:

Regardless C++ isn't C.


True. If you write good clean C code, it should compile fine under C++ but there are more caveats than just the non implicit void * cast. You'd have to be unlucky to run into them, however.

For AmigaOS, the only real syntactical gotcha I ever stumbled across was the library base structure name / library base pointer name issue which was down the the deprecation of the 'struct' keyword beyond defining the structure:

struct IntuitionBase* IntuitionBase;

is fine in C, but in ANSI C++ it caused problems.

IntuitionBase* IntuitionBase;

was also a problem, I had to use

IntuitionBase* ::IntuitionBase;

:-)
int p; // A