File indexing completed on 2025-01-26 04:43:59

0001 /* ------------------------------------------------------------------------
0002 @NAME       : init.c
0003 @DESCRIPTION: Initialization and cleanup functions for the btparse library.
0004 @GLOBALS    : 
0005 @CALLS      : 
0006 @CREATED    : 1997/01/19, Greg Ward
0007 @MODIFIED   : 
0008 @VERSION    : $Id: init.c,v 1.8 1999/11/29 01:13:10 greg Rel $
0009 @COPYRIGHT  : Copyright (c) 1996-99 by Gregory P. Ward.  All rights reserved.
0010 
0011               This file is part of the btparse library.  This library is
0012               free software; you can redistribute it and/or modify it under
0013               the terms of the GNU General Public License as
0014               published by the Free Software Foundation; either version 2
0015               of the License, or (at your option) any later version.
0016 -------------------------------------------------------------------------- */
0017 
0018 /*#include "bt_config.h"*/
0019 #include "stdpccts.h"                   /* for zzfree_ast() prototype */
0020 #include "parse_auxiliary.h"            /* for fix_token_names() proto */
0021 #include "prototypes.h"                 /* for other prototypes */
0022 /*#include "my_dmalloc.h"*/
0023 
0024 void bt_initialize (void)
0025 {
0026    /* Initialize data structures */
0027 
0028    fix_token_names ();
0029    init_macros ();
0030 }
0031 
0032 
0033 void bt_free_ast (AST *ast)
0034 {
0035    zzfree_ast (ast);
0036 }
0037 
0038 
0039 void bt_cleanup (void)
0040 {
0041    done_macros ();
0042 }