home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1993-06-18 | 2.7 KB | 86 lines | [ TEXT/MPS ]
File #1: b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:TreeObj.c File #2: a:Desktop Folder:AppsToGo.src:DTS.Lib:TreeObj.c Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:TreeObj.c"; Line 8; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:TreeObj.c"; Line 8) ** Copyright © 1992 Apple Computer, Inc. ** Copyright © 1992-1993 Apple Computer, Inc. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:TreeObj.c"; Line 12:13; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:TreeObj.c"; Line 12:19) /* You may incorporate this sample code into your applications without ** restriction, though the sample code has been provided "AS IS" and the ** responsibility for its operation is 100% yours. However, what you are ** not permitted to do is to redistribute the source as "DSC Sample Code" ** after having made changes. If you're going to re-distribute the source, ** we require that you make it clear in the source that the code was ** descended from Apple Sample Code, but that you've made changes. */ Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:TreeObj.c"; Line 393; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:TreeObj.c"; Line 399) OSErr SwapChildData(TreeObjHndl hndla, TreeObjHndl hndlb) OSErr SwapTreeObjData(TreeObjHndl hndla, TreeObjHndl hndlb) Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:TreeObj.c"; Line 1643; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:TreeObj.c"; Line 1649) SwapChildData(dhndl, uhndl); SwapTreeObjData(dhndl, uhndl); Extra lines in 2nd file (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:TreeObj.c"; Line 2345Δ; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:TreeObj.c"; Line 2352:2398) /**********************************************************************/ /**********************************************************************/ #pragma segment TreeObj Boolean EqualTreeObjData(TreeObjHndl h1, TreeObjHndl h2) { TreeObjProcPtr proc; if ((h1) && (!h2)) return(false); if ((h2) && (!h1)) return(false); if ((*h1)->type != (*h2)->type) return(false); if (proc = gTreeObjMethods[(*h1)->type]) return((*proc)(h1, COMPAREMESSAGE, (long)h2)); else return(DefaultEqualTreeObjData(h1, h2)); } /**********************************************************************/ #pragma segment TreeObj Boolean DefaultEqualTreeObjData(TreeObjHndl h1, TreeObjHndl h2) { Ptr p1, p2; long ii, jj; if ((jj = (*h1)->dataSize) != (*h2)->dataSize) return(false); p1 = GetDataPtr(h1); p2 = GetDataPtr(h2); for (ii = 0; ii < jj; ++ii) { if (p1[ii] != p2[ii]) return(false); } return(true); } *** EOF on both files ***