Add support for extern "C" thread_local
This commit is contained in:
parent
7fcfdeee08
commit
e44656cfe5
8 changed files with 36 additions and 6 deletions
|
|
@ -273,6 +273,17 @@ int Swig_storage_isextern(Node *n) {
|
|||
return storage ? Strcmp(storage, "extern") == 0 || Strncmp(storage, "extern ", 7) == 0 : 0;
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Swig_storage_isexternc()
|
||||
*
|
||||
* Determine if the storage class specifier is externc (but not plain extern)
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
int Swig_storage_isexternc(Node *n) {
|
||||
const String *storage = Getattr(n, "storage");
|
||||
return storage ? Strcmp(storage, "externc") == 0 || Strncmp(storage, "externc ", 8) == 0 : 0;
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Swig_storage_isstatic_custom()
|
||||
*
|
||||
|
|
|
|||
|
|
@ -316,6 +316,7 @@ extern int ParmList_is_compactdefargs(ParmList *p);
|
|||
extern String *Swig_filename_escape(String *filename);
|
||||
extern void Swig_filename_unescape(String *filename);
|
||||
extern int Swig_storage_isextern(Node *n);
|
||||
extern int Swig_storage_isexternc(Node *n);
|
||||
extern int Swig_storage_isstatic_custom(Node *n, const_String_or_char_ptr storage);
|
||||
extern int Swig_storage_isstatic(Node *n);
|
||||
extern String *Swig_string_escape(String *s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue