🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1648

Indent converts =op assignments by default

#1648
From: Alexander Lehmann
Date: Tue, 29 Sep 1992 14:45
20 lines
1454 bytes
Forgive me if this has been addressed before, but I visit this not fequently
enough to catch all infos.

I recently used indent to reformat some C code for debugging (which consited of
macros almost completely) and found a problem with indent.

As mentionend in the man-page, indent can convert (very) old style assignments
of the form var =op value into the usual form of var op= value. This is
controlled by a command swith -osa and -nosa to turn the feature on and off.
The man-page says that -nosa (i.e. no conversion) is the default, but apparently
-osa is used. This can be kind of tricky since a statement like var =-42;
would be converted into the different form without being noticed (no error).

To fix this, simply add -nosa to the ~/.indent.pro file.


				I hope this helps ... bye ... Alex
-- 
Alexander Lehmann                      | "Wopp"
alexlehm@iti.informatik.th-darmstadt.de|         -  ( THHGTTG Pt.3 )
Technical Details
Message-ID: <1992Sep29.144522.34049@news.th-darmstadt.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.th-darmstadt.de!alexlehm

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.th-darmstadt.de!alexlehm
From: alexlehm@iti.informatik.th-darmstadt.de (Alexander Lehmann)
Subject: Indent converts =op assignments by default
Sender: news@news.th-darmstadt.de (The News System)
Message-ID: <1992Sep29.144522.34049@news.th-darmstadt.de>
Date: Tue, 29 Sep 1992 14:45:22 GMT
Nntp-Posting-Host: sun4.iti.informatik.th-darmstadt.de
Organization: TH Darmstadt
Lines: 20