OSSP CVS Repository

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

Check-in Number: 636
Date: 2001-Aug-08 21:32:02 (local)
2001-Aug-08 19:32:02 (UTC)
User:rse
Branch:
Comment: Do not export internal things.
Tickets:
Inspections:
Files:
ossp-pkg/xds/xds.h.in      1.11 -> 1.12     0 inserted, 5 deleted
ossp-pkg/xds/xds_engine_xml.c      1.1 -> 1.2     6 inserted, 5 deleted

ossp-pkg/xds/xds.h.in 1.11 -> 1.12

--- xds.h.in     2001/08/08 19:29:26     1.11
+++ xds.h.in     2001/08/08 19:32:02     1.12
@@ -157,10 +157,5 @@
 xds_declare_formatting_engine(xml_encode_string);
 xds_declare_formatting_engine(xml_decode_string);
 
-extern const char xds_xml_begin_text[];
-extern const char xds_xml_end_text[];
-extern const char xds_base64[];
-extern const char xds_pad64;
-
 #endif /* __XDS_H__ */
 


ossp-pkg/xds/xds_engine_xml.c 1.1 -> 1.2

--- xds_engine_xml.c     2001/08/08 19:15:23     1.1
+++ xds_engine_xml.c     2001/08/08 19:32:02     1.2
@@ -27,11 +27,14 @@
 #include <stdio.h>
 #include "xds.h"
 
-const char xds_xml_begin_text[] =
+static const char xds_xml_begin_text[] =
     "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\">\n"
     "<!DOCTYPE xds SYSTEM \"http://www.ossp.org/pkg/xds/xds-xml.dtd\">\n"
     "<xds>\n";
 
+static const char xds_xml_end_text[] = 
+    "</xds>\n";
+
 int xml_encode_begin(xds_t * xds, void *engine_context,
                      void *buffer, size_t buffer_size,
                      size_t * used_buffer_size, va_list * args)
@@ -52,8 +55,6 @@
     return XDS_OK;
 }
 
-const char xds_xml_end_text[] = "</xds>\n";
-
 int xml_encode_end(xds_t * xds, void *engine_context,
                    void *buffer, size_t buffer_size,
                    size_t * used_buffer_size, va_list * args)
@@ -754,9 +755,9 @@
     return XDS_OK;
 }
 
-const char xds_base64[] =
+static const char xds_base64[] =
     "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
-const char xds_pad64 = '=';
+static const char xds_pad64 = '=';
 
 static int base64_encode(char *dst, size_t dstlen, unsigned char const *src,
                          size_t srclen)

CVSTrac 2.0.1