Commit graph

247 commits

Author SHA1 Message Date
efabba2cac merge additional tweaks after landing config system 2008-09-08 05:14:20 +02:00
deec68422c scons: simplify how library tests are built 2008-09-07 23:43:06 +02:00
Christian Thaeter
115620fbb5 FIX: luid tests, forgotten to rename uuid to luid 2008-09-07 03:41:37 +02:00
Michael Ploujnikov
f5387d8bf3 Merge branch 'master' of git://git.lumiera.org/LUMIERA
Conflicts:

	tests/Makefile.am
2008-09-06 20:15:05 -04:00
Christian Thaeter
c4e6cd3c51 Merge branch 'configloader_devel' of git://git.lumiera.org/lumiera/simeon into backend_devel
* 'configloader_devel' of git://git.lumiera.org/lumiera/simeon: (24 commits)
  Added directive-parser and tests for a content-check of a parsed configitem
  Fixed configitem_move, first parsing tests pass now
  FIX: Remove llist_move again and put a note to list_relocate, add test
  WIP: add config_lookup skeleton
  filedescriptor fixup for new copy func in cuckoo
  add a custom copy function to the cuckoo hash
  fixes after the cuckoo update in filedescriptor.c
  Cuckoo hash update
  Added two very simple tests for configitem
  Typo fix
  Fix for section-parser
  added section part to parser
  parser improvements, compiles now
  added CONFIG_SYNTAX errors
  typo fix and redundant comment removal
  add configitem and configentry to the build system
  give the charsets for config keys some constants
  fix to make parser mockup compileable, little simplified
  WIP: started low-level parser
  more functional mockup of the configitem bootstrap
  ...

Conflicts:

	src/backend/config.c
	src/backend/config.h
	src/backend/config_lookup.c
	src/backend/config_lookup.h
	src/backend/configitem.c
	src/backend/configitem.h
	src/backend/filedescriptor.c
	src/lib/cuckoo.c
	src/lib/cuckoo.h
	tests/22config_highlevel.tests
	tests/backend/test-config.c
2008-09-06 13:18:29 +02:00
Christian Thaeter
a1bd3ee1f5 use psplay trees for the filedescriptor registry 2008-09-06 12:41:03 +02:00
Christian Thaeter
c3e2941eb8 some machinery for registering and retrieving defaults
* let config_setdefault() take a complete configline instead key:value pair
2008-09-06 12:40:32 +02:00
Christian Thaeter
1dca87271f ConfigLookup working (for now)
added the missing unimplemented function, fixed some prototypes,
some cosmetics. Barely tested, no documentation yet.
2008-09-06 12:40:20 +02:00
Christian Thaeter
964d34ba5b split tests for the config subsystem into lowlevel and highlevel part 2008-09-06 12:40:19 +02:00
Christian Thaeter
a55c122cc3 Fixed configitem_move, first parsing tests pass now 2008-09-06 12:40:19 +02:00
Simeon Voelkel
33297325cc Added two very simple tests for configitem 2008-09-06 12:40:19 +02:00
Christian Thaeter
0d0b9fa34e Merge branch 'library' into backend
* library: (78 commits)
  Doxyfile update
  small note annd cosmetics for safeclib
  test.h cosmetic, add a 'tests' nobug flag, give diagnostics
  add psplay_delete_node and psplay_delete_key functions
  Probabilistic Splay Tree implementation
  Probabilistic Splay Tree implementation
  WIP: Cuckoo hash update, leave it at a insane state
  Add lumiera_tmpbuf_strcat3 for concating up to three strings to safeclib
  FIX: put a note to list_relocate, add test
  Move the resource announce/forget into the rwlock init/destroy
  fix some warnings
  fix name of 'doc' target, remove the OPENGL flag for now
  improved the architecture overview (drawing)
  Fixed hyperactive scroll wheel zoom
  Fixed a bug with body redrawing and added some documentation
  Added some documentation to body and ruler
  Added support for audacity style playback period, and added some
  Added time indication
  improved the scons build to report all missing dependencies instead of stopping at the first one
  add my favorite lumiera logo to the TiddlyWiki page
  ...
