Check-in Number:
|
4208 | |
Date: |
2001-Jul-18 19:49:51 (local)
2001-Jul-18 17:49:51 (UTC) |
User: | simons |
Branch: | |
Comment: |
Added XDS_TRUE and XDS_FALSE defines and started using them in the
sources. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/xds/find-engine.c 1.2 -> 1.3
--- find-engine.c 2001/07/08 15:22:00 1.2
+++ find-engine.c 2001/07/18 17:49:51 1.3
@@ -53,7 +53,7 @@
else if(rc == 0)
{ /* found it */
*pos = half;
- return (1 == 1);
+ return XDS_TRUE;
}
else
{
@@ -63,5 +63,5 @@
}
*pos = first;
- return (1 != 1);
+ return XDS_FALSE;
}
|
|
ossp-pkg/xds/internal.h 1.5 -> 1.6
--- internal.h 2001/07/09 17:21:36 1.5
+++ internal.h 2001/07/18 17:49:51 1.6
@@ -32,6 +32,9 @@
#include "xds.h"
+#define XDS_TRUE (1==1)
+#define XDS_FALSE (1!=1)
+
#define XDS_INITIAL_BUFFER_CAPACITY 512
#define XDS_INITIAL_ENGINES_CAPACITY 32
|
|
ossp-pkg/xds/setbuffer.c 1.4 -> 1.5
--- setbuffer.c 2001/07/09 19:20:58 1.4
+++ setbuffer.c 2001/07/18 17:49:51 1.5
@@ -52,13 +52,13 @@
xds->buffer_capacity = 0;
else
xds->buffer_capacity = buffer_len;
- xds->we_own_buffer = (1==1);
+ xds->we_own_buffer = XDS_TRUE;
}
else
{
xds->buffer = buffer;
xds->buffer_capacity = buffer_len;
- xds->we_own_buffer = (1!=1);
+ xds->we_own_buffer = XDS_FALSE;
}
return XDS_OK;
|
|
ossp-pkg/xds/vencode.c 1.8 -> 1.9
--- vencode.c 2001/07/18 17:38:37 1.8
+++ vencode.c 2001/07/18 17:49:51 1.9
@@ -64,7 +64,7 @@
return rc;
printf("Setting up buffer with capacity %d byte.\n", xds->buffer_capacity);
xds->buffer_len = 0;
- xds->we_own_buffer = (1==1);
+ xds->we_own_buffer = XDS_FALSE;
}
/* Ensure the buffer has free space. */
@@ -126,11 +126,11 @@
if (rc > xds->buffer_capacity - xds->buffer_len)
{
- restart_engine = (1==1);
+ restart_engine = XDS_TRUE;
args = args_backup;
}
else
- restart_engine = (1!=1);
+ restart_engine = XDS_FALSE;
if (!xds->we_own_buffer)
{
@@ -153,7 +153,7 @@
}
else
{
- restart_engine = (1!=1);
+ restart_engine = XDS_FALSE;
xds->buffer_len += rc;
}
}
|
|