diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-08-30 16:00:08 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-08-30 16:00:08 +0200 |
commit | 91954185700b14a602c03ad0d2a04f232ab38b49 (patch) | |
tree | fb01e74c09fe96471e536021745ec83f7e4b47ae | |
parent | 0d2e5bd097fcc44f99e0677415cd76924b949f39 (diff) |
nxt_unit_app_test.c: Move file to src/, and add missing definitions
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | src/nxt_unit_app_test.c (renamed from nxt_unit_app_test.c) | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nxt_unit_app_test.c b/src/nxt_unit_app_test.c index 8fda974..f8affb9 100644 --- a/nxt_unit_app_test.c +++ b/src/nxt_unit_app_test.c @@ -5,12 +5,18 @@ #include <nxt_unit.h> #include <nxt_unit_request.h> -#include <nxt_clang.h> +//#include <nxt_clang.h> #include <pthread.h> #include <string.h> #include <stdlib.h> +#define nxt_expect(c, x) __builtin_expect((long) (x), (x)) +#define nxt_fast_path(x) nxt_expect(1, x) +#define nxt_slow_path(x) nxt_expect(0, x) +#define nxt_length(s) (sizeof(s) - 1) + + #define CONTENT_TYPE "Content-Type" #define TEXT_PLAIN "text/plain" #define HELLO_WORLD "Hello world!\n" |