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


  69         char            *search_dir;
  70         char            nse_depinfo[MAXPATHLEN];
  71         FILE            *fp;
  72         int             line_size, line_index;
  73         wchar_t         *line;
  74         wchar_t         *bigger_line;
  75         wchar_t         *colon;
  76         wchar_t         *dollar; 
  77         Recursive_make  rp;
  78 
  79         /*
  80          * This routine can be called more than once,  don't do
  81          * anything after the first time.
  82          */
  83         if (depinfo_already_read) {
  84                 return;
  85         } else {
  86                 depinfo_already_read = true;
  87         }
  88                                         
  89         search_dir = getenv(NOCATGETS("NSE_DEP"));
  90         if (search_dir == NULL) {
  91                 return;
  92         }
  93         (void) sprintf(nse_depinfo, "%s/%s", search_dir, NSE_DEPINFO);
  94         fp = fopen(nse_depinfo, "r");
  95         if (fp == NULL) {
  96                 return;
  97         }
  98         line_size = MAXPATHLEN;
  99         line_index = line_size - 1;
 100         line = ALLOC_WC(line_size);
 101         Wstring rns(recursive_name);
 102         wchar_t * wcb = rns.get_string();
 103         while (fgetws(line, line_size, fp) != NULL) {
 104                 while (wslen(line) == line_index) {
 105                         if (line[wslen(line) - 1] == '\n') {
 106                                 continue;
 107                         }
 108                         bigger_line = ALLOC_WC(2 * line_size);
 109                         wscpy(bigger_line, line);




  69         char            *search_dir;
  70         char            nse_depinfo[MAXPATHLEN];
  71         FILE            *fp;
  72         int             line_size, line_index;
  73         wchar_t         *line;
  74         wchar_t         *bigger_line;
  75         wchar_t         *colon;
  76         wchar_t         *dollar; 
  77         Recursive_make  rp;
  78 
  79         /*
  80          * This routine can be called more than once,  don't do
  81          * anything after the first time.
  82          */
  83         if (depinfo_already_read) {
  84                 return;
  85         } else {
  86                 depinfo_already_read = true;
  87         }
  88                                         
  89         search_dir = getenv("NSE_DEP");
  90         if (search_dir == NULL) {
  91                 return;
  92         }
  93         (void) sprintf(nse_depinfo, "%s/%s", search_dir, NSE_DEPINFO);
  94         fp = fopen(nse_depinfo, "r");
  95         if (fp == NULL) {
  96                 return;
  97         }
  98         line_size = MAXPATHLEN;
  99         line_index = line_size - 1;
 100         line = ALLOC_WC(line_size);
 101         Wstring rns(recursive_name);
 102         wchar_t * wcb = rns.get_string();
 103         while (fgetws(line, line_size, fp) != NULL) {
 104                 while (wslen(line) == line_index) {
 105                         if (line[wslen(line) - 1] == '\n') {
 106                                 continue;
 107                         }
 108                         bigger_line = ALLOC_WC(2 * line_size);
 109                         wscpy(bigger_line, line);