Lines Matching defs:set
46 /* may only be set by typeset() just before call to array_index_calc() */
65 * assume caller has allocated and set up e->loc
456 /* set variable to string value */
509 /* set variable to integer */
536 /* XXX is it possible for ISSET to be set and val.s to be NULL? */
757 * lookup variable (according to (set&LOCAL)), set its attributes
759 * UCASEV_AL), and optionally set its value if an assignment.
762 typeset(const char *var, uint32_t set, uint32_t clr, int field, int base)
764 return (vtypeset(NULL, var, set, clr, field, base));
767 vtypeset(int *ep, const char *var, uint32_t set, uint32_t clr,
781 if ((set & (ARRAY | ASSOC)) == ASSOC) {
783 set &= ~(ARRAY | ASSOC);
810 if (set & IMPORT) {
825 } else if (set & IMPORT) {
917 vp = (set & LOCAL) ? local(tvar, tobool(set & LOCAL_COPY)) :
939 set &= ~(LOCAL|LOCAL_COPY);
944 * only allow export and readonly flag to be set; AT&T ksh
949 (val || clr || (set & ~(EXPORT | RDONLY))))
954 /* most calls are with set/clr == 0 */
955 if (set | clr) {
959 * XXX if x[0] isn't set, there will be problems: need
968 ((set & (UCASEV_AL|LCASEV|LJUST|RJUST|ZEROFIL)) ||
970 (!(t->flag & INTEGER) && (set & INTEGER)));
982 if (!(t->flag & INTEGER) && (set & INTEGER)) {
986 t->flag = (t->flag | set) & ~clr;
991 if ((set & INTEGER) && base > 0 && (!val || t != vp))
993 if (set & (LJUST|RJUST|ZEROFIL))
1242 static time_t seconds; /* time SECONDS last set */
1243 static mksh_uari_t user_lineno; /* what user set $LINENO to */
1307 * it has been set - don't do anything in this case
1481 * meaning, but OPTARG does not (still set by getopts) and _ is
1482 * also still set in various places. Don't know what AT&T does
1630 /* set (or overwrite, if reset) the array variable var to the values in vals */
1640 /* to get local array, use "local foo; set -A foo" */
1650 /* Note: AT&T ksh allows set -A but not set +A of a read-only var */
1659 /* honour set -o allexport */
1669 /* find out where to set when appending */
1892 /* set */
1941 * this is supposed to set (-a) or unset (+a) the
2042 * are also set in this command
2058 /* set variables and attributes */
2150 * See if the parameter is set (for arrays, if any
2151 * element is set).
2177 * Ignore array elements that aren't set unless there
2178 * are no set elements, in which case the first is
2239 * no set elements.