home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / AppsToGo / AppsToGo.src / AppsToGo.Changes / DTS.Lib / StringUtils.c.df < prev    next >
Encoding:
Text File  |  1993-06-18  |  2.3 KB  |  74 lines  |  [TEXT/MPS ]

  1. File #1: b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:StringUtils.c
  2. File #2: a:Desktop Folder:AppsToGo.src:DTS.Lib:StringUtils.c
  3.  
  4. Extra lines in 1st before 6 in 2nd (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:StringUtils.c"; Line 6; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:StringUtils.c"; Line Δ6)
  5. **    Program:    StringUtils.c.o
  6.  
  7.  
  8. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:StringUtils.c"; Line 9; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:StringUtils.c"; Line 8)
  9. **    Copyright © 1988-1992 Apple Computer, Inc.
  10.  
  11. **    Copyright © 1988-1993 Apple Computer, Inc.
  12.  
  13.  
  14. Extra lines in 2nd before 13 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:StringUtils.c"; Line Δ13; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:StringUtils.c"; Line 12:18)
  15. /* You may incorporate this sample code into your applications without
  16. ** restriction, though the sample code has been provided "AS IS" and the
  17. ** responsibility for its operation is 100% yours.  However, what you are
  18. ** not permitted to do is to redistribute the source as "DSC Sample Code"
  19. ** after having made changes. If you're going to re-distribute the source,
  20. ** we require that you make it clear in the source that the code was
  21. ** descended from Apple Sample Code, but that you've made changes. */
  22.  
  23.  
  24. Extra lines in 2nd file (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:StringUtils.c"; Line 600Δ; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:StringUtils.c"; Line 607:653)
  25. /*****************************************************************************/
  26.  
  27.  
  28.  
  29. #pragma segment StringUtils
  30. Boolean    EqualHandle(void *h1, void *h2)
  31. {
  32.     long    s1, s2;
  33.     Ptr        p1, p2;
  34.  
  35.     if ((h1) && (!h2)) return(false);
  36.     if ((h2) && (!h1)) return(false);
  37.     if ((s1 = GetHandleSize(h1)) != (s2 = GetHandleSize(h2))) return(false);
  38.  
  39.     p1 = *(Handle)h1;
  40.     p2 = *(Handle)h2;
  41.     for (s1 = 0; s1 < s2; ++s1)
  42.         if (p1[s1] != p2[s1]) return(false);
  43.         
  44.     return(true);
  45. }
  46.  
  47.  
  48.  
  49. /*****************************************************************************/
  50.  
  51.  
  52.  
  53. #pragma segment StringUtils
  54. Boolean    EqualData(void *v1, void *v2, long size)
  55. {
  56.     Ptr        p1, p2;
  57.     long    ii;
  58.  
  59.     if ((v1) && (!v2)) return(false);
  60.     if ((v2) && (!v1)) return(false);
  61.  
  62.     p1 = (Ptr)v1;
  63.     p2 = (Ptr)v2;
  64.     for (ii = 0; ii < size; ++ii)
  65.         if (p1[ii] != p2[ii]) return(false);
  66.         
  67.     return(true);
  68. }
  69.  
  70.  
  71.  
  72.  
  73. *** EOF on both files ***
  74.