w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

aptex-mruby.c File Reference
#include "mruby.h"
#include <kpathsea/expand.h>
#include <kpathsea/progname.h>
#include <kpathsea/proginit.h>
#include <kpathsea/readable.h>
#include <kpathsea/tex-file.h>
#include <kpathsea/tex-hush.h>
#include <kpathsea/tex-make.h>
#include <kpathsea/lib.h>
#include <kpathsea/variable.h>
#include <ptexenc/ptexenc.h>
#include <ptexenc/unicode.h>
Include dependency graph for aptex-mruby.c:

Go to the source code of this file.

Functions

static mrb_value mrb_kpse_brace_expand (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_path_expand (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_xputenv (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_xputenv_int (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_init_prog (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_readable_file (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_set_program_name (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_var_value (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_var_expand (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_set_program_enabled (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_maketex_option (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_init_format (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_find_file (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_in_name_ok (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_out_name_ok (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_reset_program_name (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_tex_hush (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_kpse_make_tex (mrb_state *mrb, mrb_value self)
 
static void mrb_mruby_kpathsea_gem_init (mrb_state *mrb)
 
static void mrb_mruby_kpathsea_gem_final (mrb_state *mrb)
 
static mrb_value mrb_ptexenc_enable_UPTEX (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_get_enc_string (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_set_enc_string (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_toDVI (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_fromDVI (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_toJIS (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_fromJIS (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_fromEUC (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_fromSJIS (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_fromKUTEN (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_fromUCS (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_toUCS (mrb_state *mrb, mrb_value self)
 
static mrb_value mrb_ptexenc_UCStoUTF8 (mrb_state *mrb, mrb_value self)
 
static void mrb_mruby_ptexenc_gem_init (mrb_state *mrb)
 
static void mrb_mruby_ptexenc_gem_final (mrb_state *mrb)
 
void mrb_mruby_aptex_gem_init (mrb_state *mrb)
 
void mrb_mruby_aptex_gem_final (mrb_state *mrb)
 

Function Documentation

◆ mrb_kpse_brace_expand()

static mrb_value mrb_kpse_brace_expand ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 34 of file aptex-mruby.c.

References mrb_get_args(), and mrb_str_new_cstr().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_find_file()

static mrb_value mrb_kpse_find_file ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 131 of file aptex-mruby.c.

References format, mrb_get_args(), mrb_str_new_cstr(), must_exist, and name.

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_in_name_ok()

static mrb_value mrb_kpse_in_name_ok ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 140 of file aptex-mruby.c.

References fname, mrb_bool_value(), and mrb_get_args().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_init_format()

static mrb_value mrb_kpse_init_format ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 124 of file aptex-mruby.c.

References fmt, mrb_get_args(), and mrb_str_new_cstr().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_init_prog()

static mrb_value mrb_kpse_init_prog ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 66 of file aptex-mruby.c.

References dpi, fallback(), mode, mrb_get_args(), mrb_nil_value(), and prefix.

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_make_tex()

static mrb_value mrb_kpse_make_tex ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 169 of file aptex-mruby.c.

References format, mrb_get_args(), and mrb_str_new_cstr().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_maketex_option()

static mrb_value mrb_kpse_maketex_option ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 116 of file aptex-mruby.c.

References mrb_get_args(), and mrb_nil_value().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_out_name_ok()

static mrb_value mrb_kpse_out_name_ok ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 147 of file aptex-mruby.c.

References fname, mrb_bool_value(), and mrb_get_args().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_path_expand()

static mrb_value mrb_kpse_path_expand ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 41 of file aptex-mruby.c.

References mrb_get_args(), and mrb_str_new_cstr().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_readable_file()

static mrb_value mrb_kpse_readable_file ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 77 of file aptex-mruby.c.

References mrb_get_args(), mrb_str_new_cstr(), and name.

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_reset_program_name()

static mrb_value mrb_kpse_reset_program_name ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 154 of file aptex-mruby.c.

References mrb_get_args(), mrb_nil_value(), and progname.

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_set_program_enabled()

static mrb_value mrb_kpse_set_program_enabled ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 106 of file aptex-mruby.c.

References fmt, level, mrb_get_args(), and mrb_nil_value().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_set_program_name()

static mrb_value mrb_kpse_set_program_name ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 84 of file aptex-mruby.c.

References argv0, mrb_get_args(), mrb_nil_value(), and program.

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_tex_hush()

static mrb_value mrb_kpse_tex_hush ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 162 of file aptex-mruby.c.

References mrb_bool_value(), mrb_get_args(), and gen-indic-table::what.

◆ mrb_kpse_var_expand()

static mrb_value mrb_kpse_var_expand ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 99 of file aptex-mruby.c.

References mrb_get_args(), mrb_str_new_cstr(), and link_confs::src.

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_var_value()

static mrb_value mrb_kpse_var_value ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 92 of file aptex-mruby.c.

References mrb_get_args(), and mrb_str_new_cstr().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_xputenv()

static mrb_value mrb_kpse_xputenv ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 48 of file aptex-mruby.c.

References mrb_get_args(), and mrb_nil_value().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_kpse_xputenv_int()

static mrb_value mrb_kpse_xputenv_int ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 57 of file aptex-mruby.c.

References mrb_get_args(), and mrb_nil_value().

Referenced by mrb_mruby_kpathsea_gem_init().

◆ mrb_mruby_aptex_gem_final()

void mrb_mruby_aptex_gem_final ( mrb_state mrb)

Definition at line 397 of file aptex-mruby.c.

References mrb_mruby_kpathsea_gem_final(), and mrb_mruby_ptexenc_gem_final().

Referenced by aptex_commands_init().

◆ mrb_mruby_aptex_gem_init()

void mrb_mruby_aptex_gem_init ( mrb_state mrb)

Definition at line 392 of file aptex-mruby.c.

References mrb_mruby_kpathsea_gem_init(), and mrb_mruby_ptexenc_gem_init().

Referenced by aptex_commands_init().

◆ mrb_mruby_kpathsea_gem_final()

static void mrb_mruby_kpathsea_gem_final ( mrb_state mrb)
static

Definition at line 276 of file aptex-mruby.c.

Referenced by mrb_mruby_aptex_gem_final().

◆ mrb_mruby_kpathsea_gem_init()

static void mrb_mruby_kpathsea_gem_init ( mrb_state mrb)
static

Definition at line 177 of file aptex-mruby.c.

References kpse_afm_format, kpse_any_glyph_format, kpse_base_format, kpse_bib_format, kpse_bltxml_format, kpse_bst_format, kpse_cid_format, kpse_clua_format, kpse_cmap_format, kpse_cnf_format, kpse_cweb_format, kpse_db_format, kpse_dvips_config_format, kpse_enc_format, kpse_fea_format, kpse_fmt_format, kpse_fontmap_format, kpse_gf_format, kpse_ist_format, kpse_last_format, kpse_lig_format, kpse_lua_format, kpse_mem_format, kpse_mf_format, kpse_mfpool_format, kpse_mft_format, kpse_miscfonts_format, kpse_mlbib_format, kpse_mlbst_format, kpse_mp_format, kpse_mppool_format, kpse_mpsupport_format, kpse_ocp_format, kpse_ofm_format, kpse_opentype_format, kpse_opl_format, kpse_otp_format, kpse_ovf_format, kpse_ovp_format, kpse_pdftex_config_format, kpse_pict_format, kpse_pk_format, kpse_program_binary_format, kpse_program_text_format, kpse_ris_format, kpse_sfd_format, kpse_src_client_cnf, kpse_src_cmdline, kpse_src_compile, kpse_src_env, kpse_src_implicit, kpse_src_texmf_cnf, kpse_src_x, kpse_tex_format, kpse_tex_ps_header_format, kpse_texdoc_format, kpse_texmfscripts_format, kpse_texpool_format, kpse_texsource_format, kpse_tfm_format, kpse_troff_font_format, kpse_truetype_format, kpse_type1_format, kpse_type42_format, kpse_vf_format, kpse_web2c_format, kpse_web_format, MRB_ARGS_REQ, mrb_define_class_method, mrb_define_const, mrb_define_module, mrb_fixnum_value(), mrb_kpse_brace_expand(), mrb_kpse_find_file(), mrb_kpse_in_name_ok(), mrb_kpse_init_format(), mrb_kpse_init_prog(), mrb_kpse_make_tex(), mrb_kpse_maketex_option(), mrb_kpse_out_name_ok(), mrb_kpse_path_expand(), mrb_kpse_readable_file(), mrb_kpse_reset_program_name(), mrb_kpse_set_program_enabled(), mrb_kpse_set_program_name(), mrb_kpse_var_expand(), mrb_kpse_var_value(), mrb_kpse_xputenv(), and mrb_kpse_xputenv_int().

Referenced by mrb_mruby_aptex_gem_init().

◆ mrb_mruby_ptexenc_gem_final()

static void mrb_mruby_ptexenc_gem_final ( mrb_state mrb)
static

Definition at line 388 of file aptex-mruby.c.

Referenced by mrb_mruby_aptex_gem_final().

◆ mrb_mruby_ptexenc_gem_init()

◆ mrb_ptexenc_enable_UPTEX()

static mrb_value mrb_ptexenc_enable_UPTEX ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 280 of file aptex-mruby.c.

References enable, mrb_get_args(), and mrb_nil_value().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_fromDVI()

static mrb_value mrb_ptexenc_fromDVI ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 307 of file aptex-mruby.c.

References fromDVI(), mrb_fixnum_value(), and mrb_get_args().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_fromEUC()

static mrb_value mrb_ptexenc_fromEUC ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 328 of file aptex-mruby.c.

References euc, fromEUC(), mrb_fixnum_value(), and mrb_get_args().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_fromJIS()

static mrb_value mrb_ptexenc_fromJIS ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 321 of file aptex-mruby.c.

References fromJIS(), mrb_fixnum_value(), and mrb_get_args().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_fromKUTEN()

static mrb_value mrb_ptexenc_fromKUTEN ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 342 of file aptex-mruby.c.

References fromKUTEN(), mrb_fixnum_value(), and mrb_get_args().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_fromSJIS()

static mrb_value mrb_ptexenc_fromSJIS ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 335 of file aptex-mruby.c.

References fromSJIS(), mrb_fixnum_value(), and mrb_get_args().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_fromUCS()

static mrb_value mrb_ptexenc_fromUCS ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 349 of file aptex-mruby.c.

References fromUCS(), mrb_fixnum_value(), mrb_get_args(), and ucs.

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_get_enc_string()

static mrb_value mrb_ptexenc_get_enc_string ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 287 of file aptex-mruby.c.

References get_enc_string(), and mrb_str_new_cstr().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_set_enc_string()

static mrb_value mrb_ptexenc_set_enc_string ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 292 of file aptex-mruby.c.

References file, mrb_bool_value(), mrb_get_args(), and set_enc_string().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_toDVI()

static mrb_value mrb_ptexenc_toDVI ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 300 of file aptex-mruby.c.

References mrb_fixnum_value(), mrb_get_args(), and toDVI().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_toJIS()

static mrb_value mrb_ptexenc_toJIS ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 314 of file aptex-mruby.c.

References mrb_fixnum_value(), mrb_get_args(), and toJIS().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_toUCS()

static mrb_value mrb_ptexenc_toUCS ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 356 of file aptex-mruby.c.

References mrb_fixnum_value(), mrb_get_args(), and toUCS().

Referenced by mrb_mruby_ptexenc_gem_init().

◆ mrb_ptexenc_UCStoUTF8()

static mrb_value mrb_ptexenc_UCStoUTF8 ( mrb_state mrb,
mrb_value  self 
)
static

Definition at line 363 of file aptex-mruby.c.

References mrb_fixnum_value(), mrb_get_args(), ucs, and UCStoUTF8().

Referenced by mrb_mruby_ptexenc_gem_init().