optab.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 (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1985 AT&T
* All Rights Reserved
*/
#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.3 */
/* Note: this file created with tabstops set to 4.
*
* Definition of the internal Object Operations Table (OOT).
*/
#include <stdio.h>
#include "wish.h"
#include "but.h"
#include "typetab.h"
#include "ifuncdefs.h"
#include "optabdefs.h"
/* The following static char's are used to both make this table more
* readable, and also to save memory, since in many cases the same
* labels will appear for different objects, and this way they will
* be shared
*/
/* these are for most normal objects */
static char Op_null[] = "";
static char Op_open[] = "OPEN";
static char Op_cp[] = "COPY";
static char Op_pr[] = "PRINT";
static char Op_rn[] = "RENAME";
static char Op_mv[] = "MOVE";
static char Op_unsc[] = "UNSCRAMBLE";
static char Op_sc[] = "SCRAMBLE";
static char Op_unrm[] = "UNDELETE";
static char Op_rm[] = "DELETE";
/* these define null and illegal operations */
/* these are specific to directories */
/** To save space, common internal operations are assigned static vars to be
** used in the table, thus reducing table size by about a factor of 2.
**/
/** general operations which can apply to most objects **/
};
};
};
};
};
};
};
};
};
/** operations pertaining to directories **/
/** operations pertaining to ascii files**/
struct operation Ascii_open =
/** operations pertaining to menu objects */
/** operations pertaining to text objects */
/** operations pertaining to form objects */
/** operations pertaining to executable objects */
/*** IMPORTANT NOTE: The entries in this table must be in the same
*** order as the entries in the Object Parts Table (partab.c),
*** because that is used as an indexing mechanism into this table!
***/
/** DIRECTORY **/
{
},
/** ASCII **/
{
},
/** MENU **/
{
&Obj_unrm,
},
/** FORM **/
{
&Obj_unrm,
},
/** TEXT **/
{
},
/** EXECUTABLE **/
{
},
/** TRANSFER **/
{
},
/** UNKNOWN **/
{
},
};