Differences From Artifact [2dfa4d5d9d]:
- File src/mkbuiltin.c — part of check-in [41b9873b43] at 2020-08-16 14:08:27 on branch trunk — When compiling with FOSSIL_DEBUG (from the --fossil-debug configure option) do not attempt to "compress" built-in javascript by removing comments and surplus whitespace. This makes the javascript easier to read in a debugger. (user: drh size: 11213) [more...]
- File tools/mkbuiltin.c — part of check-in [a13ab011f4] at 2021-12-25 12:06:16 on branch code-movement — Part one of src/ file relocations discussed in /chat. This step moves the various code generators and translators from src/ to tools/. Edit: moving to branch for further changes, as this broke diff -tk. (user: stephan size: 11213)
To Artifact [09f563b183]:
- File tools/mkbuiltin.c — part of check-in [321f01a86e] at 2022-06-06 18:02:19 on branch pikchrshow-wasm — Replace /pikchrshow with a WASM-based version and rename the prior version to /pikchrshowcs (cs=client/server). There are still a couple layout/style quirks to resolve, and a feature or two to port from the legacy app, but it more or less works. (user: stephan size: 11388) [more...]
| ︙ | |||
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 | 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 | + + + + + |
/* Skip initial lines beginning with # */
nSkip = 0;
while( pData[nSkip]=='#' ){
while( pData[nSkip]!=0 && pData[nSkip]!='\n' ){ nSkip++; }
if( pData[nSkip]=='\n' ) nSkip++;
}
#if 1
/* 2022-06-06: temporarily disabled for the sake of the pikchr
** wasm build, as "something" in this compression is breaking the
** module loader. */
#ifndef FOSSIL_DEBUG
/* Compress javascript source files */
nName = (int)strlen(aRes[i].zName);
if( (nName>3 && strcmp(&aRes[i].zName[nName-3],".js")==0)
|| (nName>7 && strcmp(&aRes[i].zName[nName-7], "/js.txt")==0)
){
int x = sz-nSkip;
compressJavascript(pData+nSkip, &x);
sz = x + nSkip;
}
#endif
#endif
aRes[i].nByte = sz - nSkip;
aRes[i].idx = i;
printf("/* Content of file %s */\n", aRes[i].zName);
printf("static const unsigned char bidata%d[%d] = {\n ",
i, sz+1-nSkip);
|
| ︙ |