2008-09-06 12:27:56 +02:00
Christian Thaeter
d8c0c33eb0 test.h cosmetic, add a 'tests' nobug flag, give diagnostics 2008-09-06 12:24:36 +02:00
Christian Thaeter
bc055ab803 Probabilistic Splay Tree implementation
Generalized an older implementation I already had, the splay formulas need
some improvements. Documentation comes next.
2008-09-06 12:22:43 +02:00
Christian Thaeter
e2b7561c76 FIX: put a note to list_relocate, add test
There was a fatal thinko, llist_relocate NUST NOT be called on a empty
list, the pointers will just point to invaildated memory. This cant be
handled by the llist code. The programmer is responsible to take proper
actions.
2008-09-06 12:07:38 +02:00
Christian Thaeter
6c34fc63f1 Move the resource announce/forget into the rwlock init/destroy 2008-09-06 12:07:38 +02:00
Christian Thaeter
0debd27d89 Merge branch 'master' of git://git.lumiera.org/LUMIERA into library
* 'master' of git://git.lumiera.org/LUMIERA: (80 commits)
  fix some warnings
  fix name of 'doc' target, remove the OPENGL flag for now
  improved the architecture overview (drawing)
  Fixed hyperactive scroll wheel zoom
  Fixed a bug with body redrawing and added some documentation
  Added some documentation to body and ruler
  Added support for audacity style playback period, and added some
  Added time indication
  improved the scons build to report all missing dependencies instead of stopping at the first one
  add my favorite lumiera logo to the TiddlyWiki page
  scons: use Doxygen builder
  makefile typo fix
  disable precompiled headers for now.
  replace the homebrew GCH-builder by a lib solution
  yet more make fixes
  make build work again with SCons 0.96
  preliminary fix for the SCons build for Debian/testing
  automatically set DEBUG when using the (current) NoBug default ALPHA
  Fix build with gcc 4.3
  integrated SVG Icon rendering into the SCons build
  ...
2008-09-06 11:53:16 +02:00
43291cb9cc fix some warnings 2008-09-05 17:01:24 +02:00
Michael Ploujnikov
387ba8c321 find and configure NoBug by using pkg-config 2008-08-30 13:28:24 -04:00
Michael Ploujnikov
8bdab41ea0 factor out -I$(top_srcdir)/src/ to a top-level AM_CPPFLAGS
also remove a related unnecesary comment in src/gui/Makefile.am
2008-08-30 12:05:21 -04:00
Simeon Voelkel
700a7e9645 Added directive-parser and tests for a content-check of a parsed configitem 2008-08-27 11:00:10 +02:00
Christian Thaeter
840303fedf makefile typo fix 2008-08-23 11:39:41 +02:00
616d522ea9 yet more make fixes 2008-08-21 09:58:34 +02:00
4746dcd233 Fix build with gcc 4.3
(Explanation: 4.3 detects when a local typedef redeclares a templated type
 from an enclosing scope. This was never legal anyway)
2008-08-20 15:45:36 +01:00
c5778f1540 Merge from proc (draft imp of pull() call) 2008-08-17 18:35:49 +02:00
749f7a41c6 Landing draft implementation of pull() call 2008-08-17 04:22:46 +02:00
Christian Thaeter
1dc836fc3d Fixed configitem_move, first parsing tests pass now 2008-08-13 10:50:27 +02:00
Christian Thaeter
2f776858ee FIX: Remove llist_move again and put a note to list_relocate, add test
There was a fatal thinko, llist_relocate NUST NOT be called on a empty
list, the pointers will just point to invaildated memory. This cant be
handled by the llist code. The programmer is responsible to take proper
actions.
2008-08-13 09:21:33 +02:00
Simeon Voelkel
a8a186bb93 Added two very simple tests for configitem 2008-08-13 08:35:31 +02:00
Simeon Voelkel
bd2cc4a026 Typo fix 2008-08-13 08:34:44 +02:00
Christian Thaeter
cf3c601a77 Config type for 'words' and some tests 2008-08-10 12:28:02 +02:00
Christian Thaeter
32c1546ec1 Move the resource announce/forget into the rwlock init/destroy 2008-08-10 12:27:47 +02:00
Christian Thaeter
8b901567ed getting strings from the config
a string can be either quoted (single or doublequoted), then the text
between this quotes is returned, quotes are escaped by doubling themself,
no chopping at either end is done,

