Add some code comments

This commit is contained in:
Ignacio R. Morelle 2012-02-01 04:37:44 +00:00
parent 1856c035f4
commit a63bbbcfaf
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,8 @@
const unsigned short default_campaignd_port = 15002;
namespace {
// Markup characters recognized by GUI1 code. These must be
// the same as the constants defined in marked-up_text.cpp.
const std::string illegal_markup_chars = "*`~{^}|@#<&";
inline bool starts_with_text_markup_char(const std::string& str)

View File

@ -32,6 +32,10 @@
namespace font {
// NOTE: if you add more markup characters below, you'll need to update
// the list in addon/validation.cpp to blacklist them for add-on names
// and titles.
const char LARGE_TEXT='*', SMALL_TEXT='`',
BOLD_TEXT='~', NORMAL_TEXT='{',
NULL_MARKUP='^',