mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
remove dependency on ARRAYSIZE for issue #1616
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
95963f71f4
commit
2b2f193f2b
11 changed files with 137 additions and 49 deletions
|
@ -27,7 +27,7 @@ void mk_bits(ast_manager & m, char const * prefix, unsigned sz, expr_ref_vector
|
|||
for (unsigned i = 0; i < sz; ++i) {
|
||||
char buffer[128];
|
||||
#ifdef _WINDOWS
|
||||
sprintf_s(buffer, ARRAYSIZE(buffer), "%s%d.smt", prefix, i);
|
||||
sprintf_s(buffer, Z3_ARRAYSIZE(buffer), "%s%d.smt", prefix, i);
|
||||
#else
|
||||
sprintf(buffer, "%s%d.smt", prefix, i);
|
||||
#endif
|
||||
|
|
|
@ -21,6 +21,7 @@ Revision History:
|
|||
#include <string>
|
||||
#include <windows.h>
|
||||
#include <strsafe.h>
|
||||
#include "util/util.h"
|
||||
#include "test/for_each_file.h"
|
||||
|
||||
bool for_each_file(for_each_file_proc& proc, const char* base, const char* suffix)
|
||||
|
@ -36,7 +37,7 @@ bool for_each_file(for_each_file_proc& proc, const char* base, const char* suffi
|
|||
|
||||
while (h != INVALID_HANDLE_VALUE) {
|
||||
|
||||
StringCchPrintfA(buffer, ARRAYSIZE(buffer), "%s\\%s", base, data.cFileName);
|
||||
StringCchPrintfA(buffer, Z3_ARRAYSIZE(buffer), "%s\\%s", base, data.cFileName);
|
||||
|
||||
if (!proc(buffer)) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue