Prepared for inclusion of new features
parent
0101fd77a1
commit
c0be73d8ad
1
config
1
config
|
@ -2,3 +2,4 @@
|
|||
ngx_addon_name=ngx_http_fancyindex_module
|
||||
HTTP_MODULES="$HTTP_MODULES ngx_http_fancyindex_module"
|
||||
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fancyindex_module.c"
|
||||
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/include+cache.c"
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
* include+cache.c
|
||||
* Copyright © 2007 Adrian Perez <adrianperez@udc.es>
|
||||
*
|
||||
* Distributed under terms of the MIT license.
|
||||
*/
|
||||
|
||||
#include "ngx_http_fancyindex_module.h"
|
||||
|
||||
|
|
@ -23,6 +23,8 @@
|
|||
#include <ngx_core.h>
|
||||
#include <ngx_http.h>
|
||||
#include "ngx_http_fancyindex_module.h"
|
||||
#include "template.h"
|
||||
|
||||
|
||||
#if 0
|
||||
|
||||
|
|
|
@ -11,8 +11,14 @@
|
|||
#define nfi_sizeof_ssz(_s) (sizeof(_s) - 1)
|
||||
|
||||
|
||||
#include "template.h"
|
||||
#define NFI_BUILTIN_HEAD_SIZE ( \
|
||||
nfi_sizeof_ssz(t01_head1) + \
|
||||
nfi_sizeof_ssz(t02_head2) + \
|
||||
nfi_sizeof_ssz(t03_body1) )
|
||||
|
||||
#define NFI_BUILTIN_FOOT_SIZE ( \
|
||||
nfi_sizeof_ssz(t08_body4) + \
|
||||
nfi_sizeof_ssz(t09_foot1) )
|
||||
|
||||
/**
|
||||
* Copy a static zero-terminated string. Useful to output template
|
||||
|
|
Loading…
Reference in New Issue