/ Check-in [618df68b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Minor cleanup: Use size_t for struct size cast (CVS 4940)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:618df68b8b78d376d30cea79a273fd39140f5033
User & Date: mlcreech 2008-03-29 23:25:27
Context
2008-03-31
17:41
In setQuotedToken(), only make a malloced copy if the argument contains one or more " characters. (CVS 4941) check-in: b266924b user: danielk1977 tags: trunk
2008-03-29
23:25
Minor cleanup: Use size_t for struct size cast (CVS 4940) check-in: 618df68b user: mlcreech tags: trunk
17:26
Set exclusive locking mode by default on the speed4p test. (CVS 4939) check-in: 2d9fea95 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/vdbemem.c.

504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
  }
  return 0; 
}

/*
** Size of struct Mem not including the Mem.zMalloc member.
*/
#define MEMCELLSIZE (int)(&(((Mem *)0)->zMalloc))

/*
** Make an shallow copy of pFrom into pTo.  Prior contents of
** pTo are freed.  The pFrom->z field is not duplicated.  If
** pFrom->z is used, then pTo->z points to the same thing as pFrom->z
** and flags gets srcType (either MEM_Ephem or MEM_Static).
*/







|







504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
  }
  return 0; 
}

/*
** Size of struct Mem not including the Mem.zMalloc member.
*/
#define MEMCELLSIZE (size_t)(&(((Mem *)0)->zMalloc))

/*
** Make an shallow copy of pFrom into pTo.  Prior contents of
** pTo are freed.  The pFrom->z field is not duplicated.  If
** pFrom->z is used, then pTo->z points to the same thing as pFrom->z
** and flags gets srcType (either MEM_Ephem or MEM_Static).
*/