or not quoted then the the tabs and spaces are chopped from the value
at either end.
2008-08-10 12:26:19 +02:00
Christian Thaeter
3be0d38d73 report syntax error in value instead type error 2008-08-10 12:26:19 +02:00
Christian Thaeter
eb60e71136 few more tests for the config subsystem 2008-08-10 12:26:19 +02:00
Christian Thaeter
962bceec72 high level getter for 'number' type
WIP: doesn't register the default yet, no configfiles yet

just returning env overrides or defaults
2008-08-10 12:26:19 +02:00
Christian Thaeter
b691a9d7bb Simple config init/destroy, beginning of a config-testsuite 2008-08-10 12:26:18 +02:00
Christian Thaeter
0bd886249b throw away the 'references' implementation, we probably don't need it
(could be reincarnated someday later when we find out that we need it)
2008-08-10 12:19:50 +02:00
Christian Thaeter
dde54ec7b0 Adapt the condition implementation to the macro SECTION based approach 2008-08-10 12:19:50 +02:00
Christian Thaeter
d8f59fb722 Simplyfiy resource management
Move the resource announce/forget into the rwlock init/destroy
Move resource announcement/forget into the mutex init/destroy
2008-08-10 12:19:09 +02:00
Christian Thaeter
c11915a4c4 new locking section macros for RWLocks, old acquirer bites the dust 2008-08-10 12:19:09 +02:00
Christian Thaeter
777458741a moved the locking tests from test/locking/ to test/library/ 2008-08-10 12:19:09 +02:00
Christian Thaeter
07f06d0d88 big mutex update, dropped old acquirer
Acquiring mutexes is now wraped in a easy to use MUTEX_SECTION macro.
This scheme will be extended for chained lock propagation soon.

Notes:
 * NoBug resourcemanagement is now part of the lower layer,
   RESOURCE_ENTER/RESOUCE_LEAVE are maintained automatically
 * one must still call RESOURCE_ANNOUNCE/RESOURCE_FORGET, because we want
   to maintain high level information about resources.
 * MUTEX_SECTIONS must not be left with any kind of jump
2008-08-10 12:19:09 +02:00
Christian Thaeter
f5df65b0a1 add a translation function to tmpbuf
tmpbuf_tr takes an input string and 2 sets of characters plus a
default character. It produces a output string with all
characters from the first set translated to the correspondending
character in the 2nd set, similar to the shell 'tr' util.
2008-08-10 12:19:08 +02:00
Christian Thaeter
9826fd180d renamed the uuid to luid
uuid's are somewhat standardized, we use our uid's slightly differently,
so change the name not to be confused with standards.
 * Small fix for luid generation
 * build a 'luidgen' tool which will be used by the interface gen later
 * add emacs vars
 * include the luidgen tool in automake
2008-08-10 12:18:20 +02:00
07975e520f change ConfigSelector to accept arbitrary factory function signatures 2008-08-05 03:46:06 +02:00
29e33e4eb4 generating (wiring) configs now considered final 2008-08-04 05:42:55 +02:00
cf7bd178de WIP further refactorings.
Put nodeoperation.hpp and ConfigSelector in a sub namespace engine::config
2008-08-03 16:47:38 +02:00
847cc9c267 WIP rearranged some headers 2008-07-30 03:56:13 +02:00
276ac8e082 test building a table of factories dealing with the possible configs 2008-07-29 18:03:37 +02:00