Skip to content

Commit eb5fe56

Browse files
committed
revert non-essential changes
1 parent b7f7d47 commit eb5fe56

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/tbprobe.c

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
SOFTWARE.
2323
*/
2424

25-
#ifdef TB_ASSERT
26-
#define assert(x) TB_ASSERT(x)
27-
#else
2825
#include <assert.h>
29-
#endif
30-
3126
#ifdef __cplusplus
3227
#include <atomic>
3328
#else
@@ -37,15 +32,11 @@ SOFTWARE.
3732
#include <stdio.h>
3833
#include <stdlib.h>
3934
#include <string.h>
40-
41-
#ifndef __cplusplus
4235
#ifdef TB_NO_STDBOOL
43-
typedef uint8 bool
36+
#typedef uint8 bool
4437
#else
4538
#include <stdbool.h>
4639
#endif
47-
#endif
48-
4940
#include "tbprobe.h"
5041

5142
#define TB_PIECES 7
@@ -704,8 +695,8 @@ static bool test_tb(const char *str, const char *suffix)
704695
size_t size = file_size(fd);
705696
close_tb(fd);
706697
if ((size & 63) != 16) {
707-
fprintf(stderr, "Incomplete tablebase file %s%s\n", str, suffix);
708-
printf("info string Incomplete tablebase file %s%s\n", str, suffix);
698+
fprintf(stderr, "Incomplete tablebase file %s.%s\n", str, suffix);
699+
printf("info string Incomplete tablebase file %s.%s\n", str, suffix);
709700
fd = FD_ERR;
710701
}
711702
}

0 commit comments

Comments
 (0)