Ticket #6746: bash-builtins.patch
File bash-builtins.patch, 1.9 KB (added by , 14 years ago) |
---|
-
src/bin/bash/builtins/mkbuiltins.c
19 19 along with Bash. If not, see <http://www.gnu.org/licenses/>. 20 20 */ 21 21 22 #if !defined (CROSS_COMPILING) 22 #if !defined (CROSS_COMPILING) 23 23 # include <config.h> 24 24 #else /* CROSS_COMPILING */ 25 25 /* A conservative set of defines based on POSIX/SUS3/XPG6 */ … … 221 221 222 222 if (strcmp (arg, "-externfile") == 0) 223 223 extern_filename = argv[arg_index++]; 224 else if (strcmp (arg, "-tempstructfile") == 0) 225 temp_struct_filename = argv[arg_index++]; 224 226 else if (strcmp (arg, "-structfile") == 0) 225 227 struct_filename = argv[arg_index++]; 226 228 else if (strcmp (arg, "-noproduction") == 0) … … 287 289 /* Open the files. */ 288 290 if (struct_filename) 289 291 { 290 temp_struct_filename = xmalloc (15); 291 sprintf (temp_struct_filename, "mk-%ld", (long) getpid ()); 292 if (!temp_struct_filename) 293 { 294 temp_struct_filename = xmalloc (15); 295 sprintf (temp_struct_filename, "mk-%ld", (long) getpid ()); 296 } 292 297 structfile = fopen (temp_struct_filename, "w"); 293 298 294 299 if (!structfile) … … 1448 1453 { 1449 1454 if (filename_p == 0) 1450 1455 { 1451 if (line[0]) 1456 if (line[0]) 1452 1457 fprintf (stream, " N_(\""); 1453 1458 else 1454 1459 fprintf (stream, " N_(\" "); /* the empty string translates specially. */ -
src/bin/bash/builtins/Jamfile
47 47 48 48 actions MkBuiltinsExt1 49 49 { 50 $(2[1]) -externfile $(1[1]) - structfile $(1[2]) -noproduction $(2[2-]) ;50 $(2[1]) -externfile $(1[1]) -tempstructfile $(1[2]).temp -structfile $(1[2]) -noproduction $(2[2-]) ; 51 51 } 52 52 53 53 local bashDefFiles =