diff options
author | Nathanael Nerode <neroden@gcc.gnu.org> | 2003-10-24 02:28:37 +0000 |
---|---|---|
committer | Nathanael Nerode <neroden@gcc.gnu.org> | 2003-10-24 02:28:37 +0000 |
commit | b4e2d709cf1bc8fa1332b4e9033d066faddde31c (patch) | |
tree | 88b1021b4a595fc67a1bc99941b3db47b9dc7dcb /gcc/ada/stringt.h | |
parent | 1b24cd79cbe08c9391202b83b39ec0d8a6e92800 (diff) | |
download | gcc-b4e2d709cf1bc8fa1332b4e9033d066faddde31c.zip gcc-b4e2d709cf1bc8fa1332b4e9033d066faddde31c.tar.gz gcc-b4e2d709cf1bc8fa1332b4e9033d066faddde31c.tar.bz2 |
adadecode.h, [...]: Convert to ISO C90 declarations and definitions.
* adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
stringt.h: Convert to ISO C90 declarations and definitions.
From-SVN: r72877
Diffstat (limited to 'gcc/ada/stringt.h')
-rw-r--r-- | gcc/ada/stringt.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/ada/stringt.h b/gcc/ada/stringt.h index 68b02bd..1260909 100644 --- a/gcc/ada/stringt.h +++ b/gcc/ada/stringt.h @@ -64,11 +64,10 @@ extern Char_Code *String_Chars_Ptr; /* String_Length returns the length of the specified string. */ -INLINE Int String_Length PARAMS ((String_Id)); +INLINE Int String_Length (String_Id); INLINE Int -String_Length (Id) - String_Id Id; +String_Length (String_Id Id) { return Strings_Ptr[Id - First_String_Id].Length; } @@ -77,12 +76,10 @@ String_Length (Id) /* Get_String_Char obtains the specified character from a stored string. The lower bound of stored strings is always 1, so the range of values is 1 to String_Length (Id). */ -INLINE Char_Code Get_String_Char PARAMS ((String_Id, Int)); +INLINE Char_Code Get_String_Char (String_Id, Int); INLINE Char_Code -Get_String_Char (Id, Index) - String_Id Id; - Int Index; +Get_String_Char (String_Id Id, Int Index) { return String_Chars_Ptr |