From 9eb085ee28dcfebab97bc9d49cd63e667b2e289c Mon Sep 17 00:00:00 2001 From: Nishi Date: Fri, 15 May 2026 00:01:48 +0900 Subject: [PATCH] format --- src/compiler/watcom.js | 4 ++-- src/js/cmdline.js | 4 ++-- src/js/core.js | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/compiler/watcom.js b/src/compiler/watcom.js index 1c2a109..1597be0 100644 --- a/src/compiler/watcom.js +++ b/src/compiler/watcom.js @@ -20,9 +20,9 @@ Watcom.compile = function(target, obj, src) { const includes = pmake.includes(target).map(add_i).join(" "); const flags = "-bt=nt -fr= -q " + includes + " -fo=" + obj + " " + src; - if(src.endsWith(".rc")){ + if(src.endsWith(".rc")) { return "wrc -bt=nt -r -fo=" + obj + " " + src; - }else if(src.endsWith(".c")) { + } else if(src.endsWith(".c")) { return "wcc386 " + flags; } else { return "wpp386 " + flags; diff --git a/src/js/cmdline.js b/src/js/cmdline.js index 4481810..11f6f46 100644 --- a/src/js/cmdline.js +++ b/src/js/cmdline.js @@ -164,9 +164,9 @@ function make(output) { for(var i = 0; i < objs.length; i++) { var usage = ""; - if(self.sources[i].endswith(".rc")){ + if(self.sources[i].endswith(".rc")) { usage = "RC"; - }else if(pmake.isCxx(self.sources[i])) { + } else if(pmake.isCxx(self.sources[i])) { usage = "CXX"; } else { usage = "CC"; diff --git a/src/js/core.js b/src/js/core.js index a6b3fef..210cb04 100644 --- a/src/js/core.js +++ b/src/js/core.js @@ -194,9 +194,9 @@ Compiler.prototype.output = function(target) { } else if(target instanceof pmake.LibraryProject) { return "lib" + target.output + ".a"; } else if(target instanceof pmake.ExecutableProject) { - if(pmake.system.target == "Windows"){ + if(pmake.system.target == "Windows") { return target.output + ".exe"; - }else{ + } else { return target.output; } } @@ -208,7 +208,7 @@ const POSIXCompiler = pmake.inherit(Compiler, function(target) { this.ar = "ar"; this.cc = "cc"; this.cxx = "c++"; - this.rc = "windres"; + this.rc = "windres"; }); POSIXCompiler.prototype.compile = function(target, obj, src) { @@ -219,9 +219,9 @@ POSIXCompiler.prototype.compile = function(target, obj, src) { const includes = pmake.includes(target).map(add_i).join(" "); const flags = includes + " -c -o " + obj + " " + src; - if(src.endsWith(".rc")){ + if(src.endsWith(".rc")) { return this.prefix + this.rc + " -O coff " + src + " " + obj; - }else if(src.endsWith(".c")) { + } else if(src.endsWith(".c")) { return this.prefix + this.cc + " " + flags; } else if(is_cxx(src)) { return this.prefix + this.cxx + " " + flags;