[svn:parrot] r44475 - branches/rm_cflags/compilers/imcc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Thu Feb 25 20:21:00 UTC 2010
Author: chromatic
Date: Thu Feb 25 20:21:00 2010
New Revision: 44475
URL: https://trac.parrot.org/parrot/changeset/44475
Log:
[IMCC] Changed emit_open() and open emitter signature to take a C string, not a
void pointer. This removes a warning.
Modified:
branches/rm_cflags/compilers/imcc/instructions.c
branches/rm_cflags/compilers/imcc/instructions.h
branches/rm_cflags/compilers/imcc/main.c
Modified: branches/rm_cflags/compilers/imcc/instructions.c
==============================================================================
--- branches/rm_cflags/compilers/imcc/instructions.c Thu Feb 25 20:20:55 2010 (r44474)
+++ branches/rm_cflags/compilers/imcc/instructions.c Thu Feb 25 20:21:00 2010 (r44475)
@@ -1,6 +1,6 @@
/*
* $Id$
- * Copyright (C) 2002-2009, Parrot Foundation.
+ * Copyright (C) 2002-2010, Parrot Foundation.
*/
#include <stdlib.h>
@@ -873,7 +873,7 @@
PARROT_EXPORT
int
-emit_open(PARROT_INTERP, int type, ARGIN_NULLOK(void *param))
+emit_open(PARROT_INTERP, int type, ARGIN_NULLOK(const char *param))
{
ASSERT_ARGS(emit_open)
IMCC_INFO(interp)->emitter = type;
Modified: branches/rm_cflags/compilers/imcc/instructions.h
==============================================================================
--- branches/rm_cflags/compilers/imcc/instructions.h Thu Feb 25 20:20:55 2010 (r44474)
+++ branches/rm_cflags/compilers/imcc/instructions.h Thu Feb 25 20:21:00 2010 (r44475)
@@ -1,6 +1,6 @@
/*
* $Id$
- * Copyright (C) 2002-2009, Parrot Foundation.
+ * Copyright (C) 2002-2010, Parrot Foundation.
*/
#ifndef PARROT_IMCC_INSTRUCTIONS_H_GUARD
@@ -79,7 +79,7 @@
/* Globals */
typedef struct _emittert {
- int (*open)(PARROT_INTERP, void *param);
+ int (*open)(PARROT_INTERP, const char *param);
int (*emit)(PARROT_INTERP, void *param, const IMC_Unit *, const Instruction *ins);
int (*new_sub)(PARROT_INTERP, void *param, IMC_Unit *);
int (*end_sub)(PARROT_INTERP, void *param, IMC_Unit *);
@@ -103,7 +103,7 @@
__attribute__nonnull__(3);
PARROT_EXPORT
-int emit_open(PARROT_INTERP, int type, ARGIN_NULLOK(void *param))
+int emit_open(PARROT_INTERP, int type, ARGIN_NULLOK(const char *param))
__attribute__nonnull__(1);
PARROT_WARN_UNUSED_RESULT
Modified: branches/rm_cflags/compilers/imcc/main.c
==============================================================================
--- branches/rm_cflags/compilers/imcc/main.c Thu Feb 25 20:20:55 2010 (r44474)
+++ branches/rm_cflags/compilers/imcc/main.c Thu Feb 25 20:21:00 2010 (r44475)
@@ -646,7 +646,7 @@
IMCC_push_parser_state(interp);
IMCC_INFO(interp)->state->file = mem_sys_strdup(sourcefile);
- emit_open(interp, per_pbc, per_pbc ? NULL : (void*)output_file);
+ emit_open(interp, per_pbc, per_pbc ? NULL : output_file);
IMCC_info(interp, 1, "Starting parse...\n");
More information about the parrot-commits
mailing list