summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-11 14:25:38 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-11 14:25:38 +0000
commit20ededd9662cec66c58f8c904a1a7ee6cb82018c (patch)
tree20793fddece7e36d6f990af61da2b422394a4a8c
parent2796f33b0935839a0bb3be5d5e2f7d10079af6d5 (diff)
downloadttf2f-20ededd9662cec66c58f8c904a1a7ee6cb82018c.tar.gz
ttf2f-20ededd9662cec66c58f8c904a1a7ee6cb82018c.tar.bz2
Use Unix paths everywhere. Unixlib will fix this for us
svn path=/trunk/tools/ttf2f/; revision=7470
-rw-r--r--src/encoding.c2
-rw-r--r--src/intmetrics.c2
-rw-r--r--src/outlines.c2
-rw-r--r--src/utils.h6
4 files changed, 3 insertions, 9 deletions
diff --git a/src/encoding.c b/src/encoding.c
index 18220c8..762e4c0 100644
--- a/src/encoding.c
+++ b/src/encoding.c
@@ -27,7 +27,7 @@ ttf2f_result encoding_write(const char *savein, const char *name,
size_t i;
char out[1024];
- snprintf(out, 1024, "%s" DIR_SEP "Encoding", savein);
+ snprintf(out, 1024, "%s/Encoding", savein);
if ((output = fopen(out, "w+")) == NULL)
return TTF2F_RESULT_OPEN;
diff --git a/src/intmetrics.c b/src/intmetrics.c
index f79727d..87ee0bc 100644
--- a/src/intmetrics.c
+++ b/src/intmetrics.c
@@ -129,7 +129,7 @@ ttf2f_result intmetrics_write(const char *savein, const char *name,
/* No character map */
mapsize = 0;
- snprintf(out, 1024, "%s" DIR_SEP "IntMetrics", savein);
+ snprintf(out, 1024, "%s/IntMetrics", savein);
if ((output = fopen(out, "wb")) == NULL) {
free(xwidthtab);
return TTF2F_RESULT_OPEN;
diff --git a/src/outlines.c b/src/outlines.c
index dab386d..205810b 100644
--- a/src/outlines.c
+++ b/src/outlines.c
@@ -65,7 +65,7 @@ ttf2f_result outlines_write(const char *savein, const char *name,
header.chunk_data.reserved[3] = 0;
header.chunk_data.reserved[4] = 0;
- snprintf(out, 1024, "%s" DIR_SEP "Outlines", savein);
+ snprintf(out, 1024, "%s/Outlines", savein);
if ((output = fopen(out, "wb") ) == NULL)
return TTF2F_RESULT_OPEN;
diff --git a/src/utils.h b/src/utils.h
index cd499a1..ec1b4db 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -5,12 +5,6 @@
#define UNUSED(x) ((x)=(x))
#endif
-#ifdef __riscos__
-#define DIR_SEP "."
-#else
-#define DIR_SEP "/"
-#endif
-
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif