~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/xml.c

  • Committer: Brian Aker
  • Date: 2008-07-30 17:24:10 UTC
  • mfrom: (236.1.6 codestyle)
  • Revision ID: brian@tangent.org-20080730172410-t4r8o7lx7r9m95x7
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#include "my_global.h"
17
16
#include "m_string.h"
18
17
#include "my_xml.h"
19
18
 
123
122
  a->beg=p->cur;
124
123
  a->end=p->cur;
125
124
  
126
 
  if ((p->end - p->cur > 3) && !bcmp(p->cur,"<!--",4))
 
125
  if ((p->end - p->cur > 3) && !memcmp(p->cur,"<!--",4))
127
126
  {
128
 
    for (; (p->cur < p->end) && bcmp(p->cur, "-->", 3); p->cur++)
 
127
    for (; (p->cur < p->end) && memcmp(p->cur, "-->", 3); p->cur++)
129
128
    {}
130
 
    if (!bcmp(p->cur, "-->", 3))
 
129
    if (!memcmp(p->cur, "-->", 3))
131
130
      p->cur+=3;
132
131
    a->end=p->cur;
133
132
    lex=MY_XML_COMMENT;
134
133
  }
135
 
  else if (!bcmp(p->cur, "<![CDATA[",9))
 
134
  else if (!memcmp(p->cur, "<![CDATA[",9))
136
135
  {
137
136
    p->cur+= 9;
138
137
    for (; p->cur < p->end - 2 ; p->cur++)