[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [patch] First stab at text deltas

From: Branko Čibej <branko.cibej_at_hermes.si>
Date: 2000-08-11 15:39:20 CEST

O.K., here's the second stab. We now have a working vdelta generator,
with windowing, ain't that nice!

    subversion/include/svn_delta.h:
        Add ops_size and pool to svn_delta_window_t.

    subversion/libsvn_delta/Makefile.am:
        Add delta_stream.c vdelta.c to libsvn_delta_la_SOURCES.
    subversion/libsvn_delta/delta_stream.h: New, private header.
        Define svn_delta_stream_t and friends.
    subversion/libsvn_delta/delta_stream.c: New.
        Implementation of the public text delta interface
        and parts of the private interface.
    subversion/libsvn_delta/vdelta.c: Core vdelta generator.

    subversion/libsvn_delta/tests/Makefile.am: New.
    subversion/libsvn_delta/tests/text-delta.c: New.
        Test driver for generating text deltas.

    Brane

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70

Index: subversion/include/svn_delta.h
===================================================================
RCS file: /cvs/subversion/subversion/include/svn_delta.h,v
retrieving revision 1.27
diff -u -p -r1.27 svn_delta.h
--- subversion/include/svn_delta.h 2000/08/08 17:34:03 1.27
+++ subversion/include/svn_delta.h 2000/08/11 13:31:23
@@ -129,12 +129,18 @@ typedef struct svn_delta_window_t {
 
   /* The number of instructions in this window. */
   int num_ops;
+
+ /* The ammount of space allocated for instrictions. */
+ int ops_size;
   
   /* The instructions for this window. */
   svn_delta_op_t *ops;
 
   /* New data, for use by any `svn_delta_new' instructions. */
   svn_string_t *new;
+
+ /* The memory pool used by this window. */
+ apr_pool_t* pool;
 
 } svn_delta_window_t;
 
Index: subversion/libsvn_delta/Makefile.am
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_delta/Makefile.am,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile.am
--- subversion/libsvn_delta/Makefile.am 2000/08/08 23:22:04 1.3
+++ subversion/libsvn_delta/Makefile.am 2000/08/11 13:31:23
@@ -8,7 +8,7 @@
 lib_LTLIBRARIES = libsvn_delta.la
 
 ## Sources needed to build each library (names canonicalized)
-libsvn_delta_la_SOURCES = delta_parse.c
+libsvn_delta_la_SOURCES = delta_parse.c delta_stream.c vdelta.c
 
 ## Build flags ---------
 

Received on Sat Oct 21 14:36:06 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.