[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs buffer.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs buffer.c |
Date: |
Thu, 27 Aug 2015 18:59:57 +0000 |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 15/08/27 18:59:57
Modified files:
. : buffer.c
Log message:
fix more linux compilation warnings
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/buffer.c?cvsroot=qemacs&r1=1.94&r2=1.95
Patches:
Index: buffer.c
===================================================================
RCS file: /sources/qemacs/qemacs/buffer.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -b -r1.94 -r1.95
--- buffer.c 27 Aug 2015 18:52:30 -0000 1.94
+++ buffer.c 27 Aug 2015 18:59:56 -0000 1.95
@@ -299,8 +299,8 @@
EditBuffer *src, int src_offset,
int size)
{
- Page *p, *p_start, *q;
- int len, n, page_index, size0;
+ Page *p;
+ int len, size0;
if (dest->flags & BF_READONLY)
return 0;
@@ -323,7 +323,6 @@
eb_addlog(dest, LOGOP_INSERT, dest_offset, size);
#if 1
/* Much simpler algorithm with fewer pathological cases */
- n = 0; q = NULL; p_start = NULL; page_index = 0; /* Unused variables */
p = find_page(src, src_offset, &src_offset);
while (size > 0) {
len = p->size - src_offset;
@@ -349,6 +348,9 @@
}
return size0;
#else
+ Page *p_start, *q;
+ int n, page_index;
+
/* insert the data from the first page if it is not completely
selected */
p = find_page(src, src_offset, &src_offset);
@@ -557,7 +559,7 @@
}
return NULL;
}
-#define eb_cache_remove(b) 0
+#define eb_cache_remove(b)
#define eb_cache_insert(b) 0
#else
/* return index >= 0 if found, -1-insert_pos if not found */