~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-1.0/state.c

  • Committer: Brian Aker
  • Date: 2011-11-07 15:04:16 UTC
  • mto: This revision was merged to the branch mainline in revision 2453.
  • Revision ID: brian@tangent.org-20111107150416-awbp1nq3cekdcjma
Complete update of libdrizzle

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 * @brief State machine definitions
40
40
 */
41
41
 
42
 
#include "common.h"
 
42
#include <libdrizzle-1.0/common.h>
43
43
 
44
44
drizzle_return_t drizzle_state_loop(drizzle_con_st *con)
45
45
{
46
 
  drizzle_return_t ret;
47
 
 
48
 
  while (!drizzle_state_none(con))
 
46
  while (drizzle_state_none(con) == false)
49
47
  {
50
 
    ret= con->state_stack[con->state_current - 1](con);
 
48
    drizzle_return_t ret= con->state_stack[con->state_current - 1](con);
51
49
    if (ret != DRIZZLE_RETURN_OK)
52
50
    {
53
51
      if (ret != DRIZZLE_RETURN_IO_WAIT && ret != DRIZZLE_RETURN_PAUSE &&