mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-26 10:29:27 +08:00
Enhancements for getting Access 2000 to work (almost)
Fixes for working with bison
This commit is contained in:
@@ -1,3 +1,22 @@
|
||||
/* MDB Tools - A library for reading MS Access database file
|
||||
* Copyright (C) 2000 Brian Bruns
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "mdbsql.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
@@ -15,6 +34,19 @@ va_list ap;
|
||||
va_end(ap);
|
||||
fprintf(stderr,"\n");
|
||||
}
|
||||
int mdb_sql_yyinput(char *buf, int need)
|
||||
{
|
||||
int cplen, have;
|
||||
|
||||
have = strlen(g_input_ptr);
|
||||
cplen = need > have ? have : need;
|
||||
|
||||
if (cplen>0) {
|
||||
memcpy(buf, g_input_ptr, cplen);
|
||||
g_input_ptr += cplen;
|
||||
}
|
||||
return cplen;
|
||||
}
|
||||
MdbSQL *mdb_sql_init()
|
||||
{
|
||||
MdbSQL *sql;
|
||||
|
||||
Reference in New Issue
Block a user