Thread: C++ comments in C code

C++ comments in C code

From
Peter Schaefer
Date:
Version used:  odbc-0.25 packaged with postgresql-6.5.2 

Most files in the odbc contain gcc-style C++-comments (//), which
is completely unnecessary and causing work when compiling with a C-compiler.

That is, I deleted all comments by applying the following to all files:
#!/bin/sh
cp $1 /tmp/$1.copy; sed 's/\/\/.*$//g' /tmp/$1.copy > $1

You might wish to keep the comments, though.

Thanks.

-- 
Peter Schäfer - mailto:schaefer@cys.de, schaefer@dfu.de