Prepared for inclusion of new features

pull/4/head
Adrian Perez 2007-08-30 18:38:39 +02:00
parent 0101fd77a1
commit c0be73d8ad
4 changed files with 20 additions and 1 deletions

1
config
View File

@ -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"

10
include+cache.c Normal file
View File

@ -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"

View File

@ -23,6 +23,8 @@
#include <ngx_core.h>
#include <ngx_http.h>
#include "ngx_http_fancyindex_module.h"
#include "template.h"
#if 0

View File

@ -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