projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prepare for the release of rrdtool-1.2.6
[rrdtool.git]
/
src
/
rrd_afm.c
diff --git
a/src/rrd_afm.c
b/src/rrd_afm.c
index
0bb0ac4
..
0e3109c
100644
(file)
--- a/
src/rrd_afm.c
+++ b/
src/rrd_afm.c
@@
-1,5
+1,5
@@
/****************************************************************************
/****************************************************************************
- * RRDtool 1.2.
4
Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.
6
Copyright by Tobi Oetiker, 1997-2005
****************************************************************************
* rrd_afm.h Parsing afm tables to find width of strings.
****************************************************************************/
****************************************************************************
* rrd_afm.h Parsing afm tables to find width of strings.
****************************************************************************/
@@
-20,6
+20,8
@@
#include <string.h>
#endif
#include <string.h>
#endif
+#include "unused.h"
+
#if 0
# define DEBUG 1
# define DLOG(x) fprintf x
#if 0
# define DEBUG 1
# define DLOG(x) fprintf x
@@
-72,7
+74,7
@@
static const afm_fontinfo *afm_findfont(const char *name)
p = afm_searchfont(RRD_AFM_DEFAULT_FONT);
if (p)
return p;
p = afm_searchfont(RRD_AFM_DEFAULT_FONT);
if (p)
return p;
- return afm_fontinfolist; /
/ anything, just anything.
+ return afm_fontinfolist; /
* anything, just anything. */
}
const char *afm_get_font_postscript_name(const char* font)
}
const char *afm_get_font_postscript_name(const char* font)
@@
-185,8
+187,8
@@
static long afm_find_kern(const afm_fontinfo *fontinfo,
}
/* measure width of a text string */
}
/* measure width of a text string */
-double afm_get_text_width ( double
start
, const char* font, double size,
- double
tabwidth
, const char* text)
+double afm_get_text_width ( double
UNUSED(start)
, const char* font, double size,
+ double
UNUSED(tabwidth)
, const char* text)
{
const afm_fontinfo *fontinfo = afm_findfont(font);
long width = 0;
{
const afm_fontinfo *fontinfo = afm_findfont(font);
long width = 0;