Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[pmc] we don't need need_ext anymore, so BALEETED

git-svn-id: https://svn.parrot.org/parrot/trunk@40739 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
commit 6b81760807efaf4644bdb2bb9829d115111288e3 1 parent 5ff38df
@Whiteknight Whiteknight authored
Showing with 48 additions and 53 deletions.
  1. +1 −1  src/pmc/addrregistry.pmc
  2. +1 −1  src/pmc/array.pmc
  3. +1 −1  src/pmc/callsignature.pmc
  4. +1 −1  src/pmc/capture.pmc
  5. +1 −2  src/pmc/class.pmc
  6. +1 −1  src/pmc/complex.pmc
  7. +1 −1  src/pmc/continuation.pmc
  8. +1 −1  src/pmc/coroutine.pmc
  9. +1 −1  src/pmc/cpointer.pmc
  10. +1 −1  src/pmc/eval.pmc
  11. +1 −1  src/pmc/eventhandler.pmc
  12. +1 −1  src/pmc/exceptionhandler.pmc
  13. +1 −1  src/pmc/exporter.pmc
  14. +1 −1  src/pmc/fixedbooleanarray.pmc
  15. +1 −1  src/pmc/fixedfloatarray.pmc
  16. +1 −1  src/pmc/fixedintegerarray.pmc
  17. +1 −1  src/pmc/fixedpmcarray.pmc
  18. +1 −1  src/pmc/fixedstringarray.pmc
  19. +1 −1  src/pmc/hash.pmc
  20. +1 −1  src/pmc/key.pmc
  21. +1 −1  src/pmc/lexinfo.pmc
  22. +1 −1  src/pmc/managedstruct.pmc
  23. +1 −1  src/pmc/multisub.pmc
  24. +1 −1  src/pmc/namespace.pmc
  25. +1 −1  src/pmc/nci.pmc
  26. +1 −1  src/pmc/object.pmc
  27. +1 −1  src/pmc/orderedhash.pmc
  28. +1 −1  src/pmc/parrotinterpreter.pmc
  29. +1 −1  src/pmc/parrotlibrary.pmc
  30. +1 −1  src/pmc/parrotthread.pmc
  31. +1 −1  src/pmc/pccmethod_test.pmc
  32. +1 −1  src/pmc/pmcproxy.pmc
  33. +1 −1  src/pmc/pointer.pmc
  34. +1 −1  src/pmc/resizablebooleanarray.pmc
  35. +1 −1  src/pmc/resizablefloatarray.pmc
  36. +1 −1  src/pmc/resizableintegerarray.pmc
  37. +1 −1  src/pmc/resizablepmcarray.pmc
  38. +1 −1  src/pmc/resizablestringarray.pmc
  39. +1 −1  src/pmc/retcontinuation.pmc
  40. +1 −1  src/pmc/role.pmc
  41. +1 −1  src/pmc/scheduler.pmc
  42. +1 −1  src/pmc/schedulermessage.pmc
  43. +1 −1  src/pmc/sockaddr.pmc
  44. +1 −1  src/pmc/stringhandle.pmc
  45. +1 −5 src/pmc/sub.pmc
  46. +1 −1  src/pmc/task.pmc
  47. +1 −1  src/pmc/timer.pmc
  48. +1 −1  src/pmc/unmanagedstruct.pmc
