text: #include "Debug.h"
  
  void Debug_buf(WindBuf* wb)
  {
          int count = 1;
          puts("......Buf..Data............");
          for(size_t i = 0; i < wb->len; i++)
          {
                  printf("Item @: %lu, place:%d\n", i, count++);
                  // This shoudl be moved to windval for centralized print.
                  switch(wb->data[i])
                  {
                  case WindType_None:
                          puts("None");
                          break;
                  case WindType_Assign:
                          puts("=");
                          break;
                  case WindType_Not:
                          puts("!");
                          break;
                  case WindType_Sep:
                          puts("|");
                          break;
                  case WindType_Number:
                          i++;
                          printf("%.3f\n", *(double*)(wb->data + i));
                          i += sizeof(double) - 1;
                          break;
                  case WindType_Bool:
                          i++;
                          printf("%s\n", (wb->data[i] ? "True" : "False"));
                          break;
                  default:
                          printf("Unknown: %u\n", wb->data[i]);
                  }
          }
  }
  
  
  void Debug_cmd(WindCommand cmd)
  {
          switch(cmd)
          {
          case WindCommand_null:
                  puts("Command: null");
                  break;
          case WindCommand_out:
                  puts("Command: out");
                  break;
          case WindCommand_push:
                  puts("Command: push");
                  break;
          case WindCommand_clr:
                  puts("Command: clr");
                  break;
          case WindCommand_map:
                  puts("Command: map");
                  break;
          }
  }
  
  void Debug_stream(WindStream* ws)
  {
          puts("_____Wind_Stream_Debug_____");
          Debug_cmd(ws->command);
          switch(ws->state)
          {
          case StreamState_command:
                  puts("State: command");
                  break;
          case StreamState_load:
                  puts("State: load");
                  break;
          case StreamState_exec:
                  puts("State: exec");
                  break;
          }
          puts("...........Errors..........");
          printf("Has Error: %s\n", ws->hasErr ? "true" : "false");
          puts("........ActiveBuf..........");
          printf("@ = %p\nlen = %lu\ncap = %lu\n", ws->activeBuf, ws->activeBuf->len, ws->activeBuf->cap);
          Debug_buf(ws->activeBuf);
          puts("........AltBuf..........");
          printf("@ = %p\nlen = %lu\ncap = %lu\n", ws->altBuf, ws->altBuf->len, ws->altBuf->cap);
          Debug_buf(ws->altBuf);
          puts("........LoadBuf..........");
          printf("@ = %p\nlen = %lu\ncap = %lu\n", ws->loadBuf, ws->loadBuf->len, ws->loadBuf->cap);
          Debug_buf(ws->loadBuf);
          puts("___________________________");
  }
  