changeset 5085:6861a84b1d47

[project @ 2004-11-19 03:26:32 by jwe]
author jwe
date Fri, 19 Nov 2004 03:26:32 +0000
parents 252e8c2a492b
children 55f5b61d74b7
files liboctave/ChangeLog liboctave/int16NDArray.cc liboctave/int32NDArray.cc liboctave/int8NDArray.cc liboctave/kpse.cc liboctave/uint16NDArray.cc liboctave/uint32NDArray.cc liboctave/uint8NDArray.cc
diffstat 8 files changed, 17 insertions(+), 39 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Fri Feb 01 21:16:05 2008 -0500
+++ b/liboctave/ChangeLog	Fri Nov 19 03:26:32 2004 +0000
@@ -1,5 +1,19 @@
+2004-11-18  John W. Eaton  <jwe@octave.org>
+
+	* int32NDArray.cc (pow): Delete instantiation.
+	* int16NDArray.cc (pow): Likewise.
+	* int8NDArray.cc (pow): Likewise.
+	* uint32NDArray.cc (pow): Likewise.
+	* uint16NDArray.cc (pow): Likewise.
+	* uint8NDArray.cc (pow): Likewise.
+
 2004-11-17  John W. Eaton  <jwe@octave.org>
 
+	* kpse.cc (str_llist_float, str_llist_add, kpse_var_expand):
+	Now static.
+	(DB_ENVS, DB_HASH_SIZE, DB_NAME, ALIAS_NAME, ALIAS_HASH_SIZE,
+	DEFAULT_TEXMFDBS): Delete unused macros.
+
 	* Array.cc (Array<T>::index): Call generic N-d indexing function
 	if idx_arg is N-d.
 
--- a/liboctave/int16NDArray.cc	Fri Feb 01 21:16:05 2008 -0500
+++ b/liboctave/int16NDArray.cc	Fri Nov 19 03:26:32 2004 +0000
@@ -35,8 +35,6 @@
 
 template class intNDArray<octave_int16>;
 
-template octave_int16 pow (const octave_int16& a, const octave_int16& b);
-
 template
 std::ostream&
 operator << (std::ostream& os, const intNDArray<octave_int16>& a);
--- a/liboctave/int32NDArray.cc	Fri Feb 01 21:16:05 2008 -0500
+++ b/liboctave/int32NDArray.cc	Fri Nov 19 03:26:32 2004 +0000
@@ -35,8 +35,6 @@
 
 template class intNDArray<octave_int32>;
 
-template octave_int32 pow (const octave_int32& a, const octave_int32& b);
-
 template
 std::ostream&
 operator << (std::ostream& os, const intNDArray<octave_int32>& a);
--- a/liboctave/int8NDArray.cc	Fri Feb 01 21:16:05 2008 -0500
+++ b/liboctave/int8NDArray.cc	Fri Nov 19 03:26:32 2004 +0000
@@ -35,8 +35,6 @@
 
 template class intNDArray<octave_int8>;
 
-template octave_int8 pow (const octave_int8& a, const octave_int8& b);
-
 template
 std::ostream&
 operator << (std::ostream& os, const intNDArray<octave_int8>& a);
--- a/liboctave/kpse.cc	Fri Feb 01 21:16:05 2008 -0500
+++ b/liboctave/kpse.cc	Fri Nov 19 03:26:32 2004 +0000
@@ -1652,12 +1652,6 @@
   return c;
 }
 
-/* An external database to avoid filesystem lookups.  */
-
-#ifndef DEFAULT_TEXMFDBS
-#define DEFAULT_TEXMFDBS "/usr/local/share/texmf:/var/tmp/texfonts"
-#endif
-
 /* For each file format, we record the following information.  The main
    thing that is not part of this structure is the environment variable
    lists. They are used directly in tex-file.c. We could incorporate
@@ -1682,8 +1676,6 @@
    Initialized by calls to `kpse_find_file' for `kpse_init_format'.  */
 static kpse_format_info_type kpse_format_info;
 
-#define DB_ENVS "TEXMFDBS"
-
 /* And EXPAND_DEFAULT calls kpse_expand_default on try_path and the
    present info->path.  */
 #define EXPAND_DEFAULT(try_path, source_string) \
@@ -1700,23 +1692,7 @@
 
 static hash_table_type db; /* The hash table for all the ls-R's.  */
 
-/* SMALL: The old size of the hash table was 7603, with the assumption
-   that a minimal ls-R bas about 3500 entries.  But a typical ls-R will
-   be more like double that size.  */
-#ifndef DB_HASH_SIZE
-#define DB_HASH_SIZE 15991
-#endif
-#ifndef DB_NAME
-#define DB_NAME "ls-R"
-#endif
-
 static hash_table_type alias_db;
-#ifndef ALIAS_NAME
-#define ALIAS_NAME "aliases"
-#endif
-#ifndef ALIAS_HASH_SIZE
-#define ALIAS_HASH_SIZE 1009
-#endif
 
 static string_vector db_dir_list;
 
@@ -2448,7 +2424,7 @@
 
 /* Add the new string STR to the end of the list L.  */
 
-void
+static void
 str_llist_add (str_llist_type *l, const std::string& str)
 {
   str_llist_elt_type *e;
@@ -2474,7 +2450,7 @@
    directory, and looking for the file in all the directories in between
    is thus a waste.  */
 
-void
+static void
 str_llist_float (str_llist_type *l, str_llist_elt_type *mover)
 {
   str_llist_elt_type *last_moved, *unmoved;
@@ -2589,7 +2565,7 @@
 /* Maybe we should support some or all of the various shell ${...}
    constructs, especially ${var-value}.  */
 
-std::string
+static std::string
 kpse_var_expand (const std::string& src)
 {
   std::string expansion;
--- a/liboctave/uint16NDArray.cc	Fri Feb 01 21:16:05 2008 -0500
+++ b/liboctave/uint16NDArray.cc	Fri Nov 19 03:26:32 2004 +0000
@@ -35,8 +35,6 @@
 
 template class intNDArray<octave_uint16>;
 
-template octave_uint16 pow (const octave_uint16& a, const octave_uint16& b);
-
 template
 std::ostream&
 operator << (std::ostream& os, const intNDArray<octave_uint16>& a);
--- a/liboctave/uint32NDArray.cc	Fri Feb 01 21:16:05 2008 -0500
+++ b/liboctave/uint32NDArray.cc	Fri Nov 19 03:26:32 2004 +0000
@@ -35,8 +35,6 @@
 
 template class intNDArray<octave_uint32>;
 
-template octave_uint32 pow (const octave_uint32& a, const octave_uint32& b);
-
 template
 std::ostream&
 operator << (std::ostream& os, const intNDArray<octave_uint32>& a);
--- a/liboctave/uint8NDArray.cc	Fri Feb 01 21:16:05 2008 -0500
+++ b/liboctave/uint8NDArray.cc	Fri Nov 19 03:26:32 2004 +0000
@@ -35,8 +35,6 @@
 
 template class intNDArray<octave_uint8>;
 
-template octave_uint8 pow (const octave_uint8& a, const octave_uint8& b);
-
 template
 std::ostream&
 operator << (std::ostream& os, const intNDArray<octave_uint8>& a);