[vte] [stream] s/trunc/truncate/



commit efe25381cca2767423f1c7061dcda1a0be87e59b
Author: Behdad Esfahbod <behdad behdad org>
Date:   Mon Sep 14 13:31:27 2009 -0400

    [stream] s/trunc/truncate/

 src/vtestream-base.h |    6 +++---
 src/vtestream-file.h |    4 ++--
 src/vtestream.h      |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/vtestream-base.h b/src/vtestream-base.h
index fd3bd02..1562083 100644
--- a/src/vtestream-base.h
+++ b/src/vtestream-base.h
@@ -33,7 +33,7 @@ typedef struct _VteStreamClass {
 
 	gsize (*append) (VteStream *stream, const char *data, gsize len);
 	void (*read) (VteStream *stream, gsize offset, char *data, gsize len);
-	void (*trunc) (VteStream *stream, gsize offset);
+	void (*truncate) (VteStream *stream, gsize offset);
 	void (*new_page) (VteStream *stream);
 } VteStreamClass;
 
@@ -66,9 +66,9 @@ _vte_stream_read (VteStream *stream, gsize offset, char *data, gsize len)
 }
 
 void
-_vte_stream_trunc (VteStream *stream, gsize offset)
+_vte_stream_truncate (VteStream *stream, gsize offset)
 {
-	VTE_STREAM_GET_CLASS (stream)->trunc (stream, offset);
+	VTE_STREAM_GET_CLASS (stream)->truncate (stream, offset);
 }
 
 void
diff --git a/src/vtestream-file.h b/src/vtestream-file.h
index c60ba9d..eefc28d 100644
--- a/src/vtestream-file.h
+++ b/src/vtestream-file.h
@@ -175,7 +175,7 @@ _xtruncate (gint fd, gsize offset)
 }
 
 static void
-_vte_file_stream_trunc (VteStream *astream, gsize offset)
+_vte_file_stream_truncate (VteStream *astream, gsize offset)
 {
 	VteFileStream *stream = (VteFileStream *) astream;
 
@@ -213,6 +213,6 @@ _vte_file_stream_class_init (VteFileStreamClass *klass)
 
 	klass->append = _vte_file_stream_append;
 	klass->read = _vte_file_stream_read;
-	klass->trunc = _vte_file_stream_trunc;
+	klass->truncate = _vte_file_stream_truncate;
 	klass->new_page = _vte_file_stream_new_page;
 }
diff --git a/src/vtestream.h b/src/vtestream.h
index cd1079d..8843350 100644
--- a/src/vtestream.h
+++ b/src/vtestream.h
@@ -29,7 +29,7 @@ typedef struct _VteStream VteStream;
 
 gsize _vte_stream_append (VteStream *stream, const char *data, gsize len);
 void _vte_stream_read (VteStream *stream, gsize offset, char *data, gsize len);
-void _vte_stream_trunc (VteStream *stream, gsize offset);
+void _vte_stream_truncate (VteStream *stream, gsize offset);
 void _vte_stream_new_page (VteStream *stream);
 
 



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