freebsd 4 port
This commit is contained in:
parent
97987cf0d8
commit
ae6ce2638a
@ -1 +1 @@
|
||||
1.0.13
|
||||
1.0.14
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
#ifndef lint
|
||||
static char rcsid[] = "@(#$Id: mh_mail.cpp,v 1.11 2005-11-24 07:16:15 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||
static char rcsid[] = "@(#$Id: mh_mail.cpp,v 1.12 2005-12-07 15:41:50 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <map>
|
||||
#include <sstream>
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
** destructor.
|
||||
*****************************************************************************/
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <list>
|
||||
#include <utility>
|
||||
@ -267,7 +268,7 @@ void Preview::setCurTabProps(const string &fn, const Rcl::Doc &doc)
|
||||
time_t mtime = doc.dmtime.empty() ?
|
||||
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
|
||||
struct tm *tm = localtime(&mtime);
|
||||
strftime(datebuf, 99, "%F %T", tm);
|
||||
strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S", tm);
|
||||
}
|
||||
string tiptxt = doc.url + string("\n");
|
||||
tiptxt += doc.mimetype + " " + string(datebuf) + "\n";
|
||||
|
||||
@ -10,11 +10,12 @@
|
||||
** destructor.
|
||||
*****************************************************************************/
|
||||
|
||||
#include <regex.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <regex.h>
|
||||
|
||||
#include <utility>
|
||||
#ifndef NO_NAMESPACES
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
#ifndef lint
|
||||
static char rcsid[] = "@(#$Id: docseq.cpp,v 1.4 2005-12-05 16:13:12 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||
static char rcsid[] = "@(#$Id: docseq.cpp,v 1.5 2005-12-07 15:41:50 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||
#endif
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "docseq.h"
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#ifndef _UTF8ITER_H_INCLUDED_
|
||||
#define _UTF8ITER_H_INCLUDED_
|
||||
/* @(#$Id: utf8iter.h,v 1.3 2005-03-17 14:02:06 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||
/* @(#$Id: utf8iter.h,v 1.4 2005-12-07 15:41:50 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||
|
||||
/**
|
||||
* A small helper class to iterate over utf8 strings. This is not an
|
||||
@ -137,7 +137,7 @@ class Utf8Iter {
|
||||
}
|
||||
operator string() {
|
||||
if (bad || (!cl && compute_cl() < 0)) {
|
||||
return false;
|
||||
return std::string("");
|
||||
}
|
||||
return s.substr(pos, cl);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user