Path: utzoo!attcan!uunet!cs.utexas.edu!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!hacgate!ashtate!dbase!awd
From: awd@dbase.UUCP (Alastair Dallas)
Newsgroups: comp.sys.mac.programmer
Subject: THINK C 4.0 Goodies
Keywords: C extensions
Message-ID: <199@dbase.UUCP>
Date: 16 Aug 89 21:03:56 GMT
Organization: Ashton Tate Devlopment Center Glendale, Calif.
Lines: 23

I've discovered a couple of interesting C extensions in THINK C that no
one has mentioned yet:

- #define _H_Include
  in a file called Include.h will cause the compiler to search the .h only
  once, as if you used the (now cliche) construct:
  #ifndef _H_Include
  #define _H_Include 1
    ... your stuff here ...
  #endif

- structures can be open-ended without causing a compiler error, as in:
  struct {
	Rect bBox;
	int sizObj;
	char data[];
	} object;
  This is one of the few things that Pascal examples make this C programmer
  envious of (the other being with..do).

Any comments?

/alastair/