getval.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <curses.h>
#include "wish.h"
#include "token.h"
#include "winp.h"
#include "form.h"
#include "fm_mn_par.h"
#include "objform.h"
#include "var_arrays.h"
#include "terror.h"
#include "eval.h"
#include "ctl.h"
#include "moremacros.h"
#include "interrupt.h"
extern void intr_handler();
void part_expand();
void set_def();
extern int EV_retcode;
#define NONE 0
#define BQMODE 1
#define DQMODE 2
void evalattr();
/*
** Evaluate one of the single occurrence attributes.
*/
/* Les: replace with MACRO
char *
sing_eval(fm_mn, fldtype)
struct fm_mn *fm_mn;
int fldtype;
{
char *fld_eval();
return(fld_eval(&fm_mn->single, fldtype, fm_mn->seqno));
}
*/
/*
** Evaluate one of the multi-occurrence attributes.
*/
/* Les: replace with 1 line function
char *
multi_eval(fm_mn, fldno, fldtype)
struct fm_mn *fm_mn;
int fldno, fldtype;
{
char *fld_eval();
return(fld_eval(fm_mn->multi + fldno, fldtype, fm_mn->seqno));
}
*/
/*
** Evaluate one attribute based on a seqno.
*/
/* only called within this file */
char *
int fldtype;
int seqno;
{
char *eval_string();
int flags;
/* if this type of descriptor can ever be interrupted, then
update the interrupt structures based on the values for the
current field, if defined else with the inherited values
If interrupts are suppose to be enabled, set up the
interrupt handler.
*/
return (char *)NULL;
{
}
/*
* Decides whether to re_evaluate the attribute.
*/
{
{
else
}
}
}
/*
** Forces reevaluation of current value for an attribute.
*/
void
{
}
/*
* SET_SINGLE_DEFAULT will generate a new attribute structure
* and set the "def" portion of the structure to "val" ...
* static)
*/
int index;
char *val;
{
return(FAIL); /* abs k17 */
return(SUCCESS); /* abs k17 */
}
void
char *str;
{
}
/*
** Set current value of an attribute (only used in "value" field of
** form).
*/
void
char *str;
{
else
}
}
/*
** Set current value of an attribute (only used in "text" objects)
*/
void
register int desctype;
char *str;
{
else
}
}
/*
** Get default value of an multi-eval attribute
*/
char *
{
}
/*
** Get define value of an sing-eval attribute
*/
char *
register int fldtype;
{
}
/*
** Free a list of strings generated by parselist.
*/
char **list;
{
int i;
int lcv;
if (!list)
return;
for (i = 0; i < lcv; i++)
}