• R/O
  • HTTP
  • SSH
  • HTTPS

pexports: Commit

Windows DLL exported symbols listing utility


Commit MetaInfo

Revisióna504d2bdc72fe19da5c04cdf1fc973d1cd1ae62c (tree)
Tiempo2013-05-30 07:11:14
AutorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Update program identification, via configuration process.

Cambiar Resumen

Diferencia

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,23 @@
11 2013-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
22
3+ Update program identification, via configuration process.
4+
5+ * pexports.c (main): Update identification text; remove references...
6+ (VER_MAJOR, VER_MINOR): ...to these; combine them by substituting...
7+ (PACKAGE_VERSION_STRING): ...this new macro; also amend instructions
8+ for reporting bugs, as directed at URL identified by...
9+ (PACKAGE_BUG_REPORT): ...this additional new macro.
10+
11+ * pexports.h (VER_MAJOR, VER_MINOR): Obsolete macros; delete them.
12+
13+ * Makefile.in (PACKAGE_DEFS): New macro; defined in terms of these...
14+ (PACKAGE_VERSION_STRING, PACKAGE_BUG_REPORT_URL, PACKAGE_BUG_REPORT):
15+ ...these additional new macros, defined by AC_SUBST from configure.ac,
16+ and subsequently propagated to pexports.c, as an addendum to...
17+ (CDEPFLAGS): ...this.
18+
19+2013-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
20+
321 Autoconfiscate.
422
523 * configure.ac Makefile.in: New files.
--- a/Makefile.in
+++ b/Makefile.in
@@ -87,7 +87,10 @@ pexports$(EXEEXT): $(OBJECT_FILES)
8787 # Binary file build rules and dependency tracking.
8888 #
8989 INCLUDES = -I ${srcdir}
90-CDEPFLAGS = -MMD -MP -MF $*.dep $(CPPFLAGS)
90+PACKAGE_BUG_REPORT_URL = PACKAGE_BUG_REPORT='"@PACKAGE_BUGREPORT@"'
91+PACKAGE_VERSION_STRING = PACKAGE_VERSION_STRING='"$(PACKAGE_VERSION)"'
92+PACKAGE_DEFS = -D $(PACKAGE_VERSION_STRING) -D $(PACKAGE_BUG_REPORT_URL)
93+CDEPFLAGS = -MMD -MP -MF $*.dep $(CPPFLAGS) $(PACKAGE_DEFS)
9194 sinclude *.dep
9295
9396 %.$(OBJEXT): %.c
--- a/pexports.c
+++ b/pexports.c
@@ -141,9 +141,9 @@ main(int argc, char *argv[])
141141
142142 if (filename == NULL)
143143 {
144- printf("PExports %d.%d Copyright 1998, Anders Norlander\n"
145- "Changed 1999, Paul Sokolovsky\n"
146- "Changed 2008, Tor Lillqvist\n"
144+ printf("PExports %s; Originally written 1998, Anders Norlander\n"
145+ "Updated 1999, Paul Sokolovsky, 2008, Tor Lillqvist, 2013, Keith Marshall\n"
146+ "Copyright (C) 1998, 1999, 2008, 2013, MinGW.org Project\n\n"
147147 "This program is free software; you may redistribute it under the terms of\n"
148148 "the GNU General Public License. This program has absolutely no warranty.\n"
149149
@@ -152,11 +152,8 @@ main(int argc, char *argv[])
152152 " -o\tprint ordinals\n"
153153 " -p\tset preprocessor program\n"
154154 " -v\tverbose mode\n"
155- "\nReport bugs to anorland@hem2.passagen.se,\n"
156- "Paul.Sokolovsky@technologist.com\n"
157- "or tml@iki.fi\n",
158- VER_MAJOR, VER_MINOR,
159- program_name);
155+ "\nReport bugs as directed at %s\n",
156+ PACKAGE_VERSION_STRING, program_name, PACKAGE_BUG_REPORT);
160157 return 1;
161158 }
162159
--- a/pexports.h
+++ b/pexports.h
@@ -18,9 +18,6 @@
1818
1919 #include "str_tree.h"
2020
21-#define VER_MAJOR 0
22-#define VER_MINOR 44
23-
2421 /* These are needed:
2522 * FIXME: However, I'd really much prefer to see ISO-C99 standard
2623 * types used throughout, in preference to these Micrsoft-inspired
Show on old repository browser