• 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: YACWP (Yet Another CodeWarrior Port)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: YACWP (Yet Another CodeWarrior Port)


  • Subject: Re: YACWP (Yet Another CodeWarrior Port)
  • From: Lawrence Gold <email@hidden>
  • Date: Thu, 16 Jun 2005 16:34:39 -0600


On Jun 16, 2005, at 3:19 PM, Nick Nallick wrote:

8) Is there a more legitimate way to dereference and increment a pointer by a size other than it's native size than what I'm doing in the following?

UInt8* ptr = something;
UInt32 value = *((UInt32*) ptr)++;

warning: target of assignment not really an lvalue; this will be a hard error in the future

Something like

ptr = (UInt8*) ((UInt32*) ptr + 1);
UInt32 value = *((UInt32*) ptr);

should do the trick.

_______________________________________________
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


References: 
 >YACWP (Yet Another CodeWarrior Port) (From: Nick Nallick <email@hidden>)

  • Prev by Date: Re: YACWP (Yet Another CodeWarrior Port)
  • Next by Date: Re: YACWP (Yet Another CodeWarrior Port)
  • Previous by thread: Re: YACWP (Yet Another CodeWarrior Port)
  • Next by thread: Re: YACWP (Yet Another CodeWarrior Port)
  • Index(es):
    • Date
    • Thread