summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-04-02 17:10:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-04-02 22:46:20 +0300
commit30c3532ec84ccee881f77f9006a0c06aac1c8c1e (patch)
tree961b905890ce35d99298ddbcc7c394ec41237f95
parent098323df32d964c3966ee026212150a7e08230f8 (diff)
Cleanup switch statements in buildfiles
-rw-r--r--TODO5
-rw-r--r--curl/curl/buildfile2
-rw-r--r--libcurl/libcurl/buildfile2
3 files changed, 2 insertions, 7 deletions
diff --git a/TODO b/TODO
index 3f1112f..da80960 100644
--- a/TODO
+++ b/TODO
@@ -1,10 +1,5 @@
On the revision:
-- Fix the switch statements in the buildfiles, replacing 'switch $c.class,
- $tsys' with 'switch $c.class'.
-
-- Replace the C++ comments with C comments in tests.
-
On the release:
- Use legal{} target type for legal documentation (LICENSE, AUTHORS, etc).
diff --git a/curl/curl/buildfile b/curl/curl/buildfile
index 2977f42..f458c0e 100644
--- a/curl/curl/buildfile
+++ b/curl/curl/buildfile
@@ -28,7 +28,7 @@ switch $tclass, $tsys
c.poptions =+ "-I$src_base" "-I$src_base/src" "-I$src_base/lib"
-switch $c.class, $tsys
+switch $c.class
{
case 'gcc'
{
diff --git a/libcurl/libcurl/buildfile b/libcurl/libcurl/buildfile
index bd5908c..056ca9f 100644
--- a/libcurl/libcurl/buildfile
+++ b/libcurl/libcurl/buildfile
@@ -63,7 +63,7 @@ obja{*}: c.poptions += -DCURL_STATICLIB
if! $windows
c.coptions += -fvisibility=hidden
-switch $c.class, $tsys
+switch $c.class
{
case 'gcc'
{