File tree 1 file changed +20
-22
lines changed 1 file changed +20
-22
lines changed Original file line number Diff line number Diff line change @@ -129,33 +129,31 @@ std::string expr2javat::convert_struct(
129
129
DATA_INVARIANT (
130
130
c.type ().id () != ID_code, " struct member must not be of code type" );
131
131
132
- {
133
- std::string tmp=convert (*o_it);
134
- std::string sep;
132
+ std::string tmp = convert (*o_it);
133
+ std::string sep;
135
134
136
- if (first)
137
- first=false ;
138
- else
135
+ if (first)
136
+ first = false ;
137
+ else
138
+ {
139
+ if (last_size + 40 < dest.size ())
139
140
{
140
- if (last_size+40 <dest.size ())
141
- {
142
- sep=" ,\n " ;
143
- last_size=dest.size ();
144
- }
145
- else
146
- sep=" , " ;
141
+ sep = " ,\n " ;
142
+ last_size = dest.size ();
147
143
}
148
-
149
- dest+=sep;
150
- dest+=' .' ;
151
- irep_idt field_name = c.get_pretty_name ();
152
- if (field_name.empty ())
153
- field_name = c.get_name ();
154
- dest += id2string (field_name);
155
- dest+=' =' ;
156
- dest+=tmp;
144
+ else
145
+ sep = " , " ;
157
146
}
158
147
148
+ dest += sep;
149
+ dest += ' .' ;
150
+ irep_idt field_name = c.get_pretty_name ();
151
+ if (field_name.empty ())
152
+ field_name = c.get_name ();
153
+ dest += id2string (field_name);
154
+ dest += ' =' ;
155
+ dest += tmp;
156
+
159
157
o_it++;
160
158
}
161
159
You can’t perform that action at this time.
0 commit comments