Xref: utzoo comp.lang.c:33570 alt.religion.computers:2027 Path: utzoo!utgpu!cs.utexas.edu!yale!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!edcastle!aipna!rjc From: rjc@uk.ac.ed.cstr (Richard Caley) Newsgroups: comp.lang.c,alt.religion.computers Subject: Re: Argument declaration style (Was: ANSI C prototypes) Message-ID: Date: 8 Nov 90 19:11:46 GMT References: <1990Nov2.030556.27759@ccu.umanitoba.ca> <3933.27353319@cc.helsinki.fi> <_1X6_32@xds13.ferranti.com> <3944.27367fb2@cc.helsinki.fi> <1990Nov06.233654.29974@dirtydog.ima.isc.com> Sender: news@aipna.ed.ac.uk Organization: Center for Speech Technology Research Lines: 25 In-reply-to: bzs@world.std.com's message of 7 Nov 90 01:58:43 GMT In article bzs@world.std.com (Barry Shein) writes: [how to grep for declarations...] how about % alias defof 'awk "/^\!:1\(/,/\)/ {print}" *.c' % defof lpc_synth lpc_synth(struct utterance *utterance, struct diphone_set *diphones, /* must be `open' */ struct residual *residual) (or variations thereof for your indentation style). extension to print file name, line number and the type of the function (which is on the line before) are left as an exorcise to the interested reader. (I don't bother since if want to know where it is I build a TAGS table and I rarely forget the return type, just the arguments). -- rjc@uk.ac.ed.cstr ``I saw the wheels of neilism rolling my way and now I live life in the bus lane'' - Half Man Half Biscuit, `Architecture and Morality'