Selaa lähdekoodia

Use std C++ header names for includes
Author: jgg
Date: 2002-03-26 07:38:57 GMT
Use std C++ header names for includes

Arch Librarian 22 vuotta sitten
vanhempi
commit
90f057fdde

+ 2 - 2
apt-inst/contrib/extracttar.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: extracttar.cc,v 1.4 2001/09/30 04:06:59 jgg Exp $
+// $Id: extracttar.cc,v 1.5 2002/03/26 07:38:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    Extract a Tar - Tar Extractor
    Extract a Tar - Tar Extractor
@@ -30,7 +30,7 @@
 #include <unistd.h>
 #include <unistd.h>
 #include <signal.h>
 #include <signal.h>
 #include <fcntl.h>
 #include <fcntl.h>
-#include <iostream.h>
+#include <iostream>
 									/*}}}*/
 									/*}}}*/
     
     
 // The on disk header for a tar file.
 // The on disk header for a tar file.

+ 2 - 2
apt-inst/deb/dpkgdb.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: dpkgdb.cc,v 1.4 2001/05/27 23:50:42 jgg Exp $
+// $Id: dpkgdb.cc,v 1.5 2002/03/26 07:38:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    DPKGv1 Database Implemenation
    DPKGv1 Database Implemenation
@@ -31,7 +31,7 @@
 #include <fcntl.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <unistd.h>
 #include <ctype.h>
 #include <ctype.h>
-#include <iostream.h>
+#include <iostream>
 									/*}}}*/
 									/*}}}*/
 
 
 // EraseDir - Erase A Directory						/*{{{*/
 // EraseDir - Erase A Directory						/*{{{*/

+ 2 - 2
apt-inst/extract.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: extract.cc,v 1.3 2001/05/27 23:47:14 jgg Exp $
+// $Id: extract.cc,v 1.4 2002/03/26 07:38:57 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    Archive Extraction Directory Stream
    Archive Extraction Directory Stream
@@ -56,7 +56,7 @@
 #include <unistd.h>
 #include <unistd.h>
 #include <errno.h>
 #include <errno.h>
 #include <dirent.h>
 #include <dirent.h>
-#include <iostream.h>
+#include <iostream>
 									/*}}}*/
 									/*}}}*/
 
 
 static const char *TempExt = "dpkg-tmp";
 static const char *TempExt = "dpkg-tmp";

+ 2 - 2
apt-pkg/algorithms.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: algorithms.cc,v 1.37 2001/12/26 06:47:37 jgg Exp $
+// $Id: algorithms.cc,v 1.38 2002/03/26 07:38:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    Algorithms - A set of misc algorithms
    Algorithms - A set of misc algorithms
@@ -24,7 +24,7 @@
     
     
 #include <apti18n.h>
 #include <apti18n.h>
     
     
-#include <iostream.h>
+#include <iostream>
 									/*}}}*/
 									/*}}}*/
 
 
 pkgProblemResolver *pkgProblemResolver::This = 0;
 pkgProblemResolver *pkgProblemResolver::This = 0;

+ 2 - 2
apt-pkg/contrib/error.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: error.cc,v 1.10 2001/05/07 05:28:44 jgg Exp $
+// $Id: error.cc,v 1.11 2002/03/26 07:38:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
    
    
    Global Erorr Class - Global error mechanism
    Global Erorr Class - Global error mechanism
@@ -20,7 +20,7 @@
 
 
 #include <apt-pkg/error.h>
 #include <apt-pkg/error.h>
 
 
-#include <iostream.h>
+#include <iostream>
 #include <errno.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdio.h>
 #include <string>
 #include <string>

+ 2 - 2
apt-pkg/pkgsystem.h

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: pkgsystem.h,v 1.4 2001/04/29 05:13:51 jgg Exp $
+// $Id: pkgsystem.h,v 1.5 2002/03/26 07:38:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    System - Abstraction for running on different systems.
    System - Abstraction for running on different systems.
@@ -42,7 +42,7 @@
 #endif
 #endif
 
 
 #include <apt-pkg/depcache.h>
 #include <apt-pkg/depcache.h>
-#include <vector.h>
+#include <vector>
     
     
 class pkgPackageManager;
 class pkgPackageManager;
 class pkgVersioningSystem;
 class pkgVersioningSystem;

+ 2 - 2
apt-pkg/sourcelist.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: sourcelist.cc,v 1.21 2002/03/20 05:51:20 jgg Exp $
+// $Id: sourcelist.cc,v 1.22 2002/03/26 07:38:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    List of Sources
    List of Sources
@@ -20,7 +20,7 @@
 
 
 #include <apti18n.h>
 #include <apti18n.h>
 
 
-#include <fstream.h>
+#include <fstream>
 									/*}}}*/
 									/*}}}*/
 
 
 using namespace std;
 using namespace std;

+ 2 - 2
cmdline/apt-cache.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: apt-cache.cc,v 1.57 2002/03/20 05:51:52 jgg Exp $
+// $Id: apt-cache.cc,v 1.58 2002/03/26 07:38:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
    
    
    apt-cache - Manages the cache files
    apt-cache - Manages the cache files
@@ -32,7 +32,7 @@
 #include <apti18n.h>
 #include <apti18n.h>
 
 
 #include <locale.h>
 #include <locale.h>
-#include <iostream.h>
+#include <iostream>
 #include <unistd.h>
 #include <unistd.h>
 #include <errno.h>
 #include <errno.h>
 #include <regex.h>
 #include <regex.h>

+ 2 - 2
cmdline/apt-get.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: apt-get.cc,v 1.115 2002/03/20 05:51:52 jgg Exp $
+// $Id: apt-get.cc,v 1.116 2002/03/26 07:38:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
    
    
    apt-get - Cover for dpkg
    apt-get - Cover for dpkg
@@ -46,7 +46,7 @@
 #include "acqprogress.h"
 #include "acqprogress.h"
 
 
 #include <locale.h>
 #include <locale.h>
-#include <fstream.h>
+#include <fstream>
 #include <termios.h>
 #include <termios.h>
 #include <sys/ioctl.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <sys/stat.h>

+ 2 - 2
cmdline/indexcopy.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: indexcopy.cc,v 1.9 2001/08/18 22:20:40 jgg Exp $
+// $Id: indexcopy.cc,v 1.10 2002/03/26 07:38:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    Index Copying - Aid for copying and verifying the index files
    Index Copying - Aid for copying and verifying the index files
@@ -19,7 +19,7 @@
 #include <apt-pkg/configuration.h>
 #include <apt-pkg/configuration.h>
 #include <apt-pkg/tagfile.h>
 #include <apt-pkg/tagfile.h>
 
 
-#include <iostream.h>
+#include <iostream>
 #include <unistd.h>
 #include <unistd.h>
 #include <sys/stat.h>
 #include <sys/stat.h>
 #include <stdio.h>
 #include <stdio.h>

+ 4 - 3
debian/changelog

@@ -12,14 +12,15 @@ apt (0.5.5) unstable; urgency=low
   * /usr/doc reference in postinst. Closes: #126189
   * /usr/doc reference in postinst. Closes: #126189
   * Doc updates. Closes: #120689
   * Doc updates. Closes: #120689
   * Possible apt-cache segfault. Closes: #120311, #118431, #117915, #135295,
   * Possible apt-cache segfault. Closes: #120311, #118431, #117915, #135295,
-          #131062
+          #131062, #136749
   * Print special message for EAI_AGAIN. Closes: #131397
   * Print special message for EAI_AGAIN. Closes: #131397
   * libapt-pkg-dev needs to bring in the apt-inst library if linking
   * libapt-pkg-dev needs to bring in the apt-inst library if linking
     is to work. Closes: #133943
     is to work. Closes: #133943
   * Typos, Doc Stuff. Closes: #132772, #129970, #123642, #114892, #113786,
   * Typos, Doc Stuff. Closes: #132772, #129970, #123642, #114892, #113786,
-         #109591, #105920, #103678
+         #109591, #105920, #103678, #139752, #138186, #138054	 
   * Fix possibility for tag file parsing to fail in some unlikely situations.
   * Fix possibility for tag file parsing to fail in some unlikely situations.
-    Closes: #139328    
+    Closes: #139328
+  * Use std C++ names for some header files. Closes: #128741
   
   
  -- Randolph Chung <tausq@debian.org>  Tue,  4 Dec 2001 23:26:42 -0800
  -- Randolph Chung <tausq@debian.org>  Tue,  4 Dec 2001 23:26:42 -0800
 
 

+ 3 - 3
test/versiontest.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: versiontest.cc,v 1.2 2001/02/20 07:03:18 jgg Exp $
+// $Id: versiontest.cc,v 1.3 2002/03/26 07:38:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    Version Test - Simple program to run through a file and comare versions.
    Version Test - Simple program to run through a file and comare versions.
@@ -18,8 +18,8 @@
 #include <system.h>
 #include <system.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/version.h>
 #include <apt-pkg/version.h>
-#include <iostream.h>
-#include <fstream.h>
+#include <iostream>
+#include <fstream>
 
 
   static int verrevcmp(const char *val, const char *ref) 
   static int verrevcmp(const char *val, const char *ref) 
 {
 {