[comp.sys.ibm.pc] Query: include file syntax

kneller@socrates.ucsf.edu (Don Kneller) (07/16/87)

I'm in the process of writing an automatic dependency generator and
need to know the syntax for including files in various languages
running on the PC.

For example, the syntax for C is:
	#[ whitespace ]include "file"	- and -
	#[ whitespace ]include <file>

	where # must be the first character on the line.

For masm it is:
	include file

Also, I would like to know the directories that are searched in trying
to find the include file.  For Microsoft C, the INCLUDE environment variable
is used, and directories can be added to the include path with the -I
command line switch of "cl".  For Microsoft MASM, additional paths can
also be added with -I.

The languages I would like to hear about are:
	Turbo C
	Turbo PASCAL (and other PASCALs)
	FORTRAN (both Microsoft and other)
	any others with include files

Also, I need to know the filename extensions used to describe the source
files and their include files.  For example, C uses .c and .h, MASM
uses .asm and .mac (and perhaps .inc)

Thanks in advance,
	Don
-----
	Don Kneller
UUCP:	...ucbvax!ucsfcgl!kneller
ARPA:	kneller@cgl.ucsf.edu
BITNET:	kneller@ucsfcgl.BITNET