/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2003-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#include "vcwhdr.h"
/* Return a windowing method by its string name.
**
** Written by Kiem-Phong Vo (kpv@research.att.com)
*/
/* List of currently supported windowing methods */
extern Vcwmethod_t _Vcwprefix;
extern Vcwmethod_t _Vcwmirror;
extern Vcwmethod_t _Vcwvote;
{
&_Vcwvote,
0
};
#if __STD_C
#else
char* name;
#endif
{
int i, k;
if(!name)
return NIL(Vcwmethod_t*);
for (i = 0; _Vcwmethods[i]; ++i)
break;
if(name[k] == 0) /* match a prefix */
return _Vcwmethods[i];
}
return NIL(Vcwmethod_t*);
}
#if __STD_C
#else
#endif
{
int i, rv;
if(!walkf)
return -1;
for (i = 0; _Vcwmethods[i]; ++i)
if(rv < 0)
return rv;
}
return 0;
}