#include <libguile.h>
#include "config.hh"
+
+#if KPATHSEA
+
#include "guile-compatibility.hh"
#include <dlfcn.h>
#define pclose ANOTHERREALLYUGLYKLUDGE
#define getopt YAKLUDGE
-#if HAVE_KPATHSEA_KPATHSEA_H
#include <kpathsea/kpathsea.h>
#include <kpathsea/tex-file.h>
-#endif
-#if KPATHSEA
-#if HAVE_KPATHSEA_KPATHSEA_H
static void *kpathsea_handle = 0;
static char *(*dl_kpse_find_file) (char const*, kpse_file_format_type, boolean) = 0;
static void (*dl_kpse_maketex_option) (char const*, boolean) = 0;
}
return kpse_last_format;
}
-#endif
// "Return the absolute file name of @var{name}, "
// "or @code{#f} if not found.")
static char const* LIBKPATHSEA = "libkpathsea.so";
int
-open_library ()
+open_dynamic_library ()
{
-#if KPATHSEA && HAVE_KPATHSEA_KPATHSEA_H
+#if HAVE_DYNAMIC_LIBKPATHSEA
struct
{
void **func_pointer;
void
initialize_kpathsea ()
{
- if (open_library ())
+ if (open_dynamic_library ())
{
fprintf (stderr, "Error opening kpathsea library. Aborting");
exit (1);
#include "afm.hh"
#include "tfm.hh"
#include "scm-hash.hh"
-#include "kpath.hh"
#include "pango-font.hh"
static char const *default_font_str0_ = "cmr10";
virtual void do_quit ();
virtual void construct_children ();
virtual void process (Moment);
- Array<Pitch> pending_pitch (Moment)const;
+ Array<Pitch> pending_pitch (Moment) const;
private:
SCM split_list_;
Direction where_dir_;
Offset
-Bezier::curve_point (Real t)const
+Bezier::curve_point (Real t) const
{
Real tj = 1;
Real one_min_tj = (1-t)* (1-t)* (1-t);
Polynomial
-Bezier::polynomial (Axis a)const
+Bezier::polynomial (Axis a) const
{
Polynomial p (0.0);
for (int j = 0; j <= 3; j++)
find t such that derivative is proportional to DERIV
*/
Array<Real>
-Bezier::solve_derivative (Offset deriv)const
+Bezier::solve_derivative (Offset deriv) const
{
Polynomial xp = polynomial (X_AXIS);
Polynomial yp = polynomial (Y_AXIS);
Compute the bounding box dimensions in direction of A.
*/
Interval
-Bezier::extent (Axis a)const
+Bezier::extent (Axis a) const
{
int o = (a+1)%NO_AXES;
Offset d;
}
Interval
-Box::operator[] (Axis a)const
+Box::operator[] (Axis a) const
{
return interval_a_[a];
}
return 0;
}
void
-Folded_repeat_iterator::derived_mark ()const
+Folded_repeat_iterator::derived_mark () const
{
if (main_iter_)
scm_gc_mark (main_iter_->self_scm ());
}
bool
-Grob::has_offset_callback (SCM cb, Axis a)const
+Grob::has_offset_callback (SCM cb, Axis a) const
{
return scm_c_memq (cb, dim_cache_[a].offset_callbacks_) != SCM_BOOL_F;
}
}
void
-Grob::warning (String s)const
+Grob::warning (String s) const
{
SCM cause = self_scm ();
while (Grob *g = unsmob_grob (cause))
{
}
-
-
bool
Grob::internal_has_interface (SCM k)
{
+++ /dev/null
-/*
- kpath-private.hh -- declare
-
- source file of the GNU LilyPond music typesetter
-
- (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
-
-*/
-
-#ifndef KPATH_PRIVATE_HH
-#define KPATH_PRIVATE_HH
-
-#include "config.hh"
-
-#define popen KPATHSEA_HAS_POPEN_PROTOTYPE_PROBLEM
-#define pclose KPATHSEA_HAS_PCLOSE_PROTOTYPE_PROBLEM
-#define getopt KPATHSEA_HAS_GETOPT_PROTOTYPE_PROBLEM
-
-#if HAVE_KPATHSEA_KPATHSEA_H
-extern "C" {
- #include <kpathsea/kpathsea.h>
- #include <kpathsea/tex-file.h>
- extern void *kpathsea_handle;
- extern char *(*dl_kpse_find_file) (char const*, kpse_file_format_type,
- boolean);
- extern char const *(*dl_kpse_init_format) (kpse_file_format_type);
- extern void (*dl_kpse_maketex_option) (char const*, boolean);
- extern void (*dl_kpse_set_program_name) (char const*);
- extern char *(*dl_kpse_var_expand) (char const*);
- extern kpse_format_info_type (*dl_kpse_format_info)[kpse_last_format];
-}
-#endif
-
-kpse_file_format_type kpathsea_find_format (String name);
-
-#endif /* KPATH_PRIVATE_HH */
-
-
-
}
SCM
-Item::do_derived_mark ()const
+Item::do_derived_mark () const
{
if (broken_to_drul_[LEFT])
scm_gc_mark (broken_to_drul_[LEFT]->self_scm ());
#if KPATHSEA
if (is_TeX_format_global)
{
- /*
- TODO: load this dynamically
- */
initialize_kpathsea ();
}
#endif
# 2. are not included with teTeX
#
-foe:
- echo $(MFINPUTS)
- echo $(TEXMF)
- kpsewhich exbase.mf
-
$(outdir)/%.cff.ps $(outdir)/%.cff $(outdir)/%.otf $(outdir)/%.svg: $(outdir)/%.pe
(cd $(outdir) && fontforge -script $(notdir $<))
$(PYTHON) $(buildscript-dir)/ps-embed-cff.py $(basename $<).cff `cat $(basename $<).fontname` $(basename $<).cff.ps