NXConstStr.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Interface for the NXConstantString class for Objective-C.
  2. Copyright (C) 1995-2015 Free Software Foundation, Inc.
  3. Contributed by Pieter J. Schoenmakers <tiggr@es.ele.tue.nl>
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by the
  7. Free Software Foundation; either version 3, or (at your option) any
  8. later version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. License for more details.
  13. Under Section 7 of GPL version 3, you are granted additional
  14. permissions described in the GCC Runtime Library Exception, version
  15. 3.1, as published by the Free Software Foundation.
  16. You should have received a copy of the GNU General Public License and
  17. a copy of the GCC Runtime Library Exception along with this program;
  18. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  19. <http://www.gnu.org/licenses/>. */
  20. #ifndef __nxconstantstring_INCLUDE_GNU
  21. #define __nxconstantstring_INCLUDE_GNU
  22. #include "Object.h"
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. @interface NXConstantString: Object
  27. {
  28. char *c_string;
  29. unsigned int len;
  30. }
  31. -(const char *) cString;
  32. -(unsigned int) length;
  33. @end
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif