Difference between revisions of "Peerd.c"
m |
m |
||
| Line 1: | Line 1: | ||
// This article and all its includes are licenced under LGPL | // This article and all its includes are licenced under LGPL | ||
// http://www.gnu.org/copyleft/lesser.html | // http://www.gnu.org/copyleft/lesser.html | ||
| + | |||
#include <stdlib.h> | #include <stdlib.h> | ||
#include <stdio.h> | #include <stdio.h> | ||
| Line 25: | Line 26: | ||
printf("\n\n"); | printf("\n\n"); | ||
| − | } | + | } |
Revision as of 11:21, 4 July 2006
// This article and all its includes are licenced under LGPL // http://www.gnu.org/copyleft/lesser.html
- include <stdlib.h>
- include <stdio.h>
- include <string.h>
int main() {
#include "file.c" // Logging and file read/write #include "listSpace.c" // ListSpace function declarations and initialisation #include "nodeSpace.c" // NodeSpace function declarations and initialisation #include "serialise.c" // Nodal-to-text and visa-versa #include "nodalHusk.c" // Actual nodal content and predeclared's #include "interface.c" // Layer model (currently bitmap/imagemap-based) #include "server.c" // Server must be last because it never returns
int test = deserialise( "testing deserialise:\n\r== can do headings for wiki ==\n*Foo\n*bar:hello # my special association\r\r\n*baz:world\n*key:1628\n*key2:[[8928|]]\n*key3:value"); printf("\n%d list-space items have been created.\n", items);
// Count how many nodes have payloads int i,j,p=0; for (i=0; i<MAXITEMS; i++) if (listGetValue(i)) p++; printf("%d items in use:\n", p); for (i=0; i<MAXITEMS; i++) if (j=listGetValue(i)) printf(" %d = %d\n",i,j); printf("\n\n");
}



