English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés
Σ: 1 post

TCH  (statz) Főfasz
#1, Főfasz (10443)
1325 | #250c | ^ | Idézet | Fri, 12 Apr 2013 20:06:46 +02
78.92.*.* Linux x86 Opera Classic Hungary *.catv.pool.telekom.hu
kemi, tudnál nekem C-ben egy "kicsit" segíteni? Az alábbi pár függvényt akarom átírni Pascalra, de a struct pointer kapcsolatokban egy csomó dolog nem tiszta.
struct timerequest *create_timer(ULONG unit)
{
	LONG error;
	struct MsgPort *timerport;
	struct timerequest *TimerIO;

	timerport = CreatePort(0, 0);
	if (timerport == NULL)
	{
		return(NULL);
	}

	TimerIO = (struct timerequest *);
	CreateExtIO(timerport, sizeof(struct timerequest));
	if (TimerIO == NULL)
	{
		DeletePort(timerport);
		return(NULL);
	}

	error = OpenDevice(TIMERNAME, unit,(struct IORequest *) TimerIO, 0L);
	if (error != 0)
	{
		delete_timer(TimerIO);
		return(NULL);
	}
	return( TimerIO );
}

void wait_for_timer(struct timerequest *tr, struct timeval *tv)
{
	tr->tr_node.io_Command = TR_ADDREQUEST;
	tr->tr_time = *tv;
	DoIO((struct IORequest *) tr);
}

void delete_timer(struct timerequest *tr )
{
	struct MsgPort *tp;

	if (tr != 0 )
	{
		tp = tr->tr_node.io_Message.mn_ReplyPort;

		if (tp != 0)
		{
			DeletePort(tp);
		}

		CloseDevice( (struct IORequest *) tr);
		DeleteExtIO( (struct IORequest *) tr);
	}
}

LONG time_delay(struct timeval *tv, LONG unit)
{
	struct timerequest *tr;

	tr = create_timer(unit);
	if (tr == NULL)
	{
		return(-1L);
	}
	wait_for_timer(tr, tv);

	delete_timer(tr);
	return (0L);
}


English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés

Név: (max 255 byte)

Email: (max 255 byte) Nem kötelező!

Üzenet: (max 65536 kar.) 65536-0=65536




crap_vkn v4.34.0 by TCH
Thx to saxus for the escaped string decoder function (PHP), the realIP function (PHP) & the SQL handle layer (PHP), to thookerov for the int_divide function (PHP), to Jeff Anderson for the getSelText function (JS), to Alex King for the insertAtCursor function (JS), Flood3r for the new CSS styles, Pety for the spamprotection idea and some design and comfort ideas, MaxMind for the IP2Country database, famfamfam for the flags of countries and an unknown PHP programmer for the removeAccents function.



Kecskebaszók ide!