Hi Yong,
gatchat/gatchat.c | 236
++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 224 insertions(+), 12 deletions(-)
<snip>
+ /* Read expect message length
+ * If length is -1, use original solution
+ */
+ if(notify->expect_msglen_func){
+ int len = notify->expect_msglen_func(line);
+ chat->syntax->expect_msg_len = len;
+ }else{
+ chat->syntax->expect_msg_len = -1;
+ }
+
the golden rule is to follow the coding style of the project. So no
matter what, get the coding style fixed first. We are pretty picky in
enforcing the same coding style through the whole project. Every now and
then we might overlook something, but I think that rate is less than 1%
actually.
Enforcing the coding style is a necessity to keep the project
maintainable and ensure its stability.
Regards
Marcel