aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/stringt.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/stringt.h')
-rw-r--r--gcc/ada/stringt.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ada/stringt.h b/gcc/ada/stringt.h
index 3a1e1f6..a8c1966 100644
--- a/gcc/ada/stringt.h
+++ b/gcc/ada/stringt.h
@@ -6,7 +6,7 @@
* *
* C Header File *
* *
- * $Revision: 1.1 $
+ * $Revision$
* *
* Copyright (C) 1992-2001 Free Software Foundation, Inc. *
* *
@@ -56,9 +56,7 @@ struct String_Entry
};
/* Pointer to string entry vector. This pointer is passed to the tree
- transformer and stored in a global location for access from here after
- subtracting String_First_Entry, so that String_Id values can be used as
- subscripts into the vector. */
+ transformer and stored in a global location. */
extern struct String_Entry *Strings_Ptr;
/* Pointer to name characters table. This pointer is passed to the tree
@@ -74,7 +72,7 @@ INLINE Int
String_Length (Id)
String_Id Id;
{
- return Strings_Ptr [Id].Length;
+ return Strings_Ptr[Id - First_String_Id].Length;
}
@@ -88,5 +86,7 @@ Get_String_Char (Id, Index)
String_Id Id;
Int Index;
{
- return String_Chars_Ptr [Strings_Ptr [Id].String_Index + Index - 1];
+ return
+ String_Chars_Ptr
+ [Strings_Ptr[Id - First_String_Id].String_Index + Index - 1];
}