From 2c863c0d99aa3df9ef2eb4ceb112c4d946520f0a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 4 Apr 2011 12:24:56 -0700 Subject: Get rid of RETCODE --- src/tool/convert.c | 4 +--- src/tool/itemfrob.c | 2 +- src/tool/mapfrob.c | 2 +- src/tool/moneycount/mmo.h | 5 ----- src/tool/skillfrob.c | 2 +- 5 files changed, 4 insertions(+), 11 deletions(-) (limited to 'src/tool') diff --git a/src/tool/convert.c b/src/tool/convert.c index 8436ebb..e256fc9 100644 --- a/src/tool/convert.c +++ b/src/tool/convert.c @@ -1,8 +1,6 @@ #include #include -#define RETCODE "\r\n" - #define MAX_INVENTORY 100 #define MAX_CART 100 #define MAX_SKILL 350 @@ -284,7 +282,7 @@ int mmo_char_convert (char *fname1, char *fname2) if (ret) { mmo_char_tostr (line, &char_dat); - fprintf (ofp, "%s" RETCODE, line); + fprintf (ofp, "%s\n", line); } } fcloseall (); diff --git a/src/tool/itemfrob.c b/src/tool/itemfrob.c index 646ec73..4651452 100644 --- a/src/tool/itemfrob.c +++ b/src/tool/itemfrob.c @@ -35,7 +35,7 @@ int mmo_char_convert () { transform_char (&char_dat); mmo_char_tostr (line, &char_dat); - fprintf (ofp, "%s" RETCODE, line); + fprintf (ofp, "%s\n", line); } } return 0; diff --git a/src/tool/mapfrob.c b/src/tool/mapfrob.c index 11983eb..9dc1a5b 100644 --- a/src/tool/mapfrob.c +++ b/src/tool/mapfrob.c @@ -61,7 +61,7 @@ int mmo_char_convert () { transform_char (&char_dat); mmo_char_tostr (line, &char_dat); - fprintf (ofp, "%s" RETCODE, line); + fprintf (ofp, "%s\n", line); } } return 0; diff --git a/src/tool/moneycount/mmo.h b/src/tool/moneycount/mmo.h index c7ab21f..bd62b49 100644 --- a/src/tool/moneycount/mmo.h +++ b/src/tool/moneycount/mmo.h @@ -5,11 +5,6 @@ #define _MMO_H_ #include -#ifdef CYGWIN -#define RETCODE "\r\n" // (CR/LF?FWindows?n) -#else -#define RETCODE "\n" // (LF?FUnix?n?j -#endif #define FIFOSIZE_SERVERLINK 256*1024 diff --git a/src/tool/skillfrob.c b/src/tool/skillfrob.c index c7b6bb6..44855ac 100644 --- a/src/tool/skillfrob.c +++ b/src/tool/skillfrob.c @@ -39,7 +39,7 @@ int mmo_char_convert () { transform_char (&char_dat); mmo_char_tostr (line, &char_dat); - fprintf (ofp, "%s" RETCODE, line); + fprintf (ofp, "%s\n", line); } } fcloseall (); -- cgit v1.2.3-70-g09d2