Rather than deprecating the typedefs in pgmspace.h, I would suggest to
replace them by respective macros.

That would be nice, but I don't think it's possible.  There are too many
places where:

#define prog_uchar unsigned char PROGMEM

would behave differently than

typedef unsigned char PROGMEM prog_uchar;

Although I confess I'm having a hard time thinking of them...

BillW

Weddington, Eric schrieb:
Until such time that it can be shown that replacing them with macros is a safe 
alternative, then they will stay as deprecated, as deprecation is a known safe 
alternative.

If someone should discover that replacing them with macros are deemed safe, 
then a patch should be provided.

Eric

IMO such macros are bad style, there is no reason for them. Style is, of course, matter of taste.

Try
  #define PROGMEM __attribute__((progmem))
  #define prog_char char PROGMEM
  prog_char * p = 0;

@Jan:

That's the reason why a always said that progmem is something com-ple-tly different to a named address. Now you see why.

Johann

_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to