diff options
Diffstat (limited to 'ACE/ACEXML/parser/parser/Parser.h')
-rw-r--r-- | ACE/ACEXML/parser/parser/Parser.h | 92 |
1 files changed, 45 insertions, 47 deletions
diff --git a/ACE/ACEXML/parser/parser/Parser.h b/ACE/ACEXML/parser/parser/Parser.h index 3b0725ec214..976053d8317 100644 --- a/ACE/ACEXML/parser/parser/Parser.h +++ b/ACE/ACEXML/parser/parser/Parser.h @@ -83,34 +83,34 @@ public: * programmers to check whether a specific feature has been * activated in the parser. */ - virtual int getFeature (const ACEXML_Char *name ACEXML_ENV_ARG_DECL); + virtual int getFeature (const ACEXML_Char *name); /** * Activating or deactivating a feature. */ virtual void setFeature (const ACEXML_Char *name, - int boolean_value ACEXML_ENV_ARG_DECL); + int boolean_value); /* * Look up the value of a property. */ - virtual void * getProperty (const ACEXML_Char *name ACEXML_ENV_ARG_DECL); + virtual void * getProperty (const ACEXML_Char *name); /* * Set the value of a property. */ virtual void setProperty (const ACEXML_Char *name, - void *value ACEXML_ENV_ARG_DECL); + void *value); /* * Parse an XML document. */ - virtual void parse (ACEXML_InputSource *input ACEXML_ENV_ARG_DECL); + virtual void parse (ACEXML_InputSource *input); /* * Parse an XML document from a system identifier (URI). */ - virtual void parse (const ACEXML_Char *systemId ACEXML_ENV_ARG_DECL) + virtual void parse (const ACEXML_Char *systemId) ; /* @@ -139,30 +139,30 @@ protected: /** * Parse XML Prolog. */ - void parse_xml_prolog (ACEXML_ENV_SINGLE_ARG_DECL); + void parse_xml_prolog (void); /** * Parse VersionInfo declaration. * */ - void parse_version_info (ACEXML_ENV_SINGLE_ARG_DECL); + void parse_version_info (void); /** * Parse a EncodingDecl declaration. * */ - void parse_encoding_decl (ACEXML_ENV_SINGLE_ARG_DECL); + void parse_encoding_decl (void); /** * Parse a XMLDecl declaration. * */ - void parse_xml_decl (ACEXML_ENV_SINGLE_ARG_DECL); + void parse_xml_decl (void); /** * Parse a TextDecl declaration. */ - int parse_text_decl (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_text_decl (void); /** * Parse a PI statement. The first character encountered @@ -170,13 +170,13 @@ protected: * * @retval 0 on success, -1 otherwise. */ - int parse_processing_instruction (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_processing_instruction (void); /** * Parse the DOCTYPE declaration. The first character encountered * should always be 'D' in doctype prefix: "@<@!DOCTYPE". */ - int parse_doctypedecl (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_doctypedecl (void); /** * Parse an XML element. The first character encountered should @@ -191,15 +191,14 @@ protected: * of validator or allow the function to return the element name so it * can be used in a validator. */ - void parse_element (int is_root ACEXML_ENV_ARG_DECL); + void parse_element (int is_root); /** * Parse a content declaration. * */ int parse_content (const ACEXML_Char* startname, const ACEXML_Char*& ns_uri, - const ACEXML_Char*& ns_lname, int ns_flag - ACEXML_ENV_ARG_DECL); + const ACEXML_Char*& ns_lname, int ns_flag); /** * Parse a character reference, i.e., " " or "". The first @@ -231,13 +230,13 @@ protected: * @retval 0 on success. * @retval -1 if fail. */ - int parse_cdata (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_cdata (void); /** * Parse a "markupdecl" section, this includes both "markupdecl" and * "DeclSep" sections in XML specification */ - int parse_internal_dtd (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_internal_dtd (void); /** * Skip over a comment. The first character encountered should always be @@ -252,7 +251,7 @@ protected: * * @retval 0 on success, -1 otherwise. */ - int parse_element_decl (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_element_decl (void); /** * Parse an "ENTITY" decl. The first character this method expects @@ -260,7 +259,7 @@ protected: * * @retval 0 on success, -1 otherwise. */ - int parse_entity_decl (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_entity_decl (void); /** * Parse an "ATTLIST" decl. Thse first character this method @@ -269,13 +268,13 @@ protected: * * @retval 0 on success, -1 otherwise. */ - int parse_attlist_decl (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_attlist_decl (void); /** * Parse a AttType declaration. * */ - int parse_atttype (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_atttype (void); /** *Parse a "NOTATION" decl. The first character this method @@ -284,7 +283,7 @@ protected: * * @retval 0 on success, -1 otherwise. */ - int parse_notation_decl (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_notation_decl (void); /** * Parse an ExternalID or a reference to PUBLIC ExternalID. @@ -306,69 +305,68 @@ protected: * * @retval 0 on success, -1 otherwise. */ - int parse_external_id (ACEXML_Char *&publicId, ACEXML_Char *&systemId - ACEXML_ENV_ARG_DECL); + int parse_external_id (ACEXML_Char *&publicId, ACEXML_Char *&systemId); /** * Parse an external DTD. * */ - int parse_external_dtd (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_external_dtd (void); /** * Parse an external subset. This does the actual parsing of an external * subset and is called by @sa parse_external_dtd. * */ - int parse_external_subset (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_external_subset (void); /** * Parse a markupDecl section. * */ - int parse_markup_decl (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_markup_decl (void); /** * Parse a conditionalSect declaration. * */ - int parse_conditional_section (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_conditional_section (void); /** * Parse a includeSect declaration. * */ - int parse_includesect (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_includesect (void); /** * * Parse a ignoreSect declaration. */ - int parse_ignoresect (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_ignoresect (void); /** * Parse a PEReference. * */ - int parse_PE_reference (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_PE_reference (void); /** * Parse a Reference. * */ - int parse_entity_reference (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_entity_reference (void); /** * Parse an entityValue. * */ - int parse_entity_value (ACEXML_Char *&str ACEXML_ENV_ARG_DECL); + int parse_entity_value (ACEXML_Char *&str); /** * Parse a DefaultDecl specification. * */ - int parse_defaultdecl (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_defaultdecl (void); /** @@ -379,7 +377,7 @@ protected: * * @retval 0 on success, -1 otherwise. */ - int parse_children_definition (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_children_definition (void); /** * Parse a @c cp non-terminal. @c cp can either be a @c seq or a @c choice. @@ -391,7 +389,7 @@ protected: * * @retval 0 on success, -1 otherwise. */ - int parse_child (int skip_open_paren ACEXML_ENV_ARG_DECL); + int parse_child (int skip_open_paren); /** * Parse a name from the input CharStream. If @a ch @!= 0, then we have @@ -448,7 +446,7 @@ protected: * if successful. * @retval 0 otherwise. */ - ACEXML_Char* parse_attname (ACEXML_ENV_SINGLE_ARG_DECL); + ACEXML_Char* parse_attname (void); /** * Parse an attribute value. @@ -456,14 +454,14 @@ protected: * @param str String containing the value of the attribute if successful. * @return 0 if attribute value was read successfully, -1 otherwise. */ - int parse_attvalue (ACEXML_Char*& str ACEXML_ENV_ARG_DECL); + int parse_attvalue (ACEXML_Char*& str); /** * Parse a tokenized type attribute. * * @return 0 if attribute type was read successfully, -1 otherwise. */ - int parse_tokenized_type (ACEXML_ENV_SINGLE_ARG_DECL); + int parse_tokenized_type (void); /** * Parse a SystemLiteral. @@ -624,19 +622,19 @@ private: * Dispatch errors to ErrorHandler. * */ - void error (const ACEXML_Char* msg ACEXML_ENV_ARG_DECL); + void error (const ACEXML_Char* msg); /** * Dispatch warnings to ErrorHandler. * */ - void warning (const ACEXML_Char* msg ACEXML_ENV_ARG_DECL); + void warning (const ACEXML_Char* msg); /** * Dispatch fatal errors to ErrorHandler. * */ - void fatal_error (const ACEXML_Char* msg ACEXML_ENV_ARG_DECL); + void fatal_error (const ACEXML_Char* msg); /** * Dispatch prefix mapping calls to the ContentHandler. @@ -648,7 +646,7 @@ private: */ void prefix_mapping (const ACEXML_Char* prefix, const ACEXML_Char* uri, - int start ACEXML_ENV_ARG_DECL); + int start); /** * Parse a keyword. */ @@ -663,7 +661,7 @@ private: /** * Pop the top element in the stack and replace current context with that. */ - size_t pop_context (int GE_ref ACEXML_ENV_ARG_DECL); + size_t pop_context (int GE_ref); /** * Create a new ACEXML_CharStream from @a systemId and @a publicId and @@ -682,13 +680,13 @@ private: /** * Check for a parameter entity reference. This is used to check for the - * occurence of a PE Reference withing markupDecl. Additionally this + * occurrence of a PE Reference withing markupDecl. Additionally this * function consumes any leading or trailing whitespace around the PE * Reference. * * @retval Number of whitespace characters skipped. */ - int check_for_PE_reference (ACEXML_ENV_SINGLE_ARG_DECL); + int check_for_PE_reference (void); /** * Reset the parser state. |