annotate target-utils/helloapp/cmdtab.c @ 15:d60806c703aa

use const to put things in .rodata
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 03 May 2013 07:00:12 +0000
parents f0501c4a8790
children 4c78fc688127
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 #include "cmdtab.h"
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 extern void cmd_r8();
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 extern void cmd_r16();
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 extern void cmd_r32();
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6
15
d60806c703aa use const to put things in .rodata
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 14
diff changeset
7 const struct cmdtab cmdtab[] = {
14
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 {"r8", cmd_r8},
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9 {"r16", cmd_r16},
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10 {"r32", cmd_r32},
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 {0, 0}
f0501c4a8790 helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12 };