mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 15:01:21 +02:00
22585: fix zsh.exports
This commit is contained in:
parent
1f03591f21
commit
99fa8b90b2
@ -1,5 +1,8 @@
|
||||
2006-08-04 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 22585: makepro.awk, Src/utils.c: zsh.exports was missing
|
||||
VA_ALIST declarations and some multibyte-related stuff.
|
||||
|
||||
* 22584: Frank Terbeck: Completion/Unix/Type/_tar_archive: even
|
||||
GNU tar should complete uncompressed .tar files.
|
||||
|
||||
|
@ -91,6 +91,7 @@ BEGIN {
|
||||
# Handle each declarator.
|
||||
if (match(line, /VA_ALIST/)) {
|
||||
# Already has VARARGS handling.
|
||||
|
||||
# Put parens etc. back
|
||||
gsub(/@[{]/, "((", line)
|
||||
gsub(/@}/, "))", line)
|
||||
@ -105,6 +106,13 @@ BEGIN {
|
||||
if(locality ~ /E/)
|
||||
dtype = "extern " dtype
|
||||
|
||||
if (match(line, /[_0-9A-Za-z]+\(VA_ALIST/))
|
||||
dnam = substr(line, RSTART, RLENGTH-9)
|
||||
|
||||
# If this is exported, add it to the exported symbol list.
|
||||
if (exported)
|
||||
printf "X%s\n", dnam
|
||||
|
||||
printf "%s%s %s\n", locality, dtype, line
|
||||
} else {
|
||||
while(match(line, /^[^,]*,/)) {
|
||||
|
@ -3877,7 +3877,7 @@ mb_width(const char *s)
|
||||
*/
|
||||
|
||||
/**/
|
||||
int
|
||||
mod_export int
|
||||
mb_metacharlenconv(const char *s, wint_t *wcp)
|
||||
{
|
||||
char inchar;
|
||||
@ -3980,7 +3980,7 @@ mb_metastrlen(char *ptr)
|
||||
/* Simple replacement for mb_metacharlenconv */
|
||||
|
||||
/**/
|
||||
int
|
||||
mod_export int
|
||||
metacharlenconv(char *x, int *c)
|
||||
{
|
||||
if (*x == Meta) {
|
||||
|
Loading…
Reference in New Issue
Block a user