Skip to content

Commit

Permalink
Cleanup|Fixed: Stray extern "C"
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 25, 2012
1 parent 731cfa6 commit f261259
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 20 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/api/dd_share.h
Expand Up @@ -1827,7 +1827,7 @@ struct polyobj_s;
} ddplayer_t;

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

#endif /* LIBDENG_SHARED_H */
1 change: 0 additions & 1 deletion doomsday/engine/api/dd_types.h
Expand Up @@ -221,4 +221,3 @@ struct material_s;
#include "uri.h"

#endif /* LIBDENG_TYPES_H */

3 changes: 2 additions & 1 deletion doomsday/engine/api/doomsday.h
Expand Up @@ -777,6 +777,7 @@ boolean M_IsStringValidFloat(const char* str);
///@}

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

#endif /* LIBDENG_EXPORTS_H */
2 changes: 1 addition & 1 deletion doomsday/engine/api/materialarchive.h
Expand Up @@ -99,7 +99,7 @@ void MaterialArchive_Read(MaterialArchive* arc, int forcedVersion, Reader* reade
///@}

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

#endif // LIBDENG_MATERIALARCHIVE_H
2 changes: 1 addition & 1 deletion doomsday/engine/portable/include/con_busy.h
Expand Up @@ -135,7 +135,7 @@ void BusyTask_End(BusyTask* task);
void BusyTask_ExitWithValue(int result);

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

#endif /// LIBDENG_CONSOLE_BUSY
4 changes: 0 additions & 4 deletions doomsday/engine/portable/include/con_main.h
Expand Up @@ -29,10 +29,6 @@
#ifndef LIBDENG_CONSOLE_MAIN_H
#define LIBDENG_CONSOLE_MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include "dd_share.h"
#include "dd_types.h"
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/include/dd_input.h
Expand Up @@ -300,7 +300,7 @@ void Rend_AllInputDeviceStateVisuals(void);
#endif

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

#endif /* LIBDENG_CORE_INPUT_H */
2 changes: 1 addition & 1 deletion doomsday/engine/portable/include/dd_loop.h
Expand Up @@ -96,7 +96,7 @@ void DD_SetGameLoopExitCode(int code);
int DD_GameLoopExitCode(void);

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

#endif
4 changes: 0 additions & 4 deletions doomsday/engine/portable/include/dd_main.h
Expand Up @@ -29,10 +29,6 @@
#ifndef LIBDENG_MAIN_H
#define LIBDENG_MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

#include "dd_types.h"
#include "dd_plugin.h"
#ifndef __cplusplus // Kludge: these aren't yet C++ compatible
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/include/dd_pinit.h
Expand Up @@ -54,7 +54,7 @@ extern game_import_t gi;
extern game_export_t gx;

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

#endif /* LIBDENG_PORTABLE_INIT_H */
2 changes: 1 addition & 1 deletion doomsday/engine/portable/include/displaymode.h
Expand Up @@ -115,7 +115,7 @@ boolean DisplayMode_IsEqual(const DisplayMode* a, const DisplayMode* b);
int DisplayMode_Change(const DisplayMode* mode, boolean shouldCapture);

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

#endif // LIBDENG_DISPLAYMODE_H
1 change: 1 addition & 0 deletions doomsday/engine/portable/include/r_data.h
Expand Up @@ -35,6 +35,7 @@
#include "thinker.h"
#include "m_nodepile.h"
#include "def_data.h"
#include "textures.h"

struct texture_s;
struct font_s;
Expand Down
6 changes: 3 additions & 3 deletions doomsday/engine/portable/include/textures.h
Expand Up @@ -43,13 +43,13 @@
#ifndef LIBDENG_REFRESH_TEXTURES_H
#define LIBDENG_REFRESH_TEXTURES_H

/// Unique identifier associated with each texture name in the collection.
typedef uint textureid_t;

#include "dd_string.h"
#include "dd_share.h"
#include "uri.h"

/// Unique identifier associated with each texture name in the collection.
typedef uint textureid_t;

/// Special value used to signify an invalid texture id.
#define NOTEXTUREID 0

Expand Down

0 comments on commit f261259

Please sign in to comment.