Lines Matching +defs:variable +defs:value
271 * was to assign "c" to an unsigned int variable...
471 printf("usage: send %s <value|option>\n", cmd);
472 printf("\"value\" must be from 0 to 255\n");
509 fprintf(stderr, "'%s': bad value ('send %s ?' for help).\n",
671 int *variable;
853 if (c->variable) {
854 *c->variable = !*c->variable; /* invert it */
856 printf("%s %s.\n", *c->variable? "Will" : "Won't",
940 int value;
969 if (c->variable) {
971 *c->variable = 1;
973 *c->variable = 0;
979 printf("%s %s.\n", *c->variable? "Will" : "Won't",
997 value = special(argv[2]);
999 value = _POSIX_VDISABLE;
1001 *(ct->charp) = (cc_t)value;
1045 if (c->variable) {
1046 *c->variable = 0;
1048 printf("%s %s.\n", *c->variable? "Will" : "Won't",
1240 #define dotog(tl) if (tl->variable && tl->actionexplanation) { \
1241 if (*tl->variable) { \
1542 { "define", "Define an environment variable",
1544 { "undefine", "Undefine an environment variable",
1546 { "export", "Mark an environment variable for automatic export",
1548 { "unexport", "Don't mark an environment variable for automatic export",
1550 { "send", "Send an environment variable", env_send, 1 },
1616 unsigned char *var; /* pointer to variable name */
1617 unsigned char *value; /* pointer to variable value */
1619 int welldefined; /* A well defined variable */
1653 * Special case for DISPLAY variable. If it is ":0.0" or
1658 && ((*ep->value == ':')
1659 || (strncmp(ep->value, "unix:", 5) == 0))) {
1661 char *cp2 = strchr(ep->value, ':');
1667 free(ep->value);
1668 ep->value = cp;
1672 * USER with the value from LOGNAME. By default, we
1673 * don't export the USER variable.
1676 env_define("USER", ep->value);
1684 env_define(const char *var, char *value)
1691 if (ep->value)
1692 free(ep->value);
1704 ep->value = strdup(value);
1719 if (ep->value)
1720 free(ep->value);
1760 fprintf(stderr, "Cannot send '%s': variable not defined\n",
1777 ep->var, ep->value);
1807 return ep->value;