Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!bionet!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!hp4nl!eutrc3!wzv!wietse From: wietse@wzv.UUCP (Wietse Z. Venema) Newsgroups: comp.lang.c Subject: Re: Strange cc warning Message-ID: <189@wzv.UUCP> Date: 2 Feb 89 20:02:23 GMT References: <490@marob.MASA.COM> Reply-To: wietse@wzv.UUCP (Wietse Z. Venema) Organization: Eindhoven University of Technology, The Netherlands Lines: 23 In article <490@marob.MASA.COM> daveh@marob.masa.com (Dave Hammond) writes: ../include/dsipriv.h(88) : warning 74: non standard extension used - 'macro formals in strings' (I inserted the newline after "warning 74:" for readability) The macro in question is defined as follows: /* copy IN to OUT for LEN chars, enclosing OUT in dbl. quotes */ #define REQUOTE(in, out, len) if ((in) && (out)) { \ *(out) = '"'; \ Line 88 ---------------------> strncpy((out)+1, (in), (len)); \ (out)[(len)-1] = 0; \ strcat((out), "\""); \ (in) = (out); } My bet is that the preprocessor thinks that the (out) and (in) occur in between the " quotes on lines 87 and 90. -- work: wswietse@eutrc3.uucp | Eindhoven University of Technology work: wswietse@heitue5.bitnet | Mathematics and Computing Science home: wietse@wzv.uucp | 5600 MB Eindhoven, The Netherlands