Lines Matching refs:NEWLINE
81 #define NEWLINE "\r\n"
158 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);
159 printf(" targetdir: relative or absolute path to files to convert" NEWLINE);
160 printf(" switch -s: toggle processing of subdirectories (default is on)" NEWLINE);
161 printf(" switch -e: exclude HTTP header from file (header is created at runtime, default is off)" NEWLINE);
162 printf(" switch -11: include HTTP 1.1 header (1.0 is default)" NEWLINE);
163 printf(" switch -nossi: no support for SSI (cannot calculate Content-Length for SSI)" NEWLINE);
164 printf(" switch -ssi: ssi filename (ssi support controlled by file list, not by extension)" NEWLINE);
165 printf(" switch -c: precalculate checksums for all pages (default is off)" NEWLINE);
166 printf(" switch -f: target filename (default is \"fsdata.c\")" NEWLINE);
167 printf(" switch -m: include \"Last-Modified\" header based on file time" NEWLINE);
168 printf(" switch -svr: server identifier sent in HTTP response header ('Server' field)" NEWLINE);
169 printf(" switch -x: comma separated list of extensions of files to exclude (e.g., -x:json,txt)" NEWLINE);
170 printf(" switch -xc: comma separated list of extensions of files to not compress (e.g., -xc:mp3,jpg)" NEWLINE);
172 printf(" switch -defl: deflate-compress all non-SSI files (with opt. compr.-level, default=10)" NEWLINE);
173 printf(" ATTENTION: browser has to support \"Content-Encoding: deflate\"!" NEWLINE);
175 printf(" if targetdir not specified, htmlgen will attempt to" NEWLINE);
176 printf(" process files in subdirectory 'fs'" NEWLINE);
193 printf(NEWLINE " makefsdata - HTML to C source converter" NEWLINE);
194 printf(" by Jim Pettinato - circa 2003 " NEWLINE);
195 printf(" extended by Simon Goldschmidt - 2009 " NEWLINE NEWLINE);
241 printf("ERROR: deflate level must be [0..10]" NEWLINE);
247 printf("Deflating all non-SSI files with level %d (but only if size is reduced)" NEWLINE, deflate_level);
253 printf("Excluding files with extensions %s" NEWLINE, exclude_list);
256 printf("Skipping compresion for files with extensions %s" NEWLINE, ncompress_list);
271 printf("Invalid path: \"%s\"." NEWLINE, path);
279 printf(" Failed to open directory \"%s\"." NEWLINE NEWLINE, path);
285 printf("HTTP %sheader will %s statically included." NEWLINE,
292 printf(" and subdirectories..." NEWLINE NEWLINE);
294 printf("..." NEWLINE NEWLINE);
311 fprintf(data_file, "#include \"lwip/apps/fs.h\"" NEWLINE);
312 fprintf(data_file, "#include \"lwip/def.h\"" NEWLINE NEWLINE NEWLINE);
314 fprintf(data_file, "#define file_NULL (struct fsdata_file *) NULL" NEWLINE NEWLINE NEWLINE);
316 fprintf(data_file, "#ifndef FS_FILE_FLAGS_HEADER_INCLUDED" NEWLINE "#define FS_FILE_FLAGS_HEADER_INCLUDED 1" NEWLINE "#endif" NEWLINE);
318 fprintf(data_file, "#ifndef FS_FILE_FLAGS_HEADER_PERSISTENT" NEWLINE "#define FS_FILE_FLAGS_HEADER_PERSISTENT 0" NEWLINE "#endif" NEWLINE);
322 fprintf(data_file, "/* FSDATA_FILE_ALIGNMENT: 0=off, 1=by variable, 2=by include */" NEWLINE "#ifndef FSDATA_FILE_ALIGNMENT" NEWLINE "#define FSDATA_FILE_ALIGNMENT 0" NEWLINE "#endif" NEWLINE);
324 fprintf(data_file, "#ifndef FSDATA_ALIGN_PRE" NEWLINE "#define FSDATA_ALIGN_PRE" NEWLINE "#endif" NEWLINE);
325 fprintf(data_file, "#ifndef FSDATA_ALIGN_POST" NEWLINE "#define FSDATA_ALIGN_POST" NEWLINE "#endif" NEWLINE);
327 fprintf(data_file, "#if FSDATA_FILE_ALIGNMENT==2" NEWLINE "#include \"fsdata_alignment.h\"" NEWLINE "#endif" NEWLINE);
336 fprintf(data_file, NEWLINE NEWLINE);
337 fprintf(struct_file, "#define FS_ROOT file_%s" NEWLINE, lastFileVar);
338 fprintf(struct_file, "#define FS_NUMFILES %d" NEWLINE NEWLINE, filesProcessed);
345 printf(NEWLINE "Creating target file..." NEWLINE NEWLINE);
356 printf(NEWLINE "Processed %d files - done." NEWLINE, filesProcessed);
359 printf("(Deflated total byte reduction: %d bytes -> %d bytes (%.02f%%)" NEWLINE,
363 printf(NEWLINE);
476 printf("processing subdirectory %s/..." NEWLINE, curSubdir);
512 printf("skipping %s/%s by exclude list (-x option)..." NEWLINE, curSubdir, curName);
516 printf("processing %s/%s..." NEWLINE, curSubdir, curName);
519 printf(NEWLINE "Error... aborting" NEWLINE);
610 printf(" - deflate: %d bytes -> %d bytes (%.02f%%)" NEWLINE, (int)fsize, (int)out_bytes, (float)((out_bytes * 100.0) / fsize));
614 printf(" - uncompressed: (would be %d bytes larger using deflate)" NEWLINE, (int)(out_bytes - fsize));
617 printf(" - uncompressed: (file is larger than deflate bufer)" NEWLINE);
620 printf(" - cannot be compressed" NEWLINE);
641 memcpy(&file_buffer_c[off], NEWLINE, NEWLINE_LEN);
666 fprintf(struct_file, "#if HTTPD_PRECALCULATED_CHECKSUM" NEWLINE);
667 fprintf(struct_file, "const struct fsdata_chksum chksums_%s[] = {" NEWLINE, varname);
671 fprintf(struct_file, "{%d, 0x%04x, %d}," NEWLINE, 0, hdr_chksum, hdr_len);
684 fprintf(struct_file, "{%d, 0x%04x, %"SZT_F"}," NEWLINE, offset, chksum, len);
687 fprintf(struct_file, "};" NEWLINE);
688 fprintf(struct_file, "#endif /* HTTPD_PRECALCULATED_CHECKSUM */" NEWLINE);
931 fprintf(data_file, "#if FSDATA_FILE_ALIGNMENT==1" NEWLINE);
932 fprintf(data_file, "static const " PAYLOAD_ALIGN_TYPE " dummy_align_%s = %d;" NEWLINE, varname, payload_alingment_dummy_counter++);
933 fprintf(data_file, "#endif" NEWLINE);
935 fprintf(data_file, "static const unsigned char FSDATA_ALIGN_PRE data_%s[] FSDATA_ALIGN_POST = {" NEWLINE, varname);
937 fprintf(data_file, "/* %s (%"SZT_F" chars) */" NEWLINE, qualifiedName, strlen(qualifiedName) + 1);
946 fprintf(data_file, NEWLINE);
970 fprintf(struct_file, "const struct fsdata_file file_%s[] = { {" NEWLINE, varname);
971 fprintf(struct_file, "file_%s," NEWLINE, lastFileVar);
972 fprintf(struct_file, "data_%s," NEWLINE, varname);
973 fprintf(struct_file, "data_%s + %d," NEWLINE, varname, i);
974 fprintf(struct_file, "sizeof(data_%s) - %d," NEWLINE, varname, i);
1005 fputs("," NEWLINE, struct_file);
1007 fprintf(struct_file, "#if HTTPD_PRECALCULATED_CHECKSUM" NEWLINE);
1008 fprintf(struct_file, "%d, chksums_%s," NEWLINE, chksum_count, varname);
1009 fprintf(struct_file, "#endif /* HTTPD_PRECALCULATED_CHECKSUM */" NEWLINE);
1011 fprintf(struct_file, "}};" NEWLINE NEWLINE);
1016 fprintf(data_file, NEWLINE "/* raw file data (%d bytes) */" NEWLINE, file_size);
1018 fprintf(data_file, "};" NEWLINE NEWLINE);
1044 fprintf(data_file, NEWLINE "/* HTTP header */");
1063 fprintf(data_file, NEWLINE "/* \"%s\" (%"SZT_F" bytes) */" NEWLINE, cur_string, cur_len);
1073 fprintf(data_file, NEWLINE "/* \"%s\" (%"SZT_F" bytes) */" NEWLINE, cur_string, cur_len);
1114 fprintf(data_file, NEWLINE "/* \"%s%d\r\n\" (%"SZT_F"+ bytes) */" NEWLINE, cur_string, content_len, cur_len + 2);
1150 fprintf(data_file, NEWLINE "/* \"%s\"\r\n\" (%"SZT_F"+ bytes) */" NEWLINE, cur_string, cur_len + 2);
1178 fprintf(data_file, NEWLINE "/* \"%s\" (%"SZT_F" bytes) */" NEWLINE, cur_string, cur_len);
1193 fprintf(data_file, NEWLINE "/* \"%s\" (%d bytes) */" NEWLINE, cur_string, cur_len);
1204 fprintf(data_file, NEWLINE "/* \"%s\" (%"SZT_F" bytes) */" NEWLINE, cur_string, cur_len);
1231 fprintf(file, NEWLINE);
1246 sprintf(&buf[idx], NEWLINE);