2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 20:47:48 +00:00

14 Commits

Author SHA1 Message Date
Michal 'vorner' Vaner
83053b85d9 [2375] Don't propagate exceptions from internal namespace
Move the ReadError exception into the MasterLexer. That way, it is in
public namespace, so people can expect to see it.
2012-11-19 16:57:08 +01:00
JINMEI Tatuya
82ad5754e3 [master] Merge branch 'trac2371' 2012-11-07 13:17:34 -08:00
Mukund Sivaraman
dce5a5557d [2369] Use prefix syntax for increment/decrement operators 2012-11-07 12:31:30 +05:30
JINMEI Tatuya
430b6e2f07 [2371] move the definition of END_OF_STREAM from test to the main impl .cc.
based on review discussions.  it makes sense as we cannot assume its address
is never needed in non test applications.
2012-11-06 08:56:50 -08:00
Mukund Sivaraman
ff7cec44f4 [2369] Describe why the operation failed in OpenError exception 2012-11-06 09:57:39 +05:30
Mukund Sivaraman
9af419deb6 [2369] Add InputSource::mark() as a combination of saveLine() and compact() 2012-11-04 22:44:08 +05:30
Mukund Sivaraman
ccb0973459 [2369] Constify variables in various places 2012-11-04 22:30:16 +05:30
Mukund Sivaraman
ed1a2ad7df [2369] Use the more specialized std::ifstream instead of std::fstream 2012-11-04 21:40:33 +05:30
Mukund Sivaraman
a2090f1d57 [2369] Throw OpenError when opening the input file fails 2012-11-02 09:57:30 +05:30
Mukund Sivaraman
eb92bed532 [2369] Distinguish between EOF and failures in getChar() 2012-11-01 10:35:17 +05:30
Mukund Sivaraman
5ac6e8b56c [2369] Use a const variable's value for END_OF_STREAM state 2012-11-01 10:20:10 +05:30
Mukund Sivaraman
710bac3516 [2369] Initialize buffer_pos_ with 0
This is equivalent code to the former. The former was written such to
drive the point that buffer_pos_ is by default pointing at the end of
the buffer_ vector.  At construction, the buffer_ vector is empty, so
both work.
2012-11-01 09:53:32 +05:30
Mukund Sivaraman
6b8bf7d03e [2369] Rename exception to UngetBeforeBeginning 2012-11-01 09:46:40 +05:30
Mukund Sivaraman
6847454e58 [2369] Rename files to master_lexer_inputsource.{cc,h} 2012-11-01 09:39:35 +05:30