// file      : xsde/cxx/parser/sys-error.cxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2007 Code Synthesis Tools CC
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

#include <stddef.h> // size_t

#include <xsde/cxx/parser/sys-error.hxx>

namespace xsde
{
  namespace cxx
  {
    namespace parser
    {
      static const char* const text_[] =
      {
        "no error",
        "no memory",
        "file open failed",
        "file read failed"
      };

      const char* sys_error::
      text (value v)
      {
        return text_[v];
      }
    }
  }
}
