~ubuntu-branches/ubuntu/gutsy/xmedcon/gutsy

« back to all changes in this revision

Viewing changes to source/m-getopt.c

  • Committer: Bazaar Package Importer
  • Author(s): William Alexander Grant
  • Date: 2006-12-09 11:20:35 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209112035-suqthxu754v8836c
Tags: 0.9.9.3-1ubuntu1
* Merge from debian unstable. Remaining changes:
  - Added dh_iconcache.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *                MdcHandleArgs()         - Handle the arguments           *
15
15
 *                                                                         *
16
16
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
17
 
/* $Id: m-getopt.c,v 1.127 2005/12/17 13:56:34 enlf Exp $
 
17
/* $Id: m-getopt.c,v 1.130 2006/03/01 23:21:59 enlf Exp $
18
18
 */
19
19
 
20
20
/*
21
 
   Copyright (C) 1997-2005 by Erik Nolf
 
21
   Copyright (C) 1997-2006 by Erik Nolf
22
22
 
23
23
   This program is free software; you can redistribute it and/or modify it
24
24
   under the terms of the GNU General Public License as published by the
117
117
                                        FrmtString[MDC_FRMT_INW],
118
118
                                        FrmtExt[MDC_FRMT_INW]);
119
119
#endif
 
120
#if MDC_INCLUDE_NIFTI
 
121
  MdcPrntScrn("\t\t\"nifti\" = %s (.%s)\n",
 
122
                                        FrmtString[MDC_FRMT_NIFTI],
 
123
                                        FrmtExt[MDC_FRMT_NIFTI]);
 
124
#endif
120
125
#if MDC_INCLUDE_PNG
121
126
  MdcPrntScrn("\t\t\"png\"   = %s (.%s)\n",
122
127
                                        FrmtString[MDC_FRMT_PNG],
318
323
  }
319
324
    MdcPrntScrn(" Medical Image Conversion Utility\n");
320
325
    MdcPrntScrn("(X)MedCon %s\n",MdcGetLibShortVersion());
321
 
    MdcPrntScrn("Copyright (C) 1997-2005 by Erik Nolf\n\n");
 
326
    MdcPrntScrn("Copyright (C) 1997-2006 by Erik Nolf\n\n");
322
327
 
323
328
  if (XMDC_GUI == MDC_YES) {
324
329
    MdcPrntScrn("Try \'xmedcon --help\' for more information.\n\n");
822
827
             convs[MDC_FRMT_PNG]+=1;  total[MDC_CONVS]+=1;
823
828
         }else
824
829
#endif
 
830
#if MDC_INCLUDE_NIFTI
 
831
         if ( strcasecmp(argv[a],"nifti") == 0) {
 
832
             convs[MDC_FRMT_NIFTI]+=1;  total[MDC_CONVS]+=1;
 
833
         }else
 
834
#endif
825
835
#endif
826
836
         if ( strcasecmp(argv[a],"-") == 0) {
827
837
           MDC_FILE_STDOUT = MDC_YES;
896
906
             DO_STDIN = MDC_YES; MDC_FRMT_INPUT = MDC_FRMT_PNG;
897
907
           }else
898
908
#endif
 
909
#if MDC_INCLUDE_NIFTI
 
910
           if ( strcasecmp(argv[a],"nifti") == 0) {
 
911
             DO_STDIN = MDC_YES; MDC_FRMT_INPUT = MDC_FRMT_NIFTI;
 
912
           }else
 
913
#endif
899
914
           
900
915
             { DO_STDIN = MDC_NO;  MDC_FRMT_INPUT = MDC_FRMT_NONE; }
901
916