dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/csdoc doc_stub.c,1.2,1.3


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/csdoc doc_stub.c,1.2,1.3
Date: Wed, 13 Nov 2002 07:42:00 -0500

Update of /cvsroot/dotgnu-pnet/pnet/csdoc
In directory subversions:/tmp/cvs-serv10020/csdoc

Modified Files:
        doc_stub.c 
Log Message:
a random fix on a bug written on my notebook sometime ago


Index: doc_stub.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/csdoc/doc_stub.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** doc_stub.c  19 Apr 2002 15:30:22 -0000      1.2
--- doc_stub.c  13 Nov 2002 12:41:58 -0000      1.3
***************
*** 67,71 ****
  
  /*********END GOPAL's H4cks**************/
!               
  char const ILDocProgramHeader[] =
        "CSDOC2STUB " VERSION " - Convert C# documentation into Stub C#";
--- 67,71 ----
  
  /*********END GOPAL's H4cks**************/
! /*#define CSDOC_STUB_DEBUG */ 
  char const ILDocProgramHeader[] =
        "CSDOC2STUB " VERSION " - Convert C# documentation into Stub C#";
***************
*** 118,121 ****
--- 118,122 ----
        {
                fprintf(stderr,"Could not open %s\n",fname);
+               return;
        }
        printf("\twriting %s\n",fname);
***************
*** 141,145 ****
        char 
*name=(char*)calloc(strlen(outputPath)+strlen(ns->name),sizeof(char));
        strcat(name,outputPath);
!       if(name[strlen(name)-1]!='/')
        {
                name[strlen(name)]='/';
--- 142,146 ----
        char 
*name=(char*)calloc(strlen(outputPath)+strlen(ns->name),sizeof(char));
        strcat(name,outputPath);
!       if(name && strlen(name) && name[strlen(name)-1]!='/')
        {
                name[strlen(name)]='/';
***************
*** 156,160 ****
--- 157,163 ----
                        }
        }
+ #ifdef CSDOC_STUB_DEBUG
        printf("Processing %s namespace\n",name);
+ #endif
        mkdir(name,0777);//make dir if still not made
        for(i=ns->types;i!=NULL;i=i->nextNamespace)
***************
*** 206,209 ****
--- 209,216 ----
        char *klass=(char*)ILDocFlagValue("class");
        char *ns=(char*)ILDocFlagValue("namespace");
+       if(!outputPath || !strcmp(outputPath,"."))
+       {
+               outputPath=getcwd(NULL,0);
+       }
        if(klass!=NULL)
        {
***************
*** 221,225 ****
                        i=i->next;
                }
!               fprintf(stderr," Namespace %s not found in XML file ",ns);
                return 0;
        }
--- 228,232 ----
                        i=i->next;
                }
!               fprintf(stderr," Namespace %s not found in XML file\n",ns);
                return 0;
        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]