Author: petdance
Date: Fri Jun 1 14:09:13 2007
New Revision: 18732
Modified:
trunk/compilers/imcc/imc.h
trunk/compilers/imcc/parser_util.c
Log:
consting the name for is_op
Modified: trunk/compilers/imcc/imc.h
==============================================================================
--- trunk/compilers/imcc/imc.h (original)
+++ trunk/compilers/imcc/imc.h Fri Jun 1 14:09:13 2007
@@ -92,7 +92,7 @@
PARROT_API void imcc_init(Parrot_Interp interp);
PARROT_API void imcc_destroy(Parrot_Interp interp);
int check_op(Interp *, char * fullname, char *op, SymReg *r[], int narg, int
keyvec);
-int is_op(Interp *, char *);
+int is_op(Interp *, const char *opname);
char *str_dup(const char *);
char *str_cat(const char *, const char *);
int imcc_vfprintf(Interp *, FILE *fd, const char *format, va_list ap);
Modified: trunk/compilers/imcc/parser_util.c
==============================================================================
--- trunk/compilers/imcc/parser_util.c (original)
+++ trunk/compilers/imcc/parser_util.c Fri Jun 1 14:09:13 2007
@@ -227,7 +227,7 @@
* Is instruction a parrot opcode?
*/
int
-is_op(Interp *interp, char *name)
+is_op(Interp *interp, const char *name)
{
int (*op_lookup)(const char *, int full) =
interp->op_lib->op_code;