OSDN Git Service

*** empty log message ***
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Tue, 11 Jul 2006 18:09:50 +0000 (18:09 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Tue, 11 Jul 2006 18:09:50 +0000 (18:09 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@1748 1a406e8e-add9-4483-a2c8-d8cac5b7c224

include/chxj_tag_util.h
include/qs_malloc.h
include/qs_parse_file.h
include/qs_parse_string.h
src/qs_parse_attr.c
src/qs_parse_string.c
src/qs_parse_tag.c

index 482ca93..d81c879 100644 (file)
@@ -86,8 +86,8 @@ extern char* qs_trim_string(
 
 extern int   chxj_chxjif_is_mine(
   device_table* spec, 
-  Doc* doc, 
-  Node* tag);
+  Doc*          doc, 
+  Node*         tag);
 
 extern char* qs_get_destlang_attr(Doc* doc, Node* tag, request_rec* r);
 
index fc2e93b..dd6e21a 100644 (file)
@@ -24,6 +24,6 @@ extern void qs_init_malloc(
 extern void qs_all_free(
   Doc*        doc, 
   const char* fname,
-  int line);
+  int         line);
 
 #endif
index 48ab5cc..db97601 100644 (file)
@@ -22,7 +22,7 @@
  * Prototype Declare
  */
 extern Node* qs_parse_file(
-  Doc* doc, 
+  Doc*        doc, 
   const char* filename);
 
 #endif
index b7c2223..7225fe4 100644 (file)
@@ -183,7 +183,8 @@ extern Node* qs_parse_string(
   int         len);
 
 extern char* qs_get_node_value(
-  Doc* doc,Node* node);
+  Doc* doc,
+  Node* node);
 
 extern char* qs_get_node_name(Doc* doc, Node* node) ;
 
index b1b4450..2e3d59f 100644 (file)
@@ -166,10 +166,14 @@ qs_parse_attr(Doc* doc, const char*s, int len, int *pos)
 Attr*
 qs_new_attr(Doc* doc) 
 {
-  Attr* attr = (Attr*)apr_palloc(doc->pool,sizeof(Attr));
+  Attr* attr;
+
+  attr = (Attr*)apr_palloc(doc->pool,sizeof(Attr));
+
   if (attr == NULL) {
     QX_LOGGER_FATAL("Out Of Memory");
   }
+
   attr->next   = NULL;
   attr->parent = NULL;
   attr->name   = NULL;
index 42fbc7d..3305047 100644 (file)
@@ -44,11 +44,11 @@ Node*
 qs_parse_string(Doc* doc, const char* src, int srclen) 
 {
   int     ii;
-  char encoding[256];
-  char* osrc;
-  char* ibuf;
-  int olen;
-  int ilen;
+  char    encoding[256];
+  char*   osrc;
+  char*   ibuf;
+  int     olen;
+  int     ilen;
   iconv_t cd;
 
   osrc = NULL;
index 574ce1d..0be2fb5 100644 (file)
@@ -133,9 +133,8 @@ qs_new_tag(Doc* doc)
 Node*
 qs_add_attr(Doc* doc, Node* node, Attr* attr) 
 {
-  if (node == NULL) {
+  if (node == NULL)
     QX_LOGGER_FATAL("qs_add_attr() node is null");
-  }
 
   attr->parent = node;
   attr->next   = NULL;