65 // Check if the table is already full |
65 // Check if the table is already full |
66 if (g_string_table.size() == g_max_stringlist_size - 1) |
66 if (g_string_table.size() == g_max_stringlist_size - 1) |
67 error ("too many strings!\n"); |
67 error ("too many strings!\n"); |
68 |
68 |
69 // Now, dump the string into the slot |
69 // Now, dump the string into the slot |
70 g_string_table[idx] = a; |
70 g_string_table.push_back (a); |
71 |
71 return (g_string_table.size() - 1); |
72 return idx; |
|
73 } |
72 } |
74 |
73 |
75 // ============================================================================ |
74 // ============================================================================ |
76 // Counts the amount of strings in the table. |
75 // Counts the amount of strings in the table. |
77 // |
76 // |