Loading ...
Sorry, an error occurred while loading the content.

[jasspa] The other Y2K fix.

Expand Messages
  • Jon Green
    Attached is the other Y2K fix that I mentioned needed doing. Regards Jon cd D:/TEMP/ diff --context --minimal --ignore-space-change --report-identical-files
    Message 1 of 1 , Jan 7, 2000
    • 0 Attachment
      Attached is the other Y2K fix that I mentioned needed doing.

      Regards
      Jon

      cd D:/TEMP/
      diff --context --minimal --ignore-space-change --report-identical-files --recursive "time.c" "d:/me990828/src/time.c"

      *** time.c Fri Jan 07 13:50:40 2000
      --- d:/me990828/src/time.c Fri Jan 07 16:34:32 2000
      ***************
      *** 164,174 ****
      for(ii=0 ; ii<TSNUMFIELD ; ii++)
      if((jj=pos[ii]) != 0)
      {
      ! if(!ii && ((mereRegexGroupEnd(jj)-mereRegexGroupStart(jj)) == 4))
      {
      ! curwp->w_dotp->l_text[soff+mereRegexGroupEnd(jj)-4] = '0' + ((((int) values[ii])+1900)/1000) ;
      ! curwp->w_dotp->l_text[soff+mereRegexGroupEnd(jj)-3] = '0' + (((((int) values[ii])+1900)/100)%10) ;
      }
      curwp->w_dotp->l_text[soff+mereRegexGroupEnd(jj)-2] = '0' + (values[ii]/10) ;
      curwp->w_dotp->l_text[soff+mereRegexGroupEnd(jj)-1] = '0' + (values[ii]%10) ;
      }
      --- 164,179 ----
      for(ii=0 ; ii<TSNUMFIELD ; ii++)
      if((jj=pos[ii]) != 0)
      {
      ! if (ii == 0)
      {
      ! if((mereRegexGroupEnd(jj)-mereRegexGroupStart(jj)) == 4)
      ! {
      ! curwp->w_dotp->l_text[soff+mereRegexGroupEnd(jj)-4] = '0' + ((((int) values[0])+1900)/1000) ;
      ! curwp->w_dotp->l_text[soff+mereRegexGroupEnd(jj)-3] = '0' + (((((int) values[0])+1900)/100)%10) ;
      ! }
      ! curwp->w_dotp->l_text[soff+mereRegexGroupEnd(jj)-2] = '0' + ((values[ii])/10)%10 ;
      }
      + else
      curwp->w_dotp->l_text[soff+mereRegexGroupEnd(jj)-2] = '0' + (values[ii]/10) ;
      curwp->w_dotp->l_text[soff+mereRegexGroupEnd(jj)-1] = '0' + (values[ii]%10) ;
      }
      [EXIT]


      --
      ______________________________________________________________________

      Jon Green J.D.Naughton-Green

      SAMSUNG Electronics Ltd
      Samsung Electronics Research Institute (Audio / Visual Labs)
      The Communication Centre
      South Street
      Staines Tel: +44 (0)1784 428600 ext 644
      MIDDLESEX Fax: +44 (0)1784 428620
      TW18 4QE Email (work): jnaught@...
      England Email (home): jon@...
      _______________________________________________________________________
    Your message has been successfully submitted and would be delivered to recipients shortly.