Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Steve Farris asked whether 4GL had a #define or equivalent. ram_cnc said there is no such syntax. Jonathan Leffler explained # is a comment in I4GL, so the C preprocessor can be used only if other comment styles are used, though it disturbs line numbers, and he had an m4 approach preserving them. Marco Greco pointed to the fglpp preprocessor script and the IIUG repository.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
ram_cnc — — source: Informix-list mailing list archive (1991-1998)
In article <38F25D8B.287D77D7@mindspring.com>,
steve farris <nlymbo@mindspring.com> wrote:
> Hello,
> is there a #define (or equiv.) in 4gl. It doesn't seem to work
> ex.
>
> #define NOTFOUND -1
>
> Thanks!
I am assuming that your questions are specific to 4GL and not D4GL. 4GL
is a programming language with very easy adaptability and usage. There
is no such syntax as #define.
You define variables like:
define i smallint
define j,k integer
define curr_num like yourtablename.column
Hope this helps.
Ram S.
> --
> steve farris
> flamenco/classical guitar site at http://www.mindspring.com/~nlymbo
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
steve farris — — source: Informix-list mailing list archive (1991-1998)
Hello,
is there a #define (or equiv.) in 4gl. It doesn't seem to work
ex.
#define NOTFOUND -1
Thanks!
--
steve farris
flamenco/classical guitar site at http://www.mindspring.com/~nlymbo
↪ replying to steve farris
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
steve farris wrote:
> is there a #define (or equiv.) in 4gl. It doesn't seem to work
> ex.
>
> #define NOTFOUND -1
Well, #define is a comment, of course.
There is no standard way to do it, partly because # is a
comment in I4GL. However, if you are disciplined and only
use the other two comment conventions (-- and { }), you can
preprocess your files into 4gl source code with the C pre-
processor. The problem is that the C preprocessor messes up
the line numbering in the code for you; it includes the bodies
of all the headers in the file, leaving blank lines (typically)
in lieu of the #defines.
I did once implement a system using m4 which rather carefully
preserved the original line numbering. I could let you have
a copy if you ask nicely :-)
--
Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net)
Guardian of DBD::Informix v1.00.PC1 -- see http://www.perl.com/CPAN
#include <disclaimer.h>
↪ replying to steve farris
Marco Greco — — source: Informix-list mailing list archive (1991-1998)
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.