summaryrefslogtreecommitdiffstats
path: root/lib/base/lexer.cpp
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2005-02-23 18:19:13 +0000
committerRob Crittenden <rcritten@redhat.com>2005-02-23 18:19:13 +0000
commit21305115e547133a0122c44b7e9956ef78dc94be (patch)
treeb72f28ba737b35c0f13003478f5e777146789ef3 /lib/base/lexer.cpp
parentf64e827b9c3011b07b5d78dd52466236dc77346e (diff)
downloadds-21305115e547133a0122c44b7e9956ef78dc94be.tar.gz
ds-21305115e547133a0122c44b7e9956ef78dc94be.tar.xz
ds-21305115e547133a0122c44b7e9956ef78dc94be.zip
149510
Strip down ACL code and support libraries to the bare minimum.
Diffstat (limited to 'lib/base/lexer.cpp')
-rw-r--r--lib/base/lexer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/base/lexer.cpp b/lib/base/lexer.cpp
index e521c51f..18327d0a 100644
--- a/lib/base/lexer.cpp
+++ b/lib/base/lexer.cpp
@@ -13,7 +13,7 @@
*/
#include "netsite.h"
-#include "base/nsassert.h"
+#include "prlog.h"
#include "lexer_pvt.h"
#include "base/lexer.h"
@@ -104,7 +104,7 @@ int lex_class_create(int classc, char * classv[], void **pchtab)
int i; /* class index */
/* Get number of bytes per bit vector */
- NS_ASSERT(classc > 0);
+ PR_ASSERT(classc > 0);
bvbytes = (classc + 7) >> 3;
/* Allocate the character class table */
@@ -137,7 +137,7 @@ int lex_class_create(int classc, char * classv[], void **pchtab)
}
/* Return pointer to table */
- NS_ASSERT(pchtab != NULL);
+ PR_ASSERT(pchtab != NULL);
*pchtab = (void *)ct;
return classc;
@@ -273,7 +273,7 @@ int lex_token_new(pool_handle_t * pool, int initlen, int growlen, void **token)
if (growlen > 0) lt->lt_inclen = growlen;
- NS_ASSERT(token != NULL);
+ PR_ASSERT(token != NULL);
*token = (void *)lt;
return 0;
@@ -533,8 +533,8 @@ int lex_token_append(void * token, int nbytes, char * src)
int bufsize;
int length;
- NS_ASSERT(nbytes >= 0);
- NS_ASSERT((src != NULL) || (nbytes == 0));
+ PR_ASSERT(nbytes >= 0);
+ PR_ASSERT((src != NULL) || (nbytes == 0));
if (nbytes > 0) {