Back to index

plt-scheme  4.2.1
Public Member Functions | Public Attributes
wxPSStream Class Reference

#include <Region.h>

Inheritance diagram for wxPSStream:
Inheritance graph
[legend]
Collaboration diagram for wxPSStream:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxPSStream (char *file)
 ~wxPSStream (void)
int good (void)
void Out (char s)
void Out (const char *s)
void Out (double n)
void Out (long l)
void Out (int i)
void flush ()
long tellp (void)
void seekp (long pos)
void width (int w)
long read_at (long pos, char *buf, long amt)
void install_cleanup ()
voidoperator new (size_t size)
voidoperator new (size_t size, GCPlacement gcp)
voidoperator new (size_t size, void *p)
voidoperator new (size_t size)
voidoperator new (size_t size, GCPlacement gcp)
void operator delete (void *obj)
void operator delete (void *, void *)
void operator delete (void *obj)
voidoperator new[] (size_t size)
voidoperator new[] (size_t size, GCPlacement gcp)
voidoperator new[] (size_t size, void *p)
void operator delete[] (void *obj)
void operator delete[] (void *, void *)

Public Attributes

voidf
voidf_in
int int_width
WXTYPE __type
void__gc_external

Detailed Description

Definition at line 12 of file Region.h.


Constructor & Destructor Documentation

wxPSStream::wxPSStream ( char *  file)

Definition at line 141 of file PSDC.cxx.

                                 {
  Scheme_Object *o;
  f_in = scheme_open_input_output_file(file, "post-script-dc%", &o);
  f = o;
  int_width = 0;
}

Definition at line 148 of file PSDC.cxx.


Member Function Documentation

Definition at line 204 of file PSDC.cxx.

Definition at line 159 of file PSDC.cxx.

                         {
  return !!f;
}

Definition at line 99 of file wxGC.cxx.

{
  GC_finalization_proc old_fn;
  void *old_data;

# ifdef MZ_PRECISE_GC
#  define ALLOW_NON_BASE 0
#  define CHECK_BASE 0
# else
#  ifdef wx_xt
#   define ALLOW_NON_BASE 0
#   define CHECK_BASE 0
#  else
#   ifdef WIN32
#    define ALLOW_NON_BASE 0
#    define CHECK_BASE 1
#    define CRASH_ON_NONBASE 1
#   else
#    define ALLOW_NON_BASE 1
#    define CHECK_BASE 0
#   endif
#  endif
# endif

# if CHECK_BASE || ALLOW_NON_BASE
  if (GC_base(this) != (void *)this) {
#  if ALLOW_NON_BASE
    return;
#  else
#   ifdef CRASH_ON_NONBASE
    *(long *)0x0 = 1;
#   else
    printf("Clean-up object is not the base object\n");
    abort();
#   endif
#  endif
  }
# endif

  GC_register_finalizer_ignore_self(gcOBJ_TO_PTR(this), 
                                CAST_GCP GC_cleanup, NULL, 
                                CAST_GCPP &old_fn, &old_data);

# if CHECK_BASE
  if (old_fn) {
#  ifdef CRASH_ON_NONBASE
       *(long *)0x0 = 1;
#  else
    printf("Object already has a clean-up\n");
    abort();
#  endif
  }
# endif
}

Here is the call graph for this function:

Here is the caller graph for this function:

void gc::operator delete ( void obj) [inline, inherited]
void gc::operator delete ( void obj) [inline, inherited]

Definition at line 287 of file gc_cpp.h.

                                           {
    GC_FREE( obj );}

Here is the caller graph for this function:

void gc::operator delete ( void ,
void  
) [inline, inherited]

Definition at line 291 of file gc_cpp.h.

{}
void gc::operator delete[] ( void obj) [inline, inherited]

Definition at line 305 of file gc_cpp.h.

                                             {
    gc::operator delete( obj );}

Here is the call graph for this function:

void gc::operator delete[] ( void ,
void  
) [inline, inherited]

Definition at line 309 of file gc_cpp.h.

{}
void* gc::operator new ( size_t  size) [inline, inherited]
void* gc::operator new ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]
void * gc::operator new ( size_t  size) [inline, inherited]

Definition at line 273 of file gc_cpp.h.

                                           {
    return GC_MALLOC( size );}

Here is the caller graph for this function:

void * gc::operator new ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]

Definition at line 276 of file gc_cpp.h.

                                                            {
    if (gcp == UseGC) 
        return GC_MALLOC( size );
    else if (gcp == PointerFreeGC)
       return GC_MALLOC_ATOMIC( size );
    else
        return GC_MALLOC_UNCOLLECTABLE( size );}
void * gc::operator new ( size_t  size,
void p 
) [inline, inherited]

Definition at line 284 of file gc_cpp.h.

                                                    {
    return p;}
void * gc::operator new[] ( size_t  size) [inline, inherited]

Definition at line 296 of file gc_cpp.h.

                                             {
    return gc::operator new( size );}

Here is the call graph for this function:

void * gc::operator new[] ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]

Definition at line 299 of file gc_cpp.h.

                                                              {
    return gc::operator new( size, gcp );}

Here is the call graph for this function:

void * gc::operator new[] ( size_t  size,
void p 
) [inline, inherited]

Definition at line 302 of file gc_cpp.h.

                                                      {
    return p;}
void wxPSStream::Out ( char  s)

Definition at line 163 of file PSDC.cxx.

                           {
  char s2[2];
  s2[0] = s;
  s2[1] = 0;
  Out(s2);
}

Here is the caller graph for this function:

void wxPSStream::Out ( const char *  s)

Definition at line 170 of file PSDC.cxx.

                                  {
  scheme_put_byte_string("post-script-dc%", (Scheme_Object *)f, s, 0, strlen(s), 0);
}
void wxPSStream::Out ( double  n)

Definition at line 178 of file PSDC.cxx.

{
  char buf[64];

  if ((double)(long)n == n) {
    Out((long)n);
    return;
  }
  sprintf(buf, "%f", n);
  Out(buf);
}

Here is the call graph for this function:

void wxPSStream::Out ( long  l)

Definition at line 190 of file PSDC.cxx.

{
  char buf[64];

  if (int_width > 0) {
    char buffer[50];
    sprintf(buffer, "%% %d.%dld", int_width, int_width);
    sprintf(buf, buffer, l);
    int_width = 0;
  } else
    sprintf(buf, "%ld", l);
  Out(buf);
}

Here is the call graph for this function:

Definition at line 174 of file PSDC.cxx.

                          {
  Out((long)i);
}

Here is the call graph for this function:

long wxPSStream::read_at ( long  pos,
char *  buf,
long  amt 
)

Definition at line 220 of file PSDC.cxx.

                                                      {
  scheme_set_file_position((Scheme_Object *)f_in, pos);
  return scheme_get_byte_string("post-script%", (Scheme_Object *)f_in,
                                buf, 0, amt,
                                0, 0, NULL);
}
void wxPSStream::seekp ( long  pos)

Definition at line 212 of file PSDC.cxx.

long wxPSStream::tellp ( void  )

Definition at line 208 of file PSDC.cxx.

Definition at line 216 of file PSDC.cxx.

                            {
  int_width = w;
}

Member Data Documentation

Definition at line 146 of file wxGC.h.

WXTYPE wxObject::__type [inherited]

Definition at line 77 of file Object.h.

Definition at line 14 of file Region.h.

Definition at line 14 of file Region.h.

Definition at line 15 of file Region.h.


The documentation for this class was generated from the following files: