projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct indentation.
[cparser]
/
mangle.c
diff --git
a/mangle.c
b/mangle.c
index
1eb6a16
..
f8f32b1
100644
(file)
--- a/
mangle.c
+++ b/
mangle.c
@@
-1,6
+1,6
@@
/*
* This file is part of cparser.
/*
* This file is part of cparser.
- * Copyright (C) 2007-200
8
Matthias Braun <matze@braunis.de>
+ * Copyright (C) 2007-200
9
Matthias Braun <matze@braunis.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@
-222,7
+222,6
@@
static void mangle_type(type_t *orig_type)
case TYPE_BITFIELD:
panic("no mangling for this type implemented yet");
case TYPE_BITFIELD:
panic("no mangling for this type implemented yet");
- break;
}
panic("invalid type encountered while mangling");
}
}
panic("invalid type encountered while mangling");
}
@@
-262,12
+261,11
@@
ident *create_name_win32(entity_t *entity)
assert(is_declaration(entity));
assert(is_declaration(entity));
- if (entity->declaration.modifiers & DM_DLLIMPORT) {
- /* add prefix for imported symbols */
- obstack_printf(o, "__imp_");
- }
-
if (entity->kind == ENTITY_FUNCTION) {
if (entity->kind == ENTITY_FUNCTION) {
+ if (entity->declaration.modifiers & DM_DLLIMPORT)
+ /* add prefix for imported symbols */
+ obstack_printf(o, "__imp_");
+
cc_kind_t cc = entity->declaration.type->function.calling_convention;
/* calling convention prefix */
cc_kind_t cc = entity->declaration.type->function.calling_convention;
/* calling convention prefix */