[svn:parrot] r40501 - in branches/auto_attrs: . config/auto/sizes docs/book/draft docs/book/pct docs/dev docs/pdds examples/embed examples/languages/abc examples/languages/squaak examples/pge include/parrot ports/cpan ports/cygwin ports/debian ports/fedora ports/mandriva ports/suse runtime/parrot/languages runtime/parrot/library/Math src/call src/gc src/interp src/runcore t/compilers/tge t/dynoplibs t/include t/oo t/pir t/src tools/dev tools/util

NotFound at svn.parrot.org NotFound at svn.parrot.org
Wed Aug 12 07:14:59 UTC 2009


Author: NotFound
Date: Wed Aug 12 07:14:58 2009
New Revision: 40501
URL: https://trac.parrot.org/parrot/changeset/40501

Log:
merge from trunk r40500

Added:
   branches/auto_attrs/t/include/
      - copied from r40500, trunk/t/include/
   branches/auto_attrs/t/pir/
      - copied from r40500, trunk/t/pir/
Replaced:
   branches/auto_attrs/t/include/fp_equality.t
      - copied unchanged from r40500, trunk/t/include/fp_equality.t
   branches/auto_attrs/t/pir/macro.t
      - copied unchanged from r40500, trunk/t/pir/macro.t
Modified:
   branches/auto_attrs/   (props changed)
   branches/auto_attrs/CREDITS
   branches/auto_attrs/MANIFEST
   branches/auto_attrs/config/auto/sizes/intval_maxmin_c.in   (props changed)
   branches/auto_attrs/docs/book/draft/README   (props changed)
   branches/auto_attrs/docs/book/draft/appa_glossary.pod   (props changed)
   branches/auto_attrs/docs/book/draft/appb_patch_submission.pod   (props changed)
   branches/auto_attrs/docs/book/draft/appc_command_line_options.pod   (props changed)
   branches/auto_attrs/docs/book/draft/appd_build_options.pod   (props changed)
   branches/auto_attrs/docs/book/draft/appe_source_code.pod   (props changed)
   branches/auto_attrs/docs/book/draft/ch01_introduction.pod   (props changed)
   branches/auto_attrs/docs/book/draft/ch02_getting_started.pod   (props changed)
   branches/auto_attrs/docs/book/draft/ch07_dynpmcs.pod   (props changed)
   branches/auto_attrs/docs/book/draft/ch08_dynops.pod   (props changed)
   branches/auto_attrs/docs/book/draft/ch10_opcode_reference.pod   (props changed)
   branches/auto_attrs/docs/book/draft/ch11_directive_reference.pod   (props changed)
   branches/auto_attrs/docs/book/draft/ch12_operator_reference.pod   (props changed)
   branches/auto_attrs/docs/book/draft/chXX_hlls.pod   (props changed)
   branches/auto_attrs/docs/book/draft/chXX_library.pod   (props changed)
   branches/auto_attrs/docs/book/draft/chXX_testing_and_debugging.pod   (props changed)
   branches/auto_attrs/docs/book/pct/ch01_introduction.pod   (props changed)
   branches/auto_attrs/docs/book/pct/ch02_getting_started.pod   (props changed)
   branches/auto_attrs/docs/book/pct/ch03_compiler_tools.pod   (props changed)
   branches/auto_attrs/docs/book/pct/ch04_pge.pod   (props changed)
   branches/auto_attrs/docs/book/pct/ch05_nqp.pod   (props changed)
   branches/auto_attrs/docs/dev/c_functions.pod   (props changed)
   branches/auto_attrs/docs/pdds/pdd30_install.pod   (props changed)
   branches/auto_attrs/examples/embed/cotorra.c   (props changed)
   branches/auto_attrs/examples/languages/abc/   (props changed)
   branches/auto_attrs/examples/languages/squaak/   (props changed)
   branches/auto_attrs/examples/pge/demo.pir   (props changed)
   branches/auto_attrs/include/parrot/call.h   (props changed)
   branches/auto_attrs/include/parrot/gc_api.h   (props changed)
   branches/auto_attrs/include/parrot/runcore_api.h   (props changed)
   branches/auto_attrs/include/parrot/runcore_trace.h   (props changed)
   branches/auto_attrs/ports/cpan/pause_guide.pod   (props changed)
   branches/auto_attrs/ports/cygwin/parrot-1.0.0-1.cygport   (props changed)
   branches/auto_attrs/ports/debian/libparrot-dev.install.in   (props changed)
   branches/auto_attrs/ports/debian/libparrot.install.in   (props changed)
   branches/auto_attrs/ports/debian/parrot-doc.install.in   (props changed)
   branches/auto_attrs/ports/debian/parrot.install.in   (props changed)
   branches/auto_attrs/ports/fedora/parrot.spec.fedora   (props changed)
   branches/auto_attrs/ports/mandriva/parrot.spec.mandriva   (props changed)
   branches/auto_attrs/ports/suse/parrot.spec.suse   (props changed)
   branches/auto_attrs/runtime/parrot/languages/   (props changed)
   branches/auto_attrs/runtime/parrot/library/Math/Rand.pir   (props changed)
   branches/auto_attrs/src/call/ops.c   (props changed)
   branches/auto_attrs/src/call/pcc.c   (props changed)
   branches/auto_attrs/src/gc/alloc_memory.c   (props changed)
   branches/auto_attrs/src/gc/alloc_register.c   (props changed)
   branches/auto_attrs/src/gc/alloc_resources.c   (props changed)
   branches/auto_attrs/src/gc/api.c   (props changed)
   branches/auto_attrs/src/gc/generational_ms.c   (props changed)
   branches/auto_attrs/src/gc/incremental_ms.c   (props changed)
   branches/auto_attrs/src/gc/malloc.c   (props changed)
   branches/auto_attrs/src/gc/malloc_trace.c   (props changed)
   branches/auto_attrs/src/gc/mark_sweep.c   (props changed)
   branches/auto_attrs/src/gc/system.c   (props changed)
   branches/auto_attrs/src/interp/inter_cb.c   (props changed)
   branches/auto_attrs/src/interp/inter_create.c   (props changed)
   branches/auto_attrs/src/interp/inter_misc.c   (props changed)
   branches/auto_attrs/src/runcore/cores.c   (props changed)
   branches/auto_attrs/src/runcore/main.c   (props changed)
   branches/auto_attrs/src/runcore/trace.c   (props changed)
   branches/auto_attrs/t/compilers/tge/NoneGrammar.tg   (props changed)
   branches/auto_attrs/t/dynoplibs/obscure.t   (props changed)
   branches/auto_attrs/t/oo/root_new.t   (props changed)
   branches/auto_attrs/t/src/embed.t   (props changed)
   branches/auto_attrs/tools/dev/fetch_languages.pl   (props changed)
   branches/auto_attrs/tools/dev/mk_gitignore.pl   (props changed)
   branches/auto_attrs/tools/util/perlcritic-cage.conf   (props changed)

