sim: cgen: constify mode_names
This commit is contained in:
parent
78d983e9ea
commit
4c171e25a8
@ -1,3 +1,8 @@
|
||||
2016-08-13 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* cgen-types.h (mode_names): Mark const.
|
||||
* cgen-utils.c (mode_names): Likewise.
|
||||
|
||||
2016-08-13 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* cgen-defs.h (struct cgen_state): Delete argv and envp.
|
||||
|
@ -56,7 +56,7 @@ typedef enum mode_type {
|
||||
#define MAX_TARGET_MODES ((int) MODE_TARGET_MAX)
|
||||
#define MAX_MODES ((int) MODE_MAX)
|
||||
|
||||
extern const char *mode_names[];
|
||||
extern const char * const mode_names[];
|
||||
#define MODE_NAME(m) (mode_names[m])
|
||||
|
||||
typedef void VOID;
|
||||
|
@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
#define SEMOPS_DEFINE_INLINE
|
||||
#include "cgen-ops.h"
|
||||
|
||||
const char *mode_names[] = {
|
||||
const char * const mode_names[] = {
|
||||
"VOID",
|
||||
"BI",
|
||||
"QI",
|
||||
|
Loading…
x
Reference in New Issue
Block a user