gawk

Sed-like interface to the Gopher protocol
git clone git://jacobedwards.org/gawk
Log | Files | Refs | LICENSE

config.def.h (794B)


      1 /* gawk configuration */
      2 
      3 /* how long to wait for response in ms */
      4 int const timeout = 5000;
      5 
      6 /* character used to negate commands */
      7 static char const negate = '!';
      8 
      9 /* default address if arguments are ommited */
     10 static char *default_address[] = {
     11 	/* path, host, port */
     12 	"/", "localhost", "70"
     13 };
     14 
     15 /* statement, command, and argument separators */
     16 static char const *const separators[] = {
     17 	";\n", "|", " \t,"
     18 };
     19 
     20 static const struct bind itembinds[] = {
     21 	/* name, function */
     22 	{ 'P', cprintv },
     23 	{ 'e', cextern },
     24 	{ 'f', cfetch  },
     25 	{ 'g', cgoto   },
     26 	{ 'i', findex  },
     27 	{ 'p', cprint  },
     28 	{ 'r', frange  },
     29 	{ 's', fstring },
     30 	{ 't', ftype   }
     31 };
     32 
     33 static const struct bind binds[] = {
     34 	/* name, function */
     35         { 'G', sgoto   },
     36         { 'q', sexit   },
     37         { 'u', sunwind }
     38 };