[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: prototype.h
User: peterb
Date: 07/05/28 03:27:24
Modified: . prototype.h struct.h
Log:
Add managed text buffers to libgeda.
In order to facilitate loading symbols & schematics from
memory without an extensive rewrite, this patch adds an API
for reading memory arrays a bit like a file.
Using memory streams & fgets would be nicer, but unfortunately
memory streams are a GNU libc extension.
Revision Changes Path
1.126 eda/geda/gaf/libgeda/include/prototype.h
(In the diff below, changes in quantity of whitespace are not shown.)
Index: prototype.h
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/include/prototype.h,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -b -r1.125 -r1.126
--- prototype.h 29 Apr 2007 12:01:21 -0000 1.125
+++ prototype.h 28 May 2007 07:27:24 -0000 1.126
@@ -635,3 +635,9 @@
void u_basic_strip_trailing(char *string, char c);
int u_basic_has_trailing(char *string, char c);
int u_basic_count_char(const char *string, char character);
+
+/* s_textbuffer.c */
+TextBuffer *s_textbuffer_new (gchar *data, const gint size);
+TextBuffer *s_textbuffer_free (TextBuffer *tb);
+void s_textbuffer_seek (TextBuffer *tb, const gint offset);
+const gchar *s_textbuffer_next (TextBuffer *tb, const gsize count);
1.102 eda/geda/gaf/libgeda/include/struct.h
(In the diff below, changes in quantity of whitespace are not shown.)
Index: struct.h
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/include/struct.h,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -b -r1.101 -r1.102
--- struct.h 17 Apr 2007 20:19:20 -0000 1.101
+++ struct.h 28 May 2007 07:27:24 -0000 1.102
@@ -55,6 +55,9 @@
typedef struct st_schcheck SCHCHECK;
typedef struct st_chkerrs CHKERRS;
+/* Managed text buffers */
+typedef struct _TextBuffer TextBuffer;
+
/* PB : change begin */
/* PB : these enum are constant to define :
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs