* printcompctlp
@ 1996-12-24 11:29 Zefram
0 siblings, 0 replies; only message in thread
From: Zefram @ 1996-12-24 11:29 UTC (permalink / raw)
To: Z Shell workers mailing list
-----BEGIN PGP SIGNED MESSAGE-----
This patch removes some pointless conditional code from compctl and ZLE.
ZLE has no need to do compctl's work for it -- work that it then does
again anyway. This was the last place outside init.c where any code
cared whether some other bit of code was linked in or not.
-zefram
*** Src/Zle/compctl.c 1996/12/22 01:13:39 1.1.1.1
--- Src/Zle/compctl.c 1996/12/24 02:48:24
***************
*** 51,60 ****
static void cc_reassign _((Compctl cc));
static void compctl_process_cc _((char **s, Compctl cc));
static void printcompctl _((char *s, Compctl cc, int printflags));
! #ifdef MODULE
! static
! #endif
! void printcompctlp _((HashNode hn, int printflags));
/* Parse the basic flags for `compctl' */
--- 51,57 ----
static void cc_reassign _((Compctl cc));
static void compctl_process_cc _((char **s, Compctl cc));
static void printcompctl _((char *s, Compctl cc, int printflags));
! static void printcompctlp _((HashNode hn, int printflags));
/* Parse the basic flags for `compctl' */
***************
*** 934,943 ****
showmask = oldshowmask;
}
! #ifdef MODULE
! static
! #endif
! void
printcompctlp(HashNode hn, int printflags)
{
Compctlp ccp = (Compctlp) hn;
--- 931,937 ----
showmask = oldshowmask;
}
! static void
printcompctlp(HashNode hn, int printflags)
{
Compctlp ccp = (Compctlp) hn;
*** Src/Zle/zle_main.c 1996/12/24 02:10:04 1.5
--- Src/Zle/zle_main.c 1996/12/24 02:48:46
***************
*** 1360,1369 ****
/* Compctl Hash Table Functions */
/********************************/
- #ifdef LINKED_XMOD_compctl
- void printcompctlp _((HashNode hn, int printflags));
- #endif
-
/**/
void
createcompctltable(void)
--- 1360,1365 ----
***************
*** 1380,1390 ****
compctltab->disablenode = NULL;
compctltab->enablenode = NULL;
compctltab->freenode = freecompctlp;
- #ifndef LINKED_XMOD_compctl
compctltab->printnode = NULL;
- #else
- compctltab->printnode = printcompctlp;
- #endif
}
/**/
--- 1376,1382 ----
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBMr9IpXD/+HJTpU/hAQEU4AP/WbfTzsOs6TSXorbaZ9/cNx7DGvjvkmcU
0vDJqEYVzzc6cml8lZRGGQAgf3Re/HplO/hYeNbb9IAe+ygCiqLM3qW/ML/LktEB
WOeoXjg6QaBbWTKHhf/MmaUbLK1Fr3cNGG1/IV2pvyrLR/yVaAsqjZO2wv1hkxa6
9HZbZS6splI=
=b7b+
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-12-24 11:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-24 11:29 printcompctlp Zefram
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).