Regular expressions, C++ kai linux

Dimitris Stasinopoulos dimitris at linea.gr
Mon Jun 24 21:42:02 EEST 2002


Paides xaireto()

Proekipse ena "endiaferon" provlima.

Mesa se kodika C++ prepei na xrisimopoiiso regular expressions. Ara prepei na 
kaleso tin regcomp(). Me to pou to kano omos, amesos pairno SIGSEGV, kai afto 
dioti i regcomp() kanei allocate kapoion xoro gia na kanei compile tin 
regular expression, kai profanos aftos o xoros ginetai allocated me kapoia 
apo tis *alloc() functions tis glibc.

Omos, epeidi o "new" operator tis C++ kai oi *alloc den prepei na paizoun pote 
mesa ston idio kodika, pairno to anaferthen SIGSEGV.

Kai eroto: Ti mporei na ginei epi tou thematos? Na paro ton kodika tis 
regcomp() kai na antikatastiso tis *alloc() me "new", kai na onomaso tin nea 
function cc_regcomp() einai ligo ierosilia, alla an den bro alli lisi mallon 
ekei tha katalikso :-/

Exei kaneis kamia idea?
Efxaristo ek ton proteron.

-- 
Dimitris Stasinopoulos

I am but a small signature
At the down down of the writing
If you don't read me
It will become the come and see.



More information about the Linux-greek-users mailing list