@@ -67,10 +67,10 @@ class ida_local literal_db
6767public:
6868
6969 lit_func_t find_func (const char * funcname) const {
70- return m_functions.find (funcname);
70+ return m_functions.find (funcname);
7171 }
72- bool is_func (const lit_func_t & f) const {
73- return f != m_functions.end ();
72+ bool is_func (const lit_func_t & f) const {
73+ return f != m_functions.end ();
7474 }
7575 const lit_arg_t * find_arg (const lit_func_t & lfunc, uint32 argN) const
7676 {
@@ -80,8 +80,8 @@ class ida_local literal_db
8080 return NULL ;
8181 }
8282
83- lit_struct_t find_struct (const char * strucname) const {
84- return m_structures.find (strucname);
83+ lit_struct_t find_struct (const char * strucname) const {
84+ return m_structures.find (strucname);
8585 }
8686 bool is_struct (const lit_struct_t & s) const {
8787 return s != m_structures.end ();
@@ -220,7 +220,7 @@ struct ida_local lit_visitor_t : public ctree_visitor_t
220220 bool cmtModified;
221221 user_cmts_t *cmts;
222222
223- lit_visitor_t (cfunc_t *cfunc) : ctree_visitor_t (CV_FAST ), func(cfunc), cmtModified(false )
223+ lit_visitor_t (cfunc_t *cfunc) : ctree_visitor_t (CV_FAST ), func(cfunc), cmtModified(false )
224224 {
225225 cmts = restore_user_cmts (cfunc->entry_ea );
226226 if (cmts == NULL )
@@ -337,7 +337,7 @@ cexpr_t* lit_visitor_t::makeEnumExpr(const char* name, uint64 val, cexpr_t *cons
337337#if IDA_SDK_VERSION < 850
338338 const_t memb = get_enum_member_by_name (name);
339339 if (memb == BADNODE ) {
340- if (!importEnumFromTils (name, val))
340+ if (!importEnumFromTils (name, val))
341341 return NULL ;
342342 memb = get_enum_member_by_name (name);
343343 if (memb == BADNODE )
@@ -425,7 +425,7 @@ bool lit_visitor_t::chkCallArg(cexpr_t *expr, qstring &comment)
425425 lit_func_t lfunc = lit->find_func (funcname.c_str ());
426426 if (!lit->is_func (lfunc)) {
427427 char lastChar = funcname.last ();
428- if (lastChar != ' A' && lastChar != ' W' )
428+ if (lastChar != ' A' && lastChar != ' W' )
429429 return false ;
430430 funcname.remove_last ();
431431 lfunc = lit->find_func (funcname.c_str ());
@@ -469,7 +469,7 @@ bool lit_visitor_t::chkStrucMemb(cexpr_t *memb, cexpr_t *cons, qstring &comment)
469469 return false ;
470470
471471 // remove first underlining from struct typename
472- if (typeName[0 ] == ' _' )
472+ if (typeName[0 ] == ' _' )
473473 typeName.remove (0 , 1 );
474474
475475 lit_struct_t ls = lit->find_struct (typeName.c_str ());
@@ -479,7 +479,7 @@ bool lit_visitor_t::chkStrucMemb(cexpr_t *memb, cexpr_t *cons, qstring &comment)
479479 return false ;
480480 typeName.remove_last ();
481481 ls = lit->find_struct (typeName.c_str ());
482- if (!lit->is_struct (ls))
482+ if (!lit->is_struct (ls))
483483 return false ;
484484 }
485485
@@ -550,7 +550,7 @@ bool lit_visitor_t::chkConstType(cexpr_t *expr, cexpr_t *cons, qstring &comment)
550550 newExp->type = expr->type ;
551551 replaceExp (func, expr, newExp);
552552 return true ;
553- }
553+ }
554554 return false ;
555555 } else {
556556 // TODO: add more typenames here
@@ -583,7 +583,7 @@ int idaapi lit_visitor_t::visit_expr(cexpr_t *expr)
583583 cexpr_t *memb = expr->theother (cons);
584584 if (memb->op == cot_memref || memb->op == cot_memptr)
585585 changed |= chkStrucMemb (memb, cons, comment);
586- else
586+ else
587587 changed |= chkConstType (expr, cons, comment);
588588 }
589589 } else if (expr->op == cot_cast && expr->x ->op == cot_num) {
@@ -652,7 +652,7 @@ bool lit_overrideTypes()
652652void lit_init ()
653653{
654654 char litfname[QMAXPATH ];
655- if (getsysfile (litfname, QMAXPATH , " literal.txt" , PLG_SUBDIR )) {
655+ if (getPluginsFile (litfname, QMAXPATH , " literal.txt" )) {
656656 linput_t *litfile = open_linput (litfname, false );
657657 if (litfile) {
658658 lit = new literal_db ();
0 commit comments