fixed subtle error
This commit is contained in:
parent
eb322b6091
commit
b9ddaa780b
|
@ -5,6 +5,6 @@ struct RouterOp
|
||||||
};
|
};
|
||||||
%%
|
%%
|
||||||
/files, 1
|
/files, 1
|
||||||
/date , 2
|
/date, 2
|
||||||
/static , 4
|
/static, 4
|
||||||
/upload , 5
|
/upload, 5
|
||||||
|
|
|
@ -17,8 +17,12 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
Foohash fh;
|
Foohash fh;
|
||||||
RouterOp *blub;
|
RouterOp *blub;
|
||||||
blub = fh.in_word_set("/static" , sizeof("/static"));
|
blub = fh.in_word_set("/static" , sizeof("/static")-1);
|
||||||
cout << "aaa" << blub->txt << endl;
|
if(blub)
|
||||||
|
cout << "found! : " << blub->txt << " ,op:" << blub->op << endl;
|
||||||
|
else
|
||||||
|
cout << "not found stuff!" << endl;
|
||||||
|
|
||||||
if(argc) argv++;
|
if(argc) argv++;
|
||||||
}
|
}
|
||||||
// http://www.ibm.com/developerworks/linux/library/l-gperf/index.html#toggle
|
// http://www.ibm.com/developerworks/linux/library/l-gperf/index.html#toggle
|
||||||
|
|
Loading…
Reference in New Issue