gen_uri_delims.c revision b4c8a80f7dbfc9b56dbe03bdc28f0b5eb5f23697
#include <stdio.h>
/* generate a ap_table_t of 256 values, where certain characters are
* marked "interesting"... for the uri parsing process.
*/
{
int i;
char *value;
printf("/* this file is automatically generated by "
"gen_uri_delims, do not edit */\n");
printf("static const unsigned char uri_delims[256] = {");
for (i = 0; i < 256; ++i) {
if (i % 20 == 0)
printf("\n ");
switch (i) {
default: value = "0"; break;
}
}
printf("\n};\n");
return 0;
}