RE: Le topic des insomniaques - hatrix - 10-27-2016
non mais y'a aucune boucle dans le free.
Dans le malloc je fais une boucle qui va chercher le premier bloc libre (first fit), qui le split et qui renvoie le pointeur sur le premier morceau.
Le souci c'est que j'me retrouve après un split à ajouter à ma liste une adresse qui existe déjà, wtf
RE: Le topic des insomniaques - hatrix - 10-27-2016
moi j'dis c'est ls qui est mal codé et qui fait un off-by-one, mon programme est parfait.
RE: Le topic des insomniaques - hatrix - 10-27-2016
urxvt utilise un malloc custom ?
RE: Le topic des insomniaques - hatrix - 10-27-2016
ah si, pourquoi rxvt marche avec mon malloc alors ? :d
323 void *
324 rxvt_malloc (size_t size)
325 {
326 void *p = malloc (size);
327
328 if (!p)
329 rxvt_fatal ("memory allocation failure. aborting.\n");
330
331 return p;
332 }
RE: Le topic des insomniaques - 0x07E2 - 10-28-2016
Gagnant d'aujourd'hui : hatrix
Points individuels :
1...485 : tsunami33
2...232 : hatrix
3....81 : Corwin
4....78 : Levak
5....52 : Greflop
6....42 : reynova
7....42 : Zeletochoy
8....16 : Benzaiten
9....12 : Bmoc
10....11 : Lyloox
11.....8 : Ares
12.....6 : Arys
13.....5 : Neodyblue
14.....4 : KinokoFuhen
15.....2 : [1998] ares
16.....1 : Chapa Pampa
17.....1 : Kojima
18.....1 : Grammar Nazi
19.....1 : serialk
20.....1 : sokudohi
Points par groupe :
1...801 : [2018]
2...113 : [2017]
3....87 : [2016]
4....78 : [2015]
5.....2 : [Registered]
RE: Le topic des insomniaques - tsunami33 - 10-28-2016
Wut ? Ton truc marche avec urxvt et pas avec ls ?
RE: Le topic des insomniaques - 0x07E2 - 10-29-2016
Gagnant d'aujourd'hui : tsunami33
Points individuels :
1...486 : tsunami33
2...232 : hatrix
3....81 : Corwin
4....78 : Levak
5....52 : Greflop
6....42 : reynova
7....42 : Zeletochoy
8....16 : Benzaiten
9....12 : Bmoc
10....11 : Lyloox
11.....8 : Ares
12.....6 : Arys
13.....5 : Neodyblue
14.....4 : KinokoFuhen
15.....2 : [1998] ares
16.....1 : Chapa Pampa
17.....1 : Kojima
18.....1 : Grammar Nazi
19.....1 : serialk
20.....1 : sokudohi
Points par groupe :
1...802 : [2018]
2...113 : [2017]
3....87 : [2016]
4....78 : [2015]
5.....2 : [Registered]
RE: Le topic des insomniaques - hatrix - 10-29-2016
faut que je fouille un peu plus, c'est pas possible
RE: Le topic des insomniaques - 0x07E2 - 10-30-2016
Gagnant d'aujourd'hui : hatrix
Points individuels :
1...486 : tsunami33
2...233 : hatrix
3....81 : Corwin
4....78 : Levak
5....52 : Greflop
6....42 : reynova
7....42 : Zeletochoy
8....16 : Benzaiten
9....12 : Bmoc
10....11 : Lyloox
11.....8 : Ares
12.....6 : Arys
13.....5 : Neodyblue
14.....4 : KinokoFuhen
15.....2 : [1998] ares
16.....1 : Chapa Pampa
17.....1 : Kojima
18.....1 : Grammar Nazi
19.....1 : serialk
20.....1 : sokudohi
Points par groupe :
1...803 : [2018]
2...113 : [2017]
3....87 : [2016]
4....78 : [2015]
5.....2 : [Registered]
RE: Le topic des insomniaques - hatrix - 10-30-2016
|