On 9/19/06, Roberto Spadim <[EMAIL PROTECTED]> wrote:
> could we put in ./configure script to build owfs something like
> --php-suffix=OW_
>
> or something like it?
> the default could be
> ./configure --php-suffix=
> if we want with OW_ we should use:
> ./configure --php-suffix=OW_
>
> :D i'm using init today, but is very ugly :( OW_init could be more
> pretty and is <library>_<function>

Here's another option, add ow_* functions to call the current function
set in ow.i. Notify users that the current functions are going away in
3 months (or some period.) Change the existing perl, php, python and
tcl bindings to use the new ow_* functions. And possibly add print
statements to stderr which show a depreciation warning message
whenever someone calls into the old ow.i functions. Something like:

[EMAIL PROTECTED]:~/src/owfs/module/swig> diff ow.i ow.i.experiment
30a31,34
> char *ow_version( ) {
>     return version();
> }
>
40a45,49
> int ow_init(const char *dev) {
>     return init(dev);
> }
>
>
55a65,69
> int ow_put(const char *path, const char *value) {
>     return put(path, value);
> }
>
>
114a129,134
> char * ow_get(const char * path) {
>     return get(path);
> }
>
>
>
120a141,145
> void ow_finish(void) {
>     finish();
> }
>
>
130a156,161
> extern char *ow_version( );
> extern int ow_init( const char * dev ) ;
> extern char *ow_get( const char * path ) ;
> extern int ow_put( const char * path, const char * value ) ;
> extern void ow_finish( void ) ;
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to