RE: ODBC Patch

Поиск
Список
Период
Сортировка
От Dave Page
Тема RE: ODBC Patch
Дата
Msg-id 8568FC767B4AD311AC33006097BCD3D61A2988@woody.vale-housing.co.uk
обсуждение исходный текст
Ответ на ODBC Patch  (Dave Page <dpage@vale-housing.co.uk>)
Ответы Re: ODBC Patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches

> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: 12 February 2001 15:19
> To: Bruce Momjian
> Cc: Dave Page; 'pgsql-patches@postgresql.org'
> Subject: Re: [PATCHES] ODBC Patch
>
>
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> >> problem is that MS VC++ autogenerates resource.h whenever
> psqlodbc.rc is
> >> updated in the IDE. Is it possible to get pgindent to
> ignore that file or
> >> would that cause more problems?
>
> > Sure, we can ignore it, but do we want an MS-generated file to be
> > tracked in our CVS, and especially one with // comments?
> > If resource.h was included only by MS compilers, that would
> be better,
> > but I see every platform including the file.
>
> Good point.  This will not be buildable on machines whose compilers do
> not like //.
>
> > Can you send me that resource.h file again, and I will merge in any
> > change made by *.rc, but keep the /* */ comments, OK?
>
> I don't think that's a feasible long-term maintenance approach either.
> Will you or Dave remember to do this any time psqlodbc.rc changes?

I can certainly do this anytime I update the driver, but I obviously can't
keep track of other people who change it. IMHO it (psqlodbc.rc) should be
updated for every patch submitted as it (along with psqlodbc.h) contain the
revision number which is essential for the ODBC driver which is often
updated outside of the main PostgreSQL releases.

> Seems like the correct answer is for pgindent to
> automatically transform
> "// comment" to "/* comment */".

This sounds much more sensible.

Regards,

Dave.

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

Предыдущее
От: Dave Page
Дата:
Сообщение: RE: ODBC Patch
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: ODBC Patch