136ac495dSmrg /* Interface for the NXConstantString class for Objective-C. 2*8feb0f0bSmrg Copyright (C) 1995-2020 Free Software Foundation, Inc. 336ac495dSmrg Contributed by Pieter J. Schoenmakers <tiggr@es.ele.tue.nl> 436ac495dSmrg 536ac495dSmrg This file is part of GCC. 636ac495dSmrg 736ac495dSmrg GCC is free software; you can redistribute it and/or modify it 836ac495dSmrg under the terms of the GNU General Public License as published by the 936ac495dSmrg Free Software Foundation; either version 3, or (at your option) any 1036ac495dSmrg later version. 1136ac495dSmrg 1236ac495dSmrg GCC is distributed in the hope that it will be useful, but WITHOUT 1336ac495dSmrg ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1436ac495dSmrg FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 1536ac495dSmrg License for more details. 1636ac495dSmrg 1736ac495dSmrg Under Section 7 of GPL version 3, you are granted additional 1836ac495dSmrg permissions described in the GCC Runtime Library Exception, version 1936ac495dSmrg 3.1, as published by the Free Software Foundation. 2036ac495dSmrg 2136ac495dSmrg You should have received a copy of the GNU General Public License and 2236ac495dSmrg a copy of the GCC Runtime Library Exception along with this program; 2336ac495dSmrg see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 2436ac495dSmrg <http://www.gnu.org/licenses/>. */ 2536ac495dSmrg 2636ac495dSmrg 2736ac495dSmrg #ifndef __nxconstantstring_INCLUDE_GNU 2836ac495dSmrg #define __nxconstantstring_INCLUDE_GNU 2936ac495dSmrg 3036ac495dSmrg #include "Object.h" 3136ac495dSmrg 3236ac495dSmrg #ifdef __cplusplus 3336ac495dSmrg extern "C" { 3436ac495dSmrg #endif 3536ac495dSmrg 3636ac495dSmrg @interface NXConstantString: Object 3736ac495dSmrg { 3836ac495dSmrg char *c_string; 3936ac495dSmrg unsigned int len; 4036ac495dSmrg } 4136ac495dSmrg 4236ac495dSmrg -(const char *) cString; 4336ac495dSmrg -(unsigned int) length; 4436ac495dSmrg 4536ac495dSmrg @end 4636ac495dSmrg 4736ac495dSmrg #ifdef __cplusplus 4836ac495dSmrg } 4936ac495dSmrg #endif 5036ac495dSmrg 5136ac495dSmrg #endif 52