mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Removed unused flags from String (free 1 byte of SRAM)
This commit is contained in:
@ -22,6 +22,7 @@ ARDUINO 1.5.3 BETA
|
|||||||
* avr: Added recipe for assembly files (C. A. Church)
|
* avr: Added recipe for assembly files (C. A. Church)
|
||||||
* avr: Use analogPinToChannel if it's defined (Kristian Sloth Lauszus)
|
* avr: Use analogPinToChannel if it's defined (Kristian Sloth Lauszus)
|
||||||
* avr: Optimized HardwareSerial buffer (Matthijs Kooijman)
|
* avr: Optimized HardwareSerial buffer (Matthijs Kooijman)
|
||||||
|
* removed unused flags from String (free 1 byte of SRAM)
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
* sam: Added CAN library (still in early stage of development) (Palliser)
|
* sam: Added CAN library (still in early stage of development) (Palliser)
|
||||||
|
@ -134,7 +134,6 @@ inline void String::init(void)
|
|||||||
buffer = NULL;
|
buffer = NULL;
|
||||||
capacity = 0;
|
capacity = 0;
|
||||||
len = 0;
|
len = 0;
|
||||||
flags = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void String::invalidate(void)
|
void String::invalidate(void)
|
||||||
|
@ -191,7 +191,6 @@ protected:
|
|||||||
char *buffer; // the actual char array
|
char *buffer; // the actual char array
|
||||||
unsigned int capacity; // the array length minus one (for the '\0')
|
unsigned int capacity; // the array length minus one (for the '\0')
|
||||||
unsigned int len; // the String length (not counting the '\0')
|
unsigned int len; // the String length (not counting the '\0')
|
||||||
unsigned char flags; // unused, for future features
|
|
||||||
protected:
|
protected:
|
||||||
void init(void);
|
void init(void);
|
||||||
void invalidate(void);
|
void invalidate(void);
|
||||||
|
@ -134,7 +134,6 @@ inline void String::init(void)
|
|||||||
buffer = NULL;
|
buffer = NULL;
|
||||||
capacity = 0;
|
capacity = 0;
|
||||||
len = 0;
|
len = 0;
|
||||||
flags = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void String::invalidate(void)
|
void String::invalidate(void)
|
||||||
|
@ -113,7 +113,7 @@ public:
|
|||||||
String & operator += (const String &rhs) {concat(rhs); return (*this);}
|
String & operator += (const String &rhs) {concat(rhs); return (*this);}
|
||||||
String & operator += (const char *cstr) {concat(cstr); return (*this);}
|
String & operator += (const char *cstr) {concat(cstr); return (*this);}
|
||||||
String & operator += (char c) {concat(c); return (*this);}
|
String & operator += (char c) {concat(c); return (*this);}
|
||||||
String & operator += (unsigned char num) {concat(num); return (*this);}
|
String & operator += (unsigned char num) {concat(num); return (*this);}
|
||||||
String & operator += (int num) {concat(num); return (*this);}
|
String & operator += (int num) {concat(num); return (*this);}
|
||||||
String & operator += (unsigned int num) {concat(num); return (*this);}
|
String & operator += (unsigned int num) {concat(num); return (*this);}
|
||||||
String & operator += (long num) {concat(num); return (*this);}
|
String & operator += (long num) {concat(num); return (*this);}
|
||||||
@ -191,7 +191,6 @@ protected:
|
|||||||
char *buffer; // the actual char array
|
char *buffer; // the actual char array
|
||||||
unsigned int capacity; // the array length minus one (for the '\0')
|
unsigned int capacity; // the array length minus one (for the '\0')
|
||||||
unsigned int len; // the String length (not counting the '\0')
|
unsigned int len; // the String length (not counting the '\0')
|
||||||
unsigned char flags; // unused, for future features
|
|
||||||
protected:
|
protected:
|
||||||
void init(void);
|
void init(void);
|
||||||
void invalidate(void);
|
void invalidate(void);
|
||||||
|
@ -135,7 +135,6 @@ inline void String::init(void)
|
|||||||
buffer = NULL;
|
buffer = NULL;
|
||||||
capacity = 0;
|
capacity = 0;
|
||||||
len = 0;
|
len = 0;
|
||||||
flags = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void String::invalidate(void)
|
void String::invalidate(void)
|
||||||
|
@ -191,7 +191,6 @@ protected:
|
|||||||
char *buffer; // the actual char array
|
char *buffer; // the actual char array
|
||||||
unsigned int capacity; // the array length minus one (for the '\0')
|
unsigned int capacity; // the array length minus one (for the '\0')
|
||||||
unsigned int len; // the String length (not counting the '\0')
|
unsigned int len; // the String length (not counting the '\0')
|
||||||
unsigned char flags; // unused, for future features
|
|
||||||
protected:
|
protected:
|
||||||
void init(void);
|
void init(void);
|
||||||
void invalidate(void);
|
void invalidate(void);
|
||||||
|
Reference in New Issue
Block a user