C++ comments in C code

Поиск
Список
Период
Сортировка
От Peter Schaefer
Тема C++ comments in C code
Дата
Msg-id 37FF2E8C.C87C95BD@cys.de
обсуждение исходный текст
Список pgsql-interfaces
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


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Nigel Tamplin
Дата:
Сообщение: JDBC: ResultSet.updateString(int columnIndex, String x) when is this going to be implemented?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Next release is 7.0(?)