~ubuntu-branches/ubuntu/hardy/texmacs/hardy

« back to all changes in this revision

Viewing changes to src/Data/Convert/Tex/inittex.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ralf Treinen
  • Date: 2004-04-19 20:34:00 UTC
  • Revision ID: james.westby@ubuntu.com-20040419203400-g4e34ih0315wcn8v
Tags: upstream-1.0.3-R2
ImportĀ upstreamĀ versionĀ 1.0.3-R2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/******************************************************************************
 
3
* MODULE     : inittex.cpp
 
4
* DESCRIPTION: initialize conversion from and to TeX
 
5
* COPYRIGHT  : (C) 1999  Joris van der Hoeven
 
6
*******************************************************************************
 
7
* This software falls under the GNU general public license and comes WITHOUT
 
8
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
 
9
* If you don't have this file, write to the Free Software Foundation, Inc.,
 
10
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
11
******************************************************************************/
 
12
 
 
13
#include "Tex/convert_tex.hpp"
 
14
#include "rel_hashmap.hpp"
 
15
#include "scheme.hpp"
 
16
 
 
17
static int
 
18
latex_arity_func (string s) {
 
19
  return as_int (call ("latex-arity", s));
 
20
}
 
21
 
 
22
static string
 
23
latex_type_func (string s) {
 
24
  return as_string (call ("latex-type", s));
 
25
}
 
26
 
 
27
rel_hashmap<string,string> command_type ("undefined");
 
28
rel_hashmap<string,int>    command_arity (0);
 
29
rel_hashmap<string,string> command_def ("undefined");
 
30
hashfunc<string,int>       latex_arity (latex_arity_func, 0);
 
31
hashfunc<string,string>    latex_type (latex_type_func, "undefined");