~ubuntu-branches/ubuntu/intrepid/xml2/intrepid

« back to all changes in this revision

Viewing changes to 2xml.c

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Schoenfeld
  • Date: 2008-03-10 10:38:58 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080310103858-w58ckoy1tv31szkm
Tags: upstream-0.4
ImportĀ upstreamĀ versionĀ 0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
                if (!do_html && in_tag)
104
104
                        fputs("/>",stdout);
105
105
                else {
106
 
                        htmlElemDescPtr elem = NULL;
 
106
                        const htmlElemDesc *elem = NULL;
107
107
                        if (do_html) elem = htmlTagLookup(name);
108
108
                        finish_tag();
109
109
                        if (NULL == elem || (!elem->endTag && !elem->empty)) {
116
116
        }
117
117
}
118
118
 
119
 
static void characters(const char *stuff,const char *context)
 
119
static void chars(const char *stuff,const char *context)
120
120
{
121
121
        switch (context[0]) {
122
122
        case '!':
183
183
        }
184
184
 
185
185
        if (NULL == name && NULL == *ptr && NULL != content)
186
 
                characters("\n",context);
 
186
                chars("\n",context);
187
187
 
188
188
        release(ptr);
189
189
 
204
204
        }
205
205
 
206
206
        *ptr = NULL;
207
 
        if (NULL != content) characters(content,context);
 
207
        if (NULL != content) chars(content,context);
208
208
}
209
209
 
210
210
int main(int argc,char *argv[])