~ubuntu-branches/ubuntu/wily/luatex/wily

« back to all changes in this revision

Viewing changes to source/texk/web2c/luatexdir/tex/memoryword.c

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2010-04-29 00:47:19 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100429004719-o42etkqe90n97b9e
Tags: 0.60.1-1
* new upstream release, adapt build-script patch
* disable patch: upstream-epstopdf_cc_no_xpdf_patching, included upstream
* disable patch: libpoppler-0.12, not needed anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* memoryword.c
2
 
   
3
 
   Copyright 2009 Taco Hoekwater <taco@luatex.org>
4
 
 
5
 
   This file is part of LuaTeX.
6
 
 
7
 
   LuaTeX is free software; you can redistribute it and/or modify it under
8
 
   the terms of the GNU General Public License as published by the Free
9
 
   Software Foundation; either version 2 of the License, or (at your
10
 
   option) any later version.
11
 
 
12
 
   LuaTeX is distributed in the hope that it will be useful, but WITHOUT
13
 
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
 
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
15
 
   License for more details.
16
 
 
17
 
   You should have received a copy of the GNU General Public License along
18
 
   with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */
19
 
 
20
 
#include <ptexlib.h>
21
 
 
22
 
static const char _svn_version[] =
23
 
    "$Id: memoryword.c 2675 2009-06-28 18:12:59Z oneiros $"
24
 
    "$URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.50.0/source/texk/web2c/luatexdir/tex/memoryword.c $";
25
 
 
26
 
/*
27
 
When debugging, we may want to print a |memory_word| without knowing
28
 
what type it is; so we print it in all modes.
29
 
*/
30
 
 
31
 
#ifdef DEBUG
32
 
void print_word(memory_word w)
33
 
{
34
 
    /* prints |w| in all ways */
35
 
    print_int(w.cint);
36
 
    print_char(' ');
37
 
    print_scaled(w.cint);
38
 
    print_char(' ');
39
 
    print_scaled(round(unity * float_cast(w.gr)));
40
 
    print_ln();
41
 
    print_int(w.hh.lhfield);
42
 
    print_char('=');
43
 
    print_int(w.hh.b0);
44
 
    print_char(':');
45
 
    print_int(w.hh.b1);
46
 
    print_char(';');
47
 
    print_int(w.hh.rh);
48
 
    print_char(' ');
49
 
    print_int(w.qqqq.b0);
50
 
    print_char(':');
51
 
    print_int(w.qqqq.b1);
52
 
    print_char(':');
53
 
    print_int(w.qqqq.b2);
54
 
    print_char(':');
55
 
    print_int(w.qqqq.b3);
56
 
}
57
 
#endif