Glenn, AST <error.h> has _error_infop_. If I understand this right
this may not be compatible with thread support in libast, because
different threads may have different error contexts pushed
concurrently.

I have looked at the issue, IMO a safe way might be to do it like
Solaris libc implemented errno: Replace _error_infop_ with a function
returning a pointer to a per thread _error_infop_, i.e. replace
"#define error_info     (*_error_infop_)" with "#define
error_info      (*_ast_get_error_infop())".

What do you think?

Olga
-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanov...@gmail.com   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`
_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to