Annotation of gcc/objc/NXConstStr.m, revision 1.1.1.1

1.1       root        1: /* Implementation of the NXConstantString class for Objective-C.
                      2:    Copyright (C) 1995 Free Software Foundation, Inc.
                      3:    Contributed by Pieter J. Schoenmakers <[email protected]>
                      4: 
                      5: This file is part of GNU CC.
                      6: 
                      7: GNU CC is free software; you can redistribute it and/or modify it
                      8: under the terms of the GNU General Public License as published by the
                      9: Free Software Foundation; either version 2, or (at your option) any
                     10: later version.
                     11: 
                     12: GNU CC is distributed in the hope that it will be useful, but WITHOUT
                     13: ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
                     14: or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
                     15: License for more details.
                     16: 
                     17: You should have received a copy of the GNU General Public License
                     18: along with GNU CC; see the file COPYING.  If not, write to
                     19: the Free Software Foundation, 59 Temple Place - Suite 330,
                     20: Boston, MA 02111-1307, USA.  */
                     21:  
                     22: #include "objc/NXConstStr.h"
                     23: 
                     24: @implementation NXConstantString
                     25: 
                     26: -(const char *) cString
                     27: {
                     28:   return (c_string);
                     29: } /* -cString */
                     30: 
                     31: -(unsigned int) length
                     32: {
                     33:   return (len);
                     34: } /* -length */
                     35: 
                     36: @end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.