summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctor.h')
-rw-r--r--src/ctor.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ctor.h b/src/ctor.h
index 2fefac3..dbcfa66 100644
--- a/src/ctor.h
+++ b/src/ctor.h
@@ -26,13 +26,13 @@ enum class target_type
function,
};
-enum class Language
+enum class language
{
- Auto, // Default - deduce language from source extensions
+ automatic, // Default - deduce language from source extensions
- C,
- Cpp,
- Asm,
+ c,
+ cpp,
+ assembler,
};
enum class OutputSystem
@@ -45,16 +45,16 @@ struct Source
{
Source(const char* file) : file(file) {}
Source(const std::string& file) : file(file) {}
- Source(const char* file, Language lang) : file(file), language(lang) {}
- Source(const std::string& file, Language lang) : file(file), language(lang) {}
+ Source(const char* file, ctor::language lang) : file(file), language(lang) {}
+ Source(const std::string& file, ctor::language lang) : file(file), language(lang) {}
Source(const char* file, const char* output) : file(file), output(output) {}
Source(const std::string& file, const std::string& output) : file(file), output(output) {}
- Source(const char* file, Language lang, const char* output) : file(file), language(lang), output(output) {}
- Source(const std::string& file, Language lang, const std::string& output) : file(file), language(lang), output(output) {}
+ Source(const char* file, ctor::language lang, const char* output) : file(file), language(lang), output(output) {}
+ Source(const std::string& file, ctor::language lang, const std::string& output) : file(file), language(lang), output(output) {}
std::string file;
- Language language{Language::Auto};
+ ctor::language language{ctor::language::automatic};
std::string output{};
};