~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-1.0/state.c

  • Committer: Mark Atwood
  • Date: 2011-11-07 22:27:02 UTC
  • mfrom: (2449.1.4 drizzle-build)
  • Revision ID: me@mark.atwood.name-20111107222702-crj09kujv9awkylo
mergeĀ lp:~brianaker/drizzle/libdrizzle-update

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 &&