OSSP CVS Repository

ossp - Check-in [1301]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1301
Date: 2001-Nov-13 13:16:15 (local)
2001-Nov-13 12:16:15 (UTC)
User:simons
Branch:
Comment: - Fixed copyright header to show the right description. - Removed assertions.
Tickets:
Inspections:
Files:
ossp-pkg/var/var.c      1.1 -> 1.2     1 inserted, 18 deleted

ossp-pkg/var/var.c 1.1 -> 1.2

--- var.c        2001/11/13 12:08:30     1.1
+++ var.c        2001/11/13 12:16:15     1.2
@@ -24,10 +24,9 @@
 **  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 **  SUCH DAMAGE.
 **
-**  var.h: VAR library API
+**  var.c: VAR library implementation.
 */
 
-#include <assert.h>
 #include <ctype.h>
 #include <string.h>
 #include <stdio.h>
@@ -186,9 +185,6 @@
 
 static void expand_range(char a, char b, char class[256])
     {
-    assert(a <= b);
-    assert(class != NULL);
-
     do
         {
         class[(int)a] = 1;
@@ -200,9 +196,6 @@
     {
     size_t i;
 
-    assert(desc != NULL);
-    assert(class != NULL);
-
     /* Clear the class array. */
 
     for (i = 0; i < 256; ++i)
@@ -339,9 +332,6 @@
     const char* end = src + len;
     var_rc_t rc;
 
-    assert(src != NULL);
-    assert(dst != NULL);
-
     while (src < end)
         {
         if (*src == '\\')
@@ -1666,13 +1656,6 @@
     var_rc_t rc;
     tokenbuf output;
 
-    /* Assert everything is as we expect it. */
-
-    assert(input_buf != NULL);
-    assert(result != NULL);
-    assert(result_len != NULL);
-    assert(lookup != NULL);
-
     /* Expand the class description for valid variable names. */
 
     if (config == NULL)

CVSTrac 2.0.1