Changeset 38
- Timestamp:
- 10/30/2008 10:43:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/trunk/source/seed_io/sfd2db.c
r32 r38 3 3 * ======== 4 4 * 5 * $Revision: 17 $, $Date: 2008-01-30 15:59:13 +0100 (Mi, 30 Jan2008) $5 * $Revision: 23 $, $Date: 2008-02-05 12:56:20 +0100 (Di, 05 Feb 2008) $ 6 6 * 7 7 * reads lines from sfdfile and creates commands to insert into sfdb database … … 49 49 int dataformat; /* data format ID */ 50 50 char ignstr[cBcShortStrLth]; /* ignore string */ 51 char gostr[cBcShortStrLth]; /* go string */ 51 52 TSyBoolean pipe_io; /* input/output on stdin/stdout */ 52 53 TSyBoolean pathid_set; /* path ID set on command line */ … … 56 57 TSyBoolean invhdr; /* invert header info in sfd entry */ 57 58 TSyBoolean baynet; /* convert SH to BH for Bayernnetz */ 59 TSyBoolean go; /* end tmpfile with insert statements with \g */ 60 58 61 59 62 /* executable code */ … … 72 75 invhdr = pa_qspecified( "-invhdr" ); 73 76 baynet = pa_qspecified( "-baynet" ); 77 go = pa_qspecified( "-go" ); 74 78 75 79 if (noignore) { … … 77 81 } else { 78 82 strcpy( ignstr, "ignore " ); 83 } /*endif*/ 84 85 if (go) { 86 strcpy( gostr, "\\g" ); 87 } else { 88 *gostr = '\0'; 79 89 } /*endif*/ 80 90 … … 308 318 309 319 if (!pipe_io) { 320 321 fprintf( out, gostr); 310 322 fclose( fp ); 311 323 fclose( out );
Note: See TracChangeset
for help on using the changeset viewer.