Commit 49e03ed7 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed compilation problem with postscript files.

parent 859097a5
...@@ -157,7 +157,7 @@ void CnvClassDep::print_html_classtable( int idx) ...@@ -157,7 +157,7 @@ void CnvClassDep::print_html_classtable( int idx)
sprintf( fname, "%s%s_%s_ctree.html", ctx->dir, classlist[idx].volumename, sprintf( fname, "%s%s_%s_ctree.html", ctx->dir, classlist[idx].volumename,
classlist[idx].name); classlist[idx].name);
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
dcli_translate_filename( fname, fname); dcli_translate_filename( fname, fname);
ofstream fp( fname); ofstream fp( fname);
......
...@@ -76,7 +76,7 @@ int CnvWblToHtml::init( char *first) ...@@ -76,7 +76,7 @@ int CnvWblToHtml::init( char *first)
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
strcat( fname, ctx->rw->volume_name); strcat( fname, ctx->rw->volume_name);
strcat( fname, "_index.html"); strcat( fname, "_index.html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
ofstream fp( fname); ofstream fp( fname);
...@@ -84,7 +84,7 @@ int CnvWblToHtml::init( char *first) ...@@ -84,7 +84,7 @@ int CnvWblToHtml::init( char *first)
if ( ctx->setup->group_cnt) { if ( ctx->setup->group_cnt) {
strcpy( gname, CnvCtx::low(ctx->rw->volume_name)); strcpy( gname, CnvCtx::low(ctx->rw->volume_name));
strcat( gname, "_menu_group.html"); strcat( gname, "_menu_group.html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
} }
fp << fp <<
...@@ -128,7 +128,7 @@ int CnvWblToHtml::init( char *first) ...@@ -128,7 +128,7 @@ int CnvWblToHtml::init( char *first)
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
strcat( fname, ctx->rw->volume_name); strcat( fname, ctx->rw->volume_name);
strcat( fname, "_allclasses.jsf"); strcat( fname, "_allclasses.jsf");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
fp_js_all.open( fname); fp_js_all.open( fname);
js_all_first = true; js_all_first = true;
...@@ -141,7 +141,7 @@ int CnvWblToHtml::init( char *first) ...@@ -141,7 +141,7 @@ int CnvWblToHtml::init( char *first)
if ( ctx->setup->group_cnt) { if ( ctx->setup->group_cnt) {
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
strcat( fname, gname); strcat( fname, gname);
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
ofstream fp( fname); ofstream fp( fname);
...@@ -169,7 +169,7 @@ int CnvWblToHtml::init( char *first) ...@@ -169,7 +169,7 @@ int CnvWblToHtml::init( char *first)
// Put index filename in fname // Put index filename in fname
strcpy( fname, ctx->rw->volume_name); strcpy( fname, ctx->rw->volume_name);
strcat( fname, "_index.html"); strcat( fname, "_index.html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
fp << fp <<
"<A HREF=\"" << fname << "\" TARGET=\"_parent\">AllClasses</A>" << endl << "<A HREF=\"" << fname << "\" TARGET=\"_parent\">AllClasses</A>" << endl <<
...@@ -181,7 +181,7 @@ int CnvWblToHtml::init( char *first) ...@@ -181,7 +181,7 @@ int CnvWblToHtml::init( char *first)
strcat( fname, "_group_"); strcat( fname, "_group_");
strcat( fname, ctx->setup->groups[i]); strcat( fname, ctx->setup->groups[i]);
strcat( fname, "_index.html"); strcat( fname, "_index.html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
fp << fp <<
"<A HREF=\"" << fname << "\" TARGET=\"_parent\">" << ctx->setup->groups[i] << "</A>" << endl << "<A HREF=\"" << fname << "\" TARGET=\"_parent\">" << ctx->setup->groups[i] << "</A>" << endl <<
...@@ -201,7 +201,7 @@ int CnvWblToHtml::init( char *first) ...@@ -201,7 +201,7 @@ int CnvWblToHtml::init( char *first)
// Open allclasses file // Open allclasses file
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
strcat( fname, allclasses_name); strcat( fname, allclasses_name);
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
fp_html_index.open( fname); fp_html_index.open( fname);
ctx->set_dependfile( fname); ctx->set_dependfile( fname);
...@@ -237,7 +237,7 @@ int CnvWblToHtml::init( char *first) ...@@ -237,7 +237,7 @@ int CnvWblToHtml::init( char *first)
strcat( fname, "_group_"); strcat( fname, "_group_");
strcat( fname, ctx->setup->groups[i]); strcat( fname, ctx->setup->groups[i]);
strcat( fname, "_index.html"); strcat( fname, "_index.html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
{ {
ofstream fp( fname); ofstream fp( fname);
...@@ -246,7 +246,7 @@ int CnvWblToHtml::init( char *first) ...@@ -246,7 +246,7 @@ int CnvWblToHtml::init( char *first)
strcat( fname, "_group_"); strcat( fname, "_group_");
strcat( fname, ctx->setup->groups[i]); strcat( fname, ctx->setup->groups[i]);
strcat( fname, ".html"); strcat( fname, ".html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
fp << fp <<
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"\"http://www.w3.org/TR/REC-html40/loose.dtd>" << endl << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"\"http://www.w3.org/TR/REC-html40/loose.dtd>" << endl <<
...@@ -291,7 +291,7 @@ int CnvWblToHtml::init( char *first) ...@@ -291,7 +291,7 @@ int CnvWblToHtml::init( char *first)
strcat( fname, "_group_"); strcat( fname, "_group_");
strcat( fname, ctx->setup->groups[i]); strcat( fname, ctx->setup->groups[i]);
strcat( fname, ".html"); strcat( fname, ".html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
fp_html_group[i].open( fname); fp_html_group[i].open( fname);
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
...@@ -299,7 +299,7 @@ int CnvWblToHtml::init( char *first) ...@@ -299,7 +299,7 @@ int CnvWblToHtml::init( char *first)
strcat( fname, "_group_"); strcat( fname, "_group_");
strcat( fname, ctx->setup->groups[i]); strcat( fname, ctx->setup->groups[i]);
strcat( fname, ".jsf"); strcat( fname, ".jsf");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
fp_js_group[i].open( fname); fp_js_group[i].open( fname);
fp_html_group[i] << fp_html_group[i] <<
...@@ -336,7 +336,7 @@ ctx->setup->groups[i] << endl << ...@@ -336,7 +336,7 @@ ctx->setup->groups[i] << endl <<
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
strcat( fname, ctx->rw->volume_name); strcat( fname, ctx->rw->volume_name);
strcat( fname, "_groups.jsf"); strcat( fname, "_groups.jsf");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
ofstream fp( fname); ofstream fp( fname);
fp << fp <<
...@@ -350,7 +350,7 @@ ctx->setup->groups[i] << endl << ...@@ -350,7 +350,7 @@ ctx->setup->groups[i] << endl <<
strcat( fname, "_group_"); strcat( fname, "_group_");
strcat( fname, ctx->setup->groups[i]); strcat( fname, ctx->setup->groups[i]);
strcat( fname, "_index.html"); strcat( fname, "_index.html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
fp << fp <<
" aux = insFld(parent, gFld(\"" << ctx->setup->groups[i] << "\",\"" << fname << "\"))" << endl << " aux = insFld(parent, gFld(\"" << ctx->setup->groups[i] << "\",\"" << fname << "\"))" << endl <<
...@@ -404,7 +404,7 @@ int CnvWblToHtml::close() ...@@ -404,7 +404,7 @@ int CnvWblToHtml::close()
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
strcat( fname, "index.jsm"); strcat( fname, "index.jsm");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
ofstream fp( fname); ofstream fp( fname);
fp << fp <<
...@@ -515,7 +515,7 @@ int CnvWblToHtml::class_exec() ...@@ -515,7 +515,7 @@ int CnvWblToHtml::class_exec()
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
strcat( fname, html_file_name); strcat( fname, html_file_name);
strcat( fname, ".html"); strcat( fname, ".html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
html_clf = new CnvFile(); html_clf = new CnvFile();
html_clf->f.open( fname); html_clf->f.open( fname);
...@@ -1180,7 +1180,7 @@ int CnvWblToHtml::typedef_exec() ...@@ -1180,7 +1180,7 @@ int CnvWblToHtml::typedef_exec()
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
strcat( fname, html_file_name); strcat( fname, html_file_name);
strcat( fname, ".html"); strcat( fname, ".html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
html_clf = new CnvFile(); html_clf = new CnvFile();
html_clf->f.open( fname); html_clf->f.open( fname);
......
...@@ -62,7 +62,7 @@ int CnvWblToPs::init( char *first) ...@@ -62,7 +62,7 @@ int CnvWblToPs::init( char *first)
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
strcat( fname, ctx->rw->volume_name); strcat( fname, ctx->rw->volume_name);
strcat( fname, ".ps"); strcat( fname, ".ps");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
tops.set_filename( ps_eFile_Info, fname); tops.set_filename( ps_eFile_Info, fname);
tops.set_filename( ps_eFile_Body, ps_cTmpFile); tops.set_filename( ps_eFile_Body, ps_cTmpFile);
......
...@@ -130,7 +130,7 @@ int CnvWblToXtthelp::init( char *first) ...@@ -130,7 +130,7 @@ int CnvWblToXtthelp::init( char *first)
strcpy( fname, ctx->dir); strcpy( fname, ctx->dir);
strcat( fname, ctx->rw->volume_name); strcat( fname, ctx->rw->volume_name);
strcat( fname, "_xtthelp.dat"); strcat( fname, "_xtthelp.dat");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
fp_xtthelp_index.open( fname); fp_xtthelp_index.open( fname);
......
...@@ -91,7 +91,7 @@ void CnvXtthelpToHtml::subject_to_fname( char *fname, const char *subject, int p ...@@ -91,7 +91,7 @@ void CnvXtthelpToHtml::subject_to_fname( char *fname, const char *subject, int p
} }
*t = 0; *t = 0;
strcat( fname, ".html"); strcat( fname, ".html");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
} }
void *CnvXtthelpToHtml::insert( navh_eItemType item_type, const char *text1, void *CnvXtthelpToHtml::insert( navh_eItemType item_type, const char *text1,
......
...@@ -78,7 +78,7 @@ void CnvXtthelpToPdf::subject_to_fname( char *fname, const char *subject, int pa ...@@ -78,7 +78,7 @@ void CnvXtthelpToPdf::subject_to_fname( char *fname, const char *subject, int pa
else else
strcpy( fname, ctx->rx->name); strcpy( fname, ctx->rx->name);
strcat( fname, ".pdf"); strcat( fname, ".pdf");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
} }
CnvXtthelpToPdf::~CnvXtthelpToPdf() CnvXtthelpToPdf::~CnvXtthelpToPdf()
......
...@@ -78,7 +78,7 @@ void CnvXtthelpToPs::subject_to_fname( char *fname, const char *subject, int pat ...@@ -78,7 +78,7 @@ void CnvXtthelpToPs::subject_to_fname( char *fname, const char *subject, int pat
else else
strcpy( fname, ctx->rx->name); strcpy( fname, ctx->rx->name);
strcat( fname, ".ps"); strcat( fname, ".ps");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
} }
CnvXtthelpToPs::~CnvXtthelpToPs() CnvXtthelpToPs::~CnvXtthelpToPs()
......
...@@ -80,7 +80,7 @@ void CnvXtthelpToText::subject_to_fname( char *fname, const char *subject, int p ...@@ -80,7 +80,7 @@ void CnvXtthelpToText::subject_to_fname( char *fname, const char *subject, int p
else else
strcpy( fname, ctx->rx->name); strcpy( fname, ctx->rx->name);
strcat( fname, ".txt"); strcat( fname, ".txt");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
} }
CnvXtthelpToText::~CnvXtthelpToText() CnvXtthelpToText::~CnvXtthelpToText()
......
...@@ -184,7 +184,7 @@ void CnvXtthelpToXml::subject_to_fname( char *fname, const char *subject, int pa ...@@ -184,7 +184,7 @@ void CnvXtthelpToXml::subject_to_fname( char *fname, const char *subject, int pa
*t = 0; *t = 0;
} }
strcat( fname, ".xml"); strcat( fname, ".xml");
cdh_ToLower( fname, fname); //cdh_ToLower( fname, fname); // TODO: remove? Was used historically, but causes trouble on modern Linux OS
} }
CnvXtthelpToXml::~CnvXtthelpToXml() CnvXtthelpToXml::~CnvXtthelpToXml()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment