r38985 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38984‎ | r38985 | r38986 >
Date:09:32, 9 August 2008
Author:river
Status:old
Tags:
Comment:
support hex (10x), oct (10o) and binary (10b) literals
Modified paths:
  • /trunk/extensions/AbuseFilter/parser_native/parser.cpp (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/parser_native/parser.cpp
@@ -255,7 +255,16 @@
256256 */
257257 value =
258258 strict_real_p[value.val = bind(&datum::from_double)(arg1)]
 259+#if 0
 260+ | oct_p[value.val = bind(f_from_str)(arg1, 8)] >> 'o'
 261+ | hex_p[value.val = bind(f_from_str)(arg1, 16)] >> 'x'
 262+ | bin_p[value.val = bind(f_from_str)(arg1, 2)] >> 'b'
259263 | int_p[value.val = bind(&datum::from_int)(arg1)]
 264+#endif
 265+ | oct_p[value.val = bind(&datum::from_int)(arg1)] >> 'o'
 266+ | hex_p[value.val = bind(&datum::from_int)(arg1)] >> 'x'
 267+ | bin_p[value.val = bind(&datum::from_int)(arg1)] >> 'b'
 268+ | int_p[value.val = bind(&datum::from_int)(arg1)]
260269 | confix_p('"', *c_escape_ch_p, '"')[
261270 value.val = bind(&datum::from_string)(construct_<std::string>(arg1 + 1, arg2 - 1))
262271 ]

Status & tagging log