Apply/unapply const here and there

This commit is contained in:
Scott Lahteine
2018-11-20 06:44:11 -06:00
parent 643e0066a0
commit 817a37169a
8 changed files with 28 additions and 28 deletions

View File

@@ -22,7 +22,7 @@
int lcd_glyph_height(void);
int lcd_put_wchar_max(wchar_t c, pixel_len_t max_length);
int lcd_put_wchar_max(const wchar_t c, pixel_len_t max_length);
/**
* @brief Draw a UTF-8 string
@@ -34,7 +34,7 @@ int lcd_put_wchar_max(wchar_t c, pixel_len_t max_length);
*
* Draw a UTF-8 string
*/
int lcd_put_u8str_max(const char * utf8_str, pixel_len_t max_length);
int lcd_put_u8str_max(const char * const utf8_str, pixel_len_t max_length);
/**
* @brief Draw a ROM UTF-8 string
@@ -46,14 +46,14 @@ int lcd_put_u8str_max(const char * utf8_str, pixel_len_t max_length);
*
* Draw a ROM UTF-8 string
*/
int lcd_put_u8str_max_P(PGM_P utf8_str_P, pixel_len_t max_length);
int lcd_put_u8str_max_P(PGM_P const utf8_str_P, pixel_len_t max_length);
void lcd_moveto(const uint8_t col, const uint8_t row);
void lcd_put_int(const int i);
inline int lcd_put_u8str_P(PGM_P str) { return lcd_put_u8str_max_P(str, PIXEL_LEN_NOLIMIT); }
inline int lcd_put_u8str_P(PGM_P const str) { return lcd_put_u8str_max_P(str, PIXEL_LEN_NOLIMIT); }
inline int lcd_put_u8str(const char* str) { return lcd_put_u8str_max(str, PIXEL_LEN_NOLIMIT); }
inline int lcd_put_u8str(const char * const str) { return lcd_put_u8str_max(str, PIXEL_LEN_NOLIMIT); }
inline int lcd_put_wchar(const wchar_t c) { return lcd_put_wchar_max(c, PIXEL_LEN_NOLIMIT); }