Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!hao!oddjob!gargoyle!ihnp4!cbosgd!clyde!burl!codas!mtune!westmark!dave
From: dave@westmark.UUCP (Dave Levenson)
Newsgroups: comp.lang.c
Subject: Re: $include
Message-ID: <275@westmark.UUCP>
Date: Thu, 26-Nov-87 22:59:26 EST
Article-I.D.: westmark.275
Posted: Thu Nov 26 22:59:26 1987
Date-Received: Sun, 29-Nov-87 21:50:39 EST
References: <10528@brl-adm.ARPA>
Organization: Westmark, Inc., Warren, NJ, USA
Lines: 47

In article <10528@brl-adm.ARPA>, PAWKA@NOSC-TECR.arpa writes:

> 	While looking through some source for a SUN 3/160 running BSD 4.2, I
> found the following:
> 
> #include 
> #include ...
> .
> .
> .
> #include 
> $include 
> 
> What's with the "$include", we have quite a few of these sprinkled throughout?


If you use Informix Embedded SQL/C (structured query language
embedded in C) their pre-processor allows you to mix SQL with C.
Each SQL statement is preceded by $.  You generally include a few
Informix headers with $include statements.  Could you have been
looking at ESQL/C code?

It might look something like:

$include sqlca.h
.
.
.
int get_stock_no(name)
$string name;
{
	$int i;

	$database bar;

	$select stock_number from item_table into $i where
	   item_name = $name;

	$close database;

	return i;
}
-- 
Dave Levenson
Westmark, Inc.		A node for news.
Warren, NJ USA
{rutgers | clyde | mtune | ihnp4}!westmark!dave