You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Hyde <bh...@gensym.com> on 1998/03/13 19:59:12 UTC
Things that might be static
These are the text symbols that are external, but not used
across file boundries nor declared API_EXPORT.
AMCSocketCleanup
AMCSocketInitialize
add_file_conf
add_module
add_named_module
add_per_dir_conf
add_per_url_conf
ap__new_connection
ap_execve_is_not_here
basic_http_header
bytes_in_block_list
check_alarm
check_cmd_context
check_serverpath
check_symlinks
child_main
clear_module_list
core_translate
create_connection_config
create_core_dir_config
create_core_server_config
create_default_per_dir_config
create_empty_config
create_server_config
default_handler
detach
directory_walk
do_nothing
file_walk
find_command
find_command_in_modules
find_linked_module
fixup_virtual_hosts
force_library_loading
free_blocks
get_gmtoff
get_mime_headers
get_module_config
get_path_info
handle_command
init_config_globals
init_server_config
init_suexec
internal_internal_redirect
invoke_cmd
just_die
location_walk
main
make_sub_request
malloc_block
merge_core_dir_configs
merge_core_server_configs
merge_server_configs
new_block
open_error_log
open_piped_log
os_is_not_here
parse_uri_components
plustospace
process_command_config
process_request_internal
proxy_c2hex
proxy_del_header
read_request_line
reinit_scoreboard
rename_original_env
reopen_scoreboard
require
satisfy
send_header_field
server_root_relative
set_flag_slot
set_keepalive
set_module_config
set_signals
set_string_slot
show_overrides
sig_coredump
spacetoplus
standalone_main
start_restart
start_shutdown
timeout
tm2sec
unload_file
unload_module
usage
Dat's the result of this script:
---
#!/bin/csh -f
set TMP = /tmp/tt
# Make a list of all symbols that are "U" and "T"
nm `find . -name '*.a' -print` \
| grep ' [UT] ' \
| sed 's/^[0-9a-f]* *//' \
| sort +1 \
| uniq \
> $TMP.tu
# Make a list of all the symbols that are "T" but not "U"
(cat $TMP.tu; grep 'T ' $TMP.tu) \
| sed 's/[TU] //' \
| sort \
| uniq -c \
| sed -n '/ 2 /s/^ *2 *_//p' \
> $TMP.t-u
# Make _rough_ list of all that are API_EXPORT
find . -name '*.c' -exec grep API_EXPORT '{}' \; \
| sed -n \
-e 's/^[^)]*) *//' \
-e 's/ *(.*$//' \
-e '/^[a-zA-Z]/p' \
> $TMP.x
# Make these static?
cat $TMP.t-u $TMP.t-u $TMP.x \
| sort \
| uniq -c \
| sed -n '/ 2 /s/ *2 *//p' \
| tee $TMP.t-ux
# rm -rf $TMP.{tu,t-u,x,t-ux}
Re: Things that might be static
Posted by Alexei Kosut <ak...@leland.Stanford.EDU>.
On Fri, 13 Mar 1998, Dean Gaudet wrote:
> I've noticed a bunch of things that are declared API_EXPORT in a header
> file but DEFINED without the API_EXPORT. I'm amazed that the compiler
> lets you get away with this, but perhaps I shouldn't be.
Hmm. It shouldn't. I mean, last I checked, VC++ will scream and complain
if you do this. It could be that no one's compiled the server under
Windows recently...
However, add_module and add_named_module, the two I mentioned, have an
API_EXPORT both in their header file, http_config.h, and when they are
declared in http_config.c.
-- Alexei Kosut <ak...@stanford.edu> <http://www.stanford.edu/~akosut/>
Stanford University, Class of 2001 * Apache <http://www.apache.org> *
Re: Things that might be static
Posted by Dean Gaudet <dg...@arctic.org>.
I remember fixing a few, I forget which, that definately were being used.
It was in the last couple weeks.
Dean
On Fri, 13 Mar 1998, Marc Slemko wrote:
> On Fri, 13 Mar 1998, Dean Gaudet wrote:
>
> > I've noticed a bunch of things that are declared API_EXPORT in a header
> > file but DEFINED without the API_EXPORT. I'm amazed that the compiler
> > lets you get away with this, but perhaps I shouldn't be.
>
> Who says it does let you get away with it?
>
> I wouldn't be suprised if they just weren't really being exported right
> now. Unless they are things that have to be or it won't work.
>
> >
> > Dean
> >
> > On Fri, 13 Mar 1998, Alexei Kosut wrote:
> >
> > > On Fri, 13 Mar 1998, Ben Hyde wrote:
> > >
> > > > These are the text symbols that are external, but not used
> > > > across file boundries nor declared API_EXPORT.
> > > >
> > > > add_module
> > > > add_named_module
> > >
> > > I suspect you should check your script; these two are very definitely
> > > declared API_EXPORT, as are, I suspect, some of the others.
> > >
> > > -- Alexei Kosut <ak...@stanford.edu> <http://www.stanford.edu/~akosut/>
> > > Stanford University, Class of 2001 * Apache <http://www.apache.org> *
> > >
> > >
> > >
> > >
> >
>
>
Re: Things that might be static
Posted by Marc Slemko <ma...@worldgate.com>.
On Fri, 13 Mar 1998, Dean Gaudet wrote:
> I've noticed a bunch of things that are declared API_EXPORT in a header
> file but DEFINED without the API_EXPORT. I'm amazed that the compiler
> lets you get away with this, but perhaps I shouldn't be.
Who says it does let you get away with it?
I wouldn't be suprised if they just weren't really being exported right
now. Unless they are things that have to be or it won't work.
>
> Dean
>
> On Fri, 13 Mar 1998, Alexei Kosut wrote:
>
> > On Fri, 13 Mar 1998, Ben Hyde wrote:
> >
> > > These are the text symbols that are external, but not used
> > > across file boundries nor declared API_EXPORT.
> > >
> > > add_module
> > > add_named_module
> >
> > I suspect you should check your script; these two are very definitely
> > declared API_EXPORT, as are, I suspect, some of the others.
> >
> > -- Alexei Kosut <ak...@stanford.edu> <http://www.stanford.edu/~akosut/>
> > Stanford University, Class of 2001 * Apache <http://www.apache.org> *
> >
> >
> >
> >
>
Re: Things that might be static
Posted by Dean Gaudet <dg...@arctic.org>.
I've noticed a bunch of things that are declared API_EXPORT in a header
file but DEFINED without the API_EXPORT. I'm amazed that the compiler
lets you get away with this, but perhaps I shouldn't be.
Dean
On Fri, 13 Mar 1998, Alexei Kosut wrote:
> On Fri, 13 Mar 1998, Ben Hyde wrote:
>
> > These are the text symbols that are external, but not used
> > across file boundries nor declared API_EXPORT.
> >
> > add_module
> > add_named_module
>
> I suspect you should check your script; these two are very definitely
> declared API_EXPORT, as are, I suspect, some of the others.
>
> -- Alexei Kosut <ak...@stanford.edu> <http://www.stanford.edu/~akosut/>
> Stanford University, Class of 2001 * Apache <http://www.apache.org> *
>
>
>
>
Re: Things that might be static
Posted by Alexei Kosut <ak...@leland.Stanford.EDU>.
On Fri, 13 Mar 1998, Ben Hyde wrote:
> These are the text symbols that are external, but not used
> across file boundries nor declared API_EXPORT.
>
> add_module
> add_named_module
I suspect you should check your script; these two are very definitely
declared API_EXPORT, as are, I suspect, some of the others.
-- Alexei Kosut <ak...@stanford.edu> <http://www.stanford.edu/~akosut/>
Stanford University, Class of 2001 * Apache <http://www.apache.org> *