Lines 2-8
Link Here
|
2 |
#include <cstdlib> |
2 |
#include <cstdlib> |
3 |
#include <cstring> |
3 |
#include <cstring> |
4 |
#include <cstdio> |
4 |
#include <cstdio> |
5 |
#include <strstream> |
5 |
#include <sstream> |
6 |
#include <stdexcept> |
6 |
#include <stdexcept> |
7 |
#include "support.h" |
7 |
#include "support.h" |
8 |
#include "TodoDB.h" |
8 |
#include "TodoDB.h" |
Lines 814-820
Link Here
|
814 |
|
814 |
|
815 |
while (in.getline(line, 1024)) { |
815 |
while (in.getline(line, 1024)) { |
816 |
string str; |
816 |
string str; |
817 |
istrstream is(line); |
817 |
istringstream is(line); |
818 |
|
818 |
|
819 |
if (is >> str) { |
819 |
if (is >> str) { |
820 |
if (str[0] == '#') continue; |
820 |
if (str[0] == '#') continue; |
Lines 837-843
Link Here
|
837 |
// multi-line event ? |
837 |
// multi-line event ? |
838 |
if (str == "{") { |
838 |
if (str == "{") { |
839 |
while (in.getline(line, 1024)) { |
839 |
while (in.getline(line, 1024)) { |
840 |
istrstream is(line); |
840 |
istringstream is(line); |
841 |
|
841 |
|
842 |
if (is >> str) { |
842 |
if (is >> str) { |
843 |
if (str[0] == '#') continue; |
843 |
if (str[0] == '#') continue; |