• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: assigning to variable arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: assigning to variable arguments


  • Subject: Re: assigning to variable arguments
  • From: Madan Kumar B N <email@hidden>
  • Date: Fri, 02 Dec 2005 10:35:19 +0530

Hi,
 I ran into the same trouble with Fireworks Codebase. I workaround this by
passing ptrs instead of the objects.
 My problem was little typical because I was supposed to pass class objects.
Passing simple POD-types through va_arg list works but when we try to pass
our class objects in va_lists it would fail,so would prefer passing pts.

Thanks
Madan


On 12/1/05 10:04 PM, "Andy Finnell" <email@hidden> wrote:

> Hi all,
>
> I'm converting a project from CodeWarrior to Xcode 2.2/gcc 4. I've
> run into some code that attempts reorder a variable argument list
> (for localized string formatting). The basic code is:
>
> va_start(argList, format);
>
> int foo = 4;
> va_arg(argList, int) = foo;
>
> gcc doesn't like the last line because va_arg doesn't return an lval.
> Specifcally its says "invalid lvalue in assignment".  Apparently
> CodeWarrior va_arg returned a reference, which gcc doesn't.
>
> Is there any way to modify a va_list, either in place or build one up
> dynamically?
>
> Thanks,
>
>      -andy
>
> --
> Andy Finnell
> Senior Software Architect
> Order N Development, LLC
> http://www.orderndev.com
>
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: assigning to variable arguments
      • From: "Justin C. Walker" <email@hidden>
    • Re: assigning to variable arguments
      • From: Andy Finnell <email@hidden>
References: 
 >assigning to variable arguments (From: Andy Finnell <email@hidden>)

  • Prev by Date: Re: proprocessing info.plist files
  • Next by Date: Re: assigning to variable arguments
  • Previous by thread: assigning to variable arguments
  • Next by thread: Re: assigning to variable arguments
  • Index(es):
    • Date
    • Thread