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

Stephen Fischer SFischer1 at Mindspring.com
Mon Dec 17 23:48:24 EST 2018


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.

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.
> 
> 


More information about the Coco mailing list