mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-13 08:27:26 +00:00
149594f974
darcs-hash:20050920132639-ac50b-fa3b476891e1f5f67207cf4cc7bf623834cc5edc.gz
24 lines
567 B
C
24 lines
567 B
C
/** \file intern.h
|
|
|
|
Library for pooling common strings
|
|
|
|
*/
|
|
|
|
/**
|
|
Return an identical copy of the specified string from a pool of unique strings. If the string was not in the pool, add a copy.
|
|
|
|
\param The string to return an interned copy of
|
|
*/
|
|
const wchar_t *intern( const wchar_t *in );
|
|
|
|
/**
|
|
Insert the specified string literal into the pool of unique
|
|
strings. The string will not first be copied, and it will not be
|
|
free'd on exit.
|
|
*/
|
|
const wchar_t *intern_static( const wchar_t *in );
|
|
|
|
/**
|
|
Free all interned strings
|
|
*/
|
|
void intern_free_all();
|