Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/string size_t -> uint8_t
details: https://anonhg.NetBSD.org/src/rev/fb15612f505d
branches: trunk
changeset: 778265:fb15612f505d
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 21 00:35:50 2012 +0000
description:
size_t -> uint8_t
diffstat:
lib/libc/string/strcspn.c | 6 +++---
lib/libc/string/strspn.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r e5fc325fe958 -r fb15612f505d lib/libc/string/strcspn.c
--- a/lib/libc/string/strcspn.c Wed Mar 21 00:35:33 2012 +0000
+++ b/lib/libc/string/strcspn.c Wed Mar 21 00:35:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strcspn.c,v 1.17 2009/07/30 21:42:06 dsl Exp $ */
+/* $NetBSD: strcspn.c,v 1.18 2012/03/21 00:35:50 christos Exp $ */
/*-
* Copyright (c) 2008 Joerg Sonnenberger
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: strcspn.c,v 1.17 2009/07/30 21:42:06 dsl Exp $");
+__RCSID("$NetBSD: strcspn.c,v 1.18 2012/03/21 00:35:50 christos Exp $");
#include <assert.h>
#include <inttypes.h>
@@ -39,7 +39,7 @@
size_t
strcspn(const char *s, const char *charset)
{
- static const size_t idx[8] = { 1, 2, 4, 8, 16, 32, 64, 128 };
+ static const uint8_t idx[8] = { 1, 2, 4, 8, 16, 32, 64, 128 };
const char *t;
uint8_t set[32];
#define UC(a) ((unsigned int)(unsigned char)(a))
diff -r e5fc325fe958 -r fb15612f505d lib/libc/string/strspn.c
--- a/lib/libc/string/strspn.c Wed Mar 21 00:35:33 2012 +0000
+++ b/lib/libc/string/strspn.c Wed Mar 21 00:35:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strspn.c,v 1.17 2009/07/30 21:42:06 dsl Exp $ */
+/* $NetBSD: strspn.c,v 1.18 2012/03/21 00:35:50 christos Exp $ */
/*-
* Copyright (c) 2008 Joerg Sonnenberger
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: strspn.c,v 1.17 2009/07/30 21:42:06 dsl Exp $");
+__RCSID("$NetBSD: strspn.c,v 1.18 2012/03/21 00:35:50 christos Exp $");
#include <assert.h>
#include <inttypes.h>
@@ -38,7 +38,7 @@
size_t
strspn(const char *s, const char *charset)
{
- static const size_t idx[8] = { 1, 2, 4, 8, 16, 32, 64, 128 };
+ static const uint8_t idx[8] = { 1, 2, 4, 8, 16, 32, 64, 128 };
uint8_t set[32];
const char *t;
#define UC(a) ((unsigned int)(unsigned char)(a))
Home |
Main Index |
Thread Index |
Old Index