[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-commit] [2282] Add 'const' for PROGMEM variables.
From: |
Dmitry Xmelkov |
Subject: |
[avr-libc-commit] [2282] Add 'const' for PROGMEM variables. |
Date: |
Thu, 05 Jan 2012 04:01:29 +0000 |
Revision: 2282
http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2282
Author: dmix
Date: 2012-01-05 04:01:28 +0000 (Thu, 05 Jan 2012)
Log Message:
-----------
Add 'const' for PROGMEM variables.
Modified Paths:
--------------
trunk/avr-libc/ChangeLog
trunk/avr-libc/tests/simulate/scanf/sscanf-1.c
trunk/avr-libc/tests/simulate/scanf/sscanf-2.c
trunk/avr-libc/tests/simulate/scanf/sscanf-c1.c
trunk/avr-libc/tests/simulate/scanf/sscanf-c2.c
trunk/avr-libc/tests/simulate/scanf/sscanf-d1.c
trunk/avr-libc/tests/simulate/scanf/sscanf-d2.c
trunk/avr-libc/tests/simulate/scanf/sscanf-eof.c
trunk/avr-libc/tests/simulate/scanf/sscanf-h.c
trunk/avr-libc/tests/simulate/scanf/sscanf-hh.c
trunk/avr-libc/tests/simulate/scanf/sscanf-i.c
trunk/avr-libc/tests/simulate/scanf/sscanf-l.c
trunk/avr-libc/tests/simulate/scanf/sscanf-o1.c
trunk/avr-libc/tests/simulate/scanf/sscanf-o2.c
trunk/avr-libc/tests/simulate/scanf/sscanf-s1.c
trunk/avr-libc/tests/simulate/scanf/sscanf-s2.c
trunk/avr-libc/tests/simulate/scanf/sscanf-x1.c
trunk/avr-libc/tests/simulate/scanf/sscanf-x2.c
trunk/avr-libc/tests/simulate/scanf/sscanf-x3.c
trunk/avr-libc/tests/simulate/scanf/sscanf_brk-1.c
trunk/avr-libc/tests/simulate/scanf/sscanf_brk-2.c
trunk/avr-libc/tests/simulate/scanf/sscanf_brk-3.c
trunk/avr-libc/tests/simulate/scanf/sscanf_brk-4.c
trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f1.c
trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f2.c
trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f3.c
trunk/avr-libc/tests/simulate/scanf/sscanf_flt-fnn.c
trunk/avr-libc/tests/simulate/scanf/sscanf_flt-fw.c
trunk/avr-libc/tests/simulate/stdlib/strtol-3.c
trunk/avr-libc/tests/simulate/stdlib/strtoul-2.c
trunk/avr-libc/tests/simulate/stdlib/strtoul-3.c
Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog 2012-01-05 03:43:44 UTC (rev 2281)
+++ trunk/avr-libc/ChangeLog 2012-01-05 04:01:28 UTC (rev 2282)
@@ -1,5 +1,39 @@
2012-01-05 Dmitry Xmelkov <address@hidden>
+ * tests/simulate/scanf/sscanf-1.c: Add 'const' for PROGMEM variables.
+ * tests/simulate/scanf/sscanf-2.c: Same.
+ * tests/simulate/scanf/sscanf_brk-1.c: Same.
+ * tests/simulate/scanf/sscanf_brk-2.c: Same.
+ * tests/simulate/scanf/sscanf_brk-3.c: Same.
+ * tests/simulate/scanf/sscanf_brk-4.c: Same.
+ * tests/simulate/scanf/sscanf-c1.c: Same.
+ * tests/simulate/scanf/sscanf-c2.c: Same.
+ * tests/simulate/scanf/sscanf-d1.c: Same.
+ * tests/simulate/scanf/sscanf-d2.c: Same.
+ * tests/simulate/scanf/sscanf-eof.c: Same.
+ * tests/simulate/scanf/sscanf_flt-f1.c: Same.
+ * tests/simulate/scanf/sscanf_flt-f2.c: Same.
+ * tests/simulate/scanf/sscanf_flt-f3.c: Same.
+ * tests/simulate/scanf/sscanf_flt-fnn.c: Same.
+ * tests/simulate/scanf/sscanf_flt-fw.c: Same.
+ * tests/simulate/scanf/sscanf-h.c: Same.
+ * tests/simulate/scanf/sscanf-hh.c: Same.
+ * tests/simulate/scanf/sscanf-i.c: Same.
+ * tests/simulate/scanf/sscanf-l.c: Same.
+ * tests/simulate/scanf/sscanf-o1.c: Same.
+ * tests/simulate/scanf/sscanf-o2.c: Same.
+ * tests/simulate/scanf/sscanf-s1.c: Same.
+ * tests/simulate/scanf/sscanf-s2.c: Same.
+ * tests/simulate/scanf/sscanf-x1.c: Same.
+ * tests/simulate/scanf/sscanf-x2.c: Same.
+ * tests/simulate/scanf/sscanf-x3.c: Same.
+
+ * tests/simulate/stdlib/strtol-3.c: Same.
+ * tests/simulate/stdlib/strtoul-2.c: Same.
+ * tests/simulate/stdlib/strtoul-3.c: Same.
+
+2012-01-05 Dmitry Xmelkov <address@hidden>
+
* tests/simulate/stdlib/realloc-3.c: Remove depricated PROGMEM types.
* tests/simulate/pmstring/memccpy_P.c: Same.
* tests/simulate/string/memccpy.c: Same.
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-1.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-1.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-1.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -75,7 +75,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-2.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-2.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-2.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -75,7 +75,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-c1.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-c1.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-c1.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-c2.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-c2.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-c2.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-d1.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-d1.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-d1.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -77,7 +77,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
@@ -98,7 +98,7 @@
} \
} while (0)
-#define PVEC(args...) ({ static int __x[] PROGMEM = {args}; __x; })
+#define PVEC(args...) ({ static const int __x[] PROGMEM = {args};
__x; })
int main ()
{
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-d2.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-d2.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-d2.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-eof.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-eof.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-eof.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-h.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-h.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-h.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-hh.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-hh.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-hh.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[50]; \
char FILL; \
@@ -97,7 +97,7 @@
} \
} while (0)
-#define PVEC(args...) ({ static char __x[] PROGMEM = {args}; __x; })
+#define PVEC(args...) ({ static const char __x[] PROGMEM = {args};
__x; })
int main ()
{
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-i.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-i.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-i.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
@@ -97,7 +97,7 @@
} \
} while (0)
-#define PVEC(args...) ({ static int __x[] PROGMEM = {args}; __x; })
+#define PVEC(args...) ({ static const int __x[] PROGMEM = {args};
__x; })
int main ()
{
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-l.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-l.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-l.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-o1.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-o1.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-o1.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -77,7 +77,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
@@ -98,7 +98,7 @@
} \
} while (0)
-#define PVEC(args...) ({ static int __x[] PROGMEM = {args}; __x; })
+#define PVEC(args...) ({ static const int __x[] PROGMEM = {args};
__x; })
int main ()
{
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-o2.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-o2.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-o2.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-s1.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-s1.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-s1.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-s2.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-s2.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-s2.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -77,7 +77,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-x1.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-x1.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-x1.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -77,7 +77,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
@@ -98,7 +98,7 @@
} \
} while (0)
-#define PVEC(args...) ({ static int __x[] PROGMEM = {args}; __x; })
+#define PVEC(args...) ({ static const int __x[] PROGMEM = {args};
__x; })
int main ()
{
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-x2.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-x2.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-x2.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -77,7 +77,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
@@ -98,7 +98,7 @@
} \
} while (0)
-#define PVEC(args...) ({ static int __x[] PROGMEM = {args}; __x; })
+#define PVEC(args...) ({ static const int __x[] PROGMEM = {args};
__x; })
int main ()
{
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf-x3.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf-x3.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf-x3.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -77,7 +77,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf_brk-1.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf_brk-1.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf_brk-1.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf_brk-2.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf_brk-2.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf_brk-2.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf_brk-3.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf_brk-3.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf_brk-3.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf_brk-4.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf_brk-4.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf_brk-4.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f1.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f1.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f1.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -77,7 +77,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f2.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f2.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f2.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -76,7 +76,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f3.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f3.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf_flt-f3.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -80,7 +80,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf_flt-fnn.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf_flt-fnn.c 2012-01-05
03:43:44 UTC (rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf_flt-fnn.c 2012-01-05
04:01:28 UTC (rev 2282)
@@ -78,7 +78,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[40]; \
char FILL; \
@@ -146,7 +146,7 @@
6,
!memcmp_P (
v.x,
- ({ static float __x[] PROGMEM = {
+ ({ static const float __x[] PROGMEM = {
INFINITY, INFINITY, INFINITY,
INFINITY, -INFINITY, -INFINITY
};
@@ -163,7 +163,7 @@
9,
!memcmp_P (
v.x,
- ({ static float __x[] PROGMEM = {
+ ({ static const float __x[] PROGMEM = {
INFINITY, INFINITY, INFINITY,
INFINITY, INFINITY, -INFINITY
};
Modified: trunk/avr-libc/tests/simulate/scanf/sscanf_flt-fw.c
===================================================================
--- trunk/avr-libc/tests/simulate/scanf/sscanf_flt-fw.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/scanf/sscanf_flt-fw.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -78,7 +78,7 @@
to fill before run. */
#define CHECK(expval, ass_expr, str, fmt, ...) \
do { \
- PROGMEM static char fmt_p[] = fmt; \
+ PROGMEM static const char fmt_p[] = fmt; \
char str_s[220]; \
char fmt_s[50]; \
char FILL; \
@@ -120,7 +120,7 @@
16,
!memcmp_P (
v.x,
- ({ static float __x[8] PROGMEM = {
+ ({ static const float __x[8] PROGMEM = {
12, -45, 0.5, 10, .25, 1e1, 2e2, .125
}; __x; }),
8 * sizeof(float))
Modified: trunk/avr-libc/tests/simulate/stdlib/strtol-3.c
===================================================================
--- trunk/avr-libc/tests/simulate/stdlib/strtol-3.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/stdlib/strtol-3.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -37,7 +37,7 @@
int main ()
{
- PROGMEM static struct t_s {
+ PROGMEM static const struct t_s {
char s[34]; /* string to convert */
int base;
long ret; /* result must */
Modified: trunk/avr-libc/tests/simulate/stdlib/strtoul-2.c
===================================================================
--- trunk/avr-libc/tests/simulate/stdlib/strtoul-2.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/stdlib/strtoul-2.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -37,7 +37,7 @@
int main ()
{
- PROGMEM static struct t_s {
+ PROGMEM static const struct t_s {
char s[14]; /* string to convert */
int base;
unsigned long ret; /* result must */
Modified: trunk/avr-libc/tests/simulate/stdlib/strtoul-3.c
===================================================================
--- trunk/avr-libc/tests/simulate/stdlib/strtoul-3.c 2012-01-05 03:43:44 UTC
(rev 2281)
+++ trunk/avr-libc/tests/simulate/stdlib/strtoul-3.c 2012-01-05 04:01:28 UTC
(rev 2282)
@@ -37,7 +37,7 @@
int main ()
{
- PROGMEM static struct t_s {
+ PROGMEM static const struct t_s {
char s[35]; /* string to convert */
int base;
unsigned long ret; /* result must */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-commit] [2282] Add 'const' for PROGMEM variables.,
Dmitry Xmelkov <=