From 26b4236a98500ca9dd61b7105f50200bc05ab705 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Sun, 30 Nov 2014 20:22:50 -0500 Subject: [PATCH] Removed the APIs section I don't like the formatting. --- index.html | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index 793de05..baca92a 100644 --- a/index.html +++ b/index.html @@ -5728,7 +5728,7 @@ pre .xml .cdata {
$:/core/ui/MoreSideBar/Shadows
-
+
TableOfContents
@@ -5737,7 +5737,7 @@ pre .xml .cdata {
lh3
-
+

 
@@ -5871,8 +5871,8 @@ Klib strives for efficiency and a small memory footprint. Some components, such * ksw.{h,c}: Striped Smith-Waterman algorithm. * knhx.{h,c}: Newick tree format parser.
-
-
code, pre, kbd, samp {
+
+
code, pre, kbd, samp, textarea {
   font-size: 12px;
   line-height: 18px;
   font-family: Monaco,Menlo,Consolas,"Courier New",monospace;
@@ -6187,24 +6187,13 @@ int main(int argc, char *argv[])
 }
 ```
-
+
!!Synopsis
 * Functionality: read a JSON-like string into a tree structure and query given a path
 * Library source code: [[kson.h|https://github.com/attractivechaos/klib/blob/master/kson.h]] and [[kson.c|https://github.com/attractivechaos/klib/blob/master/kson.c]].
 * Dependencies: none
 * Example program: `gcc -DKSON_MAIN -O2 -o kson-test kson.c`
 * Limitations: no streaming parsing
-!!APIs
-* """`kson_t *kson_parse(const char *json)`
-Parse a JSON string. Return NULL on errors."""
-* """`void kson_destroy(kson_t *kson)`
-Deallocate a `kson_t` object."""
-* """`const kson_node_t *kson_by_path(const kson_node_t *root, int path_len, ...)`
-Look for a node given a path of `path_len` in length, starting from node `root`. Return NULL on failure."""
-* """`const kson_node_t *kson_by_key(const kson_node_t *p, const char *key)`
-Retrieve `p`'s child named by `key`."""
-* """`const kson_node_t *kson_by_index(const kson_node_t *p, long i)`
-Retrieve `p`'s `i`-th child for `0<=i<p->n`."""
 !!Examples
 !!!Example 1: parse and query with `kson_by_path()`
 ```c
@@ -6306,8 +6295,9 @@ int main()
 }
 ```
-
+
!!Synopsis
+
 * Functionality: simple multi-threading models.
 ** kt_for(): parallelize a `for` loop, similar to [[clik_for|http://faculty.knox.edu/dbunde/teaching/cilk/#cilk_for]].
 ** kt_pipeline(): parallelize a repeated multi-step pipeline with each step possibly on different threads.
@@ -6315,10 +6305,9 @@ int main()
 * Dependencies: [[POSIX thread|http://en.wikipedia.org/wiki/Native_POSIX_Thread_Library]]
 * Example program: [[kthread_test.c|https://github.com/attractivechaos/klib/blob/master/test/kthread_test.c]]
 * Blog post: [[Parallelize simple for loops|https://attractivechaos.wordpress.com/2013/10/11/parallelizing-simple-for-loops/]]
-!!APIs
-* """`void kt_for(int t, void (*func)(void*,long,int), void *data, long n)`
-Run function `func(void *data, long i, int tid)` on `t` threads for total `n` times, where `0<=i<n` is the `i`-th call and `0<=tid<t` is the thread number."""
+
 !!Examples
+
 !!!Example 1: compute the [[Mandelbrot set|http://en.wikipedia.org/wiki/Mandelbrot_set]] with kt_for()
 ```c
 // to compile: gcc this_prog.c kthread.c -pthread
-- 
2.47.3