ALT Linux Bugzilla
– Attachment 1779 Details for
Bug 10768
invalid code generated (affects modutils-2.4.27-alt8)
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
obj_reloc.c
obj_reloc.c (text/plain), 339 bytes, created by
Dmitry V. Levin
on 2007-02-05 00:13:50 MSK
(
hide
)
Description:
obj_reloc.c
Filename:
MIME Type:
Creator:
Dmitry V. Levin
Created:
2007-02-05 00:13:50 MSK
Size:
339 bytes
patch
obsolete
>#include <alloca.h> > >struct obj1 >{ > struct obj1 *next; >}; > >struct obj2 >{ > struct obj2 *next; >}; > >void >allocate(struct obj1 *sym) >{ > struct obj2 *head = 0; > > for (; sym; sym = sym->next) > { > struct obj2 **p, *n; > > for (p = &head; *p; p = &(*p)->next) > if (sym->next) > break; > > n = alloca(sizeof(*n)); > n->next = *p; > *p = n; > } >}
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 Raw
Actions:
View
Attachments on
bug 10768
:
1775
|
1776
|
1777
| 1779