Commits

Dean Hall  committed 985278b

issue #12 post mainline checkin: new files weren't added and marked-for-deletion files weren't deleted to/from the repostory by patch.

  • Participants
  • Parent commits e33e81e

Comments (0)

Files changed (8)

File src/platform/at91sam7s-ek/pmfeatures.h

+/*
+ * PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
+ * Copyright 2002 Dean Hall.  All rights reserved.
+ * PyMite is offered through one of two licenses: commercial or open-source.
+ * See the LICENSE file at the root of this package for licensing details.
+ */
+
+
+/**
+ * VM feature configuration
+ *
+ * Compile time switches to include features or save space.
+ *
+ * IMPORTANT: All of the HAVE_* items in this file should also exist in the
+ * PM_FEATURES dict in src/tools/pmImgCreator.py.  If the item is defined here,
+ * the corresponding dict value should be True; False otherwise.
+ */
+
+
+#ifndef FEATURES_H_
+#define FEATURES_H_
+
+
+/** Defines the size of the static heap */
+#define PM_HEAP_SIZE 0x3000
+
+
+/**
+ * When defined, bytecodes PRINT_ITEM and PRINT_NEWLINE are supported. Along
+ * with these, helper routines in the object type are compiled in that allow
+ * printing of the object.
+ */
+#define HAVE_PRINT
+
+
+/**
+ * When defined, the code to perform mark-sweep garbage collection is included
+ * in the build and automatic GC is enabled.  When undefined the allocator
+ * will distribute memory until none is left, after which a memory exception
+ * will occur.
+ */
+#define HAVE_GC
+
+
+/* #148 Create configurable float datatype */
+/**
+ * When defined, the code to support floating point objects is included
+ * in the build.
+ */
+/*#define HAVE_FLOAT*/
+/*#define PM_FLOAT_BIG_ENDIAN*/
+
+/**
+ * When defined, the code to support the keyword del is included in the build.
+ * This involves the bytecodes: DELETE_SUBSCR, DELETE_NAME, DELETE_ATTR,
+ * DELETE_GLOBAL and DELETE_FAST.
+ */
+#define HAVE_DEL
+
+/**
+ * When defined, the code to support the IMPORT_FROM and IMPORT_STAR styles
+ * is included in the build.
+ */
+#define HAVE_IMPORTS
+
+/**
+ * When defined, the code to support the assert statement is included
+ * in the build.
+ */
+#define HAVE_ASSERT
+
+/* #157 Support default args */
+/**
+ * When defined, the code to support default arguments to functions is included
+ * in the build.
+ */
+#define HAVE_DEFAULTARGS
+
+/* #160 Add support for string and tuple replication */
+/**
+ * When defined, the code to support sequence (list, tuple, string) replcation
+ * is included in the build.
+ * This feature is required by the builtin function __bi.map().
+ */
+#define HAVE_REPLICATION
+
+#endif /* FEATURES_H_ */

File src/platform/avr/pmfeatures.h

+/*
+ * PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
+ * Copyright 2002 Dean Hall.  All rights reserved.
+ * PyMite is offered through one of two licenses: commercial or open-source.
+ * See the LICENSE file at the root of this package for licensing details.
+ */
+
+
+/**
+ * VM feature configuration
+ *
+ * Compile time switches to include features or save space.
+ *
+ * IMPORTANT: All of the HAVE_* items in this file should also exist in the
+ * PM_FEATURES dict in src/tools/pmImgCreator.py.  If the item is defined here,
+ * the corresponding dict value should be True; False otherwise.
+ */
+
+
+#ifndef FEATURES_H_
+#define FEATURES_H_
+
+
+/** Defines the size of the static heap */
+#define PM_HEAP_SIZE 0x0D00
+
+
+/**
+ * When defined, bytecodes PRINT_ITEM and PRINT_NEWLINE are supported. Along
+ * with these, helper routines in the object type are compiled in that allow
+ * printing of the object.
+ */
+#define HAVE_PRINT
+
+
+/**
+ * When defined, the code to perform mark-sweep garbage collection is included
+ * in the build and automatic GC is enabled.  When undefined the allocator
+ * will distribute memory until none is left, after which a memory exception
+ * will occur.
+ */
+#define HAVE_GC
+
+
+/* #148 Create configurable float datatype */
+/**
+ * When defined, the code to support floating point objects is included
+ * in the build.
+ */
+/*#define HAVE_FLOAT*/
+/*#define PM_FLOAT_BIG_ENDIAN*/
+
+/**
+ * When defined, the code to support the keyword del is included in the build.
+ * This involves the bytecodes: DELETE_SUBSCR, DELETE_NAME, DELETE_ATTR,
+ * DELETE_GLOBAL and DELETE_FAST.
+ */
+#define HAVE_DEL
+
+/**
+ * When defined, the code to support the IMPORT_FROM and IMPORT_STAR styles
+ * is included in the build.
+ */
+#define HAVE_IMPORTS
+
+/**
+ * When defined, the code to support the assert statement is included
+ * in the build.
+ */
+#define HAVE_ASSERT
+
+/* #157 Support default args */
+/**
+ * When defined, the code to support default arguments to functions is included
+ * in the build.
+ */
+#define HAVE_DEFAULTARGS
+
+/* #160 Add support for string and tuple replication */
+/**
+ * When defined, the code to support sequence (list, tuple, string) replcation
+ * is included in the build.
+ * This feature is required by the builtin function __bi.map().
+ */
+#define HAVE_REPLICATION
+
+#endif /* FEATURES_H_ */

