Ethereal-dev: Re: [Ethereal-dev] C++ comments in g711.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "John McDermott" <jjm@xxxxxxxxxx>
Date: Mon, 10 Mar 2003 14:04:48 -0700
Or one could write a perl script to do the checking. Perl runs on Win32, *nix, Mac OS X, etc.

--john

Devin Heitmueller wrote:
Took a quick look at the portability list, and it would seem that most
of these things could be checked automatically with a script.  Just a
series of greps for things like "//", "long long", etc.  Of course,
whatever script we would write would be platform specific (at least UNIX
vs. Windows).  But something like this could still be quite helpful if
we could get developers to use it prior to submitting patches (to reduce
the load on those who apply them).

Devin

On Mon, 2003-03-10 at 15:05, Guy Harris wrote:

On Mon, Mar 10, 2003 at 01:48:44PM -0600, Albert Chin wrote:

C++ comments not valid in C source file.

Checked in.

(Note to contributors: please read the "Portability" section in the
"doc/README.developer" file, to see a long list of Things Not To Do;
that list includes putting C++ comments into C code, as there are
compilers that do not allow them.)

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev



--
John McDermott
Writer, Educator, Consultant
jjm@xxxxxxxxxx		http://www.jkintl.com
V +1 505/377-6293 F +1 505/377-6313