// This file is part of The New Aspell
// Copyright (C) 2001 by Kevin Atkinson under the GNU LGPL license
// version 2.0 or 2.1.  You should have received a copy of the LGPL
// license along with this library if you did not you can find
// it at http://www.gnu.org/.

#include "basic_list.hpp"

namespace acommon {

  class StringBuffer {
  public: // but dont use
#ifdef WIN32PORT
#else
    static const unsigned int   buf_size = 1024 - 16;
#endif
    struct Buf {
#ifdef WIN32PORT
      char buf[1024 - 16]; // FB
#else
      char buf[buf_size];
#endif
    };
#ifdef WIN32PORT
    unsigned int get_buf_size(){ return 1024 - 16; } //FB
#endif
  private:
    static const Buf sbuf;
    BasicList<Buf> bufs;
    unsigned int fill;
  public:
    StringBuffer();
    char * alloc(unsigned int size);
  };

}
