1
0
mirror of https://github.com/OlafvdSpek/ctemplate.git synced 2025-09-28 19:05:49 +08:00
Commit Graph

32 Commits

Author SHA1 Message Date
olafvdspek@gmail.com
1baad884af Drop const from size_t 2012-05-31 14:09:19 +00:00
olafvdspek@gmail.com
b44faf9896 Fix G++ 4.7 issues 2012-03-23 14:07:56 +00:00
csilvers+ctemplate@google.com
d251759a40 Add a 0-parameter construct() overload for C++11-compatibility,
using the default constructor of T.

Tested:
blaze test //base/...
blaze test --compiler=gcc-4.6.x-cxx0x //base/...

R=csilvers
DELTA=3  (3 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3961
2011-12-14 21:34:40 +00:00
csilvers+ctemplate@google.com
17339f2f43 Add a default BSWAP32, at the request of
http://code.google.com/p/google-ctemplate/issues/detail?id=76
(needed for AIX)

R=jad
DELTA=19  (13 added, 6 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3513
2011-10-26 11:35:23 +00:00
csilvers+ctemplate@google.com
ee80fa44b9 Move ALIGNED_CHAR_ARRAY from a separate file to ManualConstructor.
R=jrosenstock
DELTA=113  (13 added, 99 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3440
2011-10-12 11:33:24 +00:00
csilvers+ctemplate@google.com
44c56df8eb Noop, it looks like.
Revision created by MOE tool push_codebase.
MOE_MIGRATION=3428
2011-10-07 21:30:27 +00:00
csilvers+ctemplate@google.com
f89df1dacd Noop, it looks like.
Revision created by MOE tool push_codebase.
MOE_MIGRATION=3427
2011-10-07 21:29:48 +00:00
csilvers+ctemplate@google.com
640ca19b46 Moving aligned_char_array into manual_constructor.
Revision created by MOE tool push_codebase.
MOE_MIGRATION=3426
2011-10-07 21:28:23 +00:00
csilvers+ctemplate@google.com
008949d389 Now that arena has moved from CHECK(0) to LOG(FATAL), change
the opensource shims to be able to compile that.  This is a
bit of a hack.

R=chandlerc
DELTA=5  (5 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3313
2011-09-23 17:06:24 +00:00
csilvers+ctemplate@google.com
703d401961 Replace all uses of '[DQ]?CHECK(false)' with more idiomatic 'D?LOG(Q?FATAL)',
which properly indicates a no-return point in the CFG. This should have no
functional change.

R=csilvers
DELTA=16  (0 added, 0 deleted, 16 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3300
2011-09-23 17:03:56 +00:00
csilvers+ctemplate@google.com
eac74d19c8 Put Mutex in the same namespace as the other template code. I don't see
a good reason not to, and it's making it hard to
forward-declare Mutex otherwise.

Note that with this change, Mutex is not available from the
global namespace (which it was before due to the using
statement), which I think is a good thing.

R=ribrdb
DELTA=16  (1 added, 9 deleted, 6 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=2767
2011-07-28 07:45:57 +00:00
csilvers
9ae9c1b2a6 Make sure we open files for reading or writing in binary mode. That
way, \r isn't silently stripped on windows.

R=jad
2011-07-27 01:01:06 +00:00
csilvers
f2ec3b085d Fri Jul 22 15:31:05 2011 Google Inc. <opensource@google.com>
* ctemplate: version 1.0rc1 release
	* BUGFIX: Dumpers were ignoring a tpl-string 'length' (csilvers)
	* BUGFIX: Add a needed $(top_srcdir) to Makefile.am
	* Replace 0x00-0x1F with space in xml_escape (alexvod)
	* Fix xml encoding to handle form-feed properly (ghurley)
	* DOCUMENTATION: Wer missing some docs in the tarball (csilvers)
	* BUILD: Update acx_pthread.m4 for nostdlib (Kacper)
	* BUGFIX: Make CreateSectionIterator check tpl-globals (williasr)
	* PORTING: Fix solaris build by getting rid of PATH_MAX (csilvers)
2011-07-22 22:56:35 +00:00
csilvers
f597056c4f * Update acx_pthread.m4 for nostdlib (liuujisi)
* Fix xml encoding to handle form feed properly (ghurley)
        * Better alignment in manual_constructor (nlewycky)
        * Allow template specialization for Aligner (edk)
        * Create ALIGN_BY_TYPE for manual_constructor (nlewycky)
        * Add 5-param constructor to manual_constructor (herb)
        * Remove a redundant c_str() call (qrczak)
        * Add cstddef to get ptrdiff_t in global ns (csilvers)
	* Add missing documentation to the tarball (csilvers)
	* Replace 0x00-0x1F with space in xml_escape (alexvod)
2011-05-19 21:31:50 +00:00
csilvers
98bea48e37 Mon Jan 24 15:38:31 2011 Google Inc. <opensource@google.com>
* ctemplate: version 0.99 release
	* Accept . as part of tag/attr names when autoescaping (falmeida)
	* Optimize javascript template escaping (blount)
	* Allow <span dir=...> inside :H=snippet modifiers (jdtang)
	* make_tpl_varnames can write multiple tpls to one file (jad)
	* Add a few escaping modifier equivalences (jad)
	* BUGFIX: Fix ReloadAllIfChanged() with path (panicker)
	* PORTING: Relace tr with more portable sed, in tests (csilvers)
	* Updated from autoconf 2.64 to autoconf 2.65
2011-01-25 03:45:13 +00:00
csilvers
2f5f4b7baa * BUGFIX: was reloading string tpls in some situations (panicker)
* BUGFIX: fix recounting to avoid accessing freed memory (panicker)
	* Performance improvements for small_map (wonchun)
	* PORTING: Avoid SIGBUS on sparc by better aligning memory (csilvers)
	* Allow lowercase words in pragma contexts (csilvers)
	* BUGFIX: Fix a C++ conformance bug involving const (chandlerc)
	* Enable full word matching for tpl filenames (aneeshnaman)
2010-09-16 18:43:33 +00:00
csilvers
3f759b57cb * Major API revamp: +TemplateCache, -Template (panicker, csilvers)
* Major documentation revamp: howto -> guide + reference (csilvers)
	* Protect auto-generated #include files with header guard (dnovillo)
	* PORTING: autoconf macros to get cygwin/mingw to compile (csilvers)
2010-04-19 21:06:37 +00:00
csilvers
b238c9774a * Allow ftp:// in ValidateUrl modifier (martone)
* Add appropriate header files to template-converter (csilvers)
	* PORTING: Be more careful about #including stdint.h (csilvers)
2010-03-10 00:25:37 +00:00
csilvers
6b4d6e2196 * Fix a small Makefile bug when building outside srcdir (csilvers)
* Speed up template modifiers (turnidge)
	* PORTING: improve generate_fsm_test on windows (csilvers)
	* PORTING: get ctmplate (mostly) working on mingw (csilvers)
	* Changes to AC_RWLOCK to support the most recent autoconf (csilvers)
2010-03-03 20:41:37 +00:00
csilvers
a9b9d3190b Mon Oct 19 11:42:57 2009 Google Inc. <opensource@google.com>
* ctemplate: version 0.96 release
	* Support multiple template root directories (williasr)
	* Remove TemplateContext from TemplateToString (jad)
	* Remove programmatic auto-escape code (jad)
	* Speedup: use linker to detect immutable TemplateStrings (csilvers)
	* Implement ShowTemplateGlobalSection (williasr)
	* Change SetIntValue to accept longs (omoikane)
	* Allow TemplateDictionary c'tor to take a TemplateString (csilvers)
	* Make Mutex safer to run during global destructors (csilvers)
	* BUILD: don't set TMPDIR when building; ar reads it (csilvers)
	* BUILD: fix compiling of C (as opposed to C++) test file (csilvers)
	* BUILD: remove bash-specific 'test x == y' from configure.ac (csilvers)
	* BUGFIX: use AllocAligned when allocating non-char objects (csilvers)
	* PORTING: remove obsolete MSVC Detect64BitPortabilityProblems (csilvers)
	* Updated from autoconf 2.61 to 2.62
2009-10-20 17:29:07 +00:00
csilvers
71afde04df Thu May 7 11:27:28 2009 Google Inc. <opensource@google.com>
* ctemplate: version 0.94 release
	* Use arena for all memory allocations: 3-4% speedup (csilvers)
	* Add the ability to hook the annotation system (ryoji)
	* Expose Expand(ExpandEmitter*,...) to allow custom emitters (csilvers)
	* Add RemoveStringFromTemplateCache (csilvers)
	* Add new :url_escape_with_arg=css modifier for urls in CSS (jad)
	* Support tr1's unordered_map in preference to hash_map (csilvers)
	* Use Murmurhash for all string hashing, rather than hash<> (csilvers)
	* Better parsing of meta tags and dangling < for auto-escape (falmeida)
	* Add AddXssSafeModifier (jad)
	* Allow disabling auto-escape for 'trusted' vars (jad)
	* BUGFIX: resolve possible memory-leaks in CopyDictionary (csilvers)
	* BUGFIX: fix bug when reloading with AUTOESCAPE pragma (jad)
	* Updated autoconf version to 2.61 and libtool version to 1.5.26
2009-05-07 15:35:04 +00:00
csilvers
22ce4b1c55 Mon Feb 2 13:51:33 2009 Google Inc. <opensource@google.com>
* ctemplate: version 0.93 release
	* New AUTOESCAPE pragma: alternative to GetTemplateWithAutoescaping (jad)
	* Improve autoescape for CSS template and more (jad)
	* Replace RegisterStringAsTemplate with TemplateToString (csilvers)
	* Speed up template code by hashing and cacheing template strings (jcrim)
	* Add StaticTemplateString to make hashing/cacheing even faster
	* Autogenerate parser files from .config files (falmeida)
	* TESTING: new compile_test to test end-to-end compilation (csilvers)
	* Fix Mutex class to allow expanding template before main() (csilvers)
2009-02-03 00:11:03 +00:00
csilvers
3877123f1a Wed Nov 12 11:24:33 2008 Google Inc. <opensource@google.com>
* ctemplate: version 0.92 release
	* BUG FIX: affecting an included string-template with autoescaping (jad)
	* BUG FIX: long-name cmdline flag in diff_tpl_auto_escape (jad)
	* Do include-template indenting after applying modifiers (jad)
	* Add human-readable error messages to the html parser (falmeida)
	* Create an abstract base class for TemplateDictionary (williasr)
	* PORTING: Be more careful about Windows #defines and types (csilvers)
	* PORTING: Make unittest scripts more sh-compatible (falmeida)
	* Show missing includes in annotated output (ribrdb)
	* Improvements to javascript escaping (escape \f) (jad)
	* Improvements to json escaping (escape <>&) (jad)
	* Avoid raciness by preferring cached to new template-strings (csilvers)
2008-11-12 21:32:29 +00:00
csilvers
7be95f773c Tue Aug 19 16:20:27 2008 Google Inc. <opensource@google.com>
* ctemplate: version 0.91 release
	* NEW FEATURE: "separator" sections (csilvers)
	* NEW FEATURE: changing the markup separator via {{=XXX YYY=}} (csilvers)
	* NEW FEATURE: Add an Expand modifier to template dictionary (turnidge)
	* TemplateAsString class -> Template::RegisterStringAsTemplate (edwardcu)
	* TemplateModifier class -> PerExpandData class (csilvers)
	* Store more data in the arena, shrinking TemplateDictionary (csilvers)
	* Use TemplateString more widely internally; small speedup (adamk)
	* Lazily initialize hash-maps, saving time and space (csilvers)
	* Make template annotations more efficient (turnidge)
	* PORTABILITY: Fixed a testing script to run on solaris x86 (csilvers)
	* Fix namespaces to start with :: (csilvers)
	* Improve html parser in various ways (falmeida)
2008-08-21 00:54:27 +00:00
csilvers
2b0ea7691a Sun Apr 27 15:06:15 2008 Google Inc. <opensource@google.com>
* ctemplate: version 0.90 release
	* MAJOR NEW FEATURE: New "auto-escape" mode (jad, falmeida, mughda)
	* New tool, diff_tpl_auto_escape, to convert templates to auto-escaping
	* Fixed make install to install test datafiles (csilvers)
	* Add a new modifier: javascript_escape_with_arg=number (jad)
	* Javascript modifier now escapes all js newlines (msamuel)
2008-04-28 22:58:33 +00:00
csilvers
259c250bce Thu Jan 24 16:09:43 2008 Google Inc. <opensource@google.com>
* ctemplate: version 0.9 release
	* Bugfix: now we honor "preserve newlines in javacript" (ktl)
	* Fix indentation of included templates (csilvers)
	* Deprecate the SetEscaped* methods in favor of modifiers (csilvers)
	* Revamp the way template modifiers are registered (csilvers)
	* Change the psuedo-name of main section from __MAIN__ to __{{MAIN}}__
	* Fix types to quiet windows compiler (csilvers)
	* Allow infile and outfile for template-converter (ambrose)
	* Some doc fixes
2008-01-25 20:27:55 +00:00
csilvers
c11b1fb6de Tue Jul 3 12:46:59 2007 Google Inc. <opensource@google.com>
* ctemplate: version 0.7 release
	* Bugfix: another lock hygiene fix, for recursive includes (csilvers)
	* Minor type-hygiene improvements: size_t for int, etc. (csilvers)
	* Porting improvements: tests pass on OS X, FreeBSD, Solaris (csilvers)
	* Windows port! -- VS solution provided for all unittests (csilvers)
2007-07-09 17:01:41 +00:00
csilvers
cf4599bd94 Thu Jun 21 14:02:32 2007 Google Inc. <opensource@google.com>
* ctemplate: version 0.6.1 release
	* Bugfix: data corruption bug with >2 template modifiers (jmacgill)
	* Bugfix: syntax error in template-namelist: configure-bug (csilvers)
	* Bugfix: improve lock hygenie to avoid potential deadlock (csilvers)
2007-06-22 00:58:05 +00:00
csilvers
f0a3fceb99 Sat Jun 9 22:34:52 2007 Google Inc. <opensource@google.com>
* ctemplate: version 0.6 release
	* Use computed includes for hash_map/set: easier config (csilvers)
	* Added all used .m4 templates to the distribution (csilvers)
	* Beefed-up and revamped modifier code (csilvers)
	* New modifiers for url-escaping, attribute-cleansing, etc (ribrdb)
	* Annotations now include modifier information (csilvers)
	* Support embedded NULs in template names and values (csilvers)
2007-06-11 19:33:28 +00:00
csilvers
f2dcfbd666 Mon May 14 17:27:10 2007 Google Inc. <opensource@google.com>
* ctemplate: version 0.5 release
	* Add new MakeCopy() method to copy template dictionaries (csilvers)
	* Add JSON-escaping (mikepurvis)
	* Internal change that should ease thread-handling a bit (csilvers)
	* Fix url_query_escape to avoid stack overflow (csilvers)
2007-05-15 06:31:08 +00:00
csilvers
cbc9276303 ctemplate 0.2 2007-03-21 23:19:16 +00:00
csilvers
de41828417 ctemplate 0.1 2007-03-21 23:06:14 +00:00