From: Zefram <zefram@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: printcompctlp
Date: Tue, 24 Dec 1996 11:29:22 +0000 (GMT) [thread overview]
Message-ID: <23519.199612241129@stone.dcs.warwick.ac.uk> (raw)
-----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-----
reply other threads:[~1996-12-24 11:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23519.199612241129@stone.dcs.warwick.ac.uk \
--to=zefram@dcs.warwick.ac.uk \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).