Back to index

texmacs  1.0.7.15
drd_std.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : drd_std.hpp
00004 * DESCRIPTION: standard drd for TeXmacs; most other drd's inherit from it
00005 * COPYRIGHT  : (C) 2003  Joris van der Hoeven
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #ifndef DRD_STD_H
00013 #define DRD_STD_H
00014 #include "drd_info.hpp"
00015 
00016 extern drd_info std_drd;
00017 extern drd_info the_drd;
00018 extern hashmap<string,int> STD_CODE;
00019 
00020 inline bool std_contains (string s) { return STD_CODE->contains (s); }
00021 
00022 void init_std_drd ();
00023 
00024 struct with_drd {
00025   drd_info old_drd;
00026   inline with_drd (drd_info new_drd): old_drd (the_drd) { the_drd= new_drd; }
00027   inline ~with_drd () { the_drd= old_drd; }
00028 };
00029 
00030 #endif // defined DRD_STD_H