~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/state.cc

  • Committer: Brian Aker
  • Date: 2011-11-04 21:06:16 UTC
  • mto: This revision was merged to the branch mainline in revision 2450.
  • Revision ID: brian@tangent.org-20111104210616-2at42agch94dkwb0
Additional fixes for 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-2.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
46
  while (!drizzle_state_none(con))
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 &&