#include "spice.h"
#include "cpstd.h"
#include "suffix.h"
Go to the source code of this file.
Definition at line 181 of file wlist.c.
struct wordlist * wl_prev
struct wordlist * wl_next
Definition at line 134 of file wlist.c.
struct wordlist * wl_next
Definition at line 62 of file wlist.c.
68 for (wl = wlist; wl; wl = wl->
wl_next) {
74 w->wl_next->wl_prev = w;
struct wordlist * wl_next
Definition at line 222 of file wlist.c.
229 for (tw = wl; tw; tw = tw->
wl_next)
234 (void) strcat(buf, wl->
wl_word);
236 (void) strcat(buf,
" ");
static char buf[MAXPROMPT]
struct wordlist * wl_next
Definition at line 43 of file wlist.c.
49 for (wl = wlist; wl; wl = nw) {
struct wordlist * wl_next
Definition at line 26 of file wlist.c.
33 for (wl = wlist; wl; wl = wl->
wl_next)
struct wordlist * wl_next
Definition at line 159 of file wlist.c.
167 v = (
char **)
tmalloc((len + 1) *
sizeof (
char **));
168 for (i = 0; i < len; i++) {
int wl_length(wordlist *wlist)
struct wordlist * wl_next
Definition at line 249 of file wlist.c.
256 while ((i-- > 0) && ww->
wl_next)
struct wordlist * wl_next
void wl_print |
( |
wordlist * |
wlist, |
|
|
FILE * |
fp |
|
) |
| |
Definition at line 114 of file wlist.c.
121 for (wl = wlist; wl; wl = wl->
wl_next) {
124 (void) putc(
' ', fp);
struct wordlist * wl_next
Definition at line 307 of file wlist.c.
323 while (wl && (low > 0)) {
333 while (tt && (up > 0)) {
wordlist * wl_reverse(wordlist *wl)
void wl_free(wordlist *wlist)
struct wordlist * wl_prev
struct wordlist * wl_next
Definition at line 201 of file wlist.c.
207 for (w = wl; ; w = t) {
struct wordlist * wl_prev
struct wordlist * wl_next
Definition at line 266 of file wlist.c.
278 stuff = (
char **)
tmalloc(i *
sizeof (
char *));
279 for (i = 0, ww = wl; ww; i++, ww = ww->
wl_next)
280 stuff[i] = ww->wl_word;
281 qsort((
char *) stuff, i,
sizeof (
char *),
283 (
int(*)(
const void*,
const void*))
wlcomp);
287 for (i = 0, ww = wl; ww; i++, ww = ww->
wl_next)
288 ww->wl_word = stuff[i];
struct wordlist * wl_next
Definition at line 89 of file wlist.c.
struct wordlist * wl_prev
struct wordlist * wl_next
static int wlcomp |
( |
char ** |
s, |
|
|
char ** |
t |
|
) |
| |
|
static |
Definition at line 295 of file wlist.c.
299 return (strcmp(*
s, *
t));