Intentation consistency and misc formatting fixes

This commit is contained in:
gergely.erdelyi 2009-05-23 16:35:50 +00:00
parent f2e422d208
commit 7d468f3b94
13 changed files with 620 additions and 634 deletions

View File

@ -11,7 +11,6 @@ typedef struct
%feature("director") DBG_Hooks; %feature("director") DBG_Hooks;
%inline %{ %inline %{
int idaapi DBG_Callback(void *ud, int notification_code, va_list va); int idaapi DBG_Callback(void *ud, int notification_code, va_list va);
class DBG_Hooks class DBG_Hooks
{ {

View File

@ -3,7 +3,6 @@
%include "idd.hpp" %include "idd.hpp"
%inline %{ %inline %{
char get_event_module_name(const debug_event_t* ev, char *buf, size_t bufsize) char get_event_module_name(const debug_event_t* ev, char *buf, size_t bufsize)
{ {
qstrncpy(buf, ev->modinfo.name, bufsize); qstrncpy(buf, ev->modinfo.name, bufsize);
@ -51,5 +50,4 @@ bool can_exc_continue(const debug_event_t* ev)
{ {
return ev->exc.can_cont; return ev->exc.can_cont;
} }
%} %}

View File

@ -66,7 +66,6 @@
%feature("director") IDB_Hooks; %feature("director") IDB_Hooks;
%inline %{ %inline %{
int idaapi IDB_Callback(void *ud, int notification_code, va_list va); int idaapi IDB_Callback(void *ud, int notification_code, va_list va);
class IDB_Hooks class IDB_Hooks
{ {

View File

@ -185,9 +185,7 @@ int idc_parse_types(const char *input, int flags)
int hti = ((flags >> 4) & 7) << HTI_PAK_SHIFT; int hti = ((flags >> 4) & 7) << HTI_PAK_SHIFT;
if ((flags & 1) != 0) if ((flags & 1) != 0)
{
hti |= HTI_FIL; hti |= HTI_FIL;
}
return parse_types2(input, (flags & 2) == 0 ? msg : NULL, hti); return parse_types2(input, (flags & 2) == 0 ? msg : NULL, hti);
} }
@ -202,9 +200,7 @@ char *idc_get_type(ea_t ea, char *buf, size_t bufsize)
int code = print_type_to_one_line(buf, bufsize, idati, type, int code = print_type_to_one_line(buf, bufsize, idati, type,
NULL, NULL, fnames); NULL, NULL, fnames);
if (code == T_NORMAL) if (code == T_NORMAL)
{
return buf; return buf;
}
} \ } \
return NULL; return NULL;
} }
@ -219,9 +215,7 @@ char *idc_guess_type(ea_t ea, char *buf, size_t bufsize)
int code = print_type_to_one_line(buf, bufsize, idati, type, int code = print_type_to_one_line(buf, bufsize, idati, type,
NULL, NULL, fnames); NULL, NULL, fnames);
if (code == T_NORMAL) if (code == T_NORMAL)
{
return buf; return buf;
}
} \ } \
return NULL; return NULL;
} }
@ -291,5 +285,4 @@ char idc_get_local_type_name(int ordinal, char *buf, size_t bufsize)
qstrncpy(buf, name, bufsize); qstrncpy(buf, name, bufsize);
return true; return true;
} }
%} %}

View File

@ -15,10 +15,7 @@ insn_t * get_current_instruction()
op_t *get_instruction_operand(insn_t *ins, int n) op_t *get_instruction_operand(insn_t *ins, int n)
{ {
if (!ins) if (!ins)
{
return NULL; return NULL;
}
return &(ins->Operands[n]); return &(ins->Operands[n]);
} }
} }