diff --git a/pyc_string.cpp b/pyc_string.cpp index c6b776c..1258b83 100644 --- a/pyc_string.cpp +++ b/pyc_string.cpp @@ -107,6 +107,8 @@ void OutputString(PycRef str, char prefix, bool triple, FILE* F) fprintf(F, "\\'"); else if (useQuotes && *ch == '"') fprintf(F, "\\\""); + else if (*ch == '\\') + fprintf(F, "\\\\"); else fputc(*ch, F); } diff --git a/pyc_string.h b/pyc_string.h index 84b587f..d42bd37 100644 --- a/pyc_string.h +++ b/pyc_string.h @@ -2,6 +2,7 @@ #define _PYC_STRING_H #include "pyc_object.h" +#include "data.h" #include class PycString : public PycObject { @@ -25,6 +26,6 @@ private: }; void OutputString(PycRef str, char prefix = 0, - bool triple = false, FILE* F = stdout); + bool triple = false, FILE* F = pyc_output); #endif diff --git a/pycdc.cpp b/pycdc.cpp index 10437d9..db0a402 100644 --- a/pycdc.cpp +++ b/pycdc.cpp @@ -1,6 +1,5 @@ #include #include "ASTree.h" -#include "data.h" #ifdef WIN32 # define PATHSEP '\\'