+ -
当前位置:首页 → 问答吧 → 看到一段奇怪代码,求解释

看到一段奇怪代码,求解释

时间:2010-07-30

来源:互联网

  1. STATIC int
  2. ct_t3_timeout(struct ct *ct)
  3. {
  4.         switch (ct_get_c_state(ct)) {
  5.         case CTS_OGC_WAIT_SAM:
  6.         case CTS_OGC_WAIT_ACM:
  7.                 /*
  8.                    returned to idle pool after delay */
  9.                 ct_set_c_state(ct, CTS_IDLE);
  10.               done:
  11.                 return (QR_DONE);
  12.         }
  13.         /*
  14.            stagnant timer */
  15.         rare();
  16.         goto done;
  17. }
复制代码
莫非有什么奇淫巧计?

作者: anyc   发布时间: 2010-07-30

不知道上下文,更不知道了

作者: hellioncu   发布时间: 2010-07-30

  1. STATIC int
  2. ct_t3_timeout(struct ct *ct)
  3. {
  4.      switch (ct_get_c_state(ct)) {
  5.         case CTS_OGC_WAIT_SAM:
  6.         case CTS_OGC_WAIT_ACM:
  7.               ct_set_c_state(ct, CTS_IDLE);
  8.               break ;               
  9.         default :rare();
  10.      }
  11.      return (QR_DONE);
  12. }
复制代码
这个应该是等价的吧

作者: pmerofc   发布时间: 2010-07-30

不是特别明白

作者: 雨过白鹭洲   发布时间: 2010-07-30

相关阅读 更多