File src/platform/desktop/pmfeatures.h

+/*
+ * PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
+ * Copyright 2002 Dean Hall.  All rights reserved.
+ * PyMite is offered through one of two licenses: commercial or open-source.
+ * See the LICENSE file at the root of this package for licensing details.
+ */
+
+
+/**
+ * VM feature configuration
+ *
+ * Compile time switches to include features or save space.
+ *
+ * IMPORTANT: All of the HAVE_* items in this file should also exist in the
+ * PM_FEATURES dict in src/tools/pmImgCreator.py.  If the item is defined here,
+ * the corresponding dict value should be True; False otherwise.
+ */
+
+
+#ifndef FEATURES_H_
+#define FEATURES_H_
+
+
+/** Defines the size of the static heap */
+#define PM_HEAP_SIZE 0x2000
+
+
+/**
+ * When defined, bytecodes PRINT_ITEM and PRINT_NEWLINE are supported. Along
+ * with these, helper routines in the object type are compiled in that allow
+ * printing of the object.
+ */
+#define HAVE_PRINT
+
+
+/**
+ * When defined, the code to perform mark-sweep garbage collection is included
+ * in the build and automatic GC is enabled.  When undefined the allocator
+ * will distribute memory until none is left, after which a memory exception
+ * will occur.
+ */
+#define HAVE_GC
+
+
+/* #148 Create configurable float datatype */
+/**
+ * When defined, the code to support floating point objects is included
+ * in the build.
+ */
+/*#define HAVE_FLOAT*/
+/*#define PM_FLOAT_LITTLE_ENDIAN*/
+
+/**
+ * When defined, the code to support the keyword del is included in the build.
+ * This involves the bytecodes: DELETE_SUBSCR, DELETE_NAME, DELETE_ATTR,
+ * DELETE_GLOBAL and DELETE_FAST.
+ */
+#define HAVE_DEL
+
+/**
+ * When defined, the code to support the IMPORT_FROM and IMPORT_STAR styles
+ * is included in the build.
+ */
+#define HAVE_IMPORTS
+
+/**
+ * When defined, the code to support the assert statement is included
+ * in the build.
+ */
+#define HAVE_ASSERT
+
+/* #157 Support default args */
+/**
+ * When defined, the code to support default arguments to functions is included
+ * in the build.
+ */
+#define HAVE_DEFAULTARGS
+
+/* #160 Add support for string and tuple replication */
+/**
+ * When defined, the code to support sequence (list, tuple, string) replcation
+ * is included in the build.
+ * This feature is required by the builtin function __bi.map().
+ */
+#define HAVE_REPLICATION
+
+#endif /* FEATURES_H_ */

File src/platform/mbed/pmfeatures.h

