X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Fmangle.h;h=8f3ded84606cc4238ef7426633afd7c92fa8cafb;hb=9881ec52a8f14aab4af3e15bf6cfe9f26cb976b8;hp=bbf34446c3b9d0bfd9ecd0196da6e333cdd700fc;hpb=df83e37827032795585d3b25776c465870672901;p=libfirm diff --git a/ir/tr/mangle.h b/ir/tr/mangle.h index bbf34446c..8f3ded846 100644 --- a/ir/tr/mangle.h +++ b/ir/tr/mangle.h @@ -1,30 +1,42 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. +/* + * Project: libFIRM + * File name: ir/tr/mangle.h + * Purpose: Methods to manipulate names. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + +/** +* @file mangle.h * -* Authors: Martin Trapp, Christian Schaefer +* FIRM name mangling -- methods to manipulate names. * +* @author Martin Trapp, Christian Schaefer */ -/* $Id$ */ +#ifndef _MANGLE_H_ +#define _MANGLE_H_ # include "ident.h" # include "entity.h" # include "type.h" +/** initializes the name mangling code */ +void init_mangle (void); -void init_mangle (void); - -/* Computes a definite name for this entity by concatenating +/** Computes a definite name for this entity by concatenating the name of the owner type and the name of the entity with - a separating "_". f*/ + a separating "_". */ ident *mangle_entity (entity *ent); -/* Sorry, I'm not sure what this does... seems to copy the string. */ -ident *mangle_type (type *tp); - -/* mangle underscore: Returns a new ident that represents first_scnd. */ +/** mangle underscore: Returns a new ident that represents first_scnd. */ ident *mangle_u (ident *first, ident* scnd); - -/* mangle: Returns a new ident that represents firstscnd. */ +/** mangle: Returns a new ident that represents firstscnd. */ ident *mangle (ident *first, ident* scnd); + +#endif /* _MANGLE_H_ */