summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2009-03-15 21:16:34 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2009-03-15 21:16:34 +0000
commit023b77a1abb294aef53b2f9f1babf464548283e4 (patch)
treef118f5083451be37cd13af675b76f04836e1c114
parent4bcf3e531183b0533baa114b8456d89cdb8ebcd6 (diff)
Fixed some comments and removed obsolete
#define getcwd _getcwd[2] because FLTK 1.3 now uses fl_getcwd(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_Help_View.H6
-rw-r--r--src/Fl_Help_View.cxx5
-rw-r--r--src/filename_absolute.cxx6
3 files changed, 4 insertions, 13 deletions
diff --git a/FL/Fl_Help_View.H b/FL/Fl_Help_View.H
index aff5099c3..628601fb9 100644
--- a/FL/Fl_Help_View.H
+++ b/FL/Fl_Help_View.H
@@ -72,7 +72,7 @@ struct Fl_Help_Block
//
// Fl_Help_Link structure...
//
-/** Definition of a link for the html viewer*/
+/** Definition of a link for the html viewer. */
struct Fl_Help_Link
{
char filename[192], ///< Reference filename
@@ -83,8 +83,6 @@ struct Fl_Help_Link
h; ///< Height of link text
};
-/** Fl_Help_Target structure */
-
/*
* Fl_Help_View font stack opaque implementation
*/
@@ -137,6 +135,8 @@ protected:
Fl_Help_Font_Style elts_[100]; ///< font eletments
};
+/** Fl_Help_Target structure */
+
struct Fl_Help_Target
{
char name[32]; ///< Target name
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index 312d5cbc5..c0780deba 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -71,9 +71,6 @@
#if defined(WIN32) && ! defined(__CYGWIN__)
# include <io.h>
# include <direct.h>
-// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
-// on Windows, which is supposed to be POSIX compliant...
-# define getcwd _getcwd
#else
# include <unistd.h>
#endif // WIN32
@@ -361,7 +358,7 @@ void Fl_Help_View::add_link(const char *n, // I - Name of link
/** Adds a new target to the list. */
void Fl_Help_View::add_target(const char *n, // I - Name of target
- int yy) // I - Y position of target
+ int yy) // I - Y position of target
{
Fl_Help_Target *temp; // New target
diff --git a/src/filename_absolute.cxx b/src/filename_absolute.cxx
index 2a7789e70..d8c293860 100644
--- a/src/filename_absolute.cxx
+++ b/src/filename_absolute.cxx
@@ -38,14 +38,8 @@
#include <ctype.h>
#if defined(WIN32) && !defined(__CYGWIN__)
# include <direct.h>
-// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
-// on Windows, which is supposed to be POSIX compliant...
-# define getcwd _getcwd
#else
# include <unistd.h>
-# ifdef __EMX__
-# define getcwd _getcwd2
-# endif
#endif
#if defined(WIN32) || defined(__EMX__) && !defined(__CYGWIN__)