1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-06 23:31:28 +02:00

zsh-workers/8843

This commit is contained in:
Tanaka Akira 1999-12-01 18:35:59 +00:00
parent 2c5eaba197
commit a4e44197ae
53 changed files with 534 additions and 485 deletions

View file

@ -99,15 +99,25 @@ C coding style
type of the function, and finally the name of the function with typed type of the function, and finally the name of the function with typed
arguments. These lines must not be indented. The script generating arguments. These lines must not be indented. The script generating
function prototypes and the ansi2knr program depend on this format. function prototypes and the ansi2knr program depend on this format.
If the function is not used outside the file it is defined in, it
should be declared "static"; this keyword goes on the type line,
before the return type.
* Global variable declarations must similarly be preceded by a * Variable declarations must similarly be preceded by a
line containing only "/**/", for the prototype generation script. line containing only "/**/", for the prototype generation script.
The declaration itself should be all on one line (except for multi-line The declaration itself should be all on one line (except for multi-line
initialisers). initialisers).
* Preprocessor directives thst affect the function/variable declarations must
also be preceded by a "/**/" line, so that they get copied into the
prototype lists.
* There are three levels of visibility for a function or variable. It can
be file-local, for which it must be marked with the keyword "static" at
the front of the declaration. It can be visible to other object files in
the same module, for which it requires no extra keyword. Or it can be
made available to the entire program (including other dynamically loaded
modules), for which it must be marked with the pseudo-keyword "mod_export"
at the front of the declaration. Symbols should have the least visibility
possible.
* Leave a blank line between the declarations and statements in a compound * Leave a blank line between the declarations and statements in a compound
statement, if both are present. Use blank lines elsewhere to separate statement, if both are present. Use blank lines elsewhere to separate
groups of statements in the interests of clarity. There should never groups of statements in the interests of clarity. There should never
@ -131,7 +141,7 @@ variables:
- autoparams parameters defined by the module, for autoloading - autoparams parameters defined by the module, for autoloading
- automathfuncs math functions defined by the module, for autoloading - automathfuncs math functions defined by the module, for autoloading
- objects .o files making up this module (*must* be defined) - objects .o files making up this module (*must* be defined)
- proto .pro files for this module (default generated from $objects) - proto .syms files for this module (default generated from $objects)
- headers extra headers for this module (default none) - headers extra headers for this module (default none)
- hdrdeps extra headers on which the .mdh depends (default none) - hdrdeps extra headers on which the .mdh depends (default none)
- otherincs extra headers that are included indirectly (default none) - otherincs extra headers that are included indirectly (default none)

View file

@ -1,5 +1,6 @@
Makefile Makefile
Makemod.in Makemod Makemod.in Makemod
*.export
[_a-zA-Z0-9]*.pro [_a-zA-Z0-9]*.pro
*.epro *.epro
*.syms *.syms

View file

@ -8,5 +8,5 @@ DISTFILES_SRC='
math.c mem.c mkbltnmlst.sh mkmakemod.sh mkmodindex.sh math.c mem.c mkbltnmlst.sh mkmakemod.sh mkmodindex.sh
module.c options.c params.c parse.c pattern.c prompt.c prototypes.h module.c options.c params.c parse.c pattern.c prompt.c prototypes.h
signals.c signals.h subst.c system.h text.c utils.c signals.c signals.h subst.c system.h text.c utils.c
watch.c xmods.conf zsh.h zsh.mdd ztype.h zsh.export watch.c xmods.conf zsh.h zsh.mdd ztype.h
' '

View file

@ -1,5 +1,6 @@
Makefile Makefile
Makefile.in Makefile.in
*.export
so_locations so_locations
*.pro *.pro
*.epro *.epro

View file

Internal server error - The gay git

500

Internal server error

Forgejo version: 9.0.3

@ -65,7 +65,7 @@ NLIST = `cat stamp-modobjs`
LIBZSH = libzsh-$(VERSION).$(DL_EXT) LIBZSH = libzsh-$(VERSION).$(DL_EXT)
NIBZSH = NIBZSH =
ZSH_EXPORT = $(EXPOPT)$(sdir)/zsh.export ZSH_EXPORT = $(EXPOPT)zsh.export
ZSH_NXPORT = ZSH_NXPORT =
ENTRYOBJ = modentry..o ENTRYOBJ = modentry..o
NNTRYOBJ = NNTRYOBJ =
@ -73,7 +73,7 @@ NNTRYOBJ =
LDRUNPATH = LD_RUN_PATH=$(libdir)/zsh LDRUNPATH = LD_RUN_PATH=$(libdir)/zsh
NDRUNPATH = NDRUNPATH =
zsh: $(@L@IBZSH) $(@L@STMP) $(MAIN_OBJS) zsh: $(@L@IBZSH) $(@L@STMP) $(MAIN_OBJS) zsh.export
rm -f $@ rm -f $@
$(@L@DRUNPATH) $(LINK) $(MAIN_OBJS) $(@L@LIST) $(ZSH_@E@XPORT) $(@L@IBZSH) $(LIBS) $(@L@DRUNPATH) $(LINK) $(MAIN_OBJS) $(@L@LIST) $(ZSH_@E@XPORT) $(@L@IBZSH) $(LIBS)
@ -218,7 +218,7 @@ mostlyclean-modules clean-modules distclean-modules realclean-modules: modules.i
# ========== RECURSIVE MAKES ========== # ========== RECURSIVE MAKES ==========
install.modules uninstall.modules \ install.modules uninstall.modules \
modobjs modules headers proto $(MAIN_OBJS): Makemod modobjs modules headers proto $(MAIN_OBJS) zsh.export: Makemod
@$(MAKE) -f Makemod $(MAKEDEFS) $@ @$(MAKE) -f Makemod $(MAKEDEFS) $@