RAPL

Check-in [7770b50f1e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fix for setFromAny
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:7770b50f1ede44504835a50a307c7c60bb80033f
User & Date: arnulf 2012-04-07 15:58:58
Context
2012-04-13
07:28
fixes check-in: d367592391 user: arnulf tags: trunk
2012-04-07
15:58
fix for setFromAny check-in: 7770b50f1e user: arnulf tags: trunk
2012-04-05
13:53
fixes and removal of dead or duplicate code check-in: c3abdb2183 user: arnulf tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to rapl_string_obj_type.js.

30
31
32
33
34
35
36











37
38
39
40
41
42
43
  my_name: "StringObjType",
  type_name: "string",
  flags: 1,
  default_trim_chars: " \t\n\r",

  /* ==================== setFromAny ================================== */
  setFromAny: function(obj_ptr) {











  },

  /* ==================== dupInternalRep ===================================== */
  dupInternalRep: function(src_ptr, dup_ptr) {
    throw "string dupInternalRep not yet implemented";
  },








>
>
>
>
>
>
>
>
>
>
>







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
  my_name: "StringObjType",
  type_name: "string",
  flags: 1,
  default_trim_chars: " \t\n\r",

  /* ==================== setFromAny ================================== */
  setFromAny: function(obj_ptr) {
    var obj = this;
    /* Get a fresh string representation. */
    obj_ptr.getString();
    /* Free any other internal representation. */
    obj_ptr.freeIntRep();
    /* Set it as string, i.e. just set the maxLength field. */
    obj_ptr.obj_type = obj.interp.obj_type_string;
    obj_ptr.strValue.maxLength(obj_ptr.len);
    /* Don't know the utf-8 length yet */
    obj_ptr.strValue.charLength(-1);
    return obj.interp.OK;
  },

  /* ==================== dupInternalRep ===================================== */
  dupInternalRep: function(src_ptr, dup_ptr) {
    throw "string dupInternalRep not yet implemented";
  },