diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-16 15:13:07 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-16 15:13:07 +0000 |
commit | e967e0cc978d647040ac5616d389e9007d593464 (patch) | |
tree | 1f33ce27a77473b2e90b549d42399b73d4123497 /Build/source/texk/kpathsea/magstep.c | |
parent | 49f1fb6887627cdb7cf524aaef9b92108c894381 (diff) |
new reentrant kpathsea API (from Taco)
git-svn-id: svn://tug.org/texlive/trunk@12401 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/magstep.c')
-rw-r--r-- | Build/source/texk/kpathsea/magstep.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/magstep.c b/Build/source/texk/kpathsea/magstep.c index 37889271a44..4ce398b10e5 100644 --- a/Build/source/texk/kpathsea/magstep.c +++ b/Build/source/texk/kpathsea/magstep.c @@ -25,7 +25,7 @@ magstep.h) for resolution BDPI. From Tom Rokicki's dvips. */ static int -magstep P2C(int, n, int, bdpi) +magstep (int n, int bdpi) { double t; int step; @@ -76,12 +76,13 @@ magstep P2C(int, n, int, bdpi) #define MAGSTEP_MAX 40 unsigned -kpse_magstep_fix P3C(unsigned, dpi, unsigned, bdpi, int *, m_ret) +kpathsea_magstep_fix (kpathsea kpse, unsigned dpi, unsigned bdpi, int *m_ret) { int m; int mdpi = -1; unsigned real_dpi = 0; int sign = dpi < bdpi ? -1 : 1; /* negative or positive magsteps? */ + (void)kpse; /* currenty not used */ for (m = 0; !real_dpi && m < MAGSTEP_MAX; m++) /* don't go forever */ { @@ -100,3 +101,12 @@ kpse_magstep_fix P3C(unsigned, dpi, unsigned, bdpi, int *, m_ret) /* Always return the true dpi found. */ return real_dpi ? real_dpi : dpi; } + +#if defined (KPSE_COMPAT_API) +unsigned +kpse_magstep_fix (unsigned dpi, unsigned bdpi, int *m_ret) +{ + return kpathsea_magstep_fix(kpse_def, dpi, bdpi, m_ret); +} +#endif + |