lance@hermix.UUCP (Lance Ellinghouse) (11/07/89)
Does anyone have a MPW Tool for cleaning up and reformatting C 3.0 (ANSI) code? I can write one up, but it will take time from a project that needs to be done... (I have over 150K lines of C code to work on and it is done by a number of different people with different coding conventions). Source code would be great! That way I could change it (if necessary) to my format/style. Thanks, -- Lance Ellinghouse Mark V Systems, Ltd. UUCP: ...!hermix!lance ARPA: hermix!lance@anes.ucla.edu
dorourke@polyslo.CalPoly.EDU (David M. O'Rourke) (11/08/89)
lance@hermix.UUCP (Lance Ellinghouse) writes: >Does anyone have a MPW Tool for cleaning up and reformatting >C 3.0 (ANSI) code? > >Source code would be great! That way I could change it (if necessary) >to my format/style. I know I'd be interested in something like this, and I also believe there are many on the net who'd like this as well. I do know CTools does this, but it's limited to 32K and that not very useful for large C projects. :-( I guess what I'm trying to say is that if anyone does find something like this could they please post it to comp.binaries. :-) Thanks. -- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\|///////////////////////////////////////// David M. O'Rourke____________________|_____________dorourke@polyslo.calpoly.edu | Graduating in March of 1990, with a BS in Computer Science & need a Job. | |_____________________________________________________________________________|
puklich@sparky.UUCP (Blayne Puklich) (11/08/89)
In article <1989Nov8.035109.18683@polyslo.CalPoly.EDU> dorourke@polyslo.CalPoly.EDU (David M. O'Rourke) writes: >lance@hermix.UUCP (Lance Ellinghouse) writes: >>Does anyone have a MPW Tool for cleaning up and reformatting >>C 3.0 (ANSI) code? >> >>Source code would be great! That way I could change it (if necessary) >>to my format/style. > > I know I'd be interested in something like this, and I also believe there >are many on the net who'd like this as well. > > I do know CTools does this, but it's limited to 32K and that not very >useful for large C projects. :-( > > I guess what I'm trying to say is that if anyone does find something like >this could they please post it to comp.binaries. :-) Well, I just replied to Lance, not thinking that others may even care about this, but was I wrong. I have source for cpp and indent at my site. cpp isn't quite as flexible as indent, and may be impossible to port to the Mac (it uses execl, other Unix-specific system calls which are meaningless on the Mac). I haven't ported either to the Mac yet, because I'm just too damn lazy. Anyway, these are available on sparky.nodak.edu (134.129.125.254) in my ~src directory (/student/ndsu/ancient/puklich/src). Feel free to ftp these as you want, both are as PD as I can tell. indent would be the one I'd recommend. Also, if/when someone gets a working copy for MPW, make sure to post a binary of the source to somewhere so we can all have it. ||+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|| || Blayne Puklich nopuklic@Plains.NoDak.EDU "I think I'm going || || NDSU Student ACM nopuklic@ndsuvax.BITNET bald..." || || Vice-Chairperson NU087763@NDSUVM1.BITNET -- Rush, from Caress || || North Dakota State University, Fargo, ND of Steel, 1975 || || (701) 237-4408 || || "Corvettes are the best thing man has ever invented." || ||-------------------------------------------------------------------------||
drc@claris.com (Dennis Cohen) (11/08/89)
lance@hermix.UUCP (Lance Ellinghouse) writes: >Does anyone have a MPW Tool for cleaning up and reformatting >C 3.0 (ANSI) code? Yes, it is published by MMC AD Systems and is called "C Programmer's Toolbox/MPW". It consists of 20 tools including CPrint (the one you requested). The retail list price is $295. All the tools support a very nice Commando interface. >I can write one up, but it will take time from a project that needs >to be done... (I have over 150K lines of C code to work on and it is done >by a number of different people with different coding conventions). >Source code would be great! That way I could change it (if necessary) >to my format/style. The sources to the unix tool, indent, is available from the uumac net archive. It looks like it could be ported to MPW without too many difficulties, but maintenance could be a nightmare as the code looked like coiled vermicelli to me -- which was the reason I went with a commercial, supported product. Dennis Cohen Claris Corp. **************************************************** Disclaimer: Any opinions expressed above are _MINE_! ****************************************************
6600pete@hub.UUCP (11/09/89)
From article <318@hermix.UUCP>, by lance@hermix.UUCP (Lance Ellinghouse): > Does anyone have a MPW Tool for cleaning up and reformatting > C 3.0 (ANSI) code? Go get the UNIX "indent" sources via anonymous ftp to uunet.uu.net. Pete Gontier : pete@cavevax.ucsb.edu; outgoing .UUCP addresses cause me grief Editor, Macker : Online Macintosh Programming Journal; mail for subscription Hire this kid : Mac, DOS, C, Pascal, asm, excellent communication skills Underground : Internet BBS via rlogin 128.111.41.100 -l bbs
kowalski@svax.cs.cornell.edu (Jeffrey Kowalski) (11/16/89)
In article <10662@claris.com> drc@claris.com (Dennis Cohen) writes: >lance@hermix.UUCP (Lance Ellinghouse) writes: > >>Does anyone have a MPW Tool for cleaning up and reformatting >>C 3.0 (ANSI) code? >Yes, it is published by MMC AD Systems and is called "C Programmer's >Toolbox/MPW". It consists of 20 tools including CPrint (the one you >requested). The retail list price is $295. All the tools support a >very nice Commando interface. > >>I can write one up, but it will take time from a project that needs >>to be done... (I have over 150K lines of C code to work on and it is done >>by a number of different people with different coding conventions). > >>Source code would be great! That way I could change it (if necessary) >>to my format/style. >The sources to the unix tool, indent, is available from the uumac net archive. >It looks like it could be ported to MPW without too many difficulties, but >maintenance could be a nightmare as the code looked like coiled vermicelli >to me -- which was the reason I went with a commercial, supported product. > >Dennis Cohen >Claris Corp. Why not get the one from GNU? Geez, it's free, tastes great and is less filling! Anonymous login to prep.ai.mit.edu, then cd to u2/emacs. Bin get indent-1.1.tar.Z then uncompress and tar extract. Yes, there are one or two things to make the code work as a tool, but nothing major. It was the first thing I ported to MPW. Mail me if you get stuck. DO NOT pay ca. $300 for a formatting utility that's out in the PD. Geez. Jeff Kowalski (jeff@acacia.cadif.cornell.edu or AppleLink U1309) "Opinions expressed don't even belong to me so buzz off"
peirce@claris.com (Michael Peirce) (11/16/89)
In article <34304@cornell.UUCP> kowalski@acacia.cadif.cornell.edu (Jeffrey Kowalski) writes: >Why not get the one from GNU? Geez, it's free, tastes great and is less >filling! Anonymous login to prep.ai.mit.edu, then cd to u2/emacs. Bin >get indent-1.1.tar.Z then uncompress and tar extract. >Yes, there are one or two things to make the code work as a tool, but nothing >major. It was the first thing I ported to MPW. >Mail me if you get stuck. DO NOT pay ca. $300 for a formatting utility that's >out in the PD. Geez. > >Jeff Kowalski (jeff@acacia.cadif.cornell.edu or AppleLink U1309) GNU software IS NOT IN THE PUBLIC DOMAIN. GNU software is covered by a strange copyright, termed a "copyleft" by the GNU people. The GNU people have produced some nice software, but they have choosen not to place it into the Public Domain. Rather, they require anyone using it to buy into their political philosphy. By using GNU software you are supporting their philosophy. See the GNU groups on usenet about what that philosophy is. (clue: they think intellectual property rights are wrong). I have choosen to never use GNU software. Others have choosen to do the same. Still others do support what GNU is all about and use GNU software. But please don't treat GNU software as Public Domain software. (They may sue you if you violate their copyright). Claris Corp. | Michael R. Peirce (a proud "software hoarder"!) -------------+-------------------------------------- | 5201 Patrick Henry Drive MS-C4 | Box 58168 | Santa Clara, CA 95051-8168 | (408) 987-7319 | AppleLink: peirce1 | Internet: peirce@claris.com | uucp: {ames,decwrl,apple,sun}!claris!peirce
kowalski@svax.cs.cornell.edu (Jeffrey Kowalski) (11/16/89)
In article <10680@claris.com> peirce@claris.com (Michael Peirce) writes: >In article <34304@cornell.UUCP> kowalski@acacia.cadif.cornell.edu (Jeffrey Kowalski) writes: >>Why not get the one from GNU? Geez, it's free, tastes great and is less >>filling! Anonymous login to prep.ai.mit.edu, then cd to u2/emacs. Bin >>get indent-1.1.tar.Z then uncompress and tar extract. >>Yes, there are one or two things to make the code work as a tool, but nothing >>major. It was the first thing I ported to MPW. >>Mail me if you get stuck. DO NOT pay ca. $300 for a formatting utility that's >>out in the PD. Geez. >> >>Jeff Kowalski (jeff@acacia.cadif.cornell.edu or AppleLink U1309) > >GNU software IS NOT IN THE PUBLIC DOMAIN. GNU software is covered by a >strange copyright, termed a "copyleft" by the GNU people. > >The GNU people have produced some nice software, but they have choosen not >to place it into the Public Domain. Rather, they require anyone using it >to buy into their political philosphy. By using GNU software you are >supporting their philosophy. See the GNU groups on usenet about what that >philosophy is. (clue: they think intellectual property rights are wrong). > >I have choosen to never use GNU software. Others have choosen to do the >same. Still others do support what GNU is all about and use GNU software. >But please don't treat GNU software as Public Domain software. (They may >sue you if you violate their copyright). > I misspoke in calling GNU-ware public domain software. I hope I won't get in any suits soon - my intention was to tell others of a low-cost solution to a potentaily costly problem. I have had much success with GNU software, though I'm not sure I agree with all of Richard Stallman's philosophical protests. Apple lovers beware that due to the recent suit (apple vs MS), GNU refuses to even look at macs. So, porting is often difficult. Like I said, I do not agree with gnu on all points, and I find little difficulty (morally) in porting a program that GNU got from Berkeley anyway! So, in conclusion (i hope), I will make an official version and post a binary after the holidays. Anyone with objections should mail me directly at jeff@acacia.cadif.cornell.edu. (I worked at Apple once upon a time Mr Pierce, so my heart's in the right place) Ever helpful, Jeff
jimc@isc-br.ISCS.COM (Jim Cathey) (11/22/89)
In article <10680@claris.com> peirce@claris.com (Michael Peirce) writes: >...to place it into the Public Domain. Rather, they require anyone using it >to buy into their political philosphy. By using GNU software you are Not quite. You're perfectly free to _use_ any GNU software you like for whatever purpose you like (regardless of your political beliefs), but if you wish to distribute products built out of any of the GNU source code then you must adhere to the terms of the copyleft. We use GNU emacs a lot around here, and we have no intention of giving away any of our product! :-) +----------------+ ! II CCCCCC ! Jim Cathey ! II SSSSCC ! ISC-Bunker Ramo ! II CC ! TAF-C8; Spokane, WA 99220 ! IISSSS CC ! UUCP: uunet!isc-br!jimc (jimc@isc-br.iscs.com) ! II CCCCCC ! (509) 927-5757 +----------------+ "With excitement like this, who is needing enemas?"