Skip to content

Commit

Permalink
Refactor: Post fs_util C++ fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Oct 10, 2012
1 parent 8038b43 commit 2a42b17
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 46 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/engine.pro
Expand Up @@ -505,7 +505,7 @@ SOURCES += \
portable/src/finaleinterpreter.c \
portable/src/fonts.c \
portable/src/fs_main.cpp \
portable/src/fs_util.c \
portable/src/fs_util.cpp \
portable/src/game.cpp \
portable/src/gamemap.c \
portable/src/generators.c \
Expand Down
41 changes: 19 additions & 22 deletions doomsday/engine/portable/include/fs_util.h
@@ -1,29 +1,26 @@
/**\file fs_util.h
*\section License
* License: GPL
* Online License Link: http://www.gnu.org/licenses/gpl.html
/**
* @file fs_util.h
*
*\author Copyright © 2003-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
*\author Copyright © 2006-2012 Daniel Swanson <danij@dengine.net>
* Miscellaneous file system utility routines.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* @ingroup fs
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* @author Copyright &copy; 2003-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
* @author Copyright &copy; 2006-2012 Daniel Swanson <danij@dengine.net>
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
*/

/**
* File System Utility routines.
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
*
* <small>This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. This program is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details. You should have received a copy of the GNU
* General Public License along with this program; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA</small>
*/

#ifndef LIBDENG_FILESYS_UTIL_H
Expand Down
8 changes: 8 additions & 0 deletions doomsday/engine/portable/include/sys_direc.h
Expand Up @@ -31,6 +31,10 @@

#include "dd_types.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct directory_s {
int drive;
filename_t path;
Expand Down Expand Up @@ -123,4 +127,8 @@ boolean Dir_mkpath(const char* path);
*/
boolean Dir_SetCurrent(const char* path);

#ifdef __cplusplus
} // extern "C"
#endif

#endif /* LIBDENG_DIREC_H */
43 changes: 20 additions & 23 deletions doomsday/engine/portable/src/fs_util.cpp
@@ -1,29 +1,26 @@
/**\file fs_util.c
*\section License
* License: GPL
* Online License Link: http://www.gnu.org/licenses/gpl.html
/**
* @file fs_util.cpp
*
*\author Copyright © 2003-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
*\author Copyright © 2006-2012 Daniel Swanson <danij@dengine.net>
* Miscellaneous file system utility routines.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* @ingroup fs
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* @author Copyright &copy; 2003-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
* @author Copyright &copy; 2006-2012 Daniel Swanson <danij@dengine.net>
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
*/

/**
* File System Utility Routines.
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
*
* <small>This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. This program is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details. You should have received a copy of the GNU
* General Public License along with this program; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA</small>
*/

#ifdef WIN32
Expand All @@ -36,7 +33,7 @@
# include <unistd.h>
#endif

#include <ctype.h>
#include <cctype>
#include <sys/types.h>
#include <sys/stat.h>

Expand Down

0 comments on commit 2a42b17

Please sign in to comment.