diff options
Diffstat (limited to 'src/action/vs200x/vs200x_solution.c')
-rw-r--r-- | src/action/vs200x/vs200x_solution.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/action/vs200x/vs200x_solution.c b/src/action/vs200x/vs200x_solution.c index 577155e..6578bd4 100644 --- a/src/action/vs200x/vs200x_solution.c +++ b/src/action/vs200x/vs200x_solution.c @@ -1,33 +1,33 @@ -/**
- * \file vs200x_solution.c
- * \brief Visual Studio multiple-version solution generation functions.
- * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
- */
-
-#include <stdlib.h>
-#include "premake.h"
-#include "vs200x.h"
-#include "vs200x_solution.h"
-
-
-/**
- * Create a new output stream for a solution, and make it active for subsequent writes.
- * \param sess The execution session context.
- * \param sln The current solution.
- * \param strm The currently active stream; set with session_set_active_stream().
- * \returns OKAY if successful.
- */
-int vs200x_solution_create(Session sess, Solution sln, Stream strm)
-{
- /* create the solution file */
- const char* filename = solution_get_filename(sln, NULL, ".sln");
- strm = stream_create_file(filename);
- if (!strm)
- {
- return !OKAY;
- }
-
- /* make the stream active for the functions that come after */
- session_set_active_stream(sess, strm);
- return OKAY;
-}
+/** + * \file vs200x_solution.c + * \brief Visual Studio multiple-version solution generation functions. + * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project + */ + +#include <stdlib.h> +#include "premake.h" +#include "vs200x.h" +#include "vs200x_solution.h" + + +/** + * Create a new output stream for a solution, and make it active for subsequent writes. + * \param sess The execution session context. + * \param sln The current solution. + * \param strm The currently active stream; set with session_set_active_stream(). + * \returns OKAY if successful. + */ +int vs200x_solution_create(Session sess, Solution sln, Stream strm) +{ + /* create the solution file */ + const char* filename = solution_get_filename(sln, NULL, ".sln"); + strm = stream_create_file(filename); + if (!strm) + { + return !OKAY; + } + + /* make the stream active for the functions that come after */ + session_set_active_stream(sess, strm); + return OKAY; +} |