diff options
| author | ruki <[email protected]> | 2026-03-04 00:40:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-04 00:40:11 +0800 |
| commit | 078b2ee0b6087a70bae05d3fa86d01078786513c (patch) | |
| tree | 6f28e600fd9dcfb11bebb7abf02d36ebf1b7a685 /xmake/templates/pascal/shared/src | |
| parent | e0e20ef6ddbd0fc62fbaa00d195ce95f22a86fdf (diff) | |
move templates to repository
Diffstat (limited to 'xmake/templates/pascal/shared/src')
| -rw-r--r-- | xmake/templates/pascal/shared/src/foo.pas | 19 | ||||
| -rw-r--r-- | xmake/templates/pascal/shared/src/main.pas | 13 |
2 files changed, 0 insertions, 32 deletions
diff --git a/xmake/templates/pascal/shared/src/foo.pas b/xmake/templates/pascal/shared/src/foo.pas deleted file mode 100644 index 788950f46..000000000 --- a/xmake/templates/pascal/shared/src/foo.pas +++ /dev/null @@ -1,19 +0,0 @@ -library foo; - -{$mode objfpc}{$H+} - -function fib(n : Int64) : Int64; cdecl; -begin - if n > 1 then - begin - Result := fib(n - 1) + fib(n - 2); - end - else - Result := 1; -end; - -exports - fib; -end. - - diff --git a/xmake/templates/pascal/shared/src/main.pas b/xmake/templates/pascal/shared/src/main.pas deleted file mode 100644 index 02d5e88d0..000000000 --- a/xmake/templates/pascal/shared/src/main.pas +++ /dev/null @@ -1,13 +0,0 @@ -program hello; - -function fib(n: Int64): Int64; - cdecl; external 'foo'; - -var - Value: Integer; -begin - Value := 5; - WriteLn(fib(Value)); -end. - - |
