|
Re: lug-bg: c/c++ differences
- Subject: Re: lug-bg: c/c++ differences
- From: lug@email.domain.hidden (Stratsimir Kolchevski)
- Date: Fri, 04 Jul 2003 13:00:44 +0300
Stanislav Lechev [AngelFire] wrote:
<em class="quotelev1">> // da se chete ot po naprednali c/c++ programisti
<em class="quotelev1">>
[cut]
<em class="quotelev1">>
<em class="quotelev1">> za momenta sym si reshil problema po sledniq nachin
<em class="quotelev1">> oshte ot configure scripta
<em class="quotelev1">> si izpylnqwam edno perl scriptche koeto kompilira takawa
<em class="quotelev1">> malka programka i parswa rezultata ot objdump-a
<em class="quotelev1">> po tozi nachin wadq prefix i suffix koito wkarwam s DEFINE-owe
<em class="quotelev1">> w programata si...
<em class="quotelev1">> ne che ne stawa po tozi nachin no mi se wivda mnogo dyrweno...
zashto ne pazish masiv s pointeri kum funktsiite ti
naprimer:
typedef struct _funcs {
char *fname; //imeto na funktsiata
void (*handler)(); //pointer kum neia
} funcs;
led tova si pravish svurzan spisak s tip na dannite "funcs",
i vseki plugin, koito si compiliral da si dobavia sam funktsiite
kum tozi spisak. taka shte imash dinamichen spisak s imenata na vsichki
funktsii, koito imash i suotvetnite ukazateli kum tiah.
do kolkoto si spomniam PHP izpolzvaha neshto takova za da zarejdat modulite.
<p>Stratsimir
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|