Print this page
make: translate using gettext, rather than the unmaintainable catgets

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/include/mksh/defs.h
          +++ new/usr/src/cmd/make/include/mksh/defs.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   * fields enclosed by brackets "[]" replaced with your own identifying
  19   19   * information: Portions Copyright [yyyy] [name of copyright owner]
  20   20   *
  21   21   * CDDL HEADER END
  22   22   */
  23   23  /*
  24   24   * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  25   25   * Use is subject to license terms.
  26   26   */
  27   27  
  28      -#include <avo/intl.h>
  29   28  #include <limits.h>             /* MB_LEN_MAX */
  30   29  #include <stdio.h>
  31   30  #include <stdlib.h>             /* wchar_t */
  32   31  #include <string.h>             /* strcmp() */
  33      -#include <nl_types.h>           /* catgets() */
  34   32  #include <sys/param.h>          /* MAXPATHLEN */
  35   33  #include <sys/types.h>          /* time_t, caddr_t */
  36   34  #include <vroot/vroot.h>        /* pathpt */
  37   35  #include <sys/time.h>           /* timestruc_t */
  38   36  #include <errno.h>              /* errno */
  39   37  
  40   38  #include <wctype.h>
  41   39  #include <widec.h>
  42   40  
  43   41  
↓ open down ↓ 847 lines elided ↑ open up ↑
 891  889  extern Name             target_mach;
 892  890  extern Boolean          tilde_rule;
 893  891  extern wchar_t          wcs_buffer[];
 894  892  extern Boolean          working_on_targets;
 895  893  extern Name             virtual_root;
 896  894  extern Boolean          vpath_defined;
 897  895  extern Name             vpath_name;
 898  896  extern Boolean          make_state_locked;
 899  897  extern Boolean          out_err_same;
 900  898  extern pid_t            childPid;
 901      -extern nl_catd          libmksh_catd;
 902  899  
 903  900  /*
 904  901   * RFE 1257407: make does not use fine granularity time info available from stat.
 905  902   * High resolution time comparison.
 906  903   */
 907  904  
 908  905  inline int
 909  906  operator==(const timestruc_t &t1, const timestruc_t &t2) {
 910  907          return ((t1.tv_sec == t2.tv_sec) && (t1.tv_nsec == t2.tv_nsec));
 911  908  }
↓ open down ↓ 39 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX