Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix markup errors an appfunc.in. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | branch-3.33 |
Files: | files | file ages | folders |
SHA3-256: |
2cda5fcaf9ff3f47d05e8e345943c73a |
User & Date: | drh 2020-09-20 12:35:50.309 |
Context
2020-09-27
| ||
11:54 | Fix typo in famous.html (check-in: 9013ecdf63 user: drh tags: branch-3.33) | |
2020-09-20
| ||
12:35 | Fix markup errors an appfunc.in. (check-in: 2cda5fcaf9 user: drh tags: branch-3.33) | |
11:42 | Documentation typo (check-in: f581b7f6be user: drh tags: branch-3.33) | |
Changes
Changes to pages/appfunc.in.
︙ | ︙ | |||
260 261 262 263 264 265 266 | typedef struct CountCtx CountCtx; struct CountCtx { i64 n; }; static void countStep(sqlite3_context *context, int argc, sqlite3_value **argv){ CountCtx *p; p = sqlite3_aggregate_context(context, sizeof(*p)); | | | 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | typedef struct CountCtx CountCtx; struct CountCtx { i64 n; }; static void countStep(sqlite3_context *context, int argc, sqlite3_value **argv){ CountCtx *p; p = sqlite3_aggregate_context(context, sizeof(*p)); if( (argc==0 || SQLITE_NULL!=sqlite3_value_type(argv[0])) && p ){ p->n++; } } static void countFinalize(sqlite3_context *context){ CountCtx *p; p = sqlite3_aggregate_context(context, 0); sqlite3_result_int64(context, p ? p->n : 0); |
︙ | ︙ | |||
332 333 334 335 336 337 338 | <codeblock> static void systemFunc( sqlite3_context *context, int argc, sqlite3_value **argv ){ | | | 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 | <codeblock> static void systemFunc( sqlite3_context *context, int argc, sqlite3_value **argv ){ const char *zCmd = (const char*)sqlite3_value_text(argv[0]); if( zCmd!=0 ){ int rc = system(zCmd); sqlite3_result_int(context, rc); } } </codeblock> |
︙ | ︙ |