View | Details | Raw Unified | Return to bug 59557
Collapse All | Expand All

(-)/home/samy/tmp/jfconv/files/patch-aa (-2 / +59 lines)
Lines 1-5 Link Here
1
--- jconv.c.orig	Tue Nov  2 23:03:59 1999
1
--- jconv.c.orig	Fri Nov 21 16:35:40 2003
2
+++ jconv.c	Thu May  4 20:05:51 2000
2
+++ jconv.c	Fri Nov 21 16:35:40 2003
3
@@ -67,7 +67,7 @@
3
@@ -67,7 +67,7 @@
4
 	strcpy(infile, "");
4
 	strcpy(infile, "");
5
 
5
 
Lines 45-50 Link Here
45
 	char 		inputString[MAX_RECORD_LENGTH];  
45
 	char 		inputString[MAX_RECORD_LENGTH];  
46
 	int 		inputStringLoc, inputStringLen;  
46
 	int 		inputStringLoc, inputStringLen;  
47
 	JFileAppInfoType	appInfo;
47
 	JFileAppInfoType	appInfo;
48
@@ -747,7 +747,7 @@
49
 				if(inputStringLoc - dataLocs[currentField] > MAX_DATA_LENGTH)
50
 				{
51
 					sprintf(errorNum, "%d", currentRecord+1);
52
-					sprintf(errorStr, "Field data too long
53
+					sprintf(errorStr, "Field data too long\n\
54
  at record: %s", errorNum);
55
 					MessageBox2( errorStr, NULL, MB_OK );
56
 					fclose(input);
48
@@ -1165,10 +1165,6 @@
57
@@ -1165,10 +1165,6 @@
49
 	sprintf(recNumStr, "%d", currentRecord+1);
58
 	sprintf(recNumStr, "%d", currentRecord+1);
50
 	sprintf(endMsg, "Conversion of %s  records in %s to %s was successful!",
59
 	sprintf(endMsg, "Conversion of %s  records in %s to %s was successful!",
Lines 56-58 Link Here
56
 }
65
 }
57
 
66
 
58
 int TypeIsString(int t)
67
 int TypeIsString(int t)
68
@@ -1599,16 +1595,16 @@
69
 void showsynopsis()
70
 {
71
 	fprintf(stderr,
72
-"jconv [-e|-d] [-i <infofile>] [-t title] <infile> <outfile>
73
-
74
-        -e                encode: csv -> pdb
75
-        -d                decode: pdb -> csv
76
-	-s                use semicolon as delimiter
77
-	-i <infofile>     use <infofile> as infofile
78
-	-t title          title is the db-name
79
-        -v                print version information
80
-	-h                print this message
81
-
82
+"jconv [-e|-d] [-i <infofile>] [-t title] <infile> <outfile>\n\
83
+\n\
84
+        -e                encode: csv -> pdb\n\
85
+        -d                decode: pdb -> csv\n\
86
+	-s                use semicolon as delimiter\n\
87
+	-i <infofile>     use <infofile> as infofile\n\
88
+	-t title          title is the db-name\n\
89
+        -v                print version information\n\
90
+	-h                print this message\n\
91
+\n\
92
 ");
93
 	return;
94
 }
95
@@ -1625,13 +1621,13 @@
96
 
97
 void showversion()
98
 {
99
-	fprintf(stderr, "
100
-jconv: Converts JFile Pro database files to csv-files and vica versa
101
-Version 1.0
102
-copyright 1999 by Andreas Mock <AMock@osram.com>
103
-with permission of J. J. Lehett <JLehett@land-j.com>
104
-see also www.land-j.com
105
-
106
+	fprintf(stderr, "\n\
107
+jconv: Converts JFile Pro database files to csv-files and vica versa\n\
108
+Version 1.0\n\
109
+copyright 1999 by Andreas Mock <AMock@osram.com>\n\
110
+with permission of J. J. Lehett <JLehett@land-j.com>\n\
111
+see also www.land-j.com\n\
112
+\n\
113
 ");
114
 	return;
115
 }

Return to bug 59557