luohaha / CSpider

A scalable and convenient crawler framework in C:).
https://github.com/luohaha/CSpider
MIT License
367 stars 98 forks source link

Change the way of text manipulating #26

Closed mzer0-yu closed 8 years ago

mzer0-yu commented 8 years ago

Implemented something like std::string, e.g.

unsigned int strID_user_agent = alloc_string(void); cs_page* ptr_to_user_agent = get_page_ptr(strID_user_agent); \set_string(ptr_to_useragent, "user agent"); /* "user agent" / \set_string(ptr_to_useragent, " firefox"); / "user agent firefox" */ free_string(strID_user_agent);

luohaha commented 8 years ago

You can test all modify to make sure this program can run normally.

luohaha commented 8 years ago

Sorry, I am busy recently. I create a new branch dev, you can PR all modify into dev. When dev can work normally, I will merge it into master.

luohaha commented 8 years ago

不好意思,我必须保证master分支能够正常工作。然后,最近没有时间把你新提交的代码整合进去。所以,你可以把新的修改都提交到dev。如果你可以让dev正常跑起来,那就太感谢啦。最后等我有空再把dev 并入 master。你往dev提交的修改我都会merge的。

luohaha commented 8 years ago

如果你觉得其他部分写得不好的,都欢迎更改,只要保证对外的api不变就行。

mzer0-yu commented 8 years ago

By all means.

Anyway, I don't have an available test machine now, maybe @AntonioCS could have it tested.

Would you do this favor or not @AntonioCS. AMA in that conversation.

mzer0-yu commented 8 years ago

Replaced by this PR https://github.com/luohaha/CSpider/pull/27

luohaha commented 8 years ago

Thanks! I will test branch dev when i have free time.

AntonioCS commented 8 years ago

@mzer0-yu Sure