This commit is contained in:
beard%netscape.com 2000-05-13 02:14:52 +00:00
Родитель a0702b9992
Коммит 0a0acdcf76
2 изменённых файлов: 6 добавлений и 10 удалений

Просмотреть файл

@ -33,12 +33,10 @@ namespace JS = JavaScript;
// sourceLocation describes the origin of the source and may be used for error messages. // sourceLocation describes the origin of the source and may be used for error messages.
// initialLineNum is the line number of the first line of the source string. // initialLineNum is the line number of the first line of the source string.
JS::Reader::Reader(const String &source, const String &sourceLocation, uint32 initialLineNum): JS::Reader::Reader(const String &source, const String &sourceLocation, uint32 initialLineNum):
source(source), sourceLocation(sourceLocation), initialLineNum(initialLineNum) source(source + uni::null), sourceLocation(sourceLocation), initialLineNum(initialLineNum)
{ {
const char16 *b = Reader::source.c_str(); begin = p = this->source.data();
begin = b; end = begin + this->source.size() - 1;
p = b;
end = b + Reader::source.size();
#ifdef DEBUG #ifdef DEBUG
recordString = 0; recordString = 0;
#endif #endif

Просмотреть файл

@ -33,12 +33,10 @@ namespace JS = JavaScript;
// sourceLocation describes the origin of the source and may be used for error messages. // sourceLocation describes the origin of the source and may be used for error messages.
// initialLineNum is the line number of the first line of the source string. // initialLineNum is the line number of the first line of the source string.
JS::Reader::Reader(const String &source, const String &sourceLocation, uint32 initialLineNum): JS::Reader::Reader(const String &source, const String &sourceLocation, uint32 initialLineNum):
source(source), sourceLocation(sourceLocation), initialLineNum(initialLineNum) source(source + uni::null), sourceLocation(sourceLocation), initialLineNum(initialLineNum)
{ {
const char16 *b = Reader::source.c_str(); begin = p = this->source.data();
begin = b; end = begin + this->source.size() - 1;
p = b;
end = b + Reader::source.size();
#ifdef DEBUG #ifdef DEBUG
recordString = 0; recordString = 0;
#endif #endif