home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!olivea!decwrl!concert!sas!mozart.unx.sas.com!walker
- From: walker@twix.unx.sas.com (Doug Walker)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS/C 6.00 & ANSI & Strict and C='s includes
- Message-ID: <Bx8wxw.4Fs@unx.sas.com>
- Date: 5 Nov 92 13:46:43 GMT
- References: <1992Nov4.192404.1147@jupiter.sun.csd.unb.ca>
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Organization: SAS Institute Inc.
- Lines: 38
- Originator: walker@twix.unx.sas.com
- Nntp-Posting-Host: twix.unx.sas.com
-
-
- In article <1992Nov4.192404.1147@jupiter.sun.csd.unb.ca>, mctaylor@mta.ca writes:
- |> Why does my program get lots of warnings when I use ANSI and Strict for
- |> the messages, not from my program but from within the C= includes. The
- |> warning I am talking about is 149, something abouts structs. I would think
- |> that SAS would of picked this up. I am using the uncompressed headers.
- |> Not much else I can think that would effect it. So why does it do it?
- |>
- |> ---------- Michael C. Taylor MCTAYLOR@mta.ca Student of Mount Allison U. ----
-
- Read the description of the warning on page 244 of the User's Guide,
- Volume 1. (You can also hit HELP while on one of these messages in
- SCMSG to get the online documentation for it.)
-
- It is legal ANSI C to use structure tags in prototypes without
- defining the tag, like this:
-
- void func(struct FOO *); /* Struct FOO is never defined */
-
- The STRICT option warns you when you do this because sometimes
- the ANSI scoping rules cause problems when you use such "incomplete"
- structure tags. The Commodore headers don't automatically
- #include all the files they need to get rid of incomplete tags -
- which is probably a good thing, since you don't want to #include
- hundreds of include files just to get a few prototypes. If you
- want to run with the STRICT option, you will have to either make
- sure that you explicitly #include the files that define the structures
- before #including the <proto/...> or <clib/...> file, or you
- will have to suppress warning 149 with an IGNORE=149 option.
-
- --
- *****
- =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
- *|. o.| || 1200/2400/9600 Dual
- | o |// For all you do, this bug's for you!
- ======
- usenet: walker@unx.sas.com bix: djwalker
- Any opinions expressed are mine, not those of SAS Institute, Inc.
-