Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
python3-sip.2072
0001-Fixed_a_code_generation_bug_for_variables_...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fixed_a_code_generation_bug_for_variables_with_multi-const_types.patch of Package python3-sip.2072
# HG changeset patch # User Phil Thompson <phil@riverbankcomputing.com> # Date 1400000698 -3600 # Node ID dd6840986c03feff52343fd2a6e03087fa4cad28 # Parent be46b0f3b785714d7933cb45e2685d9aa096f358 Fixed a code generation bug for variables with multi-const types. diff -r be46b0f3b785 -r dd6840986c03 sipgen/gencode.c --- a/sipgen/gencode.c Mon May 12 13:36:33 2014 +0100 +++ b/sipgen/gencode.c Tue May 13 18:04:58 2014 +0100 @@ -9130,7 +9130,7 @@ typedefDef *td = ad->original_type; int nr_derefs = ad->nrderefs; int is_reference = isReference(ad); - int i; + int i, space_before_name; if (use_typename && td != NULL && !noTypeName(td) && !isArraySize(ad)) { @@ -9345,12 +9345,18 @@ } } + space_before_name = TRUE; + for (i = 0; i < nr_derefs; ++i) { - prcode(fp, " *"); + prcode(fp, "*"); + space_before_name = FALSE; if (ad->derefs[i]) + { prcode(fp, " const"); + space_before_name = TRUE; + } } if (is_reference) @@ -9358,7 +9364,7 @@ if (*name != '\0') { - if (nr_derefs == 0) + if (space_before_name) prcode(fp, " "); prcode(fp, name);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor