/*  (C) Copyright David Abrahams 2001. Permission to copy, use, modify, sell and
 *  distribute this software is granted provided this copyright notice appears
 *  in all copies. This software is provided "as is" without express or implied
 *  warranty, and with no claim as to its suitability for any purpose.
 */
#ifndef MODULES_DWA10182001_H
# define MODULES_DWA10182001_H

struct module
{
    char* name;
    struct hash* rules;
    struct hash* local_names;
    struct _settings* locals;
};

typedef struct module module; /* MSVC debugger gets confused unless this is provided */

module* bindmodule( char* name );
module* root_module();
void bind_module_var( module*, char* name );
void enter_module( module* );
void exit_module( module* );

#endif // MODULES_DWA10182001_H
