aboutsummaryrefslogtreecommitdiff
path: root/src/libhtml/strinttab.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/libhtml/strinttab.c
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/libhtml/strinttab.c')
-rw-r--r--src/libhtml/strinttab.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libhtml/strinttab.c b/src/libhtml/strinttab.c
index 7883c044..df52e3fe 100644
--- a/src/libhtml/strinttab.c
+++ b/src/libhtml/strinttab.c
@@ -4,10 +4,10 @@
#include <html.h>
#include "impl.h"
-// Do case-insensitive lookup of key[0:keylen] in t[0:n] (key part),
-// returning 1 if found, 0 if not.
-// Array t must be sorted in increasing lexicographic order of key.
-// If found, return corresponding val in *pans.
+/* Do case-insensitive lookup of key[0:keylen] in t[0:n] (key part), */
+/* returning 1 if found, 0 if not. */
+/* Array t must be sorted in increasing lexicographic order of key. */
+/* If found, return corresponding val in *pans. */
int
_lookup(StringInt* t, int n, Rune* key, int keylen, int* pans)
{
@@ -33,8 +33,8 @@ _lookup(StringInt* t, int n, Rune* key, int keylen, int* pans)
return 0;
}
-// Return first key in t[0:n] that corresponds to val,
-// nil if none.
+/* Return first key in t[0:n] that corresponds to val, */
+/* nil if none. */
Rune*
_revlookup(StringInt* t, int n, int val)
{
@@ -46,8 +46,8 @@ _revlookup(StringInt* t, int n, int val)
return nil;
}
-// Make a StringInt table out of a[0:n], mapping each string
-// to its index. Check that entries are in alphabetical order.
+/* Make a StringInt table out of a[0:n], mapping each string */
+/* to its index. Check that entries are in alphabetical order. */
StringInt*
_makestrinttab(Rune** a, int n)
{