summaryrefslogtreecommitdiff
path: root/compiler_and_linker/unsorted/CCompiler.c
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-11 22:29:53 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-11 22:29:53 +0000
commit0bec4f557a96e1a40437cf5af20cc78a5eec8a63 (patch)
treec1e05ec804c43aa5a8f5f21b0ed02d0587d29563 /compiler_and_linker/unsorted/CCompiler.c
parentaec1b8dddc68ecb8288ec6132932e4c7b4bca09f (diff)
downloadMWCC-0bec4f557a96e1a40437cf5af20cc78a5eec8a63.tar.gz
MWCC-0bec4f557a96e1a40437cf5af20cc78a5eec8a63.zip
getting closer
Diffstat (limited to 'compiler_and_linker/unsorted/CCompiler.c')
-rw-r--r--compiler_and_linker/unsorted/CCompiler.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler_and_linker/unsorted/CCompiler.c b/compiler_and_linker/unsorted/CCompiler.c
index 6159517..1bac511 100644
--- a/compiler_and_linker/unsorted/CCompiler.c
+++ b/compiler_and_linker/unsorted/CCompiler.c
@@ -3,6 +3,8 @@
#include "compiler/CPrep.h"
#include "compiler/CompilerTools.h"
#include "compiler/CodeGen.h"
+#include "compiler/CodeGenOptPPC.h"
+#include "compiler/IrOptimizer.h"
#include "compiler/types.h"
#include "pref_structs.h"
@@ -72,7 +74,7 @@ static int setup_param_block(CWPluginContext context) {
return CWGetTargetName(context, target_name, sizeof(target_name)) == cwNoErr;
}
-static short store_compile_results() {
+static short store_compile_results(void) {
CWResult result;
if (cparams.objectDataHandle)
@@ -181,7 +183,7 @@ static void initialize_compiler_options(CParams *params) {
copts.text = CWFOURCHAR('T','E','X','T');
}
-static void GetLicense() {
+static void GetLicense(void) {
if (!license_cookie) {
crippled = 1;
CWCheckoutLicense(cparams.context, "MacOS_Plugins_MacOS_Unlimited", "7", 2, NULL, &license_cookie);
@@ -195,7 +197,7 @@ static void GetLicense() {
}
}
-static void ReleaseLicense() {
+static void ReleaseLicense(void) {
if (license_cookie && using_license_manager)
CWCheckinLicense(cparams.context, license_cookie);
using_license_manager = 0;