aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/NXConstStr.m
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>1995-04-26 23:08:15 +0000
committerRichard Kenner <kenner@vlsi1.ultra.nyu.edu>1995-04-26 23:08:15 +0000
commitea301fc86b8a057e030e093f018f6dcfabb37b59 (patch)
treead8a14afee3d04e085f45cb0f677b2397263805f /gcc/objc/NXConstStr.m
parentf78e4ecf6607650669776c381abc46df6ed83c11 (diff)
Initial revision
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@9495 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc/NXConstStr.m')
-rw-r--r--gcc/objc/NXConstStr.m35
1 files changed, 35 insertions, 0 deletions
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 <tiggr@es.ele.tue.nl>
+
+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