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

94 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
8f667d33ae Rebuild Makefile.in 2012-05-21 22:13:53 +00:00
olafvdspek@gmail.com
8293b3e1c3 Add -no-undefined 2012-05-21 21:53:01 +00:00
olafvdspek@gmail.com
2250aaa9db Fix G++ 4.7 issues 2012-05-21 21:52:04 +00:00
olafvdspek@gmail.com
2fa3b2c937 Wed Apr 18 23:36:08 2012 Olaf van der Spek <olafvdspek@gmail.com>
* ctemplate: version 2.2 release
        * Fixed several issues reported by G++ 4.7
2012-04-18 21:55:40 +00:00
olafvdspek@gmail.com
bc838ba7c3 Fix G++ 4.7 issues 2012-03-23 14:41:17 +00:00
olafvdspek@gmail.com
b44faf9896 Fix G++ 4.7 issues 2012-03-23 14:07:56 +00:00
olafvdspek@gmail.com
ac6fce4caf Thu Mar 22 00:29:09 2012 Olaf van der Spek <olafvdspek@gmail.com> 2012-03-21 23:35:25 +00:00
olafvdspek@gmail.com
9060230767 Don't dereference begin() when range is empty 2012-03-20 17:30:24 +00:00
olafvdspek@gmail.com
356d7dfac9 Add preprocessed headers for Windows 2012-03-19 23:55:11 +00:00
olafvdspek@gmail.com
8d74ba6858 Preprocess 2012-03-19 23:40:45 +00:00
olafvdspek@gmail.com
21c10669c1 Don't dereference end() 2012-03-19 23:40:29 +00:00
olafvdspek@gmail.com
39d196d348 Add operator[] to TemplateDictionary 2012-03-14 16:58:16 +00:00
olafvdspek@gmail.com
160f14cc82 Autoreconf 2012-03-14 14:51:49 +00:00
olafvdspek@gmail.com
eff1069f1b Enable AM_SILENT_RULES 2012-03-13 21:29:30 +00:00
olafvdspek@gmail.com
97a9457e81 Use find_ptr 2012-03-13 18:45:13 +00:00
olafvdspek@gmail.com
e56f3c1297 Autoreconf 2012-03-13 17:18:06 +00:00
olafvdspek@gmail.com
88ac9cb2d5 Add find_ptr 2012-03-13 16:26:17 +00:00
olafvdspek@gmail.com
1f0e145e15 Add find_ptr 2012-03-13 14:50:58 +00:00
olafvdspek@gmail.com
13219be215 Refactor TemplateDictionary 2012-03-13 14:18:31 +00:00
olafvdspek@gmail.com
9bfe775524 Remove StaticTemplateString::ToString() 2012-02-29 16:37:03 +00:00
olafvdspek@gmail.com
74d2631351 Rename google-ctemplate.sln to ctemplate.sln 2012-02-29 16:25:46 +00:00
olafvdspek@gmail.com
99a5f9dfc1 Use data() and size() 2012-02-25 17:36:12 +00:00
olafvdspek@gmail.com
6e5ac274c9 Use data() and size() 2012-02-25 17:14:52 +00:00
olafvdspek@gmail.com
60be3f041b Refactor Refactor template_string.h 2012-02-25 16:43:33 +00:00
olafvdspek@gmail.com
9f7baaec47 Add begin(), end(), data() and size() to TemplateString 2012-02-25 16:28:13 +00:00
olafvdspek@gmail.com
9c4e28e06f Refactor template_string.h 2012-02-14 14:52:29 +00:00
csilvers
57b0f4407c Fix an incorrect email address. 2012-02-02 22:44:16 +00:00
csilvers
6f7d6f6754 Tue Jan 24 16:00:51 2012 Google Inc. <google-ctemplate@googlegroups.com>
* ctemplate: version 2.0 release
        * Changed the 'official' ctemplate email in setup.py/etc
        * Rewrote docs to refer to Ctemplate, not Google Template
        * Renamed google-ctemplate.sln to ctemplate.sln
        * Changed copyright text to reflect Google's relinquished ownership
2012-01-25 01:28:24 +00:00
csilvers
48312e9ad3 Thu Dec 22 14:03:27 2011 Google Inc. <opensource@google.com>
* ctemplate: version 1.1 release
	* Make reloads always prefer files earlier on the search patch (ssas)
	* PORTING: Add a default BSWAP32, needed for AIX (csilvers)
	* Die at configure-time when g++ isn't installed
2011-12-22 22:40:30 +00:00
csilvers+ctemplate@google.com
d400edea99 ctemplate defines a dummy version of LOG() in
util.h.  We need to override that version with a 'real' (but
simplistic) version in template.cc.  The other option would be
to have a 'real' definition everywhere, but that's not
necessary at this juncture.

R=jad
DELTA=2  (1 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3980
2011-12-15 19:07:50 +00:00
csilvers+ctemplate@google.com
37db0db4ac Rid the Makefile of a mention of a file that no longer
exists.

R=jad
DELTA=1  (0 added, 1 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3979
2011-12-15 19:07:00 +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
5dd3eb8ace Fixed the example code (example.cc) to match the one at
http://code.google.com/p/google-ctemplate/
c.f.
http://code.google.com/p/google-ctemplate/issues/detail?id=83


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3960
2011-12-14 21:33:32 +00:00
csilvers+ctemplate@google.com
760d83b13a Change the behavior of template cache so that it reloads the template if
another template has been added with the same name earlier in the search path,
even if the original file is NOT updated(touched, updated, deleted etc).

Tested:
blaze test template:all

R=panicker,csilvers
DELTA=45  (6 added, 24 deleted, 15 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3885
2011-12-01 17:54:59 +00:00
csilvers+ctemplate@google.com
ba3cc774b8 LOG(FATAL) << "message" is preferred over CHECK("message" == NULL).
See http://wiki/Main/LogFatalVsCheckFalse for details. While I'm here,
fix a couple of cases of CHECK("message" != NULL) and remove some dead
code that our compilers are now smart enough to not need.

R=falmeida
DELTA=5  (0 added, 2 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3617
2011-11-05 11:34:19 +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
f8c58ff816 A user reported a bug that configure should die when g++ isn't
installed, but wasn't:
http://code.google.com/p/google-perftools/issues/detail?id=217

This turned out to be a bug in autoconf:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357378

The workaround is simple: check for CXX before checking for
CC.  This means that if g++ is installed but gcc isn't, we
won't die (at cc-checking time), but I tested, and the
configure script dies later.  In any case, it seems unlikely
someone would have a c++ compiler installed but not a c
compiler.

This fixes the 4 opensource projects I work on that are
susceptible to this.

R=iant
DELTA=1437  (694 added, 694 deleted, 49 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3221
2011-09-10 11:33:35 +00:00
csilvers
52e93f8ca7 Fri Aug 26 13:10:46 2011 Google Inc. <opensource@google.com>
* ctemplate: version 1.0 release
	* No changes since 1.0rc2
2011-08-26 21:21:15 +00:00
csilvers+ctemplate@google.com
91a6d720de Ready to release ctemplate 1.0rc2 :-/
* ctemplate: version 1.0rc2 release
* BUGFIX: removed #includes of non-installed headers from installed ones
* BUGFIX: Make compile-test test against an install

R=jad
DELTA=30  (26 added, 0 deleted, 4 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=2822
2011-07-29 20:00:44 +00:00
csilvers+ctemplate@google.com
92d6f935bc Change on 2011-07-29 12:10:58-07:00 by csilvers
mingw fixes:

	1) mingw needs an #include to have access to mkdir.

	2) It needs to always #include port.h (this is an identical
	bit of code, in configure.ac, that I have in other opensource
	projects for mingw support.)

	3) I moved some code from port.cc to port.h, so I didn't have
	to add logic to link in port.cc for mingw.

	Last change before new release!  (*knock on wood*)  Submitting
	TBR so I can get the release out today.  This isn't exactly a
	trivial change, so I'm chary to submit TBR, but it's pretty
	isolated to windows and mingw, and I've tested on those
	platforms to make sure they compile and all tests pass.

	DELTA=70  (37 added, 30 deleted, 3 changed)

Change on 2011-07-29 12:21:55-07:00 by csilvers

	Small change to get tests passing on mingw -- using /tmp is
	causing problems with our diffs, since sometimes it follows
	the /tmp (built-in msys) symlink, and sometimes it doesn't.

	R=jad
	DELTA=10  (8 added, 0 deleted, 2 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=2821
2011-07-29 19:58:48 +00:00
csilvers+ctemplate@google.com
fd02964e99 Annotalysis fix for ctemplate template_cache.
R=csilvers
DELTA=3  (1 added, 0 deleted, 2 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=2804
2011-07-29 19:52:30 +00:00
csilvers+ctemplate@google.com
3aed9df68d A major build bug, discovered in
http://code.google.com/p/google-ctemplate/issues/detail?id=79
:

The installed header files were #including header files that
were not installed.  The build could not function as a result.

In one case I could resolve the problem by forward-declaring
(better anyway).

In another case, I just commented out all the relevant code for
the opensource version.  The code was for thread-safety
analysis, which is a noop in opensource-land anyway, so it's
pretty safe (albeit ugly) to remove it.

R=ribrdb
DELTA=48  (22 added, 4 deleted, 22 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=2768
2011-07-28 07:47:52 +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