From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5139FE6C.7030407@xenomai.org> Date: Fri, 08 Mar 2013 16:06:20 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <5139FDB3.5010207@xenomai.org> In-Reply-To: <5139FDB3.5010207@xenomai.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] xenomai-forge: Interface change of copperplate_init List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ronny Meeus Cc: xenomai@xenomai.org On 03/08/2013 04:03 PM, Philippe Gerum wrote: > On 03/08/2013 03:16 PM, Ronny Meeus wrote: >> Hello >> >> I see that the interface of copperplate_init has been changed from: >> >> void copperplate_init(int argc, char *const argv[]); >> to >> void copperplate_init(int *argcp, char *const **argvp); >> >> This is disturbing if I have an application that needs to be run on >> the 2 versions of xenomai. >> Is there any construction (for example a define) I can use in my code >> to call this function in a correct way? >> > > Nope, and don't expect any. The -forge interface is still in a state of > flux, albeit dust has settled a lot since it was all started. There > won't be any effort toward backward compat until 3.x is officially out. > No ETA. > > If you happen to use autoconf, then you could run AC_TRY_COMPILE to figure out which syntax is the right one, and define a config symbol you could test in your code accordingly. -- Philippe.