[Coco] OS-9 C was Re: 3rdPart Editor

Gene Heskett gheskett at shentel.net
Tue Dec 18 01:09:54 EST 2018


On Monday 17 December 2018 23:48:24 Stephen Fischer wrote:

> The files.c I have has 266 lines, 7 kb.
>
> -------------------------------------------------------------------
> 241.	               if ((suff == (char *)0 ) && (rules)) { /* Is this
> an exec? */
> 242.	                       mode = 4;
> 243.	                       strcpy(fullname,object_dir);
> 244.	                       if (strlen(object_dir) != 0)
> 245.	                               strcat(fullname,"/");
> 246.	               } else if ((strcmp(suff,".r")==0) && (rules)) {
> /*Is it .r ?*/
> 247.	                       strcpy(fullname,rel_dir);
> 248.	                       if (strlen(rel_dir) != 0)
> 249.	                               strcat(fullname,"/");
> 250.	               }
> 251.	               strcat(fullname,np->n_name);
> 252.
> 253.	               if (debug)
> 254.	                   printf("Touching %s with mode
> %d.\n",fullname,mode); 255.
> 256.	               if ((fd = open(fullname, S_IWRITE | mode )) < 0) {
> 257.	                       printf("%s: '%s' not touched -
> non-existent.\n", 258.	                                       myname,
> fullname); 259.	               }
> 260.	               close(fd);
> 261.	#endif
> 262.	       }
> 263.	}
> 264.
> 265.
> 266.
> -------------------------------------------------------------------
>
>   It has been 7-8 years since I looked at any C code so I cannot tell
> if it is truncated.
>
Doesn't look to be, so I have copy/pasted this to the end of my existing 
file.
> SHF
>
> On 12/17/2018 8:24 PM, Gene Heskett wrote:
> > On Monday 17 December 2018 22:10:32 Bill Gunshannon wrote:
> >> Well, my tribulations continue I started compiling the make found
> >> in "toolshed/c3/make"  one of the files is truncated.  files.c
> >
> > My 3+ yo copy looks to be also. I've been up till about 3 years ago
> > when we had some water control work ($12000 worth) done in the
> > basement been doing a fresh pull, with my first saved version dated
> > the middle of 2013, and that copies version of files.c also looks to
> > be truncated identically to my latest copy, so its looked like that
> > for at least 5.4 years.
> >
> > Has anyone an older copy thats complete?
> >
> >> I should also mention another problem with it that makes me wonder
> >> if any of it ever gets used.  OS9 is defined in "h.h".  In the file
> >> files.c "h.h" was included after all the other #ifdefs meaning the
> >> #ifdef OS9 wasn't being used and thus, the file could not be
> >> compiled.
> >>
> >> Has anyone ever used this stuff?
> >>
> >> bill
> >
> > Sure. My latest toolshed pull is 3 years old, but I just used it
> > today once I found a help file to show me the syntax.

That file is nominally 16 lines longer than any of mine and looks 
complete, all functions properly closed. All of mine are truncated at 
the end of line 249.


If I was you, I'd submit that as a completed file to replace the 
obviously truncated one in toolshed/c3/make in the toolshed repo. But 
I've not heard a peep from Tormod Volden in a while, is he still 
watching over this stuff?  Or who is?

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


More information about the Coco mailing list