From: Michael Beck Date: Tue, 25 Mar 2003 14:00:25 +0000 (+0000) Subject: const modifier added X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=75bf2687f404f557b206ab44b59fe729ac43b7c0;p=libfirm const modifier added [r963] --- diff --git a/ir/common/firm_common.c b/ir/common/firm_common.c index a996e7b1f..0011ef7cb 100644 --- a/ir/common/firm_common.c +++ b/ir/common/firm_common.c @@ -18,7 +18,7 @@ /* returns the kind of the thing */ firm_kind -get_kind (void *firm_thing) { +get_kind (const void *firm_thing) { assert (firm_thing); return *(firm_kind *)firm_thing; } diff --git a/ir/common/firm_common.h b/ir/common/firm_common.h index 831c37cf8..332bc45b8 100644 --- a/ir/common/firm_common.h +++ b/ir/common/firm_common.h @@ -36,7 +36,7 @@ typedef enum { * * @param firm_thing pointer repraesenting a firm object */ -firm_kind get_kind(void *firm_thing); +firm_kind get_kind(const void *firm_thing); /** Returns the kind of a thing as a string. */ const char* print_firm_kind(void *firm_thing);