Skip to content
Snippets Groups Projects
Select Git revision
  • 31999d1567fd04bf994ecb332391a2bc8880c249
  • master default protected
  • 9.0
  • 8.0
  • 7.8
  • 7.6
  • 7.4
  • 7.2
  • 7.0
  • 0.6
  • rosuav/latex-markdown-renderer
  • rxnpatch/rxnpatch
  • marcus/gobject-introspection
  • rxnpatch/8.0
  • rosuav/pre-listening-ports
  • nt-tools
  • rosuav/async-annotations
  • rosuav/pgsql-ssl
  • rxnpatch/rxnpatch-broken/2023-10-06T094250
  • grubba/fdlib
  • grubba/wip/sakura/8.0
  • v8.0.2000
  • v8.0.1998
  • v8.0.1996
  • v8.0.1994
  • v8.0.1992
  • v8.0.1990
  • v8.0.1988
  • v8.0.1986
  • rxnpatch/clusters/8.0/2025-04-29T124414
  • rxnpatch/2025-04-29T124414
  • v8.0.1984
  • v8.0.1982
  • v8.0.1980
  • v8.0.1978
  • v8.0.1976
  • v8.0.1974
  • v8.0.1972
  • v8.0.1970
  • v8.0.1968
  • v8.0.1966
41 results

object.c

Blame
    • Fredrik Hübinette (Hubbe)'s avatar
      19aaeb43
      made it possible to set index in strings · 19aaeb43
      Fredrik Hübinette (Hubbe) authored
      Rev: lib/modules/Yabu.pmod/test.pike:1.3
      Rev: src/builtin_functions.c:1.111
      Rev: src/docode.c:1.38
      Rev: src/docode.h:1.7
      Rev: src/interpret.c:1.85
      Rev: src/main.c:1.53
      Rev: src/module_support.c:1.12
      Rev: src/object.c:1.52
      Rev: src/operators.c:1.33
      Rev: src/operators.h:1.5
      Rev: src/stralloc.c:1.36
      Rev: src/stralloc.h:1.16
      Rev: src/testsuite.in:1.114
      19aaeb43
      History
      made it possible to set index in strings
      Fredrik Hübinette (Hubbe) authored
      Rev: lib/modules/Yabu.pmod/test.pike:1.3
      Rev: src/builtin_functions.c:1.111
      Rev: src/docode.c:1.38
      Rev: src/docode.h:1.7
      Rev: src/interpret.c:1.85
      Rev: src/main.c:1.53
      Rev: src/module_support.c:1.12
      Rev: src/object.c:1.52
      Rev: src/operators.c:1.33
      Rev: src/operators.h:1.5
      Rev: src/stralloc.c:1.36
      Rev: src/stralloc.h:1.16
      Rev: src/testsuite.in:1.114
    object.c 23.38 KiB
    /*\
    ||| This file a part of Pike, and is copyright by Fredrik Hubinette
    ||| Pike is distributed as GPL (General Public License)
    ||| See the files COPYING and DISCLAIMER for more information.
    \*/
    #include "global.h"
    RCSID("$Id: object.c,v 1.52 1998/05/25 10:38:46 hubbe Exp $");
    #include "object.h"
    #include "dynamic_buffer.h"
    #include "interpret.h"
    #include "program.h"
    #include "stralloc.h"
    #include "svalue.h"
    #include "pike_macros.h"
    #include "pike_memory.h"
    #include "error.h"
    #include "main.h"
    #include "array.h"
    #include "gc.h"
    #include "backend.h"
    #include "callback.h"
    #include "cpp.h"
    #include "builtin_functions.h"
    #include "cyclic.h"
    
    #ifdef HAVE_SYS_FILE_H
    #include <sys/file.h>
    #endif /* HAVE_SYS_FILE_H */
    
    #include "dmalloc.h"
    
    
    #ifndef SEEK_SET
    #ifdef L_SET
    #define SEEK_SET	L_SET
    #else /* !L_SET */
    #define SEEK_SET	0
    #endif /* L_SET */
    #endif /* SEEK_SET */
    #ifndef SEEK_CUR
    #ifdef L_INCR
    #define SEEK_SET	L_INCR
    #else /* !L_INCR */
    #define SEEK_CUR	1
    #endif /* L_INCR */
    #endif /* SEEK_CUR */
    #ifndef SEEK_END
    #ifdef L_XTND
    #define SEEK_END	L_XTND
    #else /* !L_XTND */
    #define SEEK_END	2
    #endif /* L_XTND */
    #endif /* SEEK_END */
    
    
    struct object *master_object = 0;
    struct program *master_program =0;
    struct object *first_object;
    
    struct object *low_clone(struct program *p)
    {
      int e;
      struct object *o;
      struct frame frame;
    
      if(!(p->flags & PROGRAM_FINISHED))
        error("Attempting to clone an unfinished program\n");
    
    #ifdef PROFILING
      p->num_clones++;