Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 363620 Details for
Bug 491496
x11-libs/libxcb-1.9.1 with x11-proto/xcb-proto-1.9-r1 - .../work/libxcb-1.9.1/src/c_client.py: AttributeError: 'list' object has no attribute 'lenfield_name'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Lenfield patch
libxcb-1.9.1-lenfield.patch (text/plain), 1.40 KB, created by
gerardo@gnuardo.com
on 2013-11-20 08:09:11 UTC
(
hide
)
Description:
Lenfield patch
Filename:
MIME Type:
Creator:
gerardo@gnuardo.com
Created:
2013-11-20 08:09:11 UTC
Size:
1.40 KB
patch
obsolete
>--- src/c_client.py >+++ src/c_client.py >@@ -687,10 +687,20 @@ def _c_serialize_helper_switch(context, self, complex_name, > switch_expr = _c_accessor_get_expr(self.expr, None) > > for b in self.bitcases: >- bitcase_expr = _c_accessor_get_expr(b.type.expr, None) >- code_lines.append(' if(%s & %s) {' % (switch_expr, bitcase_expr)) >-# code_lines.append(' printf("switch %s: entering bitcase section %s (mask=%%%%d)...\\n", %s);' % >-# (self.name[-1], b.type.name[-1], bitcase_expr)) >+ len_expr = len(b.type.expr) >+ for n, expr in enumerate(b.type.expr): >+ bitcase_expr = _c_accessor_get_expr(expr, None) >+ # only one <enumref> in the <bitcase> >+ if len_expr == 1: >+ code_lines.append(' if(%s & %s) {' % (switch_expr, bitcase_expr)) >+ # multiple <enumref> in the <bitcase> >+ elif n == 0: # first >+ code_lines.append(' if((%s & %s) ||' % (switch_expr, bitcase_expr)) >+ elif len_expr == (n + 1): # last >+ code_lines.append(' (%s & %s)) {' % (switch_expr, bitcase_expr)) >+ else: # between first and last >+ code_lines.append(' (%s & %s) ||' % (switch_expr, bitcase_expr)) >+ > b_prefix = prefix > if b.type.has_name: > b_prefix = prefix + [(b.c_field_name, '.', b.type)] >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 491496
:
363618
| 363620 |
364204
|
364206