~ubuntu-branches/ubuntu/precise/ncbi-tools6/precise

« back to all changes in this revision

Viewing changes to demo/releasescan.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-03-27 12:00:15 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050327120015-embhesp32nj73p9r
Tags: 6.1.20041020-3
* Fix FTBFS under GCC 4.0 caused by inconsistent use of "static" on
  functions.  (Closes: #295110.)
* Add a watch file, now that we can.  (Upstream's layout needs version=3.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
*
30
30
* Version Creation Date:   6/6/00
31
31
*
32
 
* $Revision: 6.1 $
 
32
* $Revision: 6.2 $
33
33
*
34
34
* File Description: 
35
35
*
309
309
 
310
310
{
311
311
  Boolean     binary, compressed = FALSE;
 
312
  CharPtr     dir, progname, str, subfile;
312
313
  FILE        *fp;
313
314
  ValNodePtr  head, vnp;
314
315
  Char        path [PATH_MAX];
315
 
  CharPtr     progname, str, subfile;
316
316
 
317
317
  ErrSetFatalLevel (SEV_FATAL);
318
318
  ErrClearOptFlags (EO_SHOW_USERSTR);
352
352
    return 0;
353
353
  }
354
354
 
 
355
  dir = myargs [p_argInputPath].strvalue;
355
356
  binary = (Boolean) myargs [b_argBinaryFile].intvalue;
356
357
#ifdef OS_UNIX
357
358
  compressed = (Boolean) myargs [c_argCompressed].intvalue;
370
371
    return 1;
371
372
  }
372
373
 
373
 
  head = DirCatalog (myargs [p_argInputPath].strvalue);
 
374
  head = DirCatalog (dir);
374
375
 
375
376
  /* process appropriate files within specified directory */
376
377
 
392
393
 
393
394
          /* open a file, read one record at a time, present it to callback */
394
395
 
395
 
          ScanBioseqSetRelease (str, binary, compressed, (Pointer) fp, DoRecord);
 
396
          StringNCpy_0 (path, dir, sizeof (path));
 
397
          FileBuildPath (path, NULL, str);
 
398
 
 
399
          ScanBioseqSetRelease (path, binary, compressed, (Pointer) fp, DoRecord);
396
400
        }
397
401
      }
398
402
    }