| 1 | # /=====================================================================\ # | ||
| 2 | # | LaTeXML::Global | # | ||
| 3 | # | Global constants, accessors and constructors | # | ||
| 4 | # |=====================================================================| # | ||
| 5 | # | Part of LaTeXML: | # | ||
| 6 | # | Public domain software, produced as part of work done by the | # | ||
| 7 | # | United States Government & not subject to copyright in the US. | # | ||
| 8 | # |---------------------------------------------------------------------| # | ||
| 9 | # | Bruce Miller <bruce.miller@nist.gov> #_# | # | ||
| 10 | # | http://dlmf.nist.gov/LaTeXML/ (o o) | # | ||
| 11 | # \=========================================================ooo==U==ooo=/ # | ||
| 12 | |||
| 13 | #====================================================================== | ||
| 14 | # This module collects all the commonly useful constants and constructors | ||
| 15 | # that other modules and package implementations are likely to need. | ||
| 16 | # This should be used in a context where presumably all the required | ||
| 17 | # LaTeXML modules that implement the various classes have already been loaded. | ||
| 18 | # | ||
| 19 | # Yes, a lot of stuff is exported, polluting your namespace. | ||
| 20 | # Thus, you use this module only if you _need_ the functionality! | ||
| 21 | #====================================================================== | ||
| 22 | package LaTeXML::Global; | ||
| 23 | 34 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | 34 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | 34 | ▶ | use base qw(Exporter); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | 34 | our @EXPORT = ( # Global STATE; This gets bound by LaTeXML.pm | |
| 27 | qw( *STATE | ||
| 28 | TRACE_MACROS TRACE_COMMANDS TRACE_ALL TRACE_PROFILE | ||
| 29 | ), | ||
| 30 | ); | ||
| 31 | |||
| 32 | #local $LaTeXML::STATE; | ||
| 33 | |||
| 34 | 34 | ▶ | use constant TRACE_MACROS => 0x1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | 34 | ▶ | use constant TRACE_COMMANDS => 0x2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 36 | 34 | ▶ | use constant TRACE_ALL => 0x3; # MACROS | COMMANDS |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 37 | 34 | ▶ | use constant TRACE_PROFILE => 0x4; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 38 | #********************************************************************** | ||
| 39 | 34 | 1; | |
| 40 | |||
| 41 | __END__ | ||