Article View: gnu.misc.discuss
Article #2215Re: C code formatters (e.g. GNU indent) handling embedded SQL?
From: Francesco Potorti`
Date: Thu, 21 Mar 1996 00:00
Date: Thu, 21 Mar 1996 00:00
27 lines
2036 bytes
2036 bytes
In article <314EEA15.1B85@PentaTechInc.com> posted on Tue, 19 Mar 1996 "Nels P. Olsen" <NelsOlsen@PentaTechInc.com> writes: Is there a way to get C code formatters (e.g. GNU indent) to handle Embedded SQL, either by indenting according to a different set of rules, or just leaving it alone (to allow hand-formatting)? From the indent manual: Disabling Formatting ==================== Formatting of C code may be disabled for portions of a program by embedding special "control comments" in the program. To turn off formatting for a section of a program, place the disabling control comment `/* *INDENT-OFF* */' on a line by itself just before that section. Program text scanned after this control comment is output precisely as input with no modifications until the corresponding enabling comment is scanned on a line by itself. The disabling control comment is `/* *INDENT-ON* */', and any text following the comment on the line is also output unformatted. Formatting begins again with the -- Francesco Potorti` Voice: +39-50-593203 Satellite Network Group Operator: +39-50-593111 CNUCE-CNR, Via Santa Maria 36 Fax: +39-50-904052(G3)/904051(G4) 56126 Pisa - Italy Email: F.Potorti@cnuce.cnr.it
Technical Details
Message-ID:
<x47mwea9su.fsf@fly.cnuce.cnr.it>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<314EEA15.1B85@PentaTechInc.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10fec3,d64578a11a02512 X-Google-Attributes: gid10fec3,public X-Google-Thread: 103b8b,d64578a11a02512 X-Google-Attributes: gid103b8b,public X-Google-Thread: 1025b4,d64578a11a02512 X-Google-Attributes: gid1025b4,public From: F.Potorti@cnuce.cnr.it (Francesco Potorti`) Subject: Re: C code formatters (e.g. GNU indent) handling embedded SQL? Date: 1996/03/21 Message-ID: <x47mwea9su.fsf@fly.cnuce.cnr.it> X-Deja-AN: 143431620 sender: pot@fly.cnuce.cnr.it references: <314EEA15.1B85@PentaTechInc.com> fcc: ~/mail/SMAIL-96 organization: CNUCE-CNR, Via S.Maria 36, Pisa - Italy +39-50-593211 newsgroups: gnu.misc.discuss,comp.databases.oracle,gnu.emacs.help