X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fst%2Fexc.h;h=826b270138a6d3d96e3dc351566a4de427e87f8f;hb=184602875611495e608c27263d0a5a8f24078a70;hp=f2706649148f178ced755137fdf6fb9eaf231e48;hpb=df83e37827032795585d3b25776c465870672901;p=libfirm diff --git a/ir/st/exc.h b/ir/st/exc.h index f27066491..826b27013 100644 --- a/ir/st/exc.h +++ b/ir/st/exc.h @@ -1,7 +1,15 @@ -/* Copyright (c) 2002 by Universität Karlsruhe (TH). All Rights Reserved */ /* -* Time-stamp: -*/ + * Project: libFIRM + * File name: ir/st/exc.h + * Purpose: Helper functions for jack exceptions. + * Author: Florian Liekweg + * Modified by: + * Created: 4.3.2002 + * CVS-ID: $Id$ + * Copyright: (c) 2002-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + /** NAME @@ -10,10 +18,6 @@ Helper functions for exceptions S not quite complete - HISTORY - liekweg - Mar 4, 2002: Created. - CVS: - $Id$ ***/ # include "irnode.h" @@ -27,6 +31,10 @@ #include +#ifdef __cplusplus + extern "C" { +#endif + typedef enum { exc_invalid = 0, /* not yet computed */ exc_normal, /* normal CF */ @@ -43,6 +51,8 @@ typedef enum { exc_max /* maximum value of enum for 'bounds checking' */ } exc_t; + + const char *exc_to_string (exc_t); bool is_handler_entry (ir_graph*, ir_node*); @@ -63,4 +73,8 @@ ir_node* get_Block_handler (ir_node*); void set_Node_handler (ir_node*, ir_node*); ir_node* get_Node_handler (ir_node*); +#ifdef __cplusplus +} +#endif + # endif /* def _EXC_H_ */