Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Those who can't write, write manuals.


devel / comp.unix.solaris / Re: SUMMARY: Converting K&R to ANSI C

SubjectAuthor
* Re: SUMMARY: Converting K&R to ANSI CKP KP
`* Re: SUMMARY: Converting K&R to ANSI Chume.spamfilter
 `- Re: SUMMARY: Converting K&R to ANSI CKP KP

1
Re: SUMMARY: Converting K&R to ANSI C

<5551c80e-60ac-40ac-b488-d8eb58e493d2n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=80&group=comp.unix.solaris#80

  copy link   Newsgroups: comp.unix.solaris
X-Received: by 2002:a05:620a:2844:b0:6b8:5f52:a6b5 with SMTP id h4-20020a05620a284400b006b85f52a6b5mr11881228qkp.351.1660578190762;
Mon, 15 Aug 2022 08:43:10 -0700 (PDT)
X-Received: by 2002:a25:be87:0:b0:67a:7054:c7bc with SMTP id
i7-20020a25be87000000b0067a7054c7bcmr10752421ybk.601.1660578190603; Mon, 15
Aug 2022 08:43:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.solaris
Date: Mon, 15 Aug 2022 08:43:10 -0700 (PDT)
In-Reply-To: <1992Jul22.140413.15855@ll.mit.edu>
Injection-Info: google-groups.googlegroups.com; posting-host=209.52.142.120; posting-account=ck3qSAoAAACvs2RQorfjIIWSqJFDc0az
NNTP-Posting-Host: 209.52.142.120
References: <1992Jul22.140413.15855@ll.mit.edu>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5551c80e-60ac-40ac-b488-d8eb58e493d2n@googlegroups.com>
Subject: Re: SUMMARY: Converting K&R to ANSI C
From: jungletr...@outlook.com (KP KP)
Injection-Date: Mon, 15 Aug 2022 15:43:10 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 5903
 by: KP KP - Mon, 15 Aug 2022 15:43 UTC

