[BACK]Return to oxlistusage.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / util

Diff for /OpenXM/src/util/oxlistusage.c between version 1.2 and 1.3

version 1.2, 2017/03/19 12:39:52 version 1.3, 2018/11/08 02:53:35
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/util/oxlistusage.c,v 1.1 2017/03/10 01:32:50 takayama Exp $ */  /* $OpenXM: OpenXM/src/util/oxlistusage.c,v 1.2 2017/03/19 12:39:52 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include <ctype.h>  #include <ctype.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 647  int outUsage(char *inFname,int oxg) {
Line 647  int outUsage(char *inFname,int oxg) {
   return(0);    return(0);
 }  }
   
   int show_help() {
     printf("oxlistusage [--oxgentexi --help] filename1 ...\n");
     printf("  See also oxgentexi, keys:  Example:\n");
   }
   
 int main(int argc,char *argv[]) {  int main(int argc,char *argv[]) {
   int i;    int i;
   int oxg=0;    int oxg=0;
Line 654  int main(int argc,char *argv[]) {
Line 659  int main(int argc,char *argv[]) {
   for (i=1; i<argc; i++) {    for (i=1; i<argc; i++) {
     if (argv[i][0] == '-') {      if (argv[i][0] == '-') {
       if (strcmp(argv[i],"--oxgentexi")==0) oxg=1;        if (strcmp(argv[i],"--oxgentexi")==0) oxg=1;
         else if (strcmp(argv[i],"--help")==0) {
           show_help(); return(0);
         }
     }else {      }else {
       Inop = fopen(argv[i],"r");        Inop = fopen(argv[i],"r");
       if (Inop == NULL) {        if (Inop == NULL) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>