[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[giFTcurs-commits] giFTcurs/src parse.c parse.h
From: |
Göran Weinholt |
Subject: |
[giFTcurs-commits] giFTcurs/src parse.c parse.h |
Date: |
Thu, 04 Nov 2004 10:05:17 -0500 |
CVSROOT: /cvsroot/giftcurs
Module name: giFTcurs
Branch:
Changes by: Göran Weinholt <address@hidden> 04/11/04 14:59:23
Modified files:
src : parse.c parse.h
Log message:
Remove unused bitmap code.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/giftcurs/giFTcurs/src/parse.c.diff?tr1=1.159&tr2=1.160&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/giftcurs/giFTcurs/src/parse.h.diff?tr1=1.97&tr2=1.98&r1=text&r2=text
Patches:
Index: giFTcurs/src/parse.c
diff -u giFTcurs/src/parse.c:1.159 giFTcurs/src/parse.c:1.160
--- giFTcurs/src/parse.c:1.159 Fri Apr 30 05:40:14 2004
+++ giFTcurs/src/parse.c Thu Nov 4 14:59:23 2004
@@ -18,7 +18,7 @@
* along with giFTcurs; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: parse.c,v 1.159 2004/04/30 05:40:14 weinholt Exp $
+ * $Id: parse.c,v 1.160 2004/11/04 14:59:23 weinholt Exp $
*/
#include "giftcurs.h"
@@ -294,30 +294,6 @@
}
}
-void bitmap_set(guchar *bitmap, guint size, guint idx, gboolean value)
-{
- if (value)
- bitmap[idx >> 3] |= 1 << (idx & 7);
- else
- bitmap[idx >> 3] &= ~(1 << (idx & 7));
-}
-
-gboolean bitmap_get(guchar *bitmap, guint size, guint idx)
-{
- return bitmap[idx >> 3] & (1 << (idx & 7));
-}
-
-gint bitmap_find_unset(guchar *bitmap, guint size)
-{
- int i;
-
- for (i = 0; i < size; i++)
- if (bitmap[i] != 0xff)
- return (i << 3) + g_bit_nth_lsf(~bitmap[i], -1);
-
- return -1;
-}
-
char *convert_to_locale(char *str)
{
const char *from, *to;
Index: giFTcurs/src/parse.h
diff -u giFTcurs/src/parse.h:1.97 giFTcurs/src/parse.h:1.98
--- giFTcurs/src/parse.h:1.97 Wed Apr 28 23:03:01 2004
+++ giFTcurs/src/parse.h Thu Nov 4 14:59:23 2004
@@ -18,7 +18,7 @@
* along with giFTcurs; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: parse.h,v 1.97 2004/04/28 23:03:01 weinholt Exp $
+ * $Id: parse.h,v 1.98 2004/11/04 14:59:23 weinholt Exp $
*/
#ifndef _PARSE_H
#define _PARSE_H
@@ -75,11 +75,6 @@
* width == -1 means do not wrap at all */
void wrap_lines(list *result, const char *text, int width);
-/* Size means sizeof(bitmap) */
-void bitmap_set(guchar *bitmap, guint size, guint idx, gboolean value);
-gboolean bitmap_get(guchar *bitmap, guint size, guint idx);
-gint bitmap_find_unset(guchar *bitmap, guint size);
-
/* Tries to convert from 'from' to 'to', freeing 'str' and returning the
newly allocated string if it worked. */
char *convert_to_locale(char *str);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [giFTcurs-commits] giFTcurs/src parse.c parse.h,
Göran Weinholt <=