1855
1856 va_start(args, pattern);
1857 if (file_being_read != NULL) {
1858 WCSTOMBS(mbs_buffer, file_being_read);
1859 if (line_number != 0) {
1860 (void) sprintf(message,
1861 gettext("%s, line %d: %s"),
1862 mbs_buffer,
1863 line_number,
1864 pattern);
1865 } else {
1866 (void) sprintf(message,
1867 "%s: %s",
1868 mbs_buffer,
1869 pattern);
1870 }
1871 pattern = message;
1872 }
1873
1874 (void) fflush(stdout);
1875 (void) fprintf(stderr, gettext("make: Fatal error in reader: "));
1876 (void) vfprintf(stderr, pattern, args);
1877 (void) fprintf(stderr, "\n");
1878 va_end(args);
1879
1880 if (temp_file_name != NULL) {
1881 (void) fprintf(stderr,
1882 gettext("make: Temp-file %s not removed\n"),
1883 temp_file_name->string_mb);
1884 temp_file_name = NULL;
1885 }
1886
1887 if (report_pwd) {
1888 (void) fprintf(stderr,
1889 gettext("Current working directory %s\n"),
1890 get_current_path());
1891 }
1892 (void) fflush(stderr);
1893 exit_status = 1;
1894 exit(1);
1895 }
1896
|
1855
1856 va_start(args, pattern);
1857 if (file_being_read != NULL) {
1858 WCSTOMBS(mbs_buffer, file_being_read);
1859 if (line_number != 0) {
1860 (void) sprintf(message,
1861 gettext("%s, line %d: %s"),
1862 mbs_buffer,
1863 line_number,
1864 pattern);
1865 } else {
1866 (void) sprintf(message,
1867 "%s: %s",
1868 mbs_buffer,
1869 pattern);
1870 }
1871 pattern = message;
1872 }
1873
1874 (void) fflush(stdout);
1875 (void) fprintf(stderr, gettext("%s: Fatal error in reader: "),
1876 getprogname());
1877 (void) vfprintf(stderr, pattern, args);
1878 (void) fprintf(stderr, "\n");
1879 va_end(args);
1880
1881 if (temp_file_name != NULL) {
1882 (void) fprintf(stderr,
1883 gettext("%s: Temp-file %s not removed\n"),
1884 getprogname(),
1885 temp_file_name->string_mb);
1886 temp_file_name = NULL;
1887 }
1888
1889 if (report_pwd) {
1890 (void) fprintf(stderr,
1891 gettext("Current working directory %s\n"),
1892 get_current_path());
1893 }
1894 (void) fflush(stderr);
1895 exit_status = 1;
1896 exit(1);
1897 }
1898
|