home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18714 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.9 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!sun-barr!cs.utexas.edu!sdd.hp.com!think.com!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!seunet!lorelei!hoh
  2. From: hoh@lorelei.approve.se (Goran Larsson)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: SCCS eats good code -- help requested
  5. Message-ID: <1992Dec20.201522.28201@lorelei.approve.se>
  6. Date: 20 Dec 92 20:15:22 GMT
  7. References: <1992Dec18.215413.65833@evolving.com>
  8. Organization: Home of the Hacker of Hackefors
  9. Lines: 37
  10.  
  11. In article <1992Dec18.215413.65833@evolving.com> jww@evolving.com (John W. Woolley) writes:
  12.  
  13. >Evolving Systems recently began using a new source control system,
  14. >CMVC, which as I understand it is a wrapper around SCCS.  The new
  15. >source control system interacted with our code in an unintended way.
  16.  
  17. >We had a chunk of source so:
  18. >  if (strftime(time_str, 64, "%w%H%M%S", time_struct) != 7)
  19. >
  20. >Nice normal ANSI C.  But SCCS had spotted the string %H% in the
  21. >above bit of code, and had done its replacement thing so:
  22. >
  23. >  if (strftime(time_str, 64, "%w12/14/92M%S", time_struct) != 7)
  24. >
  25. >which caused strftime to yield results differing somewhat from those
  26. >intended.
  27.  
  28. The handling of these version strings is in itself a very good reason
  29. to avoid SCCS. The decision to only expand version strings when compiling
  30. is wrong. If I send source to someone, I want to expand version strings
  31. so "someone" can report problems - but "someone" might also want to
  32. keep the source under revision control system. SCCS can't do this. RCS can.
  33.  
  34. >So does anyone know anything good we can do about this?  We can't be
  35. >the first site ever to struggle with format strings and SCCS.
  36.  
  37. 1) find /usr -name sccs -exec rm -rf {} \;
  38.  
  39. 2) Install RCS
  40.  
  41. 3) Use RCS
  42.  
  43. btw  :-)
  44. -- 
  45.  Gvran Larsson                   Phone: +46 13 155535  FAX: +46 13 160533
  46.  Approve AB                             +46 589 12810       +46 589 16901
  47.  hoh@lorelei.approve.se               ...!uunet!mail.swip.net!lorelei!hoh
  48.