|
|
| version 1.16, 2001/09/05 09:32:40 | version 1.20, 2001/11/05 11:46:29 |
|---|---|
| Line 2 | Line 2 |
| Parser: sql driver interface. | Parser: sql driver interface. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru) | |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | |
| $Id$ | $Id$ |
| Line 38 public: | Line 37 public: |
| virtual void *malloc(size_t size) =0; | virtual void *malloc(size_t size) =0; |
| /// allocates some bytes clearing them with zeros | /// allocates some bytes clearing them with zeros |
| virtual void *calloc(size_t size) =0; | virtual void *calloc(size_t size) =0; |
| /// throw exception | /// prepare throw exception |
| virtual void _throw(const char *comment) =0; | virtual void _throw(const char *comment) =0; |
| /// throw C++ exception from prepared | |
| virtual void propagate_exception() =0; | |
| public: | |
| /// regretrully public, because can't make stack frames: "nowhere to return to" | |
| jmp_buf mark; | |
| }; | }; |
| #define SQL_DRIVER_API_VERSION 0x0304 | #define SQL_DRIVER_API_VERSION 0x0100 |
| #define SQL_DRIVER_CREATE create | #define SQL_DRIVER_CREATE create |
| #define SQL_DRIVER_CREATE_NAME "create" /* could not figure out how to # it :( */ | #define SQL_DRIVER_CREATE_NAME "create" /* could not figure out how to # it :( */ |