Xref: utzoo comp.lang.c:8485 comp.sys.ibm.pc:13586 Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!ames!lll-tis!lll-winken!lll-lcc!pyramid!wjvax!miker From: miker@wjvax.UUCP (Michael Ryan) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: C declaration styles Message-ID: <1238@wjvax.UUCP> Date: 23 Mar 88 18:44:10 GMT Organization: Watkins-Johnson Co., San Jose Lines: 30 Summary: easier done than said In article <8695@tut.cis.ohio-state.edu>, mdf@tut.cis.ohio-state.edu (Mark D. Freeman) writes: > Another great idea: make your declarations look like this... > > void foo(int x, double y) /* DECLARATION */ > > [ use grep to create listings ] > Mark D. Freeman (614) 262-1418 why not use the cdecl keyword , as supported by Msoft 5.0 .... void foo(int x, double y); /*only if you have prototypes */ /* if you do prototypes or not, as well as cdecl or not */ void cdecl foo( int x, double y) { .... if your compiler does not support this syntax, 'cdecl', then declare in your software-wide #include file ... #define cdecl ... then you can have cross compatible software AND your grep'ed [ fgrep ] listings. did you say 'D', you meant 'aDa'... michael -- ==== *michael j ryan *{..!pyramid,..!decwrl!qubix}!wjvax!miker *Watkins-Johnson Co., San Jose CA : (408) 435 1400 x3079 * above views are not necessarily those of Watkins-Johnson Co.