diff options
author | kaiwu <kaiwu2004@gmail.com> | 2025-03-01 12:42:23 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2025-03-01 12:42:23 +0800 |
commit | 3f33461e4948bf05e60bdff35ec6c57a649c7860 (patch) | |
tree | 284c2ba95a41536ae1bff6bea710db0709a64739 /rds-csv-nginx-module-0.09/src/ngx_http_rds_csv_util.h | |
download | openresty-3f33461e4948bf05e60bdff35ec6c57a649c7860.tar.gz openresty-3f33461e4948bf05e60bdff35ec6c57a649c7860.zip |
openresty bundle
Diffstat (limited to 'rds-csv-nginx-module-0.09/src/ngx_http_rds_csv_util.h')
-rw-r--r-- | rds-csv-nginx-module-0.09/src/ngx_http_rds_csv_util.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/rds-csv-nginx-module-0.09/src/ngx_http_rds_csv_util.h b/rds-csv-nginx-module-0.09/src/ngx_http_rds_csv_util.h new file mode 100644 index 0000000..57fe892 --- /dev/null +++ b/rds-csv-nginx-module-0.09/src/ngx_http_rds_csv_util.h @@ -0,0 +1,34 @@ + +/* + * Copyright (C) Yichun Zhang (agentzh) + */ + + +#ifndef NGX_HTTP_RDS_CSV_UTIL_H +#define NGX_HTTP_RDS_CSV_UTIL_H + + +#include <ngx_core.h> +#include <ngx_http.h> + + +#ifndef NGX_UINT64_LEN +#define NGX_UINT64_LEN (sizeof("18446744073709551615") - 1) +#endif + +#ifndef NGX_UINT16_LEN +#define NGX_UINT16_LEN (sizeof("65535") - 1) +#endif + +#ifndef ngx_copy_literal +#define ngx_copy_literal(p, s) ngx_copy(p, s, sizeof(s) - 1) +#endif + + +uintptr_t ngx_http_rds_csv_escape_csv_str(u_char field_sep, u_char *dst, + u_char *src, size_t size, unsigned *need_quotes); +ngx_int_t ngx_http_rds_csv_test_content_type(ngx_http_request_t *r); +void ngx_http_rds_csv_discard_bufs(ngx_pool_t *pool, ngx_chain_t *in); + + +#endif /* NGX_HTTP_RDS_CSV_UTIL_H */ |