qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] Changes to qemacs/buffer.c


From: Charlie Gordon
Subject: [Qemacs-commit] Changes to qemacs/buffer.c
Date: Fri, 08 Jul 2005 05:30:45 -0400

Index: qemacs/buffer.c
diff -u qemacs/buffer.c:1.8 qemacs/buffer.c:1.9
--- qemacs/buffer.c:1.8 Wed May 11 14:35:54 2005
+++ qemacs/buffer.c     Fri Jul  8 09:30:44 2005
@@ -113,15 +113,16 @@
 }
 
 /* We must have: 0 <= offset < b->total_size */
-int eb_read(EditBuffer *b, int offset, u8 *buf, int size)
+int eb_read(EditBuffer *b, int offset, void *buf, int size)
 {
     return eb_rw(b, offset, buf, size, 0);
 }
 
 /* Note: eb_write can be used to insert after the end of the buffer */
-void eb_write(EditBuffer *b, int offset, u8 *buf, int size)
+void eb_write(EditBuffer *b, int offset, void *buf_arg, int size)
 {
     int len, left;
+    u8 *buf = buf_arg;
     
     len = eb_rw(b, offset, buf, size, 1);
     left = size - len;
@@ -330,7 +331,7 @@
 
 /* Insert 'size' bytes from 'buf' into 'b' at offset 'offset'. We must
    have : 0 <= offset <= b->total_size */
-void eb_insert(EditBuffer *b, int offset, const u8 *buf, int size)
+void eb_insert(EditBuffer *b, int offset, const void *buf, int size)
 {
     eb_addlog(b, LOGOP_INSERT, offset, size);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]