const-ize

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7130 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-10-10 04:55:28 +00:00
parent 41d5fed9f9
commit a74d27d3d7
16 changed files with 97 additions and 82 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997 - 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -41,13 +41,13 @@
RCSID("$Id$");
static void
free_primitive (char *typename, char *name)
free_primitive (const char *typename, const char *name)
{
fprintf (codefile, "free_%s(%s);\n", typename, name);
}
static void
free_type (char *name, Type *t)
free_type (const char *name, const Type *t)
{
switch (t->type) {
case TType:
@@ -118,7 +118,7 @@ free_type (char *name, Type *t)
}
void
generate_type_free (Symbol *s)
generate_type_free (const Symbol *s)
{
fprintf (headerfile,
"void free_%s (%s *);\n",