Print this page
3764 Semantic of nawk's print statement changed

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libxcurses2/src/libc/xcurses/mknames.awk
          +++ new/usr/src/lib/libxcurses2/src/libc/xcurses/mknames.awk
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  # Copyright (c) 1995-1998 by Sun Microsystems, Inc.
  23   23  # All rights reserved.
  24   24  #
  25      -# ident "%Z%%M% %I%     %E% SMI"
  26      -#
  27   25  # mknames.awk   
  28   26  #
  29   27  # XCurses Library
  30   28  #
  31   29  # Copyright 1990, 1995 by Mortice Kern Systems Inc.  All rights reserved.
  32   30  #
  33   31  #  rcsid = $Header: /team/ps/sun_xcurses/archive/local_changes/xcurses/src/lib/libxcurses/src/libc/xcurses/rcs/mknames.awk 1.3 1998/05/29 15:58:51 cbates Exp $
  34   32  #
  35   33  
  36   34  function header(file, array) {
  37   35  print "/*" > file
  38   36  print " * Copyright (c) 1998 by Sun Microsystems, Inc." > file
  39   37  print " * All rights reserved." > file
  40   38  print " */" > file
  41      -print > file
       39 +print "" > file
  42   40  print "#pragma ident    \"@(#)" file "\t%I%\t%E% SMI\"" > file
  43      -print > file
       41 +print "" > file
  44   42  print "/*" > file
  45   43  printf " * %s\n", file > file
  46   44  print " *" > file
  47   45  print " * XCurses Library" > file
  48   46  print " *" > file
  49   47  print " * **** THIS FILE IS MACHINE GENERATED." > file
  50   48  print " * **** DO NOT EDIT THIS FILE." > file
  51   49  print " *" > file
  52   50  print " * Copyright 1990, 1995 by Mortice Kern Systems Inc.  All rights reserved." > file
  53   51  print " *" > file
  54   52  print " */" > file
  55      -print > file
       53 +print "" > file
  56   54  printf "const char *%s[] = {\n", array > file
  57   55  }
  58   56  
  59   57  function tail(file) {
  60   58          printf("\t0\n};\n") >file;
  61   59          close(file);
  62   60  }
  63   61  
  64   62  BEGIN {
  65   63          header("boolname.c", "boolnames");
↓ open down ↓ 46 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX