changeset 21752:949cb46e6bdb

use consistent style for deprecated function/class messages
author John W. Eaton <jwe@octave.org>
date Fri, 20 May 2016 10:47:33 -0400
parents b571fc85953f
children be52b94354a3
files liboctave/system/dir-ops.h liboctave/system/file-ops.h liboctave/system/file-stat.h liboctave/system/lo-sysdep.h liboctave/system/mach-info.h liboctave/system/oct-env.h liboctave/system/oct-group.h liboctave/system/oct-passwd.h liboctave/system/oct-time.h liboctave/system/oct-uname.h liboctave/util/cmd-edit.h liboctave/util/cmd-hist.h liboctave/util/oct-glob.h liboctave/util/oct-shlib.h liboctave/util/pathsearch.h liboctave/util/unwind-prot.h liboctave/util/url-transfer.h
diffstat 17 files changed, 51 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/system/dir-ops.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/system/dir-ops.h	Fri May 20 10:47:33 2016 -0400
@@ -97,7 +97,7 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::sys::dir_entry instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::dir_entry' instead")
 typedef octave::sys::dir_entry dir_entry;
 
 #endif
--- a/liboctave/system/file-ops.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/system/file-ops.h	Fri May 20 10:47:33 2016 -0400
@@ -200,45 +200,45 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::sys::file_ops instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::file_ops' instead")
   typedef octave::sys::file_ops file_ops;
 
-OCTAVE_DEPRECATED ("use octave::sys::mkdir instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::mkdir' instead")
 inline int
 octave_mkdir (const std::string& nm, mode_t md)
 {
   return octave::sys::mkdir (nm, md);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::mkdir instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::mkdir' instead")
 inline int
 octave_mkdir (const std::string& nm, mode_t md, std::string& msg)
 {
   return octave::sys::mkdir (nm, md, msg);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::mkfifo instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::mkfifo' instead")
 inline int
 octave_mkfifo (const std::string& nm, mode_t md)
 {
   return octave::sys::mkfifo (nm, md);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::mkfifo instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::mkfifo' instead")
 inline int
 octave_mkfifo (const std::string& nm, mode_t md, std::string& msg)
 {
   return octave::sys::mkfifo (nm, md, msg);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::link instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::link' instead")
 inline int
 octave_link (const std::string& old_name, const std::string& new_name)
 {
   return octave::sys::link (old_name, new_name);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::link instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::link' instead")
 inline int
 octave_link (const std::string& old_name, const std::string& new_name,
              std::string& msg)
@@ -246,14 +246,14 @@
   return octave::sys::link (old_name, new_name, msg);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::symlink instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::symlink' instead")
 inline int
 octave_symlink (const std::string& old_name, const std::string& new_name)
 {
   return octave::sys::symlink (old_name, new_name);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::symlink instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::symlink' instead")
 inline int
 octave_symlink (const std::string& old_name, const std::string& new_name,
                 std::string& msg)
@@ -261,91 +261,91 @@
   return octave::sys::symlink (old_name, new_name, msg);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::readlink instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::readlink' instead")
 inline int
 octave_readlink (const std::string& path, std::string& result)
 {
   return octave::sys::readlink (path, result);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::readlink instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::readlink' instead")
 inline int
 octave_readlink (const std::string& path, std::string& result, std::string& msg)
 {
   return octave::sys::readlink (path, result, msg);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::rename instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::rename' instead")
 inline int
 octave_rename (const std::string& from, const std::string& to)
 {
   return octave::sys::rename (from, to);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::rename instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::rename' instead")
 inline int
 octave_rename (const std::string& from, const std::string& to, std::string& msg)
 {
   return octave::sys::rename (from, to, msg);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::rmdir instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::rmdir' instead")
 inline int
 octave_rmdir (const std::string& nm)
 {
   return octave::sys::rmdir (nm);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::rmdir instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::rmdir' instead")
 inline int
 octave_rmdir (const std::string& nm, std::string& msg)
 {
   return octave::sys::rmdir (nm, msg);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::recursive_rmdir instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::recursive_rmdir' instead")
 inline int
 octave_recursive_rmdir (const std::string& nm)
 {
   return octave::sys::recursive_rmdir (nm);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::recursive_rmdir instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::recursive_rmdir' instead")
 inline int
 octave_recursive_rmdir (const std::string& nm, std::string& msg)
 {
   return octave::sys::recursive_rmdir (nm, msg);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::umask instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::umask' instead")
 inline int
 octave_umask (mode_t md)
 {
   return octave::sys::umask (md);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::unlink instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::unlink' instead")
 inline int
 octave_unlink (const std::string& nm)
 {
   return octave::sys::unlink (nm);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::unlink instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::unlink' instead")
 inline int
 octave_unlink (const std::string& nm, std::string& msg)
 {
   return octave::sys::unlink (nm, msg);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::tempnam instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::tempnam' instead")
 inline std::string
 octave_tempnam (const std::string& dir, const std::string& pfx)
 {
   return octave::sys::tempnam (dir, pfx);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::tempnam instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::tempnam' instead")
 inline std::string
 octave_tempnam (const std::string& dir, const std::string& pfx,
                 std::string& msg)
@@ -353,14 +353,14 @@
   return octave::sys::tempnam (dir, pfx, msg);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::canonicalize_file_name instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::canonicalize_file_name' instead")
 inline std::string
 octave_canonicalize_file_name (const std::string& nm)
 {
   return octave::sys::canonicalize_file_name (nm);
 }
 
-OCTAVE_DEPRECATED ("use octave::sys::canonicalize_file_name instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::canonicalize_file_name' instead")
 inline std::string
 octave_canonicalize_file_name (const std::string& nm, std::string& msg)
 {
--- a/liboctave/system/file-stat.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/system/file-stat.h	Fri May 20 10:47:33 2016 -0400
@@ -321,13 +321,13 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::sys::base_file_stat instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::base_file_stat' instead")
 typedef octave::sys::base_file_stat base_file_stat;
 
-OCTAVE_DEPRECATED ("use octave::sys::file_stat instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::file_stat' instead")
 typedef octave::sys::file_stat file_stat;
 
-OCTAVE_DEPRECATED ("use octave::sys::file_fstat instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::file_fstat' instead")
 typedef octave::sys::file_fstat file_fstat;
 
 #endif
--- a/liboctave/system/lo-sysdep.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/system/lo-sysdep.h	Fri May 20 10:47:33 2016 -0400
@@ -48,14 +48,14 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::sys::getcwd instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::getcwd' instead")
 const auto octave_getcwd = octave::sys::getcwd;
 
-OCTAVE_DEPRECATED ("use octave::sys::chdir instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::chdir' instead")
 const auto octave_chdir = octave::sys::chdir;
 
 #if defined (__WIN32__) && ! defined (__CYGWIN__)
-OCTAVE_DEPRECATED ("use octave::sys:: instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::popen2' instead")
 const auto octave_popen2 = octave::sys::popen2;
 #endif
 
--- a/liboctave/system/mach-info.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/system/mach-info.h	Fri May 20 10:47:33 2016 -0400
@@ -80,7 +80,7 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::mach_info instead")
+OCTAVE_DEPRECATED ("use 'octave::mach_info' instead")
 typedef octave::mach_info oct_mach_info;
 
 #endif
--- a/liboctave/system/oct-env.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/system/oct-env.h	Fri May 20 10:47:33 2016 -0400
@@ -153,7 +153,7 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::sys::env instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::env' instead")
 typedef octave::sys::env octave_env;
 
 #endif
--- a/liboctave/system/oct-group.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/system/oct-group.h	Fri May 20 10:47:33 2016 -0400
@@ -117,7 +117,7 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::sys::group instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::group' instead")
 typedef octave::sys::group octave_group;
 
 #endif
--- a/liboctave/system/oct-passwd.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/system/oct-passwd.h	Fri May 20 10:47:33 2016 -0400
@@ -137,7 +137,7 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::sys::password instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::password' instead")
 typedef octave::sys::password octave_passwd;
 
 #endif
--- a/liboctave/system/oct-time.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/system/oct-time.h	Fri May 20 10:47:33 2016 -0400
@@ -368,19 +368,19 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::sys::time instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::time' instead")
 typedef octave::sys::time octave_time;
 
-OCTAVE_DEPRECATED ("use octave::sys::base_tm instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::base_tm' instead")
 typedef octave::sys::base_tm octave_base_tm;
 
-OCTAVE_DEPRECATED ("use octave::sys::localtime instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::localtime' instead")
 typedef octave::sys::localtime octave_localtime;
 
-OCTAVE_DEPRECATED ("use octave::sys::gmtime instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::gmtime' instead")
 typedef octave::sys::gmtime octave_gmtime;
 
-OCTAVE_DEPRECATED ("use octave::sys::strptime instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::strptime' instead")
 typedef octave::sys::strptime octave_strptime;
 
 #endif
--- a/liboctave/system/oct-uname.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/system/oct-uname.h	Fri May 20 10:47:33 2016 -0400
@@ -96,7 +96,7 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::sys::uname instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::uname' instead")
 typedef octave::sys::uname octave_uname;
 
 #endif
--- a/liboctave/util/cmd-edit.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/util/cmd-edit.h	Fri May 20 10:47:33 2016 -0400
@@ -370,7 +370,7 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::command_editor instead")
+OCTAVE_DEPRECATED ("use 'octave::command_editor' instead")
 typedef octave::command_editor command_editor;
 
 #endif
--- a/liboctave/util/cmd-hist.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/util/cmd-hist.h	Fri May 20 10:47:33 2016 -0400
@@ -235,7 +235,7 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::command_history instead")
+OCTAVE_DEPRECATED ("use 'octave::command_history' instead")
 typedef octave::command_history command_history;
 
 #endif
--- a/liboctave/util/oct-glob.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/util/oct-glob.h	Fri May 20 10:47:33 2016 -0400
@@ -42,10 +42,10 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::sys::fnmatch instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::fnmatch' instead")
 const auto octave_fnmatch = octave::sys::fnmatch;
 
-OCTAVE_DEPRECATED ("use octave::sys::glob instead")
+OCTAVE_DEPRECATED ("use 'octave::sys::glob' instead")
 const auto octave_glob = octave::sys::glob;
 
 #endif
--- a/liboctave/util/oct-shlib.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/util/oct-shlib.h	Fri May 20 10:47:33 2016 -0400
@@ -196,7 +196,7 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::dynamic_library instead")
+OCTAVE_DEPRECATED ("use 'octave::dynamic_library' instead")
 typedef octave::dynamic_library octave_shlib;
 
 #endif
--- a/liboctave/util/pathsearch.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/util/pathsearch.h	Fri May 20 10:47:33 2016 -0400
@@ -175,7 +175,7 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::directory_path instead")
+OCTAVE_DEPRECATED ("use 'octave::directory_path' instead")
 typedef octave::directory_path dir_path;
 
 #endif
--- a/liboctave/util/unwind-prot.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/util/unwind-prot.h	Fri May 20 10:47:33 2016 -0400
@@ -153,10 +153,10 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::unwind_protect instead")
+OCTAVE_DEPRECATED ("use 'octave::unwind_protect' instead")
 typedef octave::unwind_protect unwind_protect;
 
-OCTAVE_DEPRECATED ("use octave::unwind_protect_safe instead")
+OCTAVE_DEPRECATED ("use 'octave::unwind_protect_safe' instead")
 typedef octave::unwind_protect_safe unwind_protect_safe;
 
 #endif
--- a/liboctave/util/url-transfer.h	Thu May 19 18:48:52 2016 -0700
+++ b/liboctave/util/url-transfer.h	Fri May 20 10:47:33 2016 -0400
@@ -291,10 +291,10 @@
 
 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
 
-OCTAVE_DEPRECATED ("use octave::base_url_transfer instead")
+OCTAVE_DEPRECATED ("use 'octave::base_url_transfer' instead")
 typedef octave::base_url_transfer base_url_transfer;
 
-OCTAVE_DEPRECATED ("use octave::url_transfer instead")
+OCTAVE_DEPRECATED ("use 'octave::url_transfer' instead")
 typedef octave::url_transfer url_transfer;
 
 #endif