[sword-svn] r2837 - in trunk: src/keys utilities

chrislit at crosswire.org chrislit at crosswire.org
Sat Jun 29 01:36:36 MST 2013


Author: chrislit
Date: 2013-06-29 01:36:36 -0700 (Sat, 29 Jun 2013)
New Revision: 2837

Added:
   trunk/utilities/genarray.c
Removed:
   trunk/src/keys/genarray.c
   trunk/src/keys/nt.bks
   trunk/src/keys/nt.cps
   trunk/src/keys/ot.bks
   trunk/src/keys/ot.cps
Log:
moved genarray.c to utilities
deleted old static [on]t.(bk|cp)s files from src/keys


Deleted: trunk/src/keys/genarray.c
===================================================================
--- trunk/src/keys/genarray.c	2013-06-29 07:54:03 UTC (rev 2836)
+++ trunk/src/keys/genarray.c	2013-06-29 08:36:36 UTC (rev 2837)
@@ -1,55 +0,0 @@
-/******************************************************************************
- *
- *  genarray.c -	
- *
- * $Id$
- *
- * Copyright 1996-2013 CrossWire Bible Society (http://www.crosswire.org)
- *	CrossWire Bible Society
- *	P. O. Box 2528
- *	Tempe, AZ  85280-2528
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation version 2.
- *
- * This program 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
- * General Public License for more details.
- *
- */
-
-#include <stdio.h>
-#include <fcntl.h>
-#include <stdlib.h>
-
-main()
-{
-	int fd, l1, l2, l3;
-	char *fnames[] = {"ot.bks", "ot.cps", "nt.bks", "nt.cps"};
-	long val;
-	char buf[64];
-
-#ifndef O_BINARY		// O_BINARY is needed in Borland C++ 4.53
-#define O_BINARY 0		// If it hasn't been defined than we probably
-#endif				// don't need it.
-
-
-	for (l1 = 0; l1 < 2; l1++) {
-		for (l2 = 0; l2 < 2; l2++) {
-			l3 = 1;
-			sprintf(buf, "%s", fnames[(l1*2)+l2]);
-			printf("		// %s\n", fnames[(l1*2)+l2]);
-			fd = open(buf, O_RDONLY|O_BINARY, S_IREAD|S_IWRITE|S_IRGRP|S_IROTH);
-			while (read(fd, &val, 4) == 4) {
-				l3++;
-				printf("%ld, ", val/(4 + (l2*2)));
-				if (!(l3%7))
-					printf("\n");
-			}
-			close(fd);
-			printf("}, \n");
-		}
-	}
-}

Deleted: trunk/src/keys/nt.bks
===================================================================
(Binary files differ)

Deleted: trunk/src/keys/nt.cps
===================================================================
(Binary files differ)

Deleted: trunk/src/keys/ot.bks
===================================================================
(Binary files differ)

Deleted: trunk/src/keys/ot.cps
===================================================================
(Binary files differ)

Copied: trunk/utilities/genarray.c (from rev 2836, trunk/src/keys/genarray.c)
===================================================================
--- trunk/utilities/genarray.c	                        (rev 0)
+++ trunk/utilities/genarray.c	2013-06-29 08:36:36 UTC (rev 2837)
@@ -0,0 +1,55 @@
+/******************************************************************************
+ *
+ *  genarray.c -	
+ *
+ * $Id$
+ *
+ * Copyright 1996-2013 CrossWire Bible Society (http://www.crosswire.org)
+ *	CrossWire Bible Society
+ *	P. O. Box 2528
+ *	Tempe, AZ  85280-2528
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2.
+ *
+ * This program 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
+ * General Public License for more details.
+ *
+ */
+
+#include <stdio.h>
+#include <fcntl.h>
+#include <stdlib.h>
+
+main()
+{
+	int fd, l1, l2, l3;
+	char *fnames[] = {"ot.bks", "ot.cps", "nt.bks", "nt.cps"};
+	long val;
+	char buf[64];
+
+#ifndef O_BINARY		// O_BINARY is needed in Borland C++ 4.53
+#define O_BINARY 0		// If it hasn't been defined than we probably
+#endif				// don't need it.
+
+
+	for (l1 = 0; l1 < 2; l1++) {
+		for (l2 = 0; l2 < 2; l2++) {
+			l3 = 1;
+			sprintf(buf, "%s", fnames[(l1*2)+l2]);
+			printf("		// %s\n", fnames[(l1*2)+l2]);
+			fd = open(buf, O_RDONLY|O_BINARY, S_IREAD|S_IWRITE|S_IRGRP|S_IROTH);
+			while (read(fd, &val, 4) == 4) {
+				l3++;
+				printf("%ld, ", val/(4 + (l2*2)));
+				if (!(l3%7))
+					printf("\n");
+			}
+			close(fd);
+			printf("}, \n");
+		}
+	}
+}




More information about the sword-cvs mailing list