On Wednesday, July 22, 1992 at 7:04:13 AM UTC-7, Cynthia Eldridge wrote:
> I received many helpful replies in response to my plea for
> recommendations/comments/advice on the best way to convert
> a very large volume of Kernighan and Ritchie C (K&R) to ANSI-C
> (ACC). I asked several questions hoping to get an idea on the
> best way to convert our software. In particular, we are trying to
> decide whether we should convert our software all at once to ACC,
> perhaps locking it for weeks, or whether we should convert our
> software gradually.
> Basically, the 30 or so responses can be summed up as follows, with
> the total number of folks who mentioned the response in ():
> 1. Don't worry; the Sun compiler has special flags that will support
> a gradual transition. (11) These flags are:
> -Xt supports K&R and ACC; uses K&R semantics
> -Xa supports K&R and ACC; uses ACC semantics
> -Xc strictly ACC
> 2. Don't worry; gcc supports K&R and/or ACC. (16)
> 3. Require new projects and rewrites to be ACC; use the Sun compiler's
> -Xt flag for old projects. Clean up old projects gradually. (4)
> 4. Use lint. (4)
> 5. Protoize very useful; start with it. (4)
> 6. Cproto useful, but doesn't handle typedefs. (4) One person said it was
> "a bit of a pain" to use.
> 7. Convert all at once, using utility (like protoize or cproto). (5)
> 8. One person sent document on managerial aspect, which pointed out that
> conversion can be tricky and that having good programmers is important.
> 9. Convert gradually using macros. (7) For example, the Sun compiler has a
> predefined macro, __STDC__, which has value 0 for -Xt and -Xa, and
> has value 1 for -Xc.
> 10. There are other compilers, such as MIPSco, that support K&R and ACC. (1)
> 11. The PipeLine Tool, "svmt", provided by Sun on the Solaris 2.0 Migration
> CD, is useful. (1)
> 12. Be careful: in ACC, some K&R preprocessor identifiers may no longer be
> valid (e.g., "." should not be in a preprocessor). (1)
> Also, note that ACC and K&R treat unsigned types differently, have
> different variable argument list handling, treat "trigrams" (a 3 to 1
> character conversion) differently, etc. (1)
> Beware of K&R code that addresses (char *) 0 or that frees an
> unallocated pointer; it won't work in ACC. (1)
> 13. One person wrote a package called "cextract" to generate header files
> containing full prototypes of functions. The headers include a macro
> to allow them to be compiled in ACC or in K&R.
> 14. Don't use automatic converters because they may introduce typos. (1)
> 15. Don't change anything else when converting the code to ACC to
> eliminate potentially introduced bugs. (1)
> 16. Gnu ghostscript comes with a program ansi2knr.c. (1)
> 17. Centerline (Saber) from CodeCenter is a possibility. (1)
> 18. QA*C is good for writing maintainable code of high quality, but not
> recommended for merely converting from K&R to ACC. (1)
> 19. I presented a scheme to typedef library functions to ensure that
> if the library was compiled in K&R and if the application calling
> the library function was compiled in ACC (or vice-versa), then the
> function would not be promoted to something unexpected. (For example,
> all functions returning float would be typedef'd to return double
> because K&R promotes floats to doubles but ACC does not.) Two people
> said this scheme sounded OK. One person said that it sounded too
> complicated and thus prone to error.
> Much thanks to:
> Mike...@West.Sun.COM (Michael Kade)
> g...@auspex.com (Guy Harris)
> Keith....@Eng.Sun.COM (Keith Bierman fpgroup)
> aar...@stortek.com (Aaron Dailey)
> d...@ksr.com (David G. Grubbs)
> david d `zoo' zuhn <z...@cygnus.com>
> n...@cl.cam.ac.uk
> Ronny.B...@eua.ericsson.se (Ronny Bergstrom)
> P.G.Griffiths <P.G.Gr...@uk.ac.daresbury>
> Marc Evans - Contract Software Hacker <ev...@zk3.dec.com>
> r...@ll.mit.edu
> nic...@desaster.cs.tu-berlin.de (Juergen Nickelsen)
> da...@ecn.purdue.edu (Dave Curry)
> gst...@ux5.lbl.gov (Graham Stead)
> are...@kong.gsfc.nasa.gov (Andrew Arensburger - RMS)
> a...@albert.bu.edu (Adam Bryant)
> pacdata!ji...@UCSD.EDU (Jim Harkins)
> "Hilarie Orman" <h...@cs.arizona.edu>
> "Dan Franklin" <d...@diamond.bbn.com>
> al...@ll.mit.edu ( Alan Stein )
> Peter Shipley <shi...@tfs.COM>
> Perry_Hutchi...@xerox.com
> fr...@dip1.ee.uct.ac.za (Fred Hoare)
> ra...@ncbi.nlm.nih.gov (Rand S. Huntzinger)
> Steve_...@gec-epl.co.uk
> "Dan Franklin" <d...@diamond.bbn.com>
> Mike Raffety <mi...@sbcoc.com>
> ge...@sgl.ists.ca (Georg Feil)
> s...@svb.guug.de
> jar...@dvorak.amd.com (John Jarocki)
> wo...@robohack.ll.mit.edu (Greg A. Woods)
> Cynthia Eldridge
> --
> Cynthia Eldridge
> M.I.T. Lincoln Laboratory
> cyn...@ll.mit.edu
Thanks!

Re: SUMMARY: Converting K&R to ANSI C

<te3v1i$34h7u$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=81&group=comp.unix.solaris#81

  copy link   Newsgroups: comp.unix.solaris
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: hume.spa...@bofh.ca
Newsgroups: comp.unix.solaris
Subject: Re: SUMMARY: Converting K&R to ANSI C
Date: Wed, 24 Aug 2022 01:31:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Sender: Brandon Hume <hume@den.bofh.ca>
Message-ID: <te3v1i$34h7u$1@dont-email.me>
References: <1992Jul22.140413.15855@ll.mit.edu> <5551c80e-60ac-40ac-b488-d8eb58e493d2n@googlegroups.com>
Injection-Date: Wed, 24 Aug 2022 01:31:30 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="621c56bb5b4c0f57f9ac0e14bb0a29bc";
logging-data="3294462"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bpZDWRZzzOMg66QVZ3S9r"
User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (SunOS/5.11 (i86pc))
Cancel-Lock: sha1:oHvWdRbQsKN/WQ9gj+d2vmBC9Sw=
 by: hume.spa...@bofh.ca - Wed, 24 Aug 2022 01:31 UTC

KP KP <jungletrain@outlook.com> wrote:
> On Wednesday, July 22, 1992 at 7:04:13 AM UTC-7, Cynthia Eldridge wrote:
> Thanks!

This is a new record, I think.

You're responding to a post over THIRTY YEARS OLD.

Do you really think the person you're responding do is checking up for
replies?

Re: SUMMARY: Converting K&R to ANSI C

<4e672829-10bb-40ca-aef7-15e32d8e57a9n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=82&group=comp.unix.solaris#82

  copy link   Newsgroups: comp.unix.solaris
X-Received: by 2002:a05:620a:15e7:b0:6cb:e3bc:5844 with SMTP id p7-20020a05620a15e700b006cbe3bc5844mr8204933qkm.774.1662842338968;
Sat, 10 Sep 2022 13:38:58 -0700 (PDT)
X-Received: by 2002:a05:6808:d46:b0:345:7b42:f987 with SMTP id
w6-20020a0568080d4600b003457b42f987mr6290707oik.92.1662842338745; Sat, 10 Sep
2022 13:38:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.solaris
Date: Sat, 10 Sep 2022 13:38:58 -0700 (PDT)
In-Reply-To: <te3v1i$34h7u$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=209.52.142.120; posting-account=ck3qSAoAAACvs2RQorfjIIWSqJFDc0az
NNTP-Posting-Host: 209.52.142.120
References: <1992Jul22.140413.15855@ll.mit.edu> <5551c80e-60ac-40ac-b488-d8eb58e493d2n@googlegroups.com>
<te3v1i$34h7u$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4e672829-10bb-40ca-aef7-15e32d8e57a9n@googlegroups.com>
Subject: Re: SUMMARY: Converting K&R to ANSI C
From: jungletr...@outlook.com (KP KP)
Injection-Date: Sat, 10 Sep 2022 20:38:58 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1609
 by: KP KP - Sat, 10 Sep 2022 20:38 UTC

On Tuesday, August 23, 2022 at 6:31:35 PM UTC-7, hume.sp...@bofh.ca wrote:
> KP KP <jungl...@outlook.com> wrote:
> > On Wednesday, July 22, 1992 at 7:04:13 AM UTC-7, Cynthia Eldridge wrote:
> > Thanks!
>
> This is a new record, I think.
>
> You're responding to a post over THIRTY YEARS OLD.
>
> Do you really think the person you're responding do is checking up for
> replies?
Lol, whoops. I guess it's a record.


devel / comp.unix.solaris / Re: SUMMARY: Converting K&R to ANSI C

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor