Commit Graph

29 Commits

Author SHA1 Message Date
Keith Bostic
344a714c3d Upgrade copyright notices from 2015 to 2016. 2016-01-01 16:37:39 -05:00
Keith Bostic
9c726c409d We've got a WT_SESSION, use it instead of cursor->session. 2015-03-22 19:42:15 -04:00
Keith Bostic
40c0ea67fa Switch uses of wiredtiger_strerror() for WT_SESSION.strerror(). 2015-03-20 17:46:54 -04:00
Keith Bostic
1f9098871a Copyright notices: add MongoDB, update to 2015. 2015-01-04 14:07:56 -05:00
Keith Bostic
9d5560f0a4 whitespace 2014-10-24 07:31:29 -04:00
Mark Benvenuto
6828f17265 Port all examples, most tests, and wtperf to Windows
Added windows_shim to emulate most functions
2014-10-16 19:58:17 -04:00
Keith Bostic
4c63f1e53f Minor shuffling to turn on more clang warnings:
- a few more uninitialized variables
- make variables local to a single file static
- replace use of WT_UNUSED_RET with error checking of the call (the
	macro was using a GCC extension clang doesn't like)

With these changes, clang is mostly silent using the following options:

	-Weverything
	-Wno-cast-align
	-Wno-conversion
	-Wno-covered-switch-default
	-Wno-documentation-unknown-command
	-Wno-format-nonliteral
	-Wno-language-extension-token
	-Wno-missing-noreturn
	-Wno-packed
	-Wno-padded
	-Wno-switch-enum
	-Wno-zero-length-array

Also, minor KNF whitespace cleanups.
2014-09-01 15:03:26 -04:00
Michael Cahill
77b426c555 Fix cleanup of home directories for example code, and fix use of system without checking the return value (clang has a warning for that). 2014-08-25 11:07:43 +10:00
Keith Bostic
5606c4b147 We're setting "home" to NULL, and then using it in error messages, which
isn't good, we'll drop core if they ever fire, not a good thing in a
sample program.  Add boilerplate to the examples, if we don't have an
evironment specified by "make check", create a clean standard one and
use it.
2014-08-23 14:58:01 -04:00
Keith Bostic
89ae59259b Lint: primarily make sure no WiredTiger call that returns an error value
ignores that error.
2014-08-23 14:30:52 -04:00
Keith Bostic
5b509b7220 Update copyright notices for 2014.
Move lang/java and lang/python into the public domain.
2014-01-07 10:30:12 -05:00
Michael Cahill
6f4673c288 Allow examples to run in parallel: give each a unique home directory.
closes #426
2013-01-08 11:55:11 +11:00
Keith Bostic
963d37a4e6 Update copyright notice to 2013. 2013-01-01 09:45:50 +00:00
Keith Bostic
7a3b1353f0 We're sending a mixed message -- remove the copyright notices from files
where we've placed our content in the public domain.
2012-08-15 17:46:54 +00:00
Keith Bostic
d473094676 Update copyright notices to 2012.
Change the copyright check script to always use the current year.

Change the example code copyright notices to document them as freeware,
anybody using WiredTiger example code is free to use it in any way they
choose, including commercially, WiredTiger claims no rights in such a
copy.

Minor re-ordering of the standard copyright notice so the preamble is
always the copyright notice itself, not the mention of the LICENSE file.
2012-01-22 18:52:07 +00:00
Keith Bostic
c4900b40df Quit using explicit search patterns (dontinclude/skipline) in the
documentation, use snippet instead.
2012-01-18 11:18:05 +00:00
Michael Cahill
e24981d156 Remove the "multithread" configuration for connections. 2011-10-18 10:29:11 +11:00
Michael Cahill
f8251749be Check for long lines in example code. 2011-09-20 11:38:00 +10:00
Michael Cahill
2b61139759 Use the argument in the example to avoid a compiler warning. 2011-09-19 23:12:51 +10:00
Michael Cahill
192342cd0f Eliminate old / broken pages from the documentation.
--HG--
rename : docs/src/utility.dox => docs/src/command-line.dox
rename : docs/src/tuning.dox => docs/src/dump-formats.dox
rename : docs/src/fileformats.dox => docs/src/file-formats.dox
extra : rebase_source : 8fc899ad7c45f85abd19a40345e37e9efeaa2fd9
2011-09-19 22:48:50 +10:00
Michael Cahill
fd23fdcc90 Make tests work on the public API:
* add stubs for statistics cursors
* more configuration checking
* remove "_table" suffix from WT_SESSION methods, make "table:" part of the object name so the same methods can work on indices or column sets in the future
refs #28

--HG--
rename : src/api/cur_btree.c => src/api/cur_stat.c
2011-05-03 17:24:15 +10:00
Keith Bostic
61df5f8c29 Added a bunch of warnings to gcc 4.2.1, clean up the lint. 2011-02-18 10:35:03 -05:00
Michael Cahill
4cf87d06a4 Remove '$Id$ from sources, add more file to the list for s_copyright to check. 2011-02-16 16:15:04 +11:00
Michael Cahill
33dd624df5 Remove compile warnings from example code.
refs #27
2011-02-02 16:15:47 +11:00
Michael Cahill
dbce4c3f3d API changes and example updates baed on Keith's feedback.
--HG--
branch : mjc
2011-01-07 16:05:25 +11:00
Michael Cahill
84c3666460 Incorporated Keith's latest feedback, switched XXX to @todo...
--HG--
branch : mjc
rename : docs/src/overview.dox => docs/src/introduction.dox
rename : include/wiredtiger.h => include/wiredtiger_ext.h
2011-01-06 21:45:04 +11:00
Michael Cahill
c823027e57 More work on code samples, Python implementation of the API using Berkeley DB.
--HG--
branch : mjc
rename : examples/c/ex_hello.c => examples/c/ex_cursor.c
rename : examples/c/ex_hello.c => examples/c/ex_extending.c
rename : examples/c/ex_hello.c => examples/c/ex_pack.c
rename : examples/c/ex_hello.c => examples/c/ex_process.c
rename : examples/c/ex_hello.c => examples/c/ex_transaction.c
2011-01-06 10:57:13 +11:00
Michael Cahill
e51557e46f More editing of documentation, expanding of examples.
--HG--
branch : mjc
extra : transplant_source : %16%C1%5B%C8%91F%D3%D0%AA%C2%1BY%FE%F6%27%AC%02%16%D9I
2011-01-04 17:48:09 +11:00
Michael Cahill
771a014ea9 More work on the API, added a structure for a "guide", developed examples and configuration string handling further.
--HG--
branch : mjc
rename : docs/src/architecture.dox => docs/src/basic-api.dox
rename : docs/src/architecture.dox => docs/src/command-line.dox
rename : docs/src/architecture.dox => docs/src/cursors.dox
rename : docs/src/architecture.dox => docs/src/extending.dox
rename : docs/src/architecture.dox => docs/src/packing.dox
rename : docs/src/architecture.dox => docs/src/processes.dox
rename : docs/src/architecture.dox => docs/src/threads.dox
rename : docs/src/architecture.dox => docs/src/transactions.dox
rename : docs/src/architecture.dox => docs/src/tuning.dox
rename : docs/src/architecture.dox => docs/src/using.dox
rename : examples/c/ex_access.c => examples/c/ex_thread.c
extra : transplant_source : %94m%AAT%07/%F5Vy%113%F3Ju%BE%A8%B0%2A%B0%24
2010-12-30 18:03:23 +11:00