[Firebird-devel] ISC API and FB API headers

2020-01-27 Thread Dimitry Sibiryakov
Hello, All. Currently Interface.h includes ibase.h which makes it a strange mix of two APIs. It was unavoidable in version 3 because that time OO API missed some essential functionality but now AFAIK it can be self-sufficient. IMHO, these two headers should be completely separated and Int

Re: [Firebird-devel] ISC API and FB API headers

2020-01-27 Thread Alex Peshkoff via Firebird-devel
On 2020-01-27 18:12, Dimitry Sibiryakov wrote: Hello, All.   Currently Interface.h includes ibase.h which makes it a strange mix of two APIs. It was unavoidable in version 3 because that time OO API missed some essential functionality but now AFAIK it can be self-sufficient.   IMHO, these two

Re: [Firebird-devel] ISC API and FB API headers

2020-01-27 Thread Dimitry Sibiryakov
27.01.2020 17:08, Alex Peshkoff via Firebird-devel wrote: What about compatibility with old programs using that constants? There are several possible cases: 1) The program already included both headers - everything is fine it will use constants declared in ibase.h. 2) The program used "usin

Re: [Firebird-devel] ISC API and FB API headers

2020-01-27 Thread Alex Peshkoff via Firebird-devel
On 2020-01-27 19:16, Dimitry Sibiryakov wrote: 27.01.2020 17:08, Alex Peshkoff via Firebird-devel wrote: What about compatibility with old programs using that constants?   There are several possible cases: 1) The program already included both headers - everything is fine it will use constant

Re: [Firebird-devel] ISC API and FB API headers

2020-01-27 Thread Dimitry Sibiryakov
27.01.2020 17:45, Alex Peshkoff via Firebird-devel wrote: Am I understanding right that when ibase.h is included that constants will be in global namespace as before? Sure. When you write in Interface.h something like this: namespace Firebird { #include "pub_const.h" } You'll get the cons