File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 26
26
#include < stdlib.h>
27
27
#include < string.h>
28
28
#include < ctype.h>
29
- // #include <pgmspace.h>
29
+ #include < pgmspace.h>
30
30
31
31
// An inherited class for holding the result of a concatenation. These
32
32
// result objects are assumed to be writable by subsequent concatenations.
33
33
class StringSumHelper ;
34
34
35
35
// an abstract class used as a means to proide a unique pointer type
36
36
// but really has no body
37
- class __FlashStringHelper ;
38
- #define FPSTR (pstr_pointer ) (reinterpret_cast <const __FlashStringHelper *>(pstr_pointer))
39
- #define F (string_literal ) (FPSTR(PSTR(string_literal)))
37
+ // class __FlashStringHelper;
40
38
41
39
// The string class
42
40
class String
Original file line number Diff line number Diff line change 22
22
typedef char __FlashStringHelper ;
23
23
#define PROGMEM
24
24
#define PSTR (s ) (s)
25
- #define F (string_literal ) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
25
+ #define FPSTR (pstr_pointer ) ((const char *)(pstr_pointer))
26
+ #define F (string_literal ) (string_literal)
26
27
27
28
#define pgm_read_byte (addr ) (*(const unsigned char *)(addr))
28
29
#define pgm_read_word (addr ) (*(const unsigned short *)(addr))
You can’t perform that action at this time.
0 commit comments