This directory contains a script('makefsdata') to create C code suitable for
httpd for given html pages(or other files) in a directory.
There is also a plain C console application doing the same and extended a bit.
Usage: htmlgen [targetdir][-s][-i]s
targetdir: relative or absolute path to files to convert
switch-s: toggle processing of subdirectories(default is on)switch-e: exclude HTTP header from file(header is created at runtime,default is on)switch-11: include HTTP 1.1header(1.0 is default)if targetdir not specified, makefsdata will attempt to
process files in subdirectory 'fs'.
The C version of this program can optionally store the none-SSI files in
a compressed form in which they are also sent to the web client(which
must support the Deflate content encoding). Files that grow during compression(due to being not compressible well), will stored umcompressed automatically.
In order to do so, compile the program with MAKEFS_SUPPORT_DEFLATE set to 1. You must
manually download minizip.c for this to work. As an alternative, you can additionally
define MAKEFS_SUPPORT_DEFLATE_ZLIB to use your system's zlib instead.
Compression of .html,.js,.css and .svg files usually yields very good compression
rates and is a great way of reducing your program's size.
makefsdata.c实现的扩展功能。
staticvoidprint_usage(void){printf(" Usage: htmlgen [targetdir] [-s] [-e] [-11] [-nossi] [-ssi:<filename>] [-c] [-f:<filename>] [-m] [-svr:<name>] [-x:<ext_list>] [-xc:<ext_list>" USAGE_ARG_DEFLATE NEWLINE NEWLINE);printf(" targetdir: relative or absolute path to files to convert" NEWLINE);printf(" switch -s: toggle processing of subdirectories (default is on)" NEWLINE);printf(" switch -e: exclude HTTP header from file (header is created at runtime, default is off)" NEWLINE);printf(" switch -11: include HTTP 1.1 header (1.0 is default)" NEWLINE);printf(" switch -nossi: no support for SSI (cannot calculate Content-Length for SSI)" NEWLINE);printf(" switch -ssi: ssi filename (ssi support controlled by file list, not by extension)" NEWLINE);printf(" switch -c: precalculate checksums for all pages (default is off)" NEWLINE);printf(" switch -f: target filename (default is \"fsdata.c\")" NEWLINE);printf(" switch -m: include \"Last-Modified\" header based on file time" NEWLINE);printf(" switch -svr: server identifier sent in HTTP response header ('Server' field)" NEWLINE);printf(" switch -x: comma separated list of extensions of files to exclude (e.g., -x:json,txt)" NEWLINE);printf(" switch -xc: comma separated list of extensions of files to not compress (e.g., -xc:mp3,jpg)" NEWLINE);#ifMAKEFS_SUPPORT_DEFLATEprintf(" switch -defl: deflate-compress all non-SSI files (with opt. compr.-level, default=10)" NEWLINE);printf(" ATTENTION: browser has to support \"Content-Encoding: deflate\"!" NEWLINE);#endifprintf(" if targetdir not specified, htmlgen will attempt to" NEWLINE);printf(" process files in subdirectory 'fs'" NEWLINE);}
【MySQL排错 】mysql: command not found 数据库安装后无法加载的解决办法
A Solution to Solve Error - mysql: command not found After The Installation of MySQL Community Server
By JacksonML
本文简要介绍如何在macOS安装完毕MySQL数据库服务器后,针对无…
1、顺序表的常用操作 1.1 顺序表的创建 如下代码所示:创建了一个默认空间为10的整型顺序表,如果空间不足则会以1.5倍扩容。
List<Integer> list new ArrayList<>(); 创建一个空间为15的整型顺序表
List<Integer> list2 new ArrayL…