[njs] Public header cleanup.
Dmitry Volyntsev
xeioex at nginx.com
Wed May 3 04:13:24 UTC 2023
details: https://hg.nginx.org/njs/rev/1776189b0de6
branches:
changeset: 2097:1776189b0de6
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Tue May 02 20:33:30 2023 -0700
description:
Public header cleanup.
diffstat:
src/njs.h | 4 +---
src/njs_sprintf.h | 6 +++---
2 files changed, 4 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 5d814dca2327 -r 1776189b0de6 src/njs.h
--- a/src/njs.h Mon May 01 20:45:32 2023 -0700
+++ b/src/njs.h Tue May 02 20:33:30 2023 -0700
@@ -15,7 +15,7 @@
#define NJS_VERSION_NUMBER 0x000800
-#include <unistd.h> /* STDOUT_FILENO, STDERR_FILENO */
+#include <string.h>
#include <njs_types.h>
#include <njs_clang.h>
#include <njs_str.h>
@@ -23,7 +23,6 @@
#include <njs_utf8.h>
#include <njs_mp.h>
#include <njs_chb.h>
-#include <njs_lvlhsh.h>
#include <njs_sprintf.h>
@@ -396,7 +395,6 @@ NJS_EXPORT njs_int_t njs_vm_value(njs_vm
njs_value_t *retval);
NJS_EXPORT njs_function_t *njs_vm_function(njs_vm_t *vm, const njs_str_t *name);
-NJS_EXPORT njs_value_t *njs_vm_retval(njs_vm_t *vm);
NJS_EXPORT void njs_vm_throw(njs_vm_t *vm, const njs_value_t *value);
NJS_EXPORT void njs_vm_error(njs_vm_t *vm, const char *fmt, ...);
NJS_EXPORT void njs_vm_exception_get(njs_vm_t *vm, njs_value_t *retval);
diff -r 5d814dca2327 -r 1776189b0de6 src/njs_sprintf.h
--- a/src/njs_sprintf.h Mon May 01 20:45:32 2023 -0700
+++ b/src/njs_sprintf.h Tue May 02 20:33:30 2023 -0700
@@ -16,12 +16,12 @@ NJS_EXPORT int njs_dprint(int fd, u_char
NJS_EXPORT int njs_dprintf(int fd, const char *fmt, ...);
#define njs_print(buf, size) \
- njs_dprint(STDOUT_FILENO, (u_char *) buf, size)
+ njs_dprint(1 /* STDOUT_FILENO */, (u_char *) buf, size)
#define njs_printf(fmt, ...) \
- njs_dprintf(STDOUT_FILENO, fmt, ##__VA_ARGS__)
+ njs_dprintf(1 /* STDOUT_FILENO */, fmt, ##__VA_ARGS__)
#define njs_stderror(fmt, ...) \
- njs_dprintf(STDERR_FILENO, fmt, ##__VA_ARGS__)
+ njs_dprintf(2 /* STDERR_FILENO */, fmt, ##__VA_ARGS__)
#endif /* _NJS_SPRINTF_H_INCLUDED_ */
More information about the nginx-devel
mailing list