+/*
+ * PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
+ * Copyright 2002 Dean Hall.  All rights reserved.
+ * PyMite is offered through one of two licenses: commercial or open-source.
+ * See the LICENSE file at the root of this package for licensing details.
+ */
+
+
+/**
+ * VM feature configuration
+ *
+ * Compile time switches to include features or save space.
+ *
+ * IMPORTANT: All of the HAVE_* items in this file should also exist in the
+ * PM_FEATURES dict in src/tools/pmImgCreator.py.  If the item is defined here,
+ * the corresponding dict value should be True; False otherwise.
+ */
+
+
+#ifndef FEATURES_H_
+#define FEATURES_H_
+
+
+/** Defines the size of the static heap */
+#define PM_HEAP_SIZE 0x7000
+
+
+/**
+ * When defined, bytecodes PRINT_ITEM and PRINT_NEWLINE are supported. Along
+ * with these, helper routines in the object type are compiled in that allow
+ * printing of the object.
+ */
+#define HAVE_PRINT
+
+
+/**
+ * When defined, the code to perform mark-sweep garbage collection is included
+ * in the build and automatic GC is enabled.  When undefined the allocator
+ * will distribute memory until none is left, after which a memory exception
+ * will occur.
+ */
+#define HAVE_GC
+
+
+/* #148 Create configurable float datatype */
+/**
+ * When defined, the code to support floating point objects is included
+ * in the build.
+ */
+/*#define HAVE_FLOAT*/
+/*#define PM_FLOAT_BIG_ENDIAN*/
+
+/**
+ * When defined, the code to support the keyword del is included in the build.
+ * This involves the bytecodes: DELETE_SUBSCR, DELETE_NAME, DELETE_ATTR,
+ * DELETE_GLOBAL and DELETE_FAST.
+ */
+#define HAVE_DEL
+
+/**
+ * When defined, the code to support the IMPORT_FROM and IMPORT_STAR styles
+ * is included in the build.
+ */
+#define HAVE_IMPORTS
+
+/**
+ * When defined, the code to support the assert statement is included
+ * in the build.
+ */
+#define HAVE_ASSERT
+
+/* #157 Support default args */
+/**
+ * When defined, the code to support default arguments to functions is included
+ * in the build.
+ */
+#define HAVE_DEFAULTARGS
+
+/* #160 Add support for string and tuple replication */
+/**
+ * When defined, the code to support sequence (list, tuple, string) replcation
+ * is included in the build.
+ * This feature is required by the builtin function __bi.map().
+ */
+#define HAVE_REPLICATION
+
+#endif /* FEATURES_H_ */

File src/platform/mmb103/pmfeatures.h

+/*
+ * PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
+ * Copyright 2002 Dean Hall.  All rights reserved.
+ * PyMite is offered through one of two licenses: commercial or open-source.
+ * See the LICENSE file at the root of this package for licensing details.
+ */
+
+
+/**
+ * VM feature configuration
+ *
+ * Compile time switches to include features or save space.
+ *
+ * IMPORTANT: All of the HAVE_* items in this file should also exist in the
+ * PM_FEATURES dict in src/tools/pmImgCreator.py.  If the item is defined here,
+ * the corresponding dict value should be True; False otherwise.
+ */
+
+
+#ifndef FEATURES_H_
+#define FEATURES_H_
+
+
+/** Defines the size of the static heap */
+#define PM_HEAP_SIZE 0x0D00
+
+
+/**
+ * When defined, bytecodes PRINT_ITEM and PRINT_NEWLINE are supported. Along
+ * with these, helper routines in the object type are compiled in that allow
+ * printing of the object.
+ */
+#define HAVE_PRINT
+
+
+/**
+ * When defined, the code to perform mark-sweep garbage collection is included
+ * in the build and automatic GC is enabled.  When undefined the allocator
+ * will distribute memory until none is left, after which a memory exception
+ * will occur.
+ */
+#define HAVE_GC
+
+
+/* #148 Create configurable float datatype */
+/**
+ * When defined, the code to support floating point objects is included
+ * in the build.
+ */
+/*#define HAVE_FLOAT*/
+/*#define PM_FLOAT_BIG_ENDIAN*/
+
+/**
+ * When defined, the code to support the keyword del is included in the build.
+ * This involves the bytecodes: DELETE_SUBSCR, DELETE_NAME, DELETE_ATTR,
+ * DELETE_GLOBAL and DELETE_FAST.
+ */
+#define HAVE_DEL
+
+/**
+ * When defined, the code to support the IMPORT_FROM and IMPORT_STAR styles
+ * is included in the build.
+ */
+#define HAVE_IMPORTS
+
+/**
+ * When defined, the code to support the assert statement is included
+ * in the build.
+ */
+#define HAVE_ASSERT
+
+/* #157 Support default args */
+/**
+ * When defined, the code to support default arguments to functions is included
+ * in the build.
+ */
+#define HAVE_DEFAULTARGS
+
+/* #160 Add support for string and tuple replication */
+/**
+ * When defined, the code to support sequence (list, tuple, string) replcation
+ * is included in the build.
+ * This feature is required by the builtin function __bi.map().
+ */
+#define HAVE_REPLICATION
+
+#endif /* FEATURES_H_ */

File src/tests/system/pmfeatures.h

