summaryrefslogtreecommitdiff
path: root/fluid/io/Project_Writer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/io/Project_Writer.cxx')
-rw-r--r--fluid/io/Project_Writer.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/fluid/io/Project_Writer.cxx b/fluid/io/Project_Writer.cxx
index e2f670f8f..f67a877cb 100644
--- a/fluid/io/Project_Writer.cxx
+++ b/fluid/io/Project_Writer.cxx
@@ -41,7 +41,7 @@
is used to implement copy and paste.
\return 0 if the operation failed, 1 if it succeeded
*/
-int fld::io::write_file(Project &proj, const char *filename, int selected_only, bool to_codeview) {
+int write_file(Project &proj, const char *filename, int selected_only, bool to_codeview) {
Project_Writer out(proj);
return out.write_project(filename, selected_only, to_codeview);
}
@@ -49,13 +49,13 @@ int fld::io::write_file(Project &proj, const char *filename, int selected_only,
// ---- Project_Writer ---------------------------------------------- MARK: -
/** \brief Construct local project writer. */
-fld::io::Project_Writer::Project_Writer(Project &proj)
+Project_Writer::Project_Writer(Project &proj)
: proj_(proj)
{
}
/** \brief Release project writer resources. */
-fld::io::Project_Writer::~Project_Writer()
+Project_Writer::~Project_Writer()
{
}
@@ -65,7 +65,7 @@ fld::io::Project_Writer::~Project_Writer()
\param[in] s the filename or 0 for stdout
\return 1 if successful. 0 if the operation failed
*/
-int fld::io::Project_Writer::open_write(const char *s) {
+int Project_Writer::open_write(const char *s) {
if (!s) {
fout = stdout;
} else {
@@ -81,7 +81,7 @@ int fld::io::Project_Writer::open_write(const char *s) {
Don't close, if data was sent to stdout.
\return 1 if succeeded, 0 if fclose failed
*/
-int fld::io::Project_Writer::close_write() {
+int Project_Writer::close_write() {
if (fout != stdout) {
int x = fclose(fout);
fout = stdout;
@@ -97,7 +97,7 @@ int fld::io::Project_Writer::close_write() {
\param[in] sv if set, this file will be used by codeview
\return 0 if the operation failed, 1 if it succeeded
*/
-int fld::io::Project_Writer::write_project(const char *filename, int selected_only, bool sv) {
+int Project_Writer::write_project(const char *filename, int selected_only, bool sv) {
write_codeview_ = sv;
proj_.undo.suspend();
if (!open_write(filename)) {
@@ -148,7 +148,7 @@ int fld::io::Project_Writer::write_project(const char *filename, int selected_on
Write a string to the .fl file, quoting characters if necessary.
\param[in] w NUL terminated text
*/
-void fld::io::Project_Writer::write_word(const char *w) {
+void Project_Writer::write_word(const char *w) {
if (needspace) putc(' ', fout);
needspace = 1;
if (!w || !*w) {fprintf(fout,"{}"); return;}
@@ -186,7 +186,7 @@ void fld::io::Project_Writer::write_word(const char *w) {
unless the format starts with a newline character \\n.
\param[in] format printf style formatting string followed by a list of arguments
*/
-void fld::io::Project_Writer::write_string(const char *format, ...) {
+void Project_Writer::write_string(const char *format, ...) {
va_list args;
va_start(args, format);
if (needspace && *format != '\n') fputc(' ',fout);
@@ -199,7 +199,7 @@ void fld::io::Project_Writer::write_string(const char *format, ...) {
Start a new line in the .fl file and indent it for a given nesting level.
\param[in] n indent level
*/
-void fld::io::Project_Writer::write_indent(int n) {
+void Project_Writer::write_indent(int n) {
fputc('\n',fout);
while (n--) {fputc(' ',fout); fputc(' ',fout);}
needspace = 0;
@@ -208,7 +208,7 @@ void fld::io::Project_Writer::write_indent(int n) {
/**
Write a '{' to the .fl file at the given indenting level.
*/
-void fld::io::Project_Writer::write_open() {
+void Project_Writer::write_open() {
if (needspace) fputc(' ',fout);
fputc('{',fout);
needspace = 0;
@@ -218,7 +218,7 @@ void fld::io::Project_Writer::write_open() {
Write a '}' to the .fl file at the given indenting level.
\param[in] n indent level
*/
-void fld::io::Project_Writer::write_close(int n) {
+void Project_Writer::write_close(int n) {
if (needspace) write_indent(n);
fputc('}',fout);
needspace = 1;