~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/delta.h

  • Committer: John Arbash Meinel
  • Date: 2009-03-26 16:22:58 UTC
  • mto: (3735.40.9 vilajam)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090326162258-21e57rtpx47t6493
Get rid of inline and const, to reduce warnings and errors.
It seems compilers don't like it if you pass &(unsigned char *) to
(const unsigned char **), and pyrex doesn't let you define 'const unsigned char*',
(it doesn't like const at all), so for now, just remove it, because
it doesn't hurt anything.

Removing inline because MSVC doesn't understand it, and causes compile
failures. It wasn't really important anyway.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 * This must be called twice on the delta data buffer, first to get the
85
85
 * expected source buffer size, and again to get the target buffer size.
86
86
 */
87
 
static inline unsigned long get_delta_hdr_size(const unsigned char **datap,
88
 
                                               const unsigned char *top)
 
87
static unsigned long
 
88
get_delta_hdr_size(unsigned char **datap, const unsigned char *top)
89
89
{
90
 
    const unsigned char *data = *datap;
 
90
    unsigned char *data = *datap;
91
91
    unsigned char cmd;
92
92
    unsigned long size = 0;
93
93
    int i = 0;