+/*
+ * PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
+ * Copyright 2002 Dean Hall.  All rights reserved.
+ * PyMite is offered through one of two licenses: commercial or open-source.
+ * See the LICENSE file at the root of this package for licensing details.
+ */
+
+
+/**
+ * VM feature configuration
+ *
+ * Compile time switches to include features or save space.
+ *
+ * IMPORTANT: All of the HAVE_* items in this file should also exist in the
+ * PM_FEATURES dict in src/tools/pmImgCreator.py.  If the item is defined here,
+ * the corresponding dict value should be True; False otherwise.
+ */
+
+
+#ifndef FEATURES_H_
+#define FEATURES_H_
+
+
+/** Defines the size of the static heap */
+#define PM_HEAP_SIZE 0x2000
+
+
+/**
+ * When defined, bytecodes PRINT_ITEM and PRINT_NEWLINE are supported. Along
+ * with these, helper routines in the object type are compiled in that allow
+ * printing of the object.
+ */
+#define HAVE_PRINT
+
+
+/**
+ * When defined, the code to perform mark-sweep garbage collection is included
+ * in the build and automatic GC is enabled.  When undefined the allocator
+ * will distribute memory until none is left, after which a memory exception
+ * will occur.
+ */
+#define HAVE_GC
+
+
+/* #148 Create configurable float datatype */
+/**
+ * When defined, the code to support floating point objects is included
+ * in the build.
+ */
+/*#define HAVE_FLOAT*/
+/*#define PM_FLOAT_BIG_ENDIAN*/
+
+/**
+ * When defined, the code to support the keyword del is included in the build.
+ * This involves the bytecodes: DELETE_SUBSCR, DELETE_NAME, DELETE_ATTR,
+ * DELETE_GLOBAL and DELETE_FAST.
+ */
+#define HAVE_DEL
+
+/**
+ * When defined, the code to support the IMPORT_FROM and IMPORT_STAR styles
+ * is included in the build.
+ */
+#define HAVE_IMPORTS
+
+/**
+ * When defined, the code to support the assert statement is included
+ * in the build.
+ */
+#define HAVE_ASSERT
+
+/* #157 Support default args */
+/**
+ * When defined, the code to support default arguments to functions is included
+ * in the build.
+ */
+#define HAVE_DEFAULTARGS
+
+/* #160 Add support for string and tuple replication */
+/**
+ * When defined, the code to support sequence (list, tuple, string) replcation
+ * is included in the build.
+ * This feature is required by the builtin function __bi.map().
+ */
+#define HAVE_REPLICATION
+
+#endif /* FEATURES_H_ */

File src/tests/unit/pmfeatures.h

+/*
+ * PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
+ * Copyright 2002 Dean Hall.  All rights reserved.
+ * PyMite is offered through one of two licenses: commercial or open-source.
+ * See the LICENSE file at the root of this package for licensing details.
+ */
+
+
+/**
+ * VM feature configuration
+ *
+ * Compile time switches to include features or save space.
+ *
+ * IMPORTANT: All of the HAVE_* items in this file should also exist in the
+ * PM_FEATURES dict in src/tools/pmImgCreator.py.  If the item is defined here,
+ * the corresponding dict value should be True; False otherwise.
+ */
+
+
+#ifndef FEATURES_H_
+#define FEATURES_H_
+
+
+/** Defines the size of the static heap */
+#define PM_HEAP_SIZE 0x2000
+
+
+/**
+ * When defined, bytecodes PRINT_ITEM and PRINT_NEWLINE are supported. Along
+ * with these, helper routines in the object type are compiled in that allow
+ * printing of the object.
+ */
+#define HAVE_PRINT
+
+
+/**
+ * When defined, the code to perform mark-sweep garbage collection is included
+ * in the build and automatic GC is enabled.  When undefined the allocator
+ * will distribute memory until none is left, after which a memory exception
+ * will occur.
+ */
+#define HAVE_GC
+
+
+/* #148 Create configurable float datatype */
+/**
+ * When defined, the code to support floating point objects is included
+ * in the build.
+ */
+/*#define HAVE_FLOAT*/
+/*#define PM_FLOAT_BIG_ENDIAN*/
+
+/**
+ * When defined, the code to support the keyword del is included in the build.
+ * This involves the bytecodes: DELETE_SUBSCR, DELETE_NAME, DELETE_ATTR,
+ * DELETE_GLOBAL and DELETE_FAST.
+ */
+#define HAVE_DEL
+
+/**
+ * When defined, the code to support the IMPORT_FROM and IMPORT_STAR styles
+ * is included in the build.
+ */
+#define HAVE_IMPORTS
+
+/**
+ * When defined, the code to support the assert statement is included
+ * in the build.
+ */
+#define HAVE_ASSERT
+
+/* #157 Support default args */
+/**
+ * When defined, the code to support default arguments to functions is included
+ * in the build.
+ */
+#define HAVE_DEFAULTARGS
+
+/* #160 Add support for string and tuple replication */
+/**
+ * When defined, the code to support sequence (list, tuple, string) replcation
+ * is included in the build.
+ * This feature is required by the builtin function __bi.map().
+ */
+#define HAVE_REPLICATION
+
+#endif /* FEATURES_H_ */

File src/vm/pmfeatures.h

Empty file removed.