From 364fee59834173c002336874e8e0d12d36dc786e Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Mon, 25 Feb 2008 19:03:59 -0600 Subject: [PATCH] WIP --- Region.C | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Region.C b/Region.C index 7963c52..df8a5d0 100644 --- a/Region.C +++ b/Region.C @@ -50,6 +50,31 @@ static Fl_Color fl_invert_color ( Fl_Color c ) } +#if 0 +/* perhaps use map? */ +map_PRIM ( set ) +{ +/* if ( narg % 2 != 0 ) */ +/* printf( "invalid number of arguments\n" ); */ + + int id = atoi( arg ); + + map_ARG_NEXT( arg, end ); + + Logable *l = Loggable::find( id ); + + char **sa = malloc( sizeof( char * ) * narg + 1 ); + + for ( int i = 0; i < narg; ++i ) + sa[ i ] = strdup( map_ARG_NEXT( arg, end ) ); + + l->set( sa ); + + map_RESULT( "" ); +} +#endif + + void Region::init ( void ) {