Skip to content

Commit

Permalink
ifdef fix to workaround pathscale bug for DOM
Browse files Browse the repository at this point in the history
(pathscale doesn't let you use associated() in a restricted expression)
  • Loading branch information
Toby White committed Dec 22, 2007
1 parent ee3dff8 commit f974dd5
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 11,676 deletions.
4 changes: 4 additions & 0 deletions dom/m_dom_attribute.m4
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ TOHW_m_dom_get(Node, ownerElement, np%elExtras%ownerElement, (ATTRIBUTE_NODE))

TOHW_function(getValue_DOM, (arg), c)
type(Node), pointer :: arg
#ifdef RESTRICTED_ASSOCIATED_BUG
character(len=getTextContent_len(arg, .true.)) :: c
#else
character(len=getTextContent_len(arg, associated(arg))) :: c
#endif

if (.not.associated(arg)) then
TOHW_m_dom_throw_error(FoX_NODE_IS_NULL)
Expand Down
8 changes: 8 additions & 0 deletions dom/m_dom_document.m4
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,11 @@ TOHW_m_dom_set(logical, xmlStandalone, np%docExtras%xds%standalone, (DOCUMENT_NO

TOHW_function(getXmlEncoding, (arg), s)
type(Node), pointer :: arg
#ifdef RESTRICTED_ASSOCIATED_BUG
character(len=getXmlEncoding_len(arg, .true.)) :: s
#else
character(len=getXmlEncoding_len(arg, associated(arg))) :: s
#endif

if (.not.associated(arg)) then
TOHW_m_dom_throw_error(FoX_NODE_IS_NULL)
Expand Down Expand Up @@ -952,7 +956,11 @@ TOHW_m_dom_set(logical, xmlStandalone, np%docExtras%xds%standalone, (DOCUMENT_NO

TOHW_function(getInputEncoding, (arg), s)
type(Node), pointer :: arg
#ifdef RESTRICTED_ASSOCIATED_BUG
character(len=getInputEncoding_len(arg, .true.)) :: s
#else
character(len=getInputEncoding_len(arg, associated(arg))) :: s
#endif

if (.not.associated(arg)) then
TOHW_m_dom_throw_error(FoX_NODE_IS_NULL)
Expand Down
Loading

0 comments on commit f974dd5

Please sign in to comment.