mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
Move quirks inclusion to cmptest.h, emscsripten quirks to quirks.h
This commit is contained in:
parent
4724440492
commit
4921836512
@ -1,6 +1,4 @@
|
||||
|
||||
#include "quirks.h"
|
||||
|
||||
#define TEST_NAME "auth5"
|
||||
#include "cmptest.h"
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
|
||||
#include "quirks.h"
|
||||
|
||||
#define TEST_NAME "auth7"
|
||||
#include "cmptest.h"
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
|
||||
#include "quirks.h"
|
||||
|
||||
#define TEST_NAME "box8"
|
||||
#include "cmptest.h"
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "sodium.h"
|
||||
#include "quirks.h"
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
# undef TEST_SRCDIR
|
||||
@ -26,14 +27,6 @@
|
||||
# define rand(X) arc4random(X)
|
||||
#endif
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
# define strcmp(s1, s2) xstrcmp(s1, s2)
|
||||
int strcmp(const char *s1, const char *s2) {
|
||||
while (*s1 == *s2++) { if (*s1++ == 0) return 0; }
|
||||
return *(unsigned char *) s1 - *(unsigned char *) --s2;
|
||||
}
|
||||
#endif
|
||||
|
||||
FILE *fp_res;
|
||||
int xmain(void);
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
|
||||
#include "quirks.h"
|
||||
|
||||
#define TEST_NAME "onetimeauth7"
|
||||
#include "cmptest.h"
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
|
||||
#include "quirks.h"
|
||||
|
||||
#define TEST_NAME "secretbox8"
|
||||
#include "cmptest.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user