From e1198a11188a54e588d0ccaf13ac83e88c7b776b Mon Sep 17 00:00:00 2001 From: Boris Boesler Date: Mon, 12 Mar 2001 17:17:28 +0000 Subject: [PATCH] autodocified [r128] --- ir/ident/ident.h | 73 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 68 insertions(+), 5 deletions(-) diff --git a/ir/ident/ident.h b/ir/ident/ident.h index 48a58f33d..c21185418 100644 --- a/ir/ident/ident.h +++ b/ir/ident/ident.h @@ -12,16 +12,79 @@ # include "assert.h" +/****h* libfirm/ident + * + * NAME + * ident -- identifiers in the firm library + * NOTES + * Identifiers are used in the firm library. This is the interface to it. + * + ****** + */ + /* Identifiers */ +/****s* ident/ident + * + * NAME + * ident - the abstract data type ident + * SOURCE + */ typedef const struct set_entry ident; +/*****/ -/* Stores a string in the ident module and returns a handle for - the string. */ +/****f* ident/id_from_str + * + * NAME + * id_from_str - store a string and create an ident + * SYNOPSIS + * ident *id = id_from_str (char *str, int len); + * FUNCTION + * Stores a string in the ident module and returns a handle for the string. + * INPUTS + * str - the string (or whatever) which shall be stored + * len - the length of the data in bytes + * RESULT + * id - a handle for the generated ident + * SEE ALSO + * id_to_str, id_to_strlen + *** + */ inline ident *id_from_str (char *str, int len); -/* Returns the string represented by id. This string is not Null - terminated! */ + +/****f* ident/id_to_str + * + * NAME + * id_to_str - return a string represented by an ident + * SYNOPSIS + * char *cp = id_to_str (ident *id); + * FUNCTION + * Returns the string cp represented by id. This string cp is not Null terminated! + * INPUTS + * id - the ident + * RESULT + * cp - a string + * SEE ALSO + * id_from_str, id_to_strlen + *** + */ inline const char *id_to_str (ident *id); -/* Returns the length of the string represented by id. */ + +/****f* ident/id_to_strlen + * + * NAME + * id_to_strlen - return the length of a string represented by an ident + * SYNOPSIS + * int len = id_to_strlen (ident *id); + * FUNCTION + * Returns the length of string represented by id. + * INPUTS + * id - the ident + * RESULT + * len - the length of the string + * SEE ALSO + * id_from_str, id_to_str + *** + */ inline int id_to_strlen(ident *id); # endif /* _IDENT_H_ */ -- 2.20.1