char *value;
size_t size;
#ifdef _MSC_VER
- char buffer[64];
+ char buffer[64];
#endif
if (stat(context->name, &finfo))
return util_strdup("\"<failed to determine timestamp>\"");
#ifndef _MSC_VER
find = ctime(&finfo.st_mtime);
#else
- ctime_s(buffer, sizeof(buffer), &finfo.st_mtime);
- find = buffer;
+ ctime_s(buffer, sizeof(buffer), &finfo.st_mtime);
+ find = buffer;
#endif
value = (char*)mem_a(strlen(find) + 1);
rm -f $(DESTDIR)$(MANDIR)/man1/doc/qcvm.1
rm -f $(DESTDIR)$(MANDIR)/man1/doc/gmqpak.1
-whitespace:
- find . -type f \( -name '*.[ch]' -or -name '*.def' \) -exec sed -i 's/ *$$//' '{}' ';'
+STYLE_MATCH = \( -name '*.[ch]' -or -name '*.def' \)
+whitespace:
+ find . -type f $(STYLE_MATCH) -exec sed -i 's/ *$$//' '{}' ';'
newline:
- find . -type f \( -name '*.[ch]' -or -name '*.def' \) -exec sed -i -e '$$a\' '{}' ';'
+ find . -type f $(STYLE_MATCH) -exec sed -i -e '$$a\' '{}' ';'
+indent:
+ find . -type f $(STYLE_MATCH) -exec sed -i 's/\t/ /g' '{}' ';'
+style: whitespace newline indent
tmpnam(open->name_err);
tmpnam(open->name_out);
#else
- tmpnam_s(open->name_err, L_tmpnam);
- tmpnam_s(open->name_out, L_tmpnam);
+ tmpnam_s(open->name_err, L_tmpnam);
+ tmpnam_s(open->name_out, L_tmpnam);
#endif
(void)mode; /* excluded */
mem_d(open);
}
-# define popen _popen
-# define pclose _pclose
+# define popen _popen
+# define pclose _pclose
#endif /*! _WIN32 */
#define TASK_COMPILE 0