File:  [CSRG BSD Unix] / 43BSDReno / pgrm / as.vax / x
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:57 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

*** /tmp/d10158	Mon Mar 12 09:39:01 1990
--- asmain.c	Sun Mar 11 09:29:55 1990
***************
*** 92,98 ****
   *	It is opened by stdio, but is filled with the parallel
   *	block I/O library
   */
! char	*outfile = "a.out";
  FILE	*a_out_file;			
  off_t	a_out_off;			/* cumulative offsets for segments */
  /*
--- 92,98 ----
   *	It is opened by stdio, but is filled with the parallel
   *	block I/O library
   */
! char	*outfile;
  FILE	*a_out_file;			
  off_t	a_out_off;			/* cumulative offsets for segments */
  /*
***************
*** 223,228 ****
--- 223,229 ----
  #ifdef DEBUG
  	debug = 0;
  #endif
+ 	outfile = (char *)genbuildname("a.out");
  	innames = (char **)ClearCalloc(argc+1, sizeof (innames[0]));
  	dotsname = "<argv error>";
  	while (argc > 1) {
***************
*** 261,267 ****
  						yyerror("-o what???");
  						exit(1);
  					}
! 					outfile = argv[2];
  				   bumpone:
  					argc -= 2;
  					argv += 2;
--- 262,268 ----
  						yyerror("-o what???");
  						exit(1);
  					}
! 					outfile = (char *)genbuildname(argv[2]);
  				   bumpone:
  					argc -= 2;
  					argv += 2;

unix.superglobalmegacorp.com

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