diff --git a/devc/x64/shuffle/shuffle.c b/devc/x64/shuffle/shuffle.c index 2369bc1..bfc31c5 100644 --- a/devc/x64/shuffle/shuffle.c +++ b/devc/x64/shuffle/shuffle.c @@ -144,11 +144,11 @@ int shuffle_by_chunks() { if (verbose > 0) fprintf(stderr, "array size: %lld\n", array_size); sprintf(filename, "%s_%04d.bin", file_head, fidcounter); fid = fopen(filename, "w"); - _setmode(_fileno(fid), _O_BINARY); if (fid == NULL) { fprintf(stderr, "Unable to open file %s.\n", filename); return 1; } + _setmode(_fileno(fid), _O_BINARY); if (verbose > 1) fprintf(stderr, "Shuffling by chunks: processed 0 lines."); while (1) { //Continue until EOF @@ -165,6 +165,7 @@ int shuffle_by_chunks() { fprintf(stderr, "Unable to open file %s.\n", filename); return 1; } + _setmode(_fileno(fid), _O_BINARY); i = 0; } fread(&array[i], sizeof(CREC), 1, fin); @@ -225,4 +226,3 @@ int main(int argc, char **argv) { if ((i = find_arg((char *)"-array-size", argc, argv)) > 0) array_size = atoll(argv[i + 1]); return shuffle_by_chunks(); } - diff --git a/devc/x86/shuffle/shuffle.c b/devc/x86/shuffle/shuffle.c index 2369bc1..0baa14d 100644 --- a/devc/x86/shuffle/shuffle.c +++ b/devc/x86/shuffle/shuffle.c @@ -144,11 +144,11 @@ int shuffle_by_chunks() { if (verbose > 0) fprintf(stderr, "array size: %lld\n", array_size); sprintf(filename, "%s_%04d.bin", file_head, fidcounter); fid = fopen(filename, "w"); - _setmode(_fileno(fid), _O_BINARY); if (fid == NULL) { fprintf(stderr, "Unable to open file %s.\n", filename); return 1; } + _setmode(_fileno(fid), _O_BINARY); if (verbose > 1) fprintf(stderr, "Shuffling by chunks: processed 0 lines."); while (1) { //Continue until EOF @@ -165,6 +165,7 @@ int shuffle_by_chunks() { fprintf(stderr, "Unable to open file %s.\n", filename); return 1; } + _setmode(_fileno(fid), _O_BINARY); i = 0; } fread(&array[i], sizeof(CREC), 1, fin); diff --git a/release/devc/glove-win_devc_x64.zip b/release/devc/glove-win_devc_x64.zip index cfe0bf1..b6907da 100644 Binary files a/release/devc/glove-win_devc_x64.zip and b/release/devc/glove-win_devc_x64.zip differ diff --git a/release/devc/glove-win_devc_x86.zip b/release/devc/glove-win_devc_x86.zip index 2fcc527..a325759 100644 Binary files a/release/devc/glove-win_devc_x86.zip and b/release/devc/glove-win_devc_x86.zip differ diff --git a/release/vs/glove-win_vs_x64.zip b/release/vs/glove-win_vs_x64.zip index 578d947..2dcdd93 100644 Binary files a/release/vs/glove-win_vs_x64.zip and b/release/vs/glove-win_vs_x64.zip differ diff --git a/release/vs/glove-win_vs_x86.zip b/release/vs/glove-win_vs_x86.zip index 1ade43e..9042689 100644 Binary files a/release/vs/glove-win_vs_x86.zip and b/release/vs/glove-win_vs_x86.zip differ diff --git a/vs/x64/shuffle/.vs/shuffle/v15/.suo b/vs/x64/shuffle/.vs/shuffle/v15/.suo index eec7c3d..2f14441 100644 Binary files a/vs/x64/shuffle/.vs/shuffle/v15/.suo and b/vs/x64/shuffle/.vs/shuffle/v15/.suo differ diff --git a/vs/x64/shuffle/.vs/shuffle/v15/Browse.VC.db b/vs/x64/shuffle/.vs/shuffle/v15/Browse.VC.db index cfa9788..6d01874 100644 Binary files a/vs/x64/shuffle/.vs/shuffle/v15/Browse.VC.db and b/vs/x64/shuffle/.vs/shuffle/v15/Browse.VC.db differ diff --git a/vs/x64/shuffle/shuffle/shuffle.c b/vs/x64/shuffle/shuffle/shuffle.c index 2369bc1..0baa14d 100644 --- a/vs/x64/shuffle/shuffle/shuffle.c +++ b/vs/x64/shuffle/shuffle/shuffle.c @@ -144,11 +144,11 @@ int shuffle_by_chunks() { if (verbose > 0) fprintf(stderr, "array size: %lld\n", array_size); sprintf(filename, "%s_%04d.bin", file_head, fidcounter); fid = fopen(filename, "w"); - _setmode(_fileno(fid), _O_BINARY); if (fid == NULL) { fprintf(stderr, "Unable to open file %s.\n", filename); return 1; } + _setmode(_fileno(fid), _O_BINARY); if (verbose > 1) fprintf(stderr, "Shuffling by chunks: processed 0 lines."); while (1) { //Continue until EOF @@ -165,6 +165,7 @@ int shuffle_by_chunks() { fprintf(stderr, "Unable to open file %s.\n", filename); return 1; } + _setmode(_fileno(fid), _O_BINARY); i = 0; } fread(&array[i], sizeof(CREC), 1, fin); diff --git a/vs/x64/shuffle/shuffle/x64/Release/shuffle.log b/vs/x64/shuffle/shuffle/x64/Release/shuffle.log index 350c526..5f28270 100644 --- a/vs/x64/shuffle/shuffle/x64/Release/shuffle.log +++ b/vs/x64/shuffle/shuffle/x64/Release/shuffle.log @@ -1,22 +1 @@ - shuffle.c -shuffle.c(95): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明 -shuffle.c(96): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(207): note: 参见“fopen”的声明 -shuffle.c(125): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明 -shuffle.c(145): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明 -shuffle.c(146): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(207): note: 参见“fopen”的声明 -shuffle.c(162): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明 -shuffle.c(163): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(207): note: 参见“fopen”的声明 -shuffle.c(221): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. -shuffle.c(222): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - 正在生成代码 - All 15 functions were compiled because no usable IPDB/IOBJ from previous compilation was found. - 已完成代码的生成 - shuffle.vcxproj -> E:\ano\Workspace\glove-win\vs\x64\shuffle\x64\Release\shuffle.exe - shuffle.vcxproj -> E:\ano\Workspace\glove-win\vs\x64\shuffle\x64\Release\shuffle.pdb (Full PDB) + \ No newline at end of file diff --git a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/CL.command.1.tlog b/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/CL.command.1.tlog deleted file mode 100644 index 1f4aa2f..0000000 Binary files a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/CL.command.1.tlog and /dev/null differ diff --git a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/CL.read.1.tlog b/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/CL.read.1.tlog deleted file mode 100644 index 5a3c8f1..0000000 Binary files a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/CL.read.1.tlog and /dev/null differ diff --git a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/CL.write.1.tlog b/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/CL.write.1.tlog deleted file mode 100644 index e351eb7..0000000 Binary files a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/CL.write.1.tlog and /dev/null differ diff --git a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/link.command.1.tlog b/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/link.command.1.tlog deleted file mode 100644 index d5f80c0..0000000 Binary files a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/link.command.1.tlog and /dev/null differ diff --git a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/link.read.1.tlog b/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/link.read.1.tlog deleted file mode 100644 index 82700ef..0000000 Binary files a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/link.read.1.tlog and /dev/null differ diff --git a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/link.write.1.tlog b/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/link.write.1.tlog deleted file mode 100644 index 3ffec42..0000000 Binary files a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/link.write.1.tlog and /dev/null differ diff --git a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/shuffle.lastbuildstate b/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/shuffle.lastbuildstate deleted file mode 100644 index 98dca62..0000000 --- a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/shuffle.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.15063.0 -Release|x64|E:\ano\Workspace\glove-win\vs\x64\shuffle\| diff --git a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/shuffle.write.1u.tlog b/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/shuffle.write.1u.tlog deleted file mode 100644 index 23fe06e..0000000 Binary files a/vs/x64/shuffle/shuffle/x64/Release/shuffle.tlog/shuffle.write.1u.tlog and /dev/null differ diff --git a/vs/x64/shuffle/shuffle/x64/Release/vc141.pdb b/vs/x64/shuffle/shuffle/x64/Release/vc141.pdb deleted file mode 100644 index 166549e..0000000 Binary files a/vs/x64/shuffle/shuffle/x64/Release/vc141.pdb and /dev/null differ diff --git a/vs/x64/shuffle/x64/Release/shuffle.iobj b/vs/x64/shuffle/x64/Release/shuffle.iobj deleted file mode 100644 index 016a699..0000000 Binary files a/vs/x64/shuffle/x64/Release/shuffle.iobj and /dev/null differ diff --git a/vs/x64/shuffle/x64/Release/shuffle.ipdb b/vs/x64/shuffle/x64/Release/shuffle.ipdb deleted file mode 100644 index cae61ff..0000000 Binary files a/vs/x64/shuffle/x64/Release/shuffle.ipdb and /dev/null differ diff --git a/vs/x64/shuffle/x64/Release/shuffle.pdb b/vs/x64/shuffle/x64/Release/shuffle.pdb deleted file mode 100644 index 12b2ccd..0000000 Binary files a/vs/x64/shuffle/x64/Release/shuffle.pdb and /dev/null differ diff --git a/vs/x86/shuffle/.vs/shuffle/v15/.suo b/vs/x86/shuffle/.vs/shuffle/v15/.suo index c2c14d6..27dbb19 100644 Binary files a/vs/x86/shuffle/.vs/shuffle/v15/.suo and b/vs/x86/shuffle/.vs/shuffle/v15/.suo differ diff --git a/vs/x86/shuffle/.vs/shuffle/v15/Browse.VC.db b/vs/x86/shuffle/.vs/shuffle/v15/Browse.VC.db index 37e317c..ea16253 100644 Binary files a/vs/x86/shuffle/.vs/shuffle/v15/Browse.VC.db and b/vs/x86/shuffle/.vs/shuffle/v15/Browse.VC.db differ diff --git a/vs/x86/shuffle/Release/shuffle.iobj b/vs/x86/shuffle/Release/shuffle.iobj deleted file mode 100644 index 1c203f9..0000000 Binary files a/vs/x86/shuffle/Release/shuffle.iobj and /dev/null differ diff --git a/vs/x86/shuffle/Release/shuffle.ipdb b/vs/x86/shuffle/Release/shuffle.ipdb deleted file mode 100644 index 262f1aa..0000000 Binary files a/vs/x86/shuffle/Release/shuffle.ipdb and /dev/null differ diff --git a/vs/x86/shuffle/Release/shuffle.pdb b/vs/x86/shuffle/Release/shuffle.pdb deleted file mode 100644 index cc8f293..0000000 Binary files a/vs/x86/shuffle/Release/shuffle.pdb and /dev/null differ diff --git a/vs/x86/shuffle/shuffle/Release/shuffle.log b/vs/x86/shuffle/shuffle/Release/shuffle.log index 143f725..5f28270 100644 --- a/vs/x86/shuffle/shuffle/Release/shuffle.log +++ b/vs/x86/shuffle/shuffle/Release/shuffle.log @@ -1,26 +1 @@ - shuffle.c -shuffle.c(92): warning C4244: “函数”: 从“__int64”转换到“::size_t”,可能丢失数据 -shuffle.c(95): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明 -shuffle.c(96): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(207): note: 参见“fopen”的声明 -shuffle.c(125): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明 -shuffle.c(141): warning C4244: “函数”: 从“__int64”转换到“::size_t”,可能丢失数据 -shuffle.c(145): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明 -shuffle.c(146): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(207): note: 参见“fopen”的声明 -shuffle.c(162): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明 -shuffle.c(163): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h(207): note: 参见“fopen”的声明 -shuffle.c(221): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. -shuffle.c(222): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - 正在生成代码 - 15 of 15 functions (100.0%) were compiled, the rest were copied from previous compilation. - 0 functions were new in current compilation - 0 functions had inline decision re-evaluated but remain unchanged - 已完成代码的生成 - shuffle.vcxproj -> E:\ano\Workspace\glove-win\vs\x86\shuffle\Release\shuffle.exe - shuffle.vcxproj -> E:\ano\Workspace\glove-win\vs\x86\shuffle\Release\shuffle.pdb (Full PDB) + \ No newline at end of file diff --git a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/CL.command.1.tlog b/vs/x86/shuffle/shuffle/Release/shuffle.tlog/CL.command.1.tlog deleted file mode 100644 index 31d871e..0000000 Binary files a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/CL.command.1.tlog and /dev/null differ diff --git a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/CL.read.1.tlog b/vs/x86/shuffle/shuffle/Release/shuffle.tlog/CL.read.1.tlog deleted file mode 100644 index d6d8ee3..0000000 Binary files a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/CL.read.1.tlog and /dev/null differ diff --git a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/CL.write.1.tlog b/vs/x86/shuffle/shuffle/Release/shuffle.tlog/CL.write.1.tlog deleted file mode 100644 index 64f26d6..0000000 Binary files a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/CL.write.1.tlog and /dev/null differ diff --git a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/link.command.1.tlog b/vs/x86/shuffle/shuffle/Release/shuffle.tlog/link.command.1.tlog deleted file mode 100644 index a36b6e5..0000000 Binary files a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/link.command.1.tlog and /dev/null differ diff --git a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/link.read.1.tlog b/vs/x86/shuffle/shuffle/Release/shuffle.tlog/link.read.1.tlog deleted file mode 100644 index a3cc621..0000000 Binary files a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/link.read.1.tlog and /dev/null differ diff --git a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/link.write.1.tlog b/vs/x86/shuffle/shuffle/Release/shuffle.tlog/link.write.1.tlog deleted file mode 100644 index 11a0a5f..0000000 Binary files a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/link.write.1.tlog and /dev/null differ diff --git a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/shuffle.lastbuildstate b/vs/x86/shuffle/shuffle/Release/shuffle.tlog/shuffle.lastbuildstate deleted file mode 100644 index e432dbb..0000000 --- a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/shuffle.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.15063.0 -Release|Win32|E:\ano\Workspace\glove-win\vs\x86\shuffle\| diff --git a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/shuffle.write.1u.tlog b/vs/x86/shuffle/shuffle/Release/shuffle.tlog/shuffle.write.1u.tlog deleted file mode 100644 index 34229bc..0000000 Binary files a/vs/x86/shuffle/shuffle/Release/shuffle.tlog/shuffle.write.1u.tlog and /dev/null differ diff --git a/vs/x86/shuffle/shuffle/Release/vc141.pdb b/vs/x86/shuffle/shuffle/Release/vc141.pdb deleted file mode 100644 index 1b14267..0000000 Binary files a/vs/x86/shuffle/shuffle/Release/vc141.pdb and /dev/null differ diff --git a/vs/x86/shuffle/shuffle/shuffle.c b/vs/x86/shuffle/shuffle/shuffle.c index 2369bc1..0baa14d 100644 --- a/vs/x86/shuffle/shuffle/shuffle.c +++ b/vs/x86/shuffle/shuffle/shuffle.c @@ -144,11 +144,11 @@ int shuffle_by_chunks() { if (verbose > 0) fprintf(stderr, "array size: %lld\n", array_size); sprintf(filename, "%s_%04d.bin", file_head, fidcounter); fid = fopen(filename, "w"); - _setmode(_fileno(fid), _O_BINARY); if (fid == NULL) { fprintf(stderr, "Unable to open file %s.\n", filename); return 1; } + _setmode(_fileno(fid), _O_BINARY); if (verbose > 1) fprintf(stderr, "Shuffling by chunks: processed 0 lines."); while (1) { //Continue until EOF @@ -165,6 +165,7 @@ int shuffle_by_chunks() { fprintf(stderr, "Unable to open file %s.\n", filename); return 1; } + _setmode(_fileno(fid), _O_BINARY); i = 0; } fread(&array[i], sizeof(CREC), 1, fin);