mirror of
https://github.com/cc65/cc65.git
synced 2025-01-16 13:31:16 +00:00
Change prototype for GT_AsString to make it easier usable.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5257 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
6e47980eb7
commit
b88dc209fc
@ -79,8 +79,10 @@ unsigned GT_GetArraySize (StrBuf* Type)
|
||||
|
||||
|
||||
|
||||
void GT_AsString (const StrBuf* Type, StrBuf* String)
|
||||
/* Convert the type into a readable representation */
|
||||
const char* GT_AsString (const StrBuf* Type, StrBuf* String)
|
||||
/* Convert the type into a readable representation. The target string buffer
|
||||
* will be zero terminated and a pointer to the contents are returned.
|
||||
*/
|
||||
{
|
||||
static const char HexTab[16] = "0123456789ABCDEF";
|
||||
unsigned I;
|
||||
@ -98,7 +100,10 @@ void GT_AsString (const StrBuf* Type, StrBuf* String)
|
||||
}
|
||||
|
||||
/* Terminate the string so it can be used with string functions */
|
||||
SB_Terminate (String);
|
||||
SB_Terminate (String);
|
||||
|
||||
/* Return the contents of String */
|
||||
return SB_GetConstBuf (String);
|
||||
}
|
||||
|
||||
|
||||
|
@ -136,8 +136,10 @@ unsigned GT_GetArraySize (StrBuf* Type);
|
||||
* The index position will get moved past the array size.
|
||||
*/
|
||||
|
||||
void GT_AsString (const StrBuf* Type, StrBuf* String);
|
||||
/* Convert the type into a readable representation */
|
||||
const char* GT_AsString (const StrBuf* Type, StrBuf* String);
|
||||
/* Convert the type into a readable representation. The target string buffer
|
||||
* will be zero terminated and a pointer to the contents are returned.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user