From 20ededd9662cec66c58f8c904a1a7ee6cb82018c Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 11 May 2009 14:25:38 +0000 Subject: Use Unix paths everywhere. Unixlib will fix this for us svn path=/trunk/tools/ttf2f/; revision=7470 --- src/encoding.c | 2 +- src/intmetrics.c | 2 +- src/outlines.c | 2 +- src/utils.h | 6 ------ 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 -- cgit v1.2.3