You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2005/10/07 06:28:33 UTC
svn commit: r307002 - in
/webservices/axis2/trunk/c/modules/xml/guththila/src: guththila_attribute.h
guththila_main.c guththila_stack.c guththila_stack.h guththila_token.h
guththila_xml_pull_parser.c guththila_xml_pull_parser.h
Author: samisa
Date: Thu Oct 6 21:28:22 2005
New Revision: 307002
URL: http://svn.apache.org/viewcvs?rev=307002&view=rev
Log:
Changed naming ATTRIBUTE to guththila_attribute_t
Modified:
webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_attribute.h
webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_main.c
webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_stack.c
webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_stack.h
webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_token.h
webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_pull_parser.c
webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_pull_parser.h
Modified: webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_attribute.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_attribute.h?rev=307002&r1=307001&r2=307002&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_attribute.h (original)
+++ webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_attribute.h Thu Oct 6 21:28:22 2005
@@ -17,15 +17,15 @@
* @author Dinesh Premalal (xydinesh@gmail.com, premalwd@cse.mrt.ac.lk)
*/
-#ifndef ATTRIBUTE_H
-#define ATTRIBUTE_H
+#ifndef GUTHTHILA_ATTRIBUTE_H
+#define GUTHTHILA_ATTRIBUTE_H
#include "guththila_token.h"
-typedef struct attribute
+typedef struct guththila_attribute_s
{
guththila_token_t *prefix;
guththila_token_t *name;
guththila_token_t *value;
-}ATTRIBUTE;
+} guththila_attribute_t;
-#endif /* ATTRIBUTE_H */
+#endif /* GUTHTHILA_ATTRIBUTE_H */
Modified: webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_main.c?rev=307002&r1=307001&r2=307002&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_main.c (original)
+++ webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_main.c Thu Oct 6 21:28:22 2005
@@ -18,7 +18,7 @@
ix = XML_PullParser_getAttributeCount (parser);
for (; ix > 0; ix--)
{
- ATTRIBUTE *a;
+ guththila_attribute_t *a;
char *p;
a = XML_PullParser_getAttribute (parser);
p = XML_PullParser_getAttributeName (parser, a);
Modified: webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_stack.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_stack.c?rev=307002&r1=307001&r2=307002&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_stack.c (original)
+++ webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_stack.c Thu Oct 6 21:28:22 2005
@@ -38,7 +38,7 @@
int
-Stack_push (STACK *stack, guththila_token_t *tok, ATTRIBUTE *attr)
+Stack_push (STACK *stack, guththila_token_t *tok, guththila_attribute_t *attr)
{
if (stack)
{
Modified: webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_stack.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_stack.h?rev=307002&r1=307001&r2=307002&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_stack.h (original)
+++ webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_stack.h Thu Oct 6 21:28:22 2005
@@ -38,7 +38,7 @@
typedef struct element
{
guththila_token_t *token;
- ATTRIBUTE *attribute;
+ guththila_attribute_t *attribute;
NAMESPACE *namespace;
DEPTH *depth;
ELEMENT *prev;
@@ -55,7 +55,7 @@
/* stack implementation */
STACK *Stack_createStack ();
-int Stack_push (STACK *st, guththila_token_t *tok, ATTRIBUTE *attr);
+int Stack_push (STACK *st, guththila_token_t *tok, guththila_attribute_t *attr);
int Stack_size (STACK *st);
void Stack_free (STACK *st);
void Stack_free_rec (STACK *st, ELEMENT *el);
Modified: webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_token.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_token.h?rev=307002&r1=307001&r2=307002&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_token.h (original)
+++ webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_token.h Thu Oct 6 21:28:22 2005
@@ -18,8 +18,8 @@
*/
-#ifndef GUTHTHILA_guththila_token_t_H
-#define GUTHTHILA_guththila_token_t_H
+#ifndef GUTHTHILA_TOKEN_H
+#define GUTHTHILA_TOKEN_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -63,4 +63,4 @@
char *guththila_token_build_utf8 (unsigned int utf16_ch, int length);
char *guththila_token_char_ref (char *buffer);
-#endif /* GUTHTHILA_guththila_token_t_H */
+#endif /* GUTHTHILA_TOKEN_H */
Modified: webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_pull_parser.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_pull_parser.c?rev=307002&r1=307001&r2=307002&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_pull_parser.c (original)
+++ webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_pull_parser.c Thu Oct 6 21:28:22 2005
@@ -862,8 +862,8 @@
XML_PullParser_addAttribute (XML_PullParser * parser, guththila_token_t * name,
guththila_token_t * value)
{
- ATTRIBUTE *att;
- att = (ATTRIBUTE *) malloc (sizeof (ATTRIBUTE));
+ guththila_attribute_t *att;
+ att = (guththila_attribute_t *) malloc (sizeof (guththila_attribute_t));
att->name = name;
att->value = value;
att->prefix = NULL;
@@ -876,8 +876,8 @@
guththila_token_t * prefix, guththila_token_t * name,
guththila_token_t * value)
{
- ATTRIBUTE *att;
- att = (ATTRIBUTE *) malloc (sizeof (ATTRIBUTE));
+ guththila_attribute_t *att;
+ att = (guththila_attribute_t *) malloc (sizeof (guththila_attribute_t));
att->name = name;
att->value = value;
att->prefix = prefix;
@@ -907,7 +907,7 @@
}
-ATTRIBUTE *
+guththila_attribute_t *
XML_PullParser_getAttribute (XML_PullParser * parser)
{
ELEMENT *e;
@@ -920,7 +920,7 @@
char *
-XML_PullParser_getAttributeName (XML_PullParser * parser, ATTRIBUTE * att)
+XML_PullParser_getAttributeName (XML_PullParser * parser, guththila_attribute_t * att)
{
if (!att)
XML_PullParser_Exception (p_FILE, LINE);
@@ -931,7 +931,7 @@
char *
-XML_PullParser_getAttributeValue (XML_PullParser * parser, ATTRIBUTE * att)
+XML_PullParser_getAttributeValue (XML_PullParser * parser, guththila_attribute_t * att)
{
if (!att)
XML_PullParser_Exception (p_FILE, LINE);
@@ -942,7 +942,7 @@
char *
-XML_PullParser_getAttributePrefix (XML_PullParser * parser, ATTRIBUTE * att)
+XML_PullParser_getAttributePrefix (XML_PullParser * parser, guththila_attribute_t * att)
{
if (!att)
XML_PullParser_Exception (p_FILE, LINE);
@@ -957,7 +957,7 @@
{
int ix = parser->attrib->pointer;
ELEMENT *e;
- ATTRIBUTE *att = NULL;
+ guththila_attribute_t *att = NULL;
if (i > ix)
XML_PullParser_Exception (p_FILE, LINE);
else
@@ -980,7 +980,7 @@
{
int ix = parser->attrib->pointer;
ELEMENT *e;
- ATTRIBUTE *att = NULL;
+ guththila_attribute_t *att = NULL;
if (i > ix)
XML_PullParser_Exception (p_FILE, LINE);
else
@@ -1003,7 +1003,7 @@
{
int ix = parser->attrib->pointer;
ELEMENT *e;
- ATTRIBUTE *att = NULL;
+ guththila_attribute_t *att = NULL;
if (i > ix)
XML_PullParser_Exception (p_FILE, LINE);
else
Modified: webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_pull_parser.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_pull_parser.h?rev=307002&r1=307001&r2=307002&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_pull_parser.h (original)
+++ webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_pull_parser.h Thu Oct 6 21:28:22 2005
@@ -123,10 +123,10 @@
XML_PullParser *XML_PullParser_createPullParser (READER * r);
void XML_PullParser_freePullParser ();
int XML_PullParser_getAttributeCount (XML_PullParser * p);
-char *XML_PullParser_getAttributeName (XML_PullParser * p, ATTRIBUTE * att);
-char *XML_PullParser_getAttributeValue (XML_PullParser * p, ATTRIBUTE * att);
-char *XML_PullParser_getAttributePrefix (XML_PullParser * p, ATTRIBUTE * att);
-ATTRIBUTE *XML_PullParser_getAttribute (XML_PullParser * p);
+char *XML_PullParser_getAttributeName (XML_PullParser * p, guththila_attribute_t * att);
+char *XML_PullParser_getAttributeValue (XML_PullParser * p, guththila_attribute_t * att);
+char *XML_PullParser_getAttributePrefix (XML_PullParser * p, guththila_attribute_t * att);
+guththila_attribute_t *XML_PullParser_getAttribute (XML_PullParser * p);
char *XML_PullParser_getAttributeName_by_number (XML_PullParser * p, int i);
char *XML_PullParser_getAttributeValue_by_number (XML_PullParser * p, int i);
char *XML_PullParser_getAttributePrefix_by_number (XML_PullParser * p, int i);