<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: experiencing different behaviour for va_list initialization with NULL on PA-RISC and IA64 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/experiencing-different-behaviour-for-va-list-initialization-with/m-p/5094395#M90634</link>
    <description>&amp;gt; Could anybody explain.  [...]&lt;BR /&gt;&lt;BR /&gt;Assuming that that's a question-mark-free&lt;BR /&gt;question, it might be easier if you provided&lt;BR /&gt;some actual code instead of a vague&lt;BR /&gt;description of some code.  An actual test&lt;BR /&gt;program which exhibits the problem (or not)&lt;BR /&gt;would be even better.  A complete&lt;BR /&gt;build-and-run transcript might save some&lt;BR /&gt;time and effort.&lt;BR /&gt;&lt;BR /&gt;As an added bonus, you might describe your&lt;BR /&gt;environment more fully, including such data&lt;BR /&gt;as your OS and compiler versions.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] Is there any document to give more&lt;BR /&gt;&amp;gt; details on this.&lt;BR /&gt;&lt;BR /&gt;Details?  You seem to ask for more than&lt;BR /&gt;you're wiling to provide.</description>
    <pubDate>Tue, 26 Feb 2008 05:03:38 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2008-02-26T05:03:38Z</dc:date>
    <item>
      <title>experiencing different behaviour for va_list initialization with NULL on PA-RISC and IA64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/experiencing-different-behaviour-for-va-list-initialization-with/m-p/5094394#M90633</link>
      <description>When I try to initalize va_list with NULL as default argument in a function, I am getting error: default argument of type "long" is incompatible with parameter of type "va_list".  But this work fine with PA-RISC&lt;BR /&gt;&lt;BR /&gt;Could anybody explain. I can conclude I can't use NULL to initialize with NULL. But I want to know the reason. Is there any document to give more details on this.</description>
      <pubDate>Tue, 26 Feb 2008 04:18:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/experiencing-different-behaviour-for-va-list-initialization-with/m-p/5094394#M90633</guid>
      <dc:creator>ASR</dc:creator>
      <dc:date>2008-02-26T04:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: experiencing different behaviour for va_list initialization with NULL on PA-RISC and IA64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/experiencing-different-behaviour-for-va-list-initialization-with/m-p/5094395#M90634</link>
      <description>&amp;gt; Could anybody explain.  [...]&lt;BR /&gt;&lt;BR /&gt;Assuming that that's a question-mark-free&lt;BR /&gt;question, it might be easier if you provided&lt;BR /&gt;some actual code instead of a vague&lt;BR /&gt;description of some code.  An actual test&lt;BR /&gt;program which exhibits the problem (or not)&lt;BR /&gt;would be even better.  A complete&lt;BR /&gt;build-and-run transcript might save some&lt;BR /&gt;time and effort.&lt;BR /&gt;&lt;BR /&gt;As an added bonus, you might describe your&lt;BR /&gt;environment more fully, including such data&lt;BR /&gt;as your OS and compiler versions.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] Is there any document to give more&lt;BR /&gt;&amp;gt; details on this.&lt;BR /&gt;&lt;BR /&gt;Details?  You seem to ask for more than&lt;BR /&gt;you're wiling to provide.</description>
      <pubDate>Tue, 26 Feb 2008 05:03:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/experiencing-different-behaviour-for-va-list-initialization-with/m-p/5094395#M90634</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-02-26T05:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: experiencing different behaviour for va_list initialization with NULL on PA-RISC and IA64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/experiencing-different-behaviour-for-va-list-initialization-with/m-p/5094396#M90635</link>
      <description>That's correct.  A va_list is a thingy and Standard says this is an opaque type and you can't do much with it.  Not even compare.&lt;BR /&gt;&lt;BR /&gt;All you can do is assign/initialize to the same type.  And pass to va_start, va_arg and va_end.  And in C99, va_copy.&lt;BR /&gt;&lt;BR /&gt;If you want to assign to a variable, you can use a hammer:&lt;BR /&gt;reinterpret_cast&lt;VOID&gt;(ap) = NULL;&lt;BR /&gt;&lt;BR /&gt;If you want to handle parms you must declare a static variable:&lt;BR /&gt;#ifdef FIX&lt;BR /&gt;static va_list va_NULL;&lt;BR /&gt;#endif&lt;BR /&gt;#ifdef FIX&lt;BR /&gt;void sam(va_list ap = va_NULL)&lt;BR /&gt;#else&lt;BR /&gt;void sam(va_list ap = NULL)&lt;BR /&gt;#endif&lt;BR /&gt;{}&lt;BR /&gt;&lt;BR /&gt;This is all non-Standard and you will have problems testing for that "NULL" too.  (You can use the above hammer there too.)&lt;BR /&gt;&lt;BR /&gt;On PA, the va_list thingy just happened to be a double*.&lt;/VOID&gt;</description>
      <pubDate>Tue, 26 Feb 2008 05:20:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/experiencing-different-behaviour-for-va-list-initialization-with/m-p/5094396#M90635</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-26T05:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: experiencing different behaviour for va_list initialization with NULL on PA-RISC and IA64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/experiencing-different-behaviour-for-va-list-initialization-with/m-p/5094397#M90636</link>
      <description>Thanks for the information. Now got clear</description>
      <pubDate>Wed, 27 Feb 2008 04:09:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/experiencing-different-behaviour-for-va-list-initialization-with/m-p/5094397#M90636</guid>
      <dc:creator>ASR</dc:creator>
      <dc:date>2008-02-27T04:09:16Z</dc:date>
    </item>
  </channel>
</rss>

