From ea301fc86b8a057e030e093f018f6dcfabb37b59 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 26 Apr 1995 23:08:15 +0000 Subject: Initial revision git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@9495 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/objc/NXConstStr.m | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 gcc/objc/NXConstStr.m (limited to 'gcc/objc/NXConstStr.m') diff --git a/gcc/objc/NXConstStr.m b/gcc/objc/NXConstStr.m new file mode 100644 index 00000000000..0577bdf49c2 --- /dev/null +++ b/gcc/objc/NXConstStr.m @@ -0,0 +1,35 @@ +/* Implementation of the NXConstantString class for Objective-C. + Copyright (C) 1995 Free Software Foundation, Inc. + Contributed by Pieter J. Schoenmakers + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +GNU CC is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public +License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "objc/NXConstantString.h" + +@implementation NXConstantString + +-(const char *) cString +{ + return (c_string); +} /* -cString */ + +-(unsigned int) length +{ + return (len); +} /* -length */ + +@end -- cgit v1.2.3