1.1 --- a/src/Zone.h Sat Dec 29 00:12:27 2012 -0800
1.2 +++ b/src/Zone.h Sat Dec 29 00:55:38 2012 -0800
1.3 @@ -140,9 +140,9 @@
1.4 bool hasPendingException();
1.5 void clearPendingException();
1.6 void installErrorReporter(Ke::IMessageReporter *reporter);
1.7 - void beginCompilationErrors(const char *file);
1.8 - void reportCompilationError(Message message, unsigned line, unsigned col, va_list ap);
1.9 - void endCompilationErrors();
1.10 + Ke::IMessageReporter *errorReporter() {
1.11 + return reporter_;
1.12 + }
1.13
1.14 void accept(VirtualObjectVisitor *visitor);
1.15 void sweepWeakRoots();
1.16 @@ -156,6 +156,10 @@
1.17 // In the interest of simplicity, we are single-threaded for now.
1.18 extern Zone *SingleThreadedZone;
1.19
1.20 +// Exposed for the compiler.
1.21 +char *BuildErrorMessage(const char *format, va_list ap);
1.22 +void FreeErrorMessage(const char *message);
1.23 +
1.24 static inline Zone *ZONE()
1.25 {
1.26 return SingleThreadedZone;