diff --git a/pdfio.sln b/pdfio.sln index 78fc260..c727b58 100644 --- a/pdfio.sln +++ b/pdfio.sln @@ -3,7 +3,12 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.30413.136 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pdfio", "pdfio.vcxproj", "{98F2DE9E-2978-4387-AF71-82532BEDB29E}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pdfio1", "pdfio.vcxproj", "{98F2DE9E-2978-4387-AF71-82532BEDB29E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testpdfio", "testpdfio.vcxproj", "{177723DA-0328-4B42-9521-3BD3DF52DD6A}" + ProjectSection(ProjectDependencies) = postProject + {98F2DE9E-2978-4387-AF71-82532BEDB29E} = {98F2DE9E-2978-4387-AF71-82532BEDB29E} + EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -21,6 +26,14 @@ Global {98F2DE9E-2978-4387-AF71-82532BEDB29E}.Release|x64.Build.0 = Release|x64 {98F2DE9E-2978-4387-AF71-82532BEDB29E}.Release|x86.ActiveCfg = Release|Win32 {98F2DE9E-2978-4387-AF71-82532BEDB29E}.Release|x86.Build.0 = Release|Win32 + {177723DA-0328-4B42-9521-3BD3DF52DD6A}.Debug|x64.ActiveCfg = Debug|x64 + {177723DA-0328-4B42-9521-3BD3DF52DD6A}.Debug|x64.Build.0 = Debug|x64 + {177723DA-0328-4B42-9521-3BD3DF52DD6A}.Debug|x86.ActiveCfg = Debug|Win32 + {177723DA-0328-4B42-9521-3BD3DF52DD6A}.Debug|x86.Build.0 = Debug|Win32 + {177723DA-0328-4B42-9521-3BD3DF52DD6A}.Release|x64.ActiveCfg = Release|x64 + {177723DA-0328-4B42-9521-3BD3DF52DD6A}.Release|x64.Build.0 = Release|x64 + {177723DA-0328-4B42-9521-3BD3DF52DD6A}.Release|x86.ActiveCfg = Release|Win32 + {177723DA-0328-4B42-9521-3BD3DF52DD6A}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/pdfio.vcxproj b/pdfio.vcxproj index 0cb5088..05a2b99 100644 --- a/pdfio.vcxproj +++ b/pdfio.vcxproj @@ -121,6 +121,7 @@ Console true + pdfio1.def @@ -137,6 +138,7 @@ true true true + pdfio1.def @@ -161,6 +163,7 @@ + diff --git a/pdfio.vcxproj.filters b/pdfio.vcxproj.filters index 71e3849..0e1a9d7 100644 --- a/pdfio.vcxproj.filters +++ b/pdfio.vcxproj.filters @@ -68,5 +68,8 @@ + + Source Files + \ No newline at end of file diff --git a/testpdfio.c b/testpdfio.c index 8f8b4e8..cb9a0c9 100644 --- a/testpdfio.c +++ b/testpdfio.c @@ -20,6 +20,9 @@ #include "pdfio-private.h" #include "pdfio-content.h" #include +#ifndef M_PI +# define M_PI 3.14159265358979323846264338327950288 +#endif // M_PI // @@ -249,7 +252,7 @@ do_unit_tests(void) // Test the value parsers for edge cases... fputs("_pdfioValueRead(complex_dict): ", stdout); s = complex_dict; - _pdfioTokenInit(&tb, pdf, (_pdfio_tconsume_cb_t)token_consume_cb, (_pdfio_tpeek_cb_t)token_peek_cb, &s); + _pdfioTokenInit(&tb, pdf, (_pdfio_tconsume_cb_t)token_consume_cb, (_pdfio_tpeek_cb_t)token_peek_cb, (void *)&s); if (_pdfioValueRead(pdf, &tb, &value)) { // TODO: Check value... diff --git a/testpdfio.vcxproj b/testpdfio.vcxproj new file mode 100644 index 0000000..a88eef2 --- /dev/null +++ b/testpdfio.vcxproj @@ -0,0 +1,164 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + + + + + {98f2de9e-2978-4387-af71-82532bedb29e} + + + + 16.0 + Win32Proj + {177723da-0328-4b42-9521-3bd3df52dd6a} + testpdfio + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + \ No newline at end of file diff --git a/testpdfio.vcxproj.filters b/testpdfio.vcxproj.filters new file mode 100644 index 0000000..79d90b7 --- /dev/null +++ b/testpdfio.vcxproj.filters @@ -0,0 +1,25 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + + + + \ No newline at end of file diff --git a/testpdfio.vcxproj.user b/testpdfio.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/testpdfio.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file