~ubuntu-branches/ubuntu/intrepid/ecl/intrepid

« back to all changes in this revision

Viewing changes to src/gc/include/gc.h

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2006-06-21 09:21:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060621092121-txz1f21lj0wh0f67
Tags: 0.9h-20060617-1
* New upstream version
* Updated standards version without real changes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
                        /* ordered finalization.  Default value is      */
130
130
                        /* determined by JAVA_FINALIZATION macro.       */
131
131
 
132
 
GC_API void (* GC_finalizer_notifier)();
 
132
GC_API void (* GC_finalizer_notifier) GC_PROTO((void));
133
133
                        /* Invoked by the collector when there are      */
134
134
                        /* objects to be finalized.  Invoked at most    */
135
135
                        /* once per GC cycle.  Never invoked unless     */
267
267
 */
268
268
GC_API GC_PTR GC_malloc GC_PROTO((size_t size_in_bytes));
269
269
GC_API GC_PTR GC_malloc_atomic GC_PROTO((size_t size_in_bytes));
 
270
GC_API char *GC_strdup GC_PROTO((const char *str));
270
271
GC_API GC_PTR GC_malloc_uncollectable GC_PROTO((size_t size_in_bytes));
271
272
GC_API GC_PTR GC_malloc_stubborn GC_PROTO((size_t size_in_bytes));
272
273
 
523
524
        GC_PROTO((size_t size_in_bytes, GC_EXTRA_PARAMS));
524
525
GC_API GC_PTR GC_debug_malloc_atomic
525
526
        GC_PROTO((size_t size_in_bytes, GC_EXTRA_PARAMS));
 
527
GC_API char *GC_debug_strdup
 
528
       GC_PROTO((const char *str, GC_EXTRA_PARAMS));
526
529
GC_API GC_PTR GC_debug_malloc_uncollectable
527
530
        GC_PROTO((size_t size_in_bytes, GC_EXTRA_PARAMS));
528
531
GC_API GC_PTR GC_debug_malloc_stubborn
557
560
# ifdef GC_DEBUG
558
561
#   define GC_MALLOC(sz) GC_debug_malloc(sz, GC_EXTRAS)
559
562
#   define GC_MALLOC_ATOMIC(sz) GC_debug_malloc_atomic(sz, GC_EXTRAS)
 
563
#   define GC_STRDUP(s) GC_debug_strdup((s), GC_EXTRAS)
560
564
#   define GC_MALLOC_UNCOLLECTABLE(sz) \
561
565
                        GC_debug_malloc_uncollectable(sz, GC_EXTRAS)
562
566
#   define GC_MALLOC_IGNORE_OFF_PAGE(sz) \
580
584
# else
581
585
#   define GC_MALLOC(sz) GC_malloc(sz)
582
586
#   define GC_MALLOC_ATOMIC(sz) GC_malloc_atomic(sz)
 
587
#   define GC_STRDUP(s) GC_strdup(s)
583
588
#   define GC_MALLOC_UNCOLLECTABLE(sz) GC_malloc_uncollectable(sz)
584
589
#   define GC_MALLOC_IGNORE_OFF_PAGE(sz) \
585
590
                        GC_malloc_ignore_off_page(sz)
889
894
GC_PTR GC_malloc_many(size_t lb);
890
895
#define GC_NEXT(p) (*(GC_PTR *)(p))     /* Retrieve the next element    */
891
896
                                        /* in returned list.            */
892
 
extern void GC_thr_init();      /* Needed for Solaris/X86       */
 
897
extern void GC_thr_init GC_PROTO((void));/* Needed for Solaris/X86      */
893
898
 
894
899
#endif /* THREADS && !SRC_M3 */
895
900
 
940
945
     * from the statically loaded program section.
941
946
     * This circumvents a Solaris 2.X (X<=4) linker bug.
942
947
     */
943
 
#   define GC_INIT() { extern end, etext; \
944
 
                       GC_noop(&end, &etext); }
 
948
#   ifdef __cplusplus
 
949
#     define GC_INIT() { extern int _end[], _etext[]; \
 
950
                         extern "C" void GC_noop1(GC_word); \
 
951
                         GC_noop1((GC_word)_end); \
 
952
                         GC_noop1((GC_word)_etext); }
 
953
#   else
 
954
#     define GC_INIT() { extern int _end[], _etext[]; \
 
955
                         extern void GC_noop(); \
 
956
                         GC_noop(_end, _etext); }
 
957
#   endif /* !__cplusplus */
945
958
#else
946
959
# if defined(__CYGWIN32__) || defined (_AIX)
947
960
    /*