Skip to content

Commit

Permalink
Add initial files.
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed Sep 25, 2010
0 parents commit 0a941e2
Show file tree
Hide file tree
Showing 9 changed files with 2,958 additions and 0 deletions.
7 changes: 7 additions & 0 deletions firebirdsql/CVS/Entries
@@ -0,0 +1,7 @@
/__init__.py/1.3/Sat Sep 25 06:07:52 2010//
/errmsgs.c/1.10/Sat Jul 4 09:56:56 2009//
/fbcore.py/1.5/Sat Sep 25 07:52:48 2010//
/fberrmsgs.py/1.1/Sat Jul 4 09:56:56 2009//
/msgs.h/1.1/Mon May 4 04:17:11 2009//
/setup.py/1.9/Sat Sep 25 07:50:59 2010//
D
1 change: 1 addition & 0 deletions firebirdsql/CVS/Repository
@@ -0,0 +1 @@
firebirdsql
1 change: 1 addition & 0 deletions firebirdsql/CVS/Root
@@ -0,0 +1 @@
:ext:nakagami@nakagami.sakura.ne.jp/home/nakagami/.cvsroot
1 change: 1 addition & 0 deletions firebirdsql/__init__.py
@@ -0,0 +1 @@
from firebirdsql.fbcore import *
39 changes: 39 additions & 0 deletions firebirdsql/errmsgs.c
@@ -0,0 +1,39 @@
/*
* Copyright (c) 2009, Hajime Nakagami<nakagami@da2.so-net.ne.jp>
* All rights reserved.
* Licensed under the New BSD License
* (http://www.freebsd.org/copyright/freebsd-license.html)
*
*/
#include <stdio.h>
#define SLONG long
#define SCHAR char

/*http://firebird.cvs.sf.net/viewvc/firebird/firebird2/src/include/gen/msgs.h*/
#include "msgs.h"

int main(int argc, char *argv[])
{
int i;
FILE *fp = fopen("fberrmsgs.py", "w");

fprintf(fp, "\
#############################################################################\n\
# The contents of this file are subject to the Interbase Public\n\
# License Version 1.0 (the \"License\"); you may not use this file\n\
# except in compliance with the License. You may obtain a copy\n\
# of the License at http://www.Inprise.com/IPL.html\n\
# \n\
# Software distributed under the License is distributed on an\n\
# \"AS IS\" basis, WITHOUT WARRANTY OF ANY KIND, either express\n\
# or implied. See the License for the specific language governing\n\
# rights and limitations under the License.\n\n");
fprintf(fp, "messages = {\n");
for (i = 0; messages[i].code_text; i++) {
fprintf(fp, " %d : '''%s\\n''', \n", messages[i].code_number, messages[i].code_text);
}
fprintf(fp, "}\n");

fclose(fp);
return 0;
}

0 comments on commit 0a941e2

Please sign in to comment.