src/stringtable.cc

changeset 81
071715c17296
parent 75
bf8c57437231
child 85
264a61e9eba0
equal deleted inserted replaced
80:2ed3430fdd08 81:071715c17296
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 //

mercurial