Lines Matching refs:strings
43 { if ((psf->strings.flags & SF_STR_ALLOW_START) == 0) in psf_store_string()
45 if (psf->have_written && (psf->strings.flags & SF_STR_ALLOW_END) == 0) in psf_store_string()
55 if (psf->strings.data [k].type == str_type) in psf_store_string()
56 psf->strings.data [k].type = -1 ; in psf_store_string()
58 if (psf->strings.data [k].type == 0) in psf_store_string()
65 { if ((psf->strings.flags & SF_STR_ALLOW_END) == 0) in psf_store_string()
74 if (k == 0 && psf->strings.storage_used != 0) in psf_store_string()
79 if (k != 0 && psf->strings.storage_used == 0) in psf_store_string()
86 psf->strings.storage_used = 0 ; in psf_store_string()
128 if (psf->strings.storage_used + str_len + 1 > psf->strings.storage_len) in psf_store_string()
129 { char * temp = psf->strings.storage ; in psf_store_string()
130 size_t newlen = 2 * psf->strings.storage_len + str_len + 1 ; in psf_store_string()
134 if ((psf->strings.storage = realloc (temp, newlen)) == NULL) in psf_store_string()
135 { psf->strings.storage = temp ; in psf_store_string()
139 psf->strings.storage_len = newlen ; in psf_store_string()
142 psf->strings.data [k].type = str_type ; in psf_store_string()
143 psf->strings.data [k].offset = psf->strings.storage_used ; in psf_store_string()
144 psf->strings.data [k].flags = str_flags ; in psf_store_string()
146 memcpy (psf->strings.storage + psf->strings.storage_used, str, str_len) ; in psf_store_string()
147 psf->strings.storage_used += str_len ; in psf_store_string()
149 psf->strings.flags |= str_flags ; in psf_store_string()
152 …printf ("storage_used : %zd / %zd\n", psf->strings.storage_used, psf->strings.storage_len)… in psf_store_string()
153 psf_hexdump (psf->strings.storage, psf->strings.storage_used) ; in psf_store_string()
172 if (str_type == psf->strings.data [k].type) in psf_get_string()
173 return psf->strings.storage + psf->strings.data [k].offset ; in psf_get_string()
183 if (psf->strings.data [k].type > 0 && psf->strings.data [k].flags & location) in psf_location_string_count()