annotate lib-src/leditcfns.c @ 28350:51fbfd80a45f

(MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS. (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET. (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX. (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P. (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P. (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX. (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE. (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE. (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL. (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 27 Mar 2000 12:49:02 +0000
parents da530eb93c1a
children 695cf19ef79e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 #include <sgtty.h>
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 #include <signal.h>
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3 #define STRLEN 100
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4 static char str[STRLEN+1] = "%?emacs"; /* extra char for the null */
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6 switch_to_proc(){
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 char *ptr = str;
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 while (*ptr) ioctl(0, TIOCSTI, ptr++);
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 ioctl(0, TIOCSTI, "\n");
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10 kill(getpid(), SIGTSTP);
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11 }
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 set_proc_str(ptr) char *ptr; {
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14 if (strlen(ptr) <= STRLEN)
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15 strcpy(str, ptr);
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16 else
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17 printf("string too long for set-proc-str: %s\n", ptr);
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
18 }