about summary refs log tree commit diff stats
path: root/cpp/tangle/030tangle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/tangle/030tangle.cc')
-rw-r--r--cpp/tangle/030tangle.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/cpp/tangle/030tangle.cc b/cpp/tangle/030tangle.cc
index 896e8f3e..fc40880f 100644
--- a/cpp/tangle/030tangle.cc
+++ b/cpp/tangle/030tangle.cc
@@ -2,9 +2,6 @@
 // Insert #line directives to preserve line numbers in the original.
 // Clear lines starting with '//:' (tangle comments).
 
-#include<assert.h>
-#include<sys/param.h>
-
 size_t Line_number = 0;
 string Filename;
 
@@ -84,7 +81,7 @@ void process_next_hunk(istream& in, const string& directive, list<string>& out)
   if (cmd == "before" || cmd == "after" || cmd == "replace" || cmd == "replace{}" || cmd == "delete" || cmd == "delete{}") {
     list<string>::iterator target = locate_target(out, directive_stream);
     if (target == out.end()) {
-      RAISE << "Couldn't find target " << directive << '\n' << die();
+      raise << "Couldn't find target " << directive << '\n' << die();
       return;
     }
 
@@ -131,7 +128,7 @@ void process_next_hunk(istream& in, const string& directive, list<string>& out)
     return;
   }
 
-  RAISE << "unknown directive " << cmd << '\n';
+  raise << "unknown directive " << cmd << '\n';
 }
 
 list<string>::iterator locate_target(list<string>& out, istream& directive_stream) {
@@ -158,7 +155,7 @@ list<string>::iterator locate_target(list<string>& out, istream& directive_strea
     if (pat2 == "") return out.end();
     return find_substr(out, intermediate, pat2);
   }
-  RAISE << "unknown keyword in directive: " << next_token << '\n';
+  raise << "unknown keyword in directive: " << next_token << '\n';
   return out.end();
 }
 
@@ -340,9 +337,6 @@ bool any_non_input_line(const list<string>& lines) {
   return false;
 }
 
-#include <locale>
-using std::isspace;  // unicode-aware
-
 // does s start with pat, after skipping whitespace?
 // pat can't start with whitespace
 bool starts_with(const string& s, const string& pat) {