File: hello.pas

package info (click to toggle)
fungw 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,268 kB
  • sloc: ansic: 24,257; makefile: 500; sh: 32; awk: 9; perl: 8; tcl: 7; javascript: 7; ruby: 7; python: 6
file content (15 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ Public function; atoi() is provided by another objects through fungw }
function hello(how_many; who);
begin
	fawk_print('Hello', how_many, who);
	fawk_print('atoi:', atoi('42'));
	hello := 66;
end;

function main(ARG);
begin
	fawk_print('hello world from init', atoi('33'));

	{ register hello(), to be called from other objects and the host application }
	fgw_func_reg(hello);
end;