OSDN Git Service

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

src/chxj_xhtml_mobile_1_0.c

index 8acf58b..aa09789 100644 (file)
@@ -88,7 +88,7 @@ static char* s_xhtml_1_0_end_textarea_tag  (void* pdoc, Node* node);
 
 static void  s_init_xhtml(xhtml_t* xhtml, Doc* doc, request_rec* r, device_table* spec);
 static int   s_xhtml_search_emoji(xhtml_t* xhtml, char* txt, char** rslt);
-static void  s_xhtml_1_0_chxjif_tag(xhtml_t* xhtml, Node* node);
+static char* s_xhtml_1_0_chxjif_tag       (void* pdoc, Node* node);
 
 
 tag_handler xhtml_handler[] = {
@@ -257,10 +257,9 @@ tag_handler xhtml_handler[] = {
     s_xhtml_1_0_start_div_tag,
     s_xhtml_1_0_end_div_tag,
   },
-#if 0
   /* tagCHXJIF */
   {
-    s_chtml10_chxjif_tag,
+    s_xhtml_1_0_chxjif_tag,
     NULL,
   },
   /* tagNOBR */
@@ -283,6 +282,7 @@ tag_handler xhtml_handler[] = {
     NULL,
     NULL,
   },
+#if 0
   /* tagTEXT */
   {
     s_chtml10_text,
@@ -2752,13 +2752,14 @@ s_xhtml_1_0_end_div_tag(void* pdoc, Node* child)
 /**
  * It is a handler who processes the CHXJ:IF 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 CHXJ:IF tag node is specified.
  */
-static void
-s_xhtml_1_0_chxjif_tag(xhtml_t* xhtml, Node* node)
+static char*
+s_xhtml_1_0_chxjif_tag(void* pdoc, Node* node)
 {
+  xhtml_t*     xhtml = GET_XHTML(pdoc);
   Doc*         doc   = xhtml->doc;
   Node*        child;
   request_rec* r = xhtml->doc->r;
@@ -2769,8 +2770,11 @@ s_xhtml_1_0_chxjif_tag(xhtml_t* xhtml, Node* node)
     xhtml->out = apr_pstrcat(r->pool, xhtml->out, child->otext, NULL);
     s_xhtml_1_0_chxjif_tag(xhtml, child);
   }
+
+  return NULL;
 }
 
+
 /**
  * It is a handler who processes the TEXTARE tag.
  *