Modified: branches/auto_attrs/CREDITS
==============================================================================
--- branches/auto_attrs/CREDITS	Wed Aug 12 06:58:31 2009	(r40500)
+++ branches/auto_attrs/CREDITS	Wed Aug 12 07:14:58 2009	(r40501)
@@ -674,6 +674,11 @@
 E: Michael.Cartmell at thomson.com
 D: README.win32 spelling patch
 
+N: Michael H. Hind
+U: mikehh
+D: codingstd patches
+E: mike.hind at gmail.com
+
 N: Michael G. Schwern
 
 N: Michael Scott
@@ -684,9 +689,6 @@
 U: mikescott
 W: http://xrl.us/sml
 
-U: mikehh
-D: codingstd patches
-
 N: Michael Stevens
 D: Remove an unused variable in C-land
 

Modified: branches/auto_attrs/MANIFEST
==============================================================================
--- branches/auto_attrs/MANIFEST	Wed Aug 12 06:58:31 2009	(r40500)
+++ branches/auto_attrs/MANIFEST	Wed Aug 12 07:14:58 2009	(r40501)
@@ -1694,6 +1694,7 @@
 t/examples/subs.t                                           [test]
 t/examples/tutorial.t                                       [test]
 t/harness                                                   [test]
+t/include/fp_equality.t                                     [test]
 t/library/cgi_query_hash.t                                  [test]
 t/library/coroutine.t                                       [test]
 t/library/dumper.t                                          [test]
@@ -1822,6 +1823,7 @@
 t/perl/testlib/answer.pir                                   [test]
 t/perl/testlib/hello                                        [test]
 t/perl/testlib/hello.pasm                                   [test]
+t/pir/macro.t                                               [test]
 t/pharness/01-default_tests.t                               [test]
 t/pharness/02-get_test_prog_args.t                          [test]
 t/pharness/03-handle_long_options.t                         [test]

Copied: branches/auto_attrs/t/include/fp_equality.t (from r40500, trunk/t/include/fp_equality.t)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/auto_attrs/t/include/fp_equality.t	Wed Aug 12 07:14:58 2009	(r40501, copy of r40500, trunk/t/include/fp_equality.t)
@@ -0,0 +1,43 @@
+#! parrot
+# Copyright (C) 2009, Parrot Foundation.
+# $Id$
+
+=head1 NAME
+
+t/include/fp_equality.t - Test runtime/parrot/include/fp_equality.pasm
+
+=head1 SYNOPSIS
+
+        % prove t/include/fp_equality.t
+
+=head1 DESCRIPTION
+
+Tests fp_* functions.
+
+=cut
+
+.sub main :main
+    .include 'fp_equality.pasm'
+    .include 'test_more.pir'
+    .local num epsilon, zplus, zminus
+    .local num oplus, ominus
+    plan(4)
+    epsilon = 0.00000005
+    oplus  = 1 + epsilon
+    ominus = 1 - epsilon
+    zplus  = 0 + epsilon
+    zminus = 0 - epsilon
+
+    .fp_eq_ok(zplus, 0, 'zero')
+    .fp_eq_ok(0, zplus, 'zero')
+
+    .fp_eq_ok(oplus, 1, 'one')
+    .fp_eq_ok(1, oplus, 'one')
+
+.end
+
+# Local Variables:
+#   mode: pir
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4 ft=pir:

Copied: branches/auto_attrs/t/pir/macro.t (from r40500, trunk/t/pir/macro.t)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/auto_attrs/t/pir/macro.t	Wed Aug 12 07:14:58 2009	(r40501, copy of r40500, trunk/t/pir/macro.t)
@@ -0,0 +1,43 @@
+#! parrot
+# Copyright (C) 2001-2009, Parrot Foundation.
+# $Id$
+
+=head1 NAME
+
+t/pir/macro.t - Tests for macros in PIR
+
+=head1 SYNOPSIS
+
+    % prove t/pir/macro.t
+
+=head1 DESCRIPTION
+
+Tests for macros in PIR.
+
+=cut
+
+.macro foo()
+    ok(1, 'basic macro')
+.endm
+
+.macro bar(x)
+    ok(x, 'basic macro with argument')
+.endm
+
+.macro_const PI_APPROX 4
+
+.sub main :main
+    .include 'test_more.pir'
+    .local int x
+    plan(3)
+    .foo()
+    .bar(42)
+    is(.PI_APPROX, 4, '.macro_const')
+.end
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4 filetype=pir:


More information about the parrot-commits mailing list