Mickey Rose
90fcdc90d3
benchmarks: fix output formatting
...
snprintf is a better tool for this task, anyway, but here's what was
wrong with the stream formatting:
s << name << ":" << std::setw(45 - (int)s.tellp())
cannot be used to align columns, tellp() may return any of:
0
name.length()
name.length() + strlen(":")
because the compiler is allowed to reorder the evaluation of
sub-expressions as it likes -- it may evaluate s.tellp() before
evaluating (s << name) or in-between (s << name) and (s << ":")
try with gcc-4.8
2016-02-16 16:27:32 +01:00
artemp
15f905b272
csv - improved quote auto-detection logic which should catch more corner cases
2016-02-16 16:05:12 +01:00
Dane Springmeyer
85d4596769
move getline impl to separate header to avoid as much spirit inclusion
2016-02-15 19:06:11 -08:00
Mickey Rose
1499475d04
remove to_utf8, instead use UnicodeString::toUTF8String
2016-02-15 21:07:01 +01:00
Mickey Rose
5d1fd56cef
csv_grammar: make csv_white_space_skipper a primitive_parser
2016-02-15 15:17:26 +01:00
Mickey Rose
ccf579f450
csv_grammar: simplify csv_line_grammar
2016-02-15 15:15:51 +01:00
artemp
ff54a14e34
update deps
2016-02-15 13:57:54 +01:00
artemp
ca0c0e5888
csv_util - combine auto-decting separator/quote/newline into one method std::tuple<char, bool, char, char> autodect_csv_flavour(T & stream, std::size_t file_length)
2016-02-15 13:55:06 +01:00
artemp
a9e1388b3b
csv_grammar - always requre matching closing quoting character
2016-02-15 12:02:45 +01:00
lightmare
f4bb28b2c1
Merge pull request #3292 from lightmare/to-string
...
to_expression_string should re-escape backslashes and quotes
2016-02-15 04:10:36 +01:00
Mickey Rose
2d88fec458
to_expression_string: fix backslash-escapes in strings
2016-02-15 02:45:29 +01:00
Mickey Rose
f19b8e8eff
test/expressions: add checks for backslash-escapes in strings
2016-02-15 02:23:19 +01:00
artemp
bfb93c7222
Merge branch 'lightmare-trim-filter-grammar'
2016-02-11 15:43:28 +01:00
artemp
edc2e75474
Merge branch 'trim-filter-grammar' of https://github.com/lightmare/mapnik into lightmare-trim-filter-grammar
2016-02-11 15:43:18 +01:00
artemp
fa6376d9a1
update variant submodule
2016-02-11 10:18:16 +01:00
Dane Springmeyer
10bd37ddd7
avoid unneccesary dependence on << operator of mapnik::enumeration
2016-02-09 10:09:12 -08:00
Dane Springmeyer
8ecb42894f
restore << operator for mapnik::enumeration + add unit test
2016-02-09 10:08:29 -08:00
Dane Springmeyer
6c1b6e301d
gradient does not need to be a fancy enumeration
2016-02-09 09:56:57 -08:00
Blake Thompson
1d981e899b
Merge pull request #3289 from lightmare/lts
...
bootstrap: relieve leaning toothpick syndrome
2016-02-09 09:26:26 -06:00
Mickey Rose
dea4a73927
bootstrap: relieve leaning toothpick syndrome
2016-02-09 15:06:09 +01:00
artemp
87c3032e63
Merge branch 'lightmare-expr-no-barewords'
2016-02-09 14:15:35 +01:00
artemp
f0cc65958f
Merge branch 'expr-no-barewords' of https://github.com/lightmare/mapnik into lightmare-expr-no-barewords
2016-02-09 14:15:22 +01:00
artemp
c53b4cdeda
update test data ref #3288
2016-02-09 11:44:55 +01:00
Mickey Rose
15f841213a
expression_grammar: restrict unquoted strings to single-atom expressions
...
- fixes #3017
- closes #3214
2016-02-08 17:15:13 +01:00
artemp
2b725dd257
shapeindex - skip 'null' shapes (ref #3288 )
2016-02-08 15:51:13 +01:00
bergwerkgis
9e7b67e35d
Merge branch 'master' of https://github.com/mapnik/mapnik
2016-02-08 13:55:25 +00:00
bergwerkgis
643391ba20
Windows: props file to override solution settings for /MP
2016-02-08 13:55:08 +00:00
Mickey Rose
8da250a0ee
show build status badges for master (svg)
...
- Travis badge URL was .png
- AppVeyor badge used latest build (any branch)
- [skip ci]
2016-02-07 14:22:44 +01:00
Mickey Rose
ed8c8df738
expression_grammar: use one symbol table for all constants
2016-02-06 18:40:33 +01:00
Mickey Rose
ae39d48b86
test/expressions: add checks for logical operator precedence
2016-02-06 14:26:57 +01:00
Mickey Rose
959d4ded23
image_filter_grammar: rewrite using Nabialek trick
2016-02-06 02:03:55 +01:00
Mickey Rose
401dfacfc5
test/image_filter: prevent SIGSEGV when parsing fails
2016-02-06 01:56:05 +01:00
lightmare
b24f520439
Merge pull request #3239 from lightmare/expr-test
...
condense expressions tests
2016-02-06 00:37:05 +01:00
Mickey Rose
5764d619f3
expressions test: move expression strings into Catch calls, continue on failure
2016-02-05 17:22:01 +01:00
Mickey Rose
53bb55eade
rename expresssions_test.cpp, didn't pass spell check
2016-02-05 17:22:01 +01:00
artemp
cb708d7f5a
transform_grammar: correct and simplify rules per bcc7495a87 (commitcomment-15915607)
...
image_filter: relax `agg-stack-blur` rule to allow `agg-stack-blur,agg-stack-blur(),agg-stack-blur(1),agg-stack-blur(1,1)` syntax + add image filter parsing tests
2016-02-05 16:50:49 +01:00
artemp
bcc7495a87
transform grammar - fix optional seprator logic
2016-02-05 13:08:17 +01:00
bergwerkgis
eeb1507c6d
AppVeyor: new try, nr.2
2016-02-05 11:13:09 +00:00
bergwerkgis
9d359ff3df
AppVeyor: new try, nr.1
2016-02-05 11:05:12 +00:00
Mickey Rose
7594301d98
test/shapeindex: include loop variables in failure message
...
[skip ci]
2016-02-04 18:54:21 +01:00
artemp
8c1f71c39e
try 8 JOBS
2016-02-04 12:51:20 +01:00
bergwerkgis
9282c60c91
AppVeyor: try again mapnik::value_null - correct <=, >= return values
2016-02-04 10:21:41 +00:00
artemp
7ab93a30f2
mapnik::value_null - correct <=, >= return values ref #3285
2016-02-04 10:06:11 +01:00
Dane Springmeyer
7ad4bf379d
stick with clang-3.5 for now
...
- I have early evidence that mapnik compiled with 3.6 and mapnik-vt compiled with 3.5 == crashes
- Also the mason deps are still compiled with 3.5
- TODO: upgrade mapnik, mapnik-vt, and all mason deps to 3.6 all at once.
2016-02-03 11:18:00 -08:00
Dane Springmeyer
52cabfd107
expat is no longer a must have cairo dep since cairo can be built without fontconfig [skip ci]
2016-02-03 10:57:09 -08:00
artemp
35ab8cccdc
follow up on previous commit - convert to common_type
prior applying /
(MSCV C4804)
2016-02-03 12:45:29 +01:00
artemp
376ffba7fe
convert value_bool to value_integer before operator / (fixes unsafe use of bool - MSVC C4804)
2016-02-03 12:35:09 +01:00
artemp
c0724a6d95
value comparison - deduct return type automatically (fixes MSVC C4800)
2016-02-03 12:33:15 +01:00
artemp
09163f969d
deps - update variant
2016-02-03 11:06:00 +01:00
Dane Springmeyer
1600bfe981
remove dead code in enumeration.hpp
2016-02-02 12:35:19 -08:00