I'm sorry I may make the problem confused. For example, the original codes are: main() { Func1(); Func2(); Func3(); Func2(); Func3(); }
I want to add the pragma as: main() { Func1(); #pragma NEW_CALL1 Func2(); Func3(); #pragma end #pragma NEW_CALL2 Func2(); Func3(); #pragma end } Though the definitions of Func2() are the same, the calls in NEW_CALL1 and NEW_CALL2 are different. Thanks, May > -----Original Message----- > From: Sun Chan [mailto:sun.c...@gmail.com] > Sent: Monday, November 08, 2010 9:24 PM > To: Li Shengmei > Cc: open64-devel@lists.sourceforge.net > Subject: Re: [Open64-devel] About the pragma in Open64 > > you are saying, you want func1 to be called func2 in some scope, but > not other places? > Sun > > On Mon, Nov 8, 2010 at 2:33 AM, Li Shengmei <lis...@gmail.com> wrote: > > Yes, The format may be: > > program new_func_name > > (code ....) > > pragma end > > > > I may rename some codes segments as a function with new_func_name. > > > > Thanks > > May > > > >> -----Original Message----- > >> From: Sun Chan [mailto:sun.c...@gmail.com] > >> Sent: Monday, November 08, 2010 4:35 PM > >> To: Li Shengmei > >> Cc: open64-devel@lists.sourceforge.net > >> Subject: Re: [Open64-devel] About the pragma in Open64 > >> > >> Is this a global replacement? IOW, will there be scope that ties with > >> name space(I doubt you have this in mind, just want to be clear)? > >> Sun > >> > >> On Sun, Nov 7, 2010 at 10:55 PM, Li Shengmei <lis...@gmail.com> wrote: > >> > Hi, all > >> > I want to add a new pragma option in Open64. I want to rename the > >> > functions' name with new names. > >> > Such as, #pragma ("old_func_name", "new_func_name") > >> > What information can I learn to achieve it? I am not so familiar with > >> > open64. > >> > If I add the pragma successfully, are the "new_func_name" found in WN? > >> > > >> > Thanks > >> > May > >> > > >> > > >> > > >> > -------------------------------------------------------------------------- > >> ---- > >> > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > >> > David G. Thomson, author of the best-selling book "Blueprint to a > >> > Billion" shares his insights and actions to help propel your > >> > business during the next growth cycle. Listen Now! > >> > http://p.sf.net/sfu/SAP-dev2dev > >> > _______________________________________________ > >> > Open64-devel mailing list > >> > Open64-devel@lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/open64-devel > >> > > > > > ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel