Searched refs:newstr (Results 1 - 25 of 31) sorted by relevance

12

/haiku-buildtools/legacy/gcc/texinfo/lib/
H A Dstrdup.c38 char *newstr; local
40 newstr = (char *) malloc (strlen (str) + 1);
41 if (newstr)
42 strcpy (newstr, str);
43 return newstr;
/haiku-buildtools/legacy/gcc/texinfo/libtxi/
H A Dstrdup.c38 char *newstr; local
40 newstr = (char *) malloc (strlen (str) + 1);
41 if (newstr)
42 strcpy (newstr, str);
43 return newstr;
/haiku-buildtools/jam/
H A Dnewstr.h8 * newstr.h - string manipulation routines
13 const char *newstr( const char *string );
H A Dsearch.c19 # include "newstr.h"
49 return newstr( buf );
66 return newstr( buf );
86 return newstr( buf );
H A Dnewstr.c8 * newstr.c - string manipulation routines
11 * is done through newstr.
15 * newstr() - return a malloc'ed copy of a string
16 * copystr() - return a copy of a string previously returned by newstr()
17 * freestr() - free a string returned by newstr() or copystr()
20 * Once a string is passed to newstr(), the returned string is readonly.
23 * calls of newstr() on the same string allocate memory for the string once.
30 # include "newstr.h"
39 * newstr() - return a malloc'ed copy of a string
43 newstr( cons function
[all...]
H A Dtimestamp.c20 # include "newstr.h"
92 b->name = newstr( target ); /* never freed */
118 b->name = newstr( buf ); /* never freed */
143 b->name = newstr( buf ); /* never freed */
189 b->name = newstr( target ); /* never freed */
H A DBuild.com15 $ cxx /define=VMS newstr.c
29 make1.obj, newstr.obj, option.obj, parse.obj, pathvms.obj, regexp.obj, -
H A DMakefile66 newstr.c option.c parse.c pathunix.c pathvms.c regexp.c \
H A Drules.c41 # include "newstr.h"
69 r->name = newstr( rulename ); /* never freed */
107 t->name = newstr( targetname ); /* never freed */
268 v->symbol = newstr( symbol );
H A DJamfile160 newstr.c option.c parse.c regexp.c rules.c scan.c
231 make.c make.h make1.c mkjambase.c newstr.c newstr.h option.c
H A Dscan.c29 # include "newstr.h"
274 yylval.string = newstr( buf );
384 yylval.string = newstr( buf );
H A Dlists.c22 * 10/22/02 (seiwald) - list_new() now does its own newstr()/copystr()
28 # include "newstr.h"
75 /* Copy/newstr as needed */
77 string = copy ? copystr( string ) : newstr( string );
H A Dvariable.c29 * 10/22/02 (seiwald) - list_new() now does its own newstr()/copystr()
39 # include "newstr.h"
323 v->symbol = newstr( symbol ); /* never freed */
H A Dhcache.c11 # include "newstr.h"
116 * ASCII 0. The returned value is as returned by newstr(), so it need
153 return newstr(buf);
410 c->boundname = newstr (c->boundname);
/haiku-buildtools/legacy/gcc/libiberty/
H A Dconcat.c85 register char *newstr; local
112 newstr = (char *) xmalloc (length + 1);
117 if (newstr != NULLP)
125 end = newstr;
145 return (newstr);
/haiku-buildtools/legacy/binutils/libiberty/
H A Dconcat.c154 char *newstr; local
159 newstr = XNEWVEC (char, vconcat_length (first, args) + 1);
165 vconcat_copy (newstr, first, args);
168 return newstr;
191 char *newstr; local
197 newstr = XNEWVEC (char, vconcat_length (first, args) + 1);
204 vconcat_copy (newstr, first, args);
209 return newstr;
/haiku-buildtools/binutils/libiberty/
H A Dconcat.c142 char *newstr; local
147 newstr = XNEWVEC (char, vconcat_length (first, args) + 1);
152 vconcat_copy (newstr, first, args);
155 return newstr;
179 char *newstr; local
184 newstr = XNEWVEC (char, vconcat_length (first, args) + 1);
189 vconcat_copy (newstr, first, args);
194 return newstr;
/haiku-buildtools/gcc/libiberty/
H A Dconcat.c142 char *newstr; local
147 newstr = XNEWVEC (char, vconcat_length (first, args) + 1);
152 vconcat_copy (newstr, first, args);
155 return newstr;
179 char *newstr; local
184 newstr = XNEWVEC (char, vconcat_length (first, args) + 1);
189 vconcat_copy (newstr, first, args);
194 return newstr;
/haiku-buildtools/legacy/gcc/gcc/
H A Dprefix.c128 register char *newstr; local
152 newstr = (char *) malloc (length + 1);
162 end = newstr;
173 return (newstr);
H A Dc-aux-info.c61 register char *newstr;
85 newstr = (char *) malloc (length + 1);
95 end = newstr;
106 return (newstr);
60 register char *newstr; local
/haiku-buildtools/binutils/bfd/
H A Dvms-misc.c145 char *newstr = bfd_malloc ((bfd_size_type) size + 1);
147 if (newstr == NULL)
149 memcpy (newstr, (char *) str, (size_t) size);
150 newstr[size] = 0;
152 return newstr;
144 char *newstr = bfd_malloc ((bfd_size_type) size + 1); local
/haiku-buildtools/legacy/binutils/bfd/
H A Dvms-misc.c434 char *newstr = bfd_malloc ((bfd_size_type) size + 1);
436 if (newstr == NULL)
438 strncpy (newstr, (char *) str, (size_t) size);
439 newstr[size] = 0;
441 return newstr;
430 char *newstr = bfd_malloc ((bfd_size_type) size + 1); local
/haiku-buildtools/gcc/gcc/
H A Dopts-common.c715 char *newstr, *end; local
724 newstr = XOBNEWVEC (&opts_obstack, char, length + 1);
729 for (arg = first, end = newstr; arg; arg = va_arg (ap, const char *))
737 return newstr;
/haiku-buildtools/legacy/gcc/gcc/config/h8300/
H A Dh8300.c2996 char *newstr;
2998 newstr = obstack_alloc (saveable_obstack, len + 2);
3000 strcpy (newstr + 1, str);
3001 *newstr = '&';
3002 XSTR (XEXP (DECL_RTL (decl), 0), 0) = newstr;
2989 char *newstr; local
/haiku-buildtools/legacy/gcc/gcc/config/v850/
H A Dv850.c2149 char * newstr;
2189 newstr = obstack_alloc (saveable_obstack, len + 2);
2191 strcpy (newstr + 1, str);
2195 case DATA_AREA_ZDA: *newstr = ZDA_NAME_FLAG_CHAR; break;
2196 case DATA_AREA_TDA: *newstr = TDA_NAME_FLAG_CHAR; break;
2197 case DATA_AREA_SDA: *newstr = SDA_NAME_FLAG_CHAR; break;
2201 XSTR (XEXP (DECL_RTL (decl), 0), 0) = newstr;
2128 char * newstr; local

Completed in 121 milliseconds

12