Commit 5107e068 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed compilation error of prm documentation.

parent 653aeda2
...@@ -40,8 +40,8 @@ silent : ...@@ -40,8 +40,8 @@ silent :
$(clean_html) : clean_%.html : %.html $(clean_html) : clean_%.html : %.html
@ $(rm) $(rmflags) $(doc_dir)/prm/$*.html @ $(rm) $(rmflags) $(doc_dir)/prm/$*.html
$(doc_dir)/prm/index.html : ../../doxygen.dx $(doc_dir)/prm/index.html : ../../doxygen.c
@ echo "doxygen documentation $(source) $(target)" @ echo "Generating Programmer documentation: doxygen $(source) $(target)"
@ doxygen @ doxygen
# @ if [ "`eval which pdflatex`" != "" ]; then \ # @ if [ "`eval which pdflatex`" != "" ]; then \
# ./repl.sh latex/*.tex; \ # ./repl.sh latex/*.tex; \
...@@ -55,8 +55,3 @@ $(doc_dir)/prm/index.html : ../../doxygen.dx ...@@ -55,8 +55,3 @@ $(doc_dir)/prm/index.html : ../../doxygen.dx
# rm -f repl.tmp; \ # rm -f repl.tmp; \
# fi; \ # fi; \
# rm -r -f latex; # rm -r -f latex;
...@@ -654,7 +654,6 @@ void CnvReadWbl::attribute_init() ...@@ -654,7 +654,6 @@ void CnvReadWbl::attribute_init()
strcpy(attr_elements, ""); strcpy(attr_elements, "");
attr_pointer = 0; attr_pointer = 0;
attr_array = 0; attr_array = 0;
attr_rtvirtual = 0;
attr_elem = 0; attr_elem = 0;
attr_isclass = 0; attr_isclass = 0;
} }
...@@ -687,8 +686,6 @@ int CnvReadWbl::attribute_attr(char* name, char* value) ...@@ -687,8 +686,6 @@ int CnvReadWbl::attribute_attr(char* name, char* value)
attr_pointer = 1; attr_pointer = 1;
if (streq(value, "PWR_MASK_ARRAY")) if (streq(value, "PWR_MASK_ARRAY"))
attr_array = 1; attr_array = 1;
if (streq(value, "PWR_MASK_RTVIRTUAL"))
attr_rtvirtual = 1;
if (streq(value, "PWR_MASK_CLASS")) if (streq(value, "PWR_MASK_CLASS"))
attr_isclass = 1; attr_isclass = 1;
} else { } else {
...@@ -706,8 +703,6 @@ int CnvReadWbl::attribute_attr(char* name, char* value) ...@@ -706,8 +703,6 @@ int CnvReadWbl::attribute_attr(char* name, char* value)
attr_pointer = 1; attr_pointer = 1;
if (flags_value & pwr_mAdef_array) if (flags_value & pwr_mAdef_array)
attr_array = 1; attr_array = 1;
if (flags_value & pwr_mAdef_rtvirtual)
attr_rtvirtual = 1;
if (flags_value & pwr_mAdef_class) if (flags_value & pwr_mAdef_class)
attr_isclass = 1; attr_isclass = 1;
} }
...@@ -805,7 +800,6 @@ void CnvReadWbl::body_init() ...@@ -805,7 +800,6 @@ void CnvReadWbl::body_init()
strcpy(body_name, ""); strcpy(body_name, "");
strcpy(body_structname, ""); strcpy(body_structname, "");
strcpy(body_flags, ""); strcpy(body_flags, "");
body_rtvirtual = 0;
} }
int CnvReadWbl::body_attr(char* name, char* value) int CnvReadWbl::body_attr(char* name, char* value)
...@@ -819,9 +813,6 @@ int CnvReadWbl::body_attr(char* name, char* value) ...@@ -819,9 +813,6 @@ int CnvReadWbl::body_attr(char* name, char* value)
strcat(body_flags, &value[9]); strcat(body_flags, &value[9]);
else else
strcat(body_flags, value); strcat(body_flags, value);
if (streq(value, "pwr_mObjBodyDef_RtVirtual"))
body_rtvirtual = 1;
} }
return 1; return 1;
} }
......
...@@ -131,7 +131,6 @@ class CnvReadWbl { ...@@ -131,7 +131,6 @@ class CnvReadWbl {
CnvWblTo* wblto; CnvWblTo* wblto;
FILE* fp; FILE* fp;
cread_eLine linetype; cread_eLine linetype;
int verbose;
int state; int state;
int object_state; int object_state;
char source_dir[200]; char source_dir[200];
...@@ -143,7 +142,6 @@ class CnvReadWbl { ...@@ -143,7 +142,6 @@ class CnvReadWbl {
char attr_typeref_volume[80]; char attr_typeref_volume[80];
int attr_pointer; int attr_pointer;
int attr_array; int attr_array;
int attr_rtvirtual;
int attr_isclass; int attr_isclass;
char attr_elements[80]; char attr_elements[80];
int attr_elem; int attr_elem;
...@@ -161,7 +159,6 @@ class CnvReadWbl { ...@@ -161,7 +159,6 @@ class CnvReadWbl {
char body_name[80]; char body_name[80];
char body_structname[80]; char body_structname[80];
char body_flags[200]; char body_flags[200];
int body_rtvirtual;
char graphplcnode_name[80]; char graphplcnode_name[80];
char graphplccon_name[20]; char graphplccon_name[20];
char typedef_name[80]; char typedef_name[80];
...@@ -195,15 +192,11 @@ class CnvReadWbl { ...@@ -195,15 +192,11 @@ class CnvReadWbl {
char sobject_name[80]; char sobject_name[80];
char dir[120]; char dir[120];
char ClassDef[80];
char ObjBodyDef[80]; char ObjBodyDef[80];
char GraphPlcNode[80]; char GraphPlcNode[80];
char GraphPlcCon[80];
char Attribute[80]; char Attribute[80];
int read_wbl(char* filename); int read_wbl(char* filename);
int read_line(char* line, int maxsize, FILE* file);
int remove_spaces(char* in, char* out);
void attribute_init(); void attribute_init();
int attribute_attr(char* name, char* value); int attribute_attr(char* name, char* value);
int attribute_close(); int attribute_close();
......
...@@ -75,7 +75,6 @@ class CnvWblToHtml : public CnvWblTo { ...@@ -75,7 +75,6 @@ class CnvWblToHtml : public CnvWblTo {
std::ofstream fp_html_group[MAX_GROUPS]; std::ofstream fp_html_group[MAX_GROUPS];
std::ofstream fp_js_group[MAX_GROUPS]; std::ofstream fp_js_group[MAX_GROUPS];
char html_first[80]; char html_first[80];
char html_tmp_name[80];
int html_class_open; int html_class_open;
int html_index_open; int html_index_open;
bool js_all_first; bool js_all_first;
......
...@@ -69,7 +69,11 @@ class CnvXtthelpToPs : public CnvXtthelpTo { ...@@ -69,7 +69,11 @@ class CnvXtthelpToPs : public CnvXtthelpTo {
Cnv_eXtthelpToType type() Cnv_eXtthelpToType type()
{ {
return Cnv_eXtthelpToType_Ps; if (ctx->generate_pdf) {
return Cnv_eXtthelpToType_Pdf;
} else {
return Cnv_eXtthelpToType_Ps;
}
} }
void* insert(navh_eItemType item_type, const char* text1, const char* text2, void* insert(navh_eItemType item_type, const char* text1, const char* text2,
const char* text3, const char* link, const char* link_bookmark, const char* text3, const char* link, const char* link_bookmark,
......
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