SEH again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Where could I declare the following structure for seh implementation.
For now I have declared it in c-typecheck.c (the definition is a copy/paste
from objc)

struct seh_try_context 
{
  /* The SEH_TRY_STMT being built.  */
  tree try_stmt;
  /* The next node on the stack.  */
  struct seh_try_context *next;

 /* Statements (or statement lists) as processed by the parser.  */
  tree try_body;
  tree finally_body;

  /* Some file position locations.  */
  location_t try_locus;
  location_t end_try_locus;
  location_t end_catch_locus;
  location_t finally_locus;
  location_t end_finally_locus;
};
static struct seh_try_context *cur_seh_try_context;

void
begin_seh_try_stmt (location_t try_locus, tree body)
{
  struct seh_try_context *try;

  /* Push a new SEH_TRY_STMT onto the stack.  */
  try = (struct seh_try_context *)  XCNEW (struct seh_try_context);
  try->try_stmt = build_stmt (SEH_TRY_STMT, NULL_TREE, NULL_TREE,
NULL_TREE);
  add_stmt (try->try_stmt);
}
...





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux