OSDN Git Service

* change writting.
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Sat, 24 Jun 2006 11:48:54 +0000 (11:48 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Sat, 24 Jun 2006 11:48:54 +0000 (11:48 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@1165 1a406e8e-add9-4483-a2c8-d8cac5b7c224

src/chxj_xhtml_mobile_1_0.c

index 15b205d..f15e2f1 100644 (file)
@@ -39,9 +39,9 @@ static char* s_xhtml_1_0_start_h2_tag     (void* pdoc, Node* node);
 static char* s_xhtml_1_0_end_h2_tag       (void* pdoc, Node* node);
 static char* s_xhtml_1_0_start_h3_tag     (void* pdoc, Node* node);
 static char* s_xhtml_1_0_end_h3_tag       (void* pdoc, Node* node);
+static char* s_xhtml_1_0_start_h4_tag     (void* pdoc, Node* node);
+static char* s_xhtml_1_0_end_h4_tag       (void* pdoc, Node* node);
 
-static char* s_xhtml_1_0_start_h4_tag     (xhtml_t* xhtml, Node* node);
-static char* s_xhtml_1_0_end_h4_tag       (xhtml_t* xhtml, Node* node);
 static char* s_xhtml_1_0_start_h5_tag     (xhtml_t* xhtml, Node* node);
 static char* s_xhtml_1_0_end_h5_tag       (xhtml_t* xhtml, Node* node);
 static char* s_xhtml_1_0_start_h6_tag     (xhtml_t* xhtml, Node* node);
@@ -152,12 +152,12 @@ tag_handler xhtml_handler[] = {
     s_xhtml_1_0_start_h3_tag,
     s_xhtml_1_0_end_h3_tag,
   },
-#if 0
   /* tagH4 */
   {
-    s_chtml10_start_h4_tag,
-    s_chtml10_end_h4_tag,
+    s_xhtml_1_0_start_h4_tag,
+    s_xhtml_1_0_end_h4_tag,
   },
+#if 0
   /* tagH5 */
   {
     s_chtml10_start_h5_tag,
@@ -2167,41 +2167,45 @@ s_xhtml_1_0_end_h3_tag(void* pdoc, Node* child)
 /**
  * It is a handler who processes the H4 tag.
  *
- * @param xhtml  [i/o] The pointer to the XHTML structure at the output
+ * @param pdoc  [i/o] The pointer to the XHTML structure at the output
  *                     destination is specified.
  * @param node   [i]   The H4 tag node is specified.
  * @return The conversion result is returned.
  */
 static char*
-s_xhtml_1_0_start_h4_tag(xhtml_t* xhtml, Node* node) 
+s_xhtml_1_0_start_h4_tag(void* pdoc, Node* node) 
 {
-  Doc*          doc = xhtml->doc;
-  request_rec*  r   = doc->r;
+  xhtml_t*      xhtml = GET_XHTML(pdoc);
+  Doc*          doc   = xhtml->doc;
+  request_rec*  r     = doc->r;
 
   xhtml->out = apr_pstrcat(r->pool, xhtml->out, "<h4>", NULL);
 
   return xhtml->out;
 }
 
+
 /**
  * It is a handler who processes the H4 tag.
  *
- * @param xhtml  [i/o] The pointer to the XHTML structure at the output
+ * @param pdoc  [i/o] The pointer to the XHTML structure at the output
  *                     destination is specified.
  * @param node   [i]   The H4 tag node is specified.
  * @return The conversion result is returned.
  */
 static char*
-s_xhtml_1_0_end_h4_tag(xhtml_t* xhtml, Node* child) 
+s_xhtml_1_0_end_h4_tag(void* pdoc, Node* child) 
 {
-  Doc*          doc = xhtml->doc;
-  request_rec*  r   = doc->r;
+  xhtml_t*      xhtml = GET_XHTML(pdoc);
+  Doc*          doc   = xhtml->doc;
+  request_rec*  r     = doc->r;
 
   xhtml->out = apr_pstrcat(r->pool, xhtml->out, "</h4>", NULL);
 
   return xhtml->out;
 }
 
+
 /**
  * It is a handler who processes the H5 tag.
  *