Permalink
Browse files

Add initial files.

  • Loading branch information...
0 parents commit 0a941e22b0b5717c297c6db8afb8ba517eaaeedc @nakagami committed Sep 25, 2010
@@ -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
@@ -0,0 +1 @@
+firebirdsql
@@ -0,0 +1 @@
+:ext:nakagami@nakagami.sakura.ne.jp/home/nakagami/.cvsroot
@@ -0,0 +1 @@
+from firebirdsql.fbcore import *
@@ -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;
+}
Oops, something went wrong.

0 comments on commit 0a941e2

Please sign in to comment.