home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!gatech!europa.asd.contel.com!howland.reston.ans.net!spool.mu.edu!sgiblab!newsun!news
- From: Duane Murphy <damurphy@wc.novell.com>
- Subject: &StringPtr -vs- StringPtr?
- Message-ID: <1993Jan22.165348.11313@novell.com>
- X-Xxdate: Fri, 22 Jan 93 17:01:17 GMT
- Sender: news@novell.com (The Netnews Manager)
- Nntp-Posting-Host: 130.57.72.123
- Organization: Novell, Inc.
- X-Useragent: Nuntius v1.1.1d12
- Date: Fri, 22 Jan 1993 16:53:48 GMT
- Lines: 35
-
-
- I have received some code (from a source to remain anonyumous) that is
- supposed to work with MPW and Think C. The MPW compiler says nothing,
- but Think C whines about types not matching. Here is where the problem
- is:
-
- Str255 msg1, msg2;
-
- ... // code deleted
-
- GetIndString(&msg1, errResID, errStringIndex);
-
- The problem is &msg1. The prototype for GetIndString is:
- (from ToolUtils.h)
-
- pascal void GetIndString(Str255 theString,short strListID,short index);
-
- I have changed the call to:
-
- GetIndString(msg1, errResID, errStringIndex);
-
- which seems (to me) to match to prototype better.
-
- Who is right (according to ANSI)? Is MPW being a slacker? Is Think C
- being picky?
-
-
- Thanks,
- ...Duane
-
- +------------------------+--------------------------------------------+
- | Duane Murphy | My opinions are mine, mine, and only mine; |
- | damurphy@wc.novell.com | Except when they are also yours. |
- | Macintosh Software QA | |
- +------------------------+--------------------------------------------+
-