summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-28 01:49:46 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-28 01:49:46 +0000
commit8a0b6c64ece1761185431cfe1c3c118d702f6787 (patch)
tree8459372287792dab62e4f71b77e3c2cb4270c0ae /apps
parent4c6f9aea5b8d00e44b5c1cae6e27c804dd13589e (diff)
downloadATCD-8a0b6c64ece1761185431cfe1c3c118d702f6787.tar.gz
.
Diffstat (limited to 'apps')
-rw-r--r--apps/gperf/ChangeLog5
-rw-r--r--apps/gperf/Makefile.bor19
-rw-r--r--apps/gperf/src/Key_List.cpp8
-rw-r--r--apps/gperf/src/Makefile.bor16
4 files changed, 44 insertions, 4 deletions
diff --git a/apps/gperf/ChangeLog b/apps/gperf/ChangeLog
index c15c5585108..5dcdb39e2b2 100644
--- a/apps/gperf/ChangeLog
+++ b/apps/gperf/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jun 27 20:40:30 1999 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
+
+ * src/Key_List.cpp: Added some initializers to keep EGCS from
+ complaining.
+
Wed Jun 23 07:24:58 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
* src/Key_List.cpp (output_hash_function): Use conditional
diff --git a/apps/gperf/Makefile.bor b/apps/gperf/Makefile.bor
new file mode 100644
index 00000000000..0105cbd3418
--- /dev/null
+++ b/apps/gperf/Makefile.bor
@@ -0,0 +1,19 @@
+
+!ifdef DEBUG
+DEBUG_FLAG = -DDEBUG
+!endif
+
+!ifdef STATIC
+STATIC_FLAG = -DSTATIC
+!endif
+
+!ifdef PASCAL
+PASCAL_FLAG = -DPASCAL
+!endif
+
+FLAGS = $(DEBUG_FLAG) $(STATIC_FLAG) $(PASCAL_FLAG)
+
+all:
+ cd $(ACE_ROOT)\apps\gperf\src
+ $(MAKE) -f Makefile.bor $(FLAGS)
+
diff --git a/apps/gperf/src/Key_List.cpp b/apps/gperf/src/Key_List.cpp
index afb26d5d5fd..f1e27daeeff 100644
--- a/apps/gperf/src/Key_List.cpp
+++ b/apps/gperf/src/Key_List.cpp
@@ -87,7 +87,7 @@ char *
Key_List::special_input (char delimiter)
{
int size = 80;
- char *buf;
+ char *buf = 0;
ACE_NEW_RETURN (buf,
char[size],
0);
@@ -124,7 +124,7 @@ Key_List::special_input (char delimiter)
{
// Yikes, time to grow the buffer!
- char *temp;
+ char *temp = 0;
ACE_NEW_RETURN (temp,
char[size *= 2],
0);
@@ -1317,12 +1317,12 @@ Key_List::output_lookup_array (void)
{
const int DEFAULT_VALUE = -1;
- Duplicate_Entry *duplicates;
+ Duplicate_Entry *duplicates = 0;
ACE_NEW_RETURN (duplicates,
Duplicate_Entry[total_duplicates],
-1);
- int *lookup_array;
+ int *lookup_array = 0;
ACE_NEW_RETURN (lookup_array,
int[max_hash_value + 1],
-1);
diff --git a/apps/gperf/src/Makefile.bor b/apps/gperf/src/Makefile.bor
new file mode 100644
index 00000000000..1dd4621ee90
--- /dev/null
+++ b/apps/gperf/src/Makefile.bor
@@ -0,0 +1,16 @@
+
+NAME = gperf
+OBJFILES = \
+ $(OBJDIR)\Options.obj \
+ $(OBJDIR)\Iterator.obj \
+ $(OBJDIR)\Gen_Perf.obj \
+ $(OBJDIR)\Key_List.obj \
+ $(OBJDIR)\List_Node.obj \
+ $(OBJDIR)\Hash_Table.obj \
+ $(OBJDIR)\Bool_Array.obj \
+ $(OBJDIR)\Vectors.obj \
+ $(OBJDIR)\Version.obj \
+ $(OBJDIR)\gperf.obj
+BINDIR=$(ACE_ROOT)\bin
+!include <$(ACE_ROOT)\apps\build.bor>
+