View
2  src/pmc/addrregistry.pmc
@@ -29,7 +29,7 @@ C<Parrot_register_pmc> if it isn't visible to Parrot.
#include "parrot/hash.h"
#include "pmc_hash.h"
-pmclass AddrRegistry extends Hash need_ext provides hash {
+pmclass AddrRegistry extends Hash provides hash {
/*
=item C<void init()>
View
2  src/pmc/array.pmc
@@ -98,7 +98,7 @@ static PMC *Parrot_Array_set_pmc_ptr(PARROT_INTERP, List *list, INTVAL key) {
}
-pmclass Array need_ext provides array {
+pmclass Array provides array {
/*
View
2  src/pmc/callsignature.pmc
@@ -27,7 +27,7 @@ information for a multiple dispatch call.
if (!PARROT_CAPTURE(obj)->hash) \
PARROT_CAPTURE(obj)->hash = pmc_new((i), enum_class_Hash);
-pmclass CallSignature extends Capture need_ext auto_attrs provides array provides hash {
+pmclass CallSignature extends Capture auto_attrs provides array provides hash {
ATTR PMC *returns; /* Result PMCs, if they were passed with the call */
ATTR PMC *type_tuple; /* Cached argument types for multiple dispatch */
ATTR STRING *short_sig; /* Simple string signature args & returns */
View
2  src/pmc/capture.pmc
@@ -26,7 +26,7 @@ These are the vtable functions for the Capture PMC.
if (!PARROT_CAPTURE(obj)->hash) \
PARROT_CAPTURE(obj)->hash = pmc_new((i), enum_class_Hash);
-pmclass Capture need_ext auto_attrs {
+pmclass Capture auto_attrs {
ATTR PMC *array;
ATTR PMC *hash;
ATTR INTVAL data_size;
View
3  src/pmc/class.pmc
@@ -450,8 +450,7 @@ calculate_mro(PARROT_INTERP, PMC *SELF, INTVAL num_parents)
*/
-pmclass Class
- need_ext auto_attrs {
+pmclass Class auto_attrs {
ATTR INTVAL id; /* The type number of the PMC. [deprecated: See RT #48024] */
ATTR STRING *name; /* The name of the class. */
View
2  src/pmc/complex.pmc
@@ -217,7 +217,7 @@ complex_check_divide_zero(PARROT_INTERP, PMC *value) {
}
-pmclass Complex need_ext auto_attrs {
+pmclass Complex auto_attrs {
ATTR FLOATVAL re; /* real part */
ATTR FLOATVAL im; /* imaginary part */
View
2  src/pmc/continuation.pmc
@@ -45,7 +45,7 @@ more information.
* need the next_for_GC pointer.
*/
-pmclass Continuation need_ext auto_attrs {
+pmclass Continuation auto_attrs {
ATTR struct Parrot_cont *cont; /* the continuation struct */
/*
View
2  src/pmc/coroutine.pmc
@@ -56,7 +56,7 @@ print_sub_name(PARROT_INTERP, PMC *sub_pmc)
print_pbc_location(interp);
}
-pmclass Coroutine extends Sub need_ext {
+pmclass Coroutine extends Sub {
ATTR PackFile_ByteCode *caller_seg; /* bytecode segment */
ATTR opcode_t *address; /* next address to run - toggled each time */
View
2  src/pmc/cpointer.pmc
@@ -46,7 +46,7 @@ These are the vtable functions for the CPointer class.
*/
-pmclass CPointer need_ext auto_attrs {
+pmclass CPointer auto_attrs {
ATTR void *pointer; /* The stored pointer. */
ATTR STRING *sig; /* A string signature for the pointer. */
View
2  src/pmc/eval.pmc
@@ -125,7 +125,7 @@ mark_subs(PARROT_INTERP, PMC *self)
}
}
-pmclass Eval extends Sub need_ext {
+pmclass Eval extends Sub {
VTABLE void init() {
Parrot_Sub_attributes *sub_data;
View
2  src/pmc/eventhandler.pmc
@@ -19,7 +19,7 @@ Event.
*/
-pmclass EventHandler extends Sub need_ext {
+pmclass EventHandler extends Sub {
ATTR STRING *type; /* the type of the event to handle */
ATTR PMC *code; /* the code object to execute */
View
2  src/pmc/exceptionhandler.pmc
@@ -22,7 +22,7 @@ exception object's C<_P5> attribute.
#include "parrot/oplib/ops.h"
-pmclass ExceptionHandler extends Continuation need_ext auto_attrs {
+pmclass ExceptionHandler extends Continuation auto_attrs {
ATTR PMC *handled_types;
ATTR PMC *handled_types_except;
View
2  src/pmc/exporter.pmc
@@ -90,7 +90,7 @@ A Null PMC is allocated during initialization.
*/
-pmclass Exporter need_ext auto_attrs {
+pmclass Exporter auto_attrs {
ATTR PMC *ns_src;
ATTR PMC *ns_dest;
View
2  src/pmc/fixedbooleanarray.pmc
@@ -23,7 +23,7 @@ PMC.
#define BITS_PER_CHAR 8
-pmclass FixedBooleanArray need_ext auto_attrs provides array {
+pmclass FixedBooleanArray auto_attrs provides array {
ATTR UINTVAL size; /* # of bits this fba holds */
ATTR UINTVAL resize_threshold; /* max capacity before resizing */
ATTR unsigned char * bit_array; /* where the bits go */
View
2  src/pmc/fixedfloatarray.pmc
@@ -19,7 +19,7 @@ stored FLOATVALs. It uses Float PMCs to do all necessary conversions.
*/
-pmclass FixedFloatArray need_ext auto_attrs provides array {
+pmclass FixedFloatArray auto_attrs provides array {
ATTR INTVAL size;
ATTR FLOATVAL *float_array;
View
2  src/pmc/fixedintegerarray.pmc
@@ -19,7 +19,7 @@ INTVALs. It uses Integer PMCs for all of the conversions.
*/
-pmclass FixedIntegerArray need_ext auto_attrs provides array {
+pmclass FixedIntegerArray auto_attrs provides array {
ATTR INTVAL size; /* number of INTVALs stored in this array */
ATTR INTVAL * int_array; /* INTVALs are stored here */
View
2  src/pmc/fixedpmcarray.pmc
@@ -27,7 +27,7 @@ never be set for user arrays.
#define PMC_size(x) ((Parrot_FixedPMCArray_attributes *)PMC_data(x))->size
#define PMC_array(x) ((Parrot_FixedPMCArray_attributes *)PMC_data(x))->pmc_array
-pmclass FixedPMCArray need_ext auto_attrs provides array {
+pmclass FixedPMCArray auto_attrs provides array {
ATTR INTVAL size; /* number of elements in the array */
ATTR PMC **pmc_array; /* pointer to PMC array */
View
2  src/pmc/fixedstringarray.pmc
@@ -19,7 +19,7 @@ stores Parrot strings.
*/
-pmclass FixedStringArray need_ext auto_attrs provides array {
+pmclass FixedStringArray auto_attrs provides array {
ATTR STRING **str_array; /* where the STRINGs are stored */
ATTR UINTVAL size; /* element count */
View
2  src/pmc/hash.pmc
@@ -376,7 +376,7 @@ hash_value_to_number(PARROT_INTERP, const Hash * const hash, void *value)
/* Needs ext struct for the next_for_GC pointer
* We would get recursive marking of a deeply nested HoHoH...
*/
-pmclass Hash need_ext provides hash {
+pmclass Hash provides hash {
ATTR Hash *hash;
/*
View
2  src/pmc/key.pmc
@@ -18,7 +18,7 @@ These are the vtable functions for the Key PMC class.
*/
-pmclass Key need_ext auto_attrs {
+pmclass Key auto_attrs {
ATTR PMC *next_key; /* Sometimes it's the next key, sometimes it's
not. The Key code is like that. */
ATTR INTVAL int_key; /* int value of this key, or something magical if
View
2  src/pmc/lexinfo.pmc
@@ -26,7 +26,7 @@ These are the vtable functions for the lexinfo PMC.
* keys and integer indices
*/
-pmclass LexInfo extends Hash need_ext provides hash no_ro {
+pmclass LexInfo extends Hash provides hash no_ro {
/*
View
2  src/pmc/managedstruct.pmc
@@ -22,7 +22,7 @@ C<struct> values that Parrot is responsible for disposing of.
typedef void (*custom_free_func_t)(PARROT_INTERP, void *ptr, void *priv);
typedef PMC * (*custom_clone_func_t)(PARROT_INTERP, PMC *ptr, void *priv);
-pmclass ManagedStruct extends UnManagedStruct need_ext auto_attrs {
+pmclass ManagedStruct extends UnManagedStruct auto_attrs {
/* if custom_free_func and ptr (inherited from UnManagedStruct) are both set,
* custom_free_func is called before the normal destroy() function does any
* work.
View
2  src/pmc/multisub.pmc
@@ -19,7 +19,7 @@ Sub PMCs with the same short name, but different long names.
*/
-pmclass MultiSub extends ResizablePMCArray need_ext auto_attrs provides array {
+pmclass MultiSub extends ResizablePMCArray auto_attrs provides array {
VTABLE void push_pmc(PMC *value) {
STRING * const _sub = CONST_STRING(interp, "Sub");
View
2  src/pmc/namespace.pmc
@@ -123,7 +123,7 @@ typedef enum {
#define FPA_is_ns_ext PObj_private0_FLAG
-pmclass NameSpace extends Hash provides hash need_ext no_ro {
+pmclass NameSpace extends Hash provides hash no_ro {
ATTR STRING *name; /* Name of this namespace part. */
ATTR PMC *_class; /* The class or role attached to this namespace. */
View
2  src/pmc/nci.pmc
@@ -123,7 +123,7 @@ nci_sub_t build_func(PARROT_INTERP, PMC *pmc, Parrot_NCI_attributes *nci_info)
}
-pmclass NCI need_ext auto_attrs {
+pmclass NCI auto_attrs {
ATTR STRING *signature; /* The signature. */
ATTR void *func; /* Function pointer to call. */
ATTR void *orig_func; /* Function pointer
View
2  src/pmc/object.pmc
@@ -107,7 +107,7 @@ get_attrib_index_keyed(PARROT_INTERP, PMC *self, PMC *key, STRING *name)
return -1;
}
-pmclass Object need_ext {
+pmclass Object {
ATTR PMC *_class; /* The class this is an instance of. */
ATTR PMC *attrib_store; /* The attributes store - a resizable PMC array. */
View
2  src/pmc/orderedhash.pmc
@@ -39,7 +39,7 @@ See F<t/pmc/orderedhash.t>.
*/
-pmclass OrderedHash extends Hash need_ext provides array provides hash {
+pmclass OrderedHash extends Hash provides array provides hash {
/*
View
2  src/pmc/parrotinterpreter.pmc
@@ -184,7 +184,7 @@ recursion_limit(PARROT_INTERP, PMC *self, int l)
return ret;
}
-pmclass ParrotInterpreter need_ext no_ro {
+pmclass ParrotInterpreter no_ro {
ATTR struct parrot_interp_t *interp; /* this PMC's interpreter */
ATTR INTVAL tid; /* thread id */
ATTR PMC *args; /* args passed to this thread */
View
2  src/pmc/parrotlibrary.pmc
@@ -31,7 +31,7 @@ a ParrotLibrary PMC.
#define PMC_dlhandle(x) ((Parrot_ParrotLibrary_attributes*)PMC_data(x))->dl_handle
#define PMC_oplib_init(x) ((Parrot_ParrotLibrary_attributes*)PMC_data(x))->oplib_init
-pmclass ParrotLibrary need_ext auto_attrs provides library {
+pmclass ParrotLibrary auto_attrs provides library {
ATTR void * dl_handle; /* DLL handle */
ATTR void * oplib_init; /* oplib init function */
View
2  src/pmc/parrotthread.pmc
@@ -82,7 +82,7 @@ static INTVAL do_thread_run_clone_default(PARROT_INTERP,
}
-pmclass ParrotThread extends ParrotInterpreter need_ext no_ro {
+pmclass ParrotThread extends ParrotInterpreter no_ro {
/*
View
2  src/pmc/pccmethod_test.pmc
@@ -10,7 +10,7 @@ src/pmc/pmethod_test.pmc - METHOD_Test PMC
*/
-pmclass PCCMETHOD_Test need_ext provides hash {
+pmclass PCCMETHOD_Test provides hash {
METHOD test_method()
View
2  src/pmc/pmcproxy.pmc
@@ -64,7 +64,7 @@ NOTE: No doubt we will need other things later; this is a start.
*/
-pmclass PMCProxy extends Class need_ext auto_attrs {
+pmclass PMCProxy extends Class auto_attrs {
/*
View
2  src/pmc/pointer.pmc
@@ -20,7 +20,7 @@ The actual pointer is in C<PMC_data>.
*/
-pmclass Pointer need_ext auto_attrs {
+pmclass Pointer auto_attrs {
ATTR void * mark_function;
ATTR void * pointer;
View
2  src/pmc/resizablebooleanarray.pmc
@@ -30,7 +30,7 @@ C<ResizableBooleanArray PMC> extends the C<FixedBooleanArray PMC>.
/* Convert a size in bits to a size in bytes */
#define BITS_TO_BYTES(size) ((size) / BITS_PER_CHAR)
-pmclass ResizableBooleanArray extends FixedBooleanArray need_ext auto_attrs provides array {
+pmclass ResizableBooleanArray extends FixedBooleanArray auto_attrs provides array {
/* RBA uses the same attributes as FBA, but in RBA they're used as follows:
size: position of the last element (a.k.a tail_pos)
resize_threshold: position of the first element (a.k.a. head_pos) */
View
2  src/pmc/resizablefloatarray.pmc
@@ -20,7 +20,7 @@ which stores FLOATVALs. It uses Float PMCs to do all necessary conversions.
*/
-pmclass ResizableFloatArray extends FixedFloatArray need_ext auto_attrs provides array {
+pmclass ResizableFloatArray extends FixedFloatArray auto_attrs provides array {
ATTR INTVAL resize_threshold; /* max size before array needs resizing */
/*
View
2  src/pmc/resizableintegerarray.pmc
@@ -20,7 +20,7 @@ conversions.
*/
-pmclass ResizableIntegerArray extends FixedIntegerArray need_ext auto_attrs provides array {
+pmclass ResizableIntegerArray extends FixedIntegerArray auto_attrs provides array {
ATTR INTVAL resize_threshold; /* max size before array needs to be resized */
/*
View
2  src/pmc/resizablepmcarray.pmc
@@ -23,7 +23,7 @@ It puts things into Integer, Float, or String PMCs as appropriate.
#define PMC_array(x) ((Parrot_ResizablePMCArray_attributes *)PMC_data(x))->pmc_array
#define PMC_threshold(x) ((Parrot_ResizablePMCArray_attributes *)PMC_data(x))->resize_threshold
-pmclass ResizablePMCArray extends FixedPMCArray need_ext auto_attrs provides array {
+pmclass ResizablePMCArray extends FixedPMCArray auto_attrs provides array {
ATTR INTVAL resize_threshold; /* max size before array needs resizing */
View
2  src/pmc/resizablestringarray.pmc
@@ -18,7 +18,7 @@ method called.
*/
-pmclass ResizableStringArray extends FixedStringArray need_ext auto_attrs provides array {
+pmclass ResizableStringArray extends FixedStringArray auto_attrs provides array {
ATTR UINTVAL resize_threshold; /*max capacity before resizing */
/*
View
2  src/pmc/retcontinuation.pmc
@@ -23,7 +23,7 @@ after invocation.
#include "parrot/oplib/ops.h"
-pmclass RetContinuation extends Continuation need_ext auto_attrs {
+pmclass RetContinuation extends Continuation auto_attrs {
/*
View
2  src/pmc/role.pmc
@@ -198,7 +198,7 @@ static void init_role_from_hash(PARROT_INTERP, PMC *self, PMC *info)
*/
-pmclass Role need_ext auto_attrs {
+pmclass Role auto_attrs {
ATTR STRING *name; /* The name of the role. */
ATTR PMC *_namespace; /* The namespace it's linked to, if any. */
ATTR PMC *roles; /* Roles from which this role is composed. */
View
2  src/pmc/scheduler.pmc
@@ -20,7 +20,7 @@ Implements the core concurrency scheduler.
#include "parrot/scheduler_private.h"
-pmclass Scheduler need_ext auto_attrs {
+pmclass Scheduler auto_attrs {
ATTR INTVAL id; /* The scheduler's ID. */
ATTR INTVAL max_tid; /* The highest assigned task ID. */
View
2  src/pmc/schedulermessage.pmc
@@ -20,7 +20,7 @@ Implements a message passed between concurrency schedulers.
#include "parrot/scheduler_private.h"
-pmclass SchedulerMessage need_ext auto_attrs {
+pmclass SchedulerMessage auto_attrs {
ATTR INTVAL id; /* The message's ID. */
ATTR STRING *type; /* The message's type. */
ATTR PMC *data; /* Additional data for the message. */
View
2  src/pmc/sockaddr.pmc
@@ -29,7 +29,7 @@ extern "C" {
}
#endif
-pmclass Sockaddr need_ext auto_attrs {
+pmclass Sockaddr auto_attrs {
ATTR void *pointer; /* The stored pointer. */
/*
View
2  src/pmc/stringhandle.pmc
@@ -46,7 +46,7 @@ static int encoding_is_utf8(PARROT_INTERP, ARGIN_NULLOK(STRING *s))
return Parrot_str_equal(interp, s, CONST_STRING(interp, "utf8"));
}
-pmclass StringHandle extends Handle need_ext auto_attrs {
+pmclass StringHandle extends Handle auto_attrs {
ATTR INTVAL flags; /* Filehandle flags */
ATTR STRING *stringhandle; /* The string data */
ATTR STRING *mode; /* The mode string used in open */
View
6 src/pmc/sub.pmc
@@ -35,11 +35,7 @@ print_sub_name(PARROT_INTERP, ARGIN_NULLOK(PMC *sub))
print_pbc_location(interp);
}
-/*
- * A sub now contains more data like namespace, which makes it
- * effectively a container. Therefore need_ext has to be set
- */
-pmclass Sub need_ext {
+pmclass Sub {
ATTR PackFile_ByteCode *seg; /* bytecode segment */
ATTR size_t start_offs; /* sub entry in ops from seg->base.data */
ATTR size_t end_offs;
View
2  src/pmc/task.pmc
@@ -20,7 +20,7 @@ Implements the basic task behavior for the concurrency scheduler.
#include "parrot/scheduler_private.h"
-pmclass Task need_ext auto_attrs {
+pmclass Task auto_attrs {
ATTR INTVAL id; /* The task ID. */
ATTR INTVAL priority; /* The priority of the task. */
ATTR FLOATVAL birthtime; /* The creation time stamp of the task. */
View
2  src/pmc/timer.pmc
@@ -57,7 +57,7 @@ initializer.
#include "parrot/scheduler_private.h"
-pmclass Timer extends Task provides event need_ext auto_attrs {
+pmclass Timer extends Task provides event auto_attrs {
ATTR FLOATVAL duration; /* The duration of the timer pause */
ATTR FLOATVAL interval; /* How often to repeat */
ATTR INTVAL repeat; /* Whether to repeat:
View
2  src/pmc/unmanagedstruct.pmc
@@ -650,7 +650,7 @@ calc_offsets(PARROT_INTERP, PMC *pmc, PMC *value, size_t toff)
return toff;
}
-pmclass UnManagedStruct need_ext auto_attrs no_ro {
+pmclass UnManagedStruct auto_attrs no_ro {
ATTR void *ptr; /* the struct that this UnManagedStruct isn't managing */
ATTR PMC *init; /* the initializer used with this UnManagedStruct */
ATTR INTVAL size; /* the size of the struct */
Please sign in to comment.
Something went wrong with that request. Please try again.