+2003-02-03 Christopher Faylor <cgf@redhat.com>
+
+ Eliminate most unneeded this-> pointers throughout.
+
2003-02-03 Pierre Humblet <pierre.humblet@ieee.org>
* security.h: Add third argument to set_process_privilege.
void init (DWORD, bool, bool); /* Called the first time that stack info is needed */
/* Postfix ++ iterates over the stack, returning zero when nothing is left. */
- int operator ++(int) { return this->walk (); }
+ int operator ++(int) { return walk (); }
};
/* The number of parameters used in STACKFRAME */
if (f != INVALID_HANDLE_VALUE)
CloseHandle (f); /* Reopened by open */
- this->tcsetattr (0, &tc->ti);
+ tcsetattr (0, &tc->ti);
}
int
void
fhandler_console::set_close_on_exec (int val)
{
- this->fhandler_base::set_close_on_exec (val);
+ fhandler_base::set_close_on_exec (val);
set_inheritance (output_handle, val);
}
set_has_acls (real_path->has_acls ());
set_isremote (real_path->isremote ());
- int res = this->fhandler_base::open (real_path, flags | O_DIROPEN, mode);
+ int res = fhandler_base::open (real_path, flags | O_DIROPEN, mode);
if (!res)
goto out;
int
fhandler_disk_file::close ()
{
- int res = this->fhandler_base::close ();
+ int res = fhandler_base::close ();
if (!res)
cygwin_shared->delqueue.process_queue ();
return res;
int
fhandler_dev_mem::fstat (struct __stat64 *buf, path_conv *pc)
{
- this->fhandler_base::fstat (buf, pc);
+ fhandler_base::fstat (buf, pc);
buf->st_mode = S_IFCHR;
if (wincap.has_physical_mem_access ())
buf->st_mode |= S_IRUSR | S_IWUSR |
int
fhandler_registry::fstat (struct __stat64 *buf, path_conv *pc)
{
- this->fhandler_base::fstat (buf, pc);
+ fhandler_base::fstat (buf, pc);
buf->st_mode &= ~_IFMT & NO_W;
int file_type = exists ();
switch (file_type)
syscall_printf ("fhandler_serial::open (%s, %p, %p)",
get_name (), flags, mode);
- if (!this->fhandler_base::open (NULL, flags, mode))
+ if (!fhandler_base::open (NULL, flags, mode))
return 0;
res = 1;
fhandler_serial::fixup_after_fork (HANDLE parent)
{
if (get_close_on_exec ())
- this->fhandler_base::fixup_after_fork (parent);
+ fhandler_base::fixup_after_fork (parent);
overlapped_setup ();
debug_printf ("io_status.hEvent %p", io_status.hEvent);
}
void
fhandler_termios::fixup_after_fork (HANDLE parent)
{
- this->fhandler_base::fixup_after_fork (parent);
+ fhandler_base::fixup_after_fork (parent);
fork_fixup (parent, get_output_handle (), "output_handle");
}
while (accept_input () > 0)
continue;
#endif
- this->fhandler_tty_common::close ();
+ fhandler_tty_common::close ();
if (!get_ttyp ()->master_alive ())
{
fhandler_tty_common::set_close_on_exec (int val)
{
#ifndef DEBUGGING
- this->fhandler_base::set_close_on_exec (val);
+ fhandler_base::set_close_on_exec (val);
#else
/* FIXME: This is a duplication from fhandler_base::set_close_on_exec.
It is here because we need to specify the "from_pty" stuff here or
void
fhandler_tty_common::fixup_after_fork (HANDLE parent)
{
- this->fhandler_termios::fixup_after_fork (parent);
+ fhandler_termios::fixup_after_fork (parent);
if (output_done_event)
fork_fixup (parent, output_done_event, "output_done_event");
if (ioctl_request_event)
void
fhandler_pty_master::set_close_on_exec (int val)
{
- this->fhandler_tty_common::set_close_on_exec (val);
+ fhandler_tty_common::set_close_on_exec (val);
/* FIXME: There is a console handle leak here. */
if (get_ttyp ()->master_pid == GetCurrentProcessId ())
void
fhandler_tty_master::fixup_after_fork (HANDLE child)
{
- this->fhandler_pty_master::fixup_after_fork (child);
+ fhandler_pty_master::fixup_after_fork (child);
console->fixup_after_fork (child);
}
fhandler_windows::set_close_on_exec (int val)
{
if (get_handle ())
- this->fhandler_base::set_close_on_exec (val);
+ fhandler_base::set_close_on_exec (val);
else
- this->fhandler_base::set_close_on_exec_flag (val);
+ fhandler_base::set_close_on_exec_flag (val);
void *h = hWnd_;
if (h)
set_inheritance (h, val);
fhandler_windows::fixup_after_fork (HANDLE parent)
{
if (get_handle ())
- this->fhandler_base::fixup_after_fork (parent);
+ fhandler_base::fixup_after_fork (parent);
void *h = hWnd_;
if (h)
fork_fixup (parent, h, "hWnd_");
{
public:
per_thread_waitq () : per_thread (0) {}
- void *get () {return (waitq *) this->per_thread::get ();}
- void *create () {return (waitq *) this->per_thread::create ();}
+ void *get () {return (waitq *) per_thread::get ();}
+ void *create () {return (waitq *) per_thread::create ();}
size_t size () {return sizeof (waitq);}
};
class per_thread_vfork : public per_thread
{
public:
- vfork_save *val () { return (vfork_save *) this->per_thread::get (); }
- vfork_save *create () {return (vfork_save *) this->per_thread::create ();}
+ vfork_save *val () { return (vfork_save *) per_thread::get (); }
+ vfork_save *create () {return (vfork_save *) per_thread::create ();}
size_t size () {return sizeof (vfork_save);}
};
extern per_thread_vfork vfork_storage;
struct per_thread_signal_dispatch : public per_thread
{
- signal_dispatch *get () { return (signal_dispatch *) this->per_thread::get (); }
- signal_dispatch *create () {return (signal_dispatch *) this->per_thread::create ();}
+ signal_dispatch *get () { return (signal_dispatch *) per_thread::get (); }
+ signal_dispatch *create () {return (signal_dispatch *) per_thread::create ();}
size_t size () {return sizeof (signal_dispatch);}
};
void
fhandler_pipe::set_close_on_exec (int val)
{
- this->fhandler_base::set_close_on_exec (val);
+ fhandler_base::set_close_on_exec (val);
if (guard)
set_inheritance (guard, val);
if (writepipe_exists)
void
fhandler_pipe::fixup_after_fork (HANDLE parent)
{
- this->fhandler_base::fixup_after_fork (parent);
+ fhandler_base::fixup_after_fork (parent);
if (guard)
fork_fixup (parent, guard, "guard");
if (writepipe_exists)
int
fhandler_pipe::dup (fhandler_base *child)
{
- int res = this->fhandler_base::dup (child);
+ int res = fhandler_base::dup (child);
if (res)
return res;
fhandler_pipe::ready_for_read (int fd, DWORD howlong)
{
if (!howlong)
- return this->fhandler_base::ready_for_read (fd, howlong);
+ return fhandler_base::ready_for_read (fd, howlong);
get_guard ();
return true;
PROTECT (buf);
SetLastError (err);
- count = this->vsprntf (buf, func, fmt, ap);
+ count = vsprntf (buf, func, fmt, ap);
CHECK (buf);
if (category & _STRACE_SYSTEM)
{
#ifndef NOSTRACE
if (active)
- this->write (category, buf, count);
+ write (category, buf, count);
#endif
SetLastError (err);
}
va_list ap;
va_start (ap, fmt);
- this->vprntf (category, func, fmt, ap);
+ vprntf (category, func, fmt, ap);
}
extern "C" void
{
if (ta[i].v == message)
{
- this->prntf (_STRACE_WM, NULL, "wndproc %d %s %d %d", message, ta[i].n, word, lon);
+ prntf (_STRACE_WM, NULL, "wndproc %d %s %d %d", message, ta[i].n, word, lon);
return;
}
}
- this->prntf (_STRACE_WM, NULL, "wndproc %d unknown %d %d", message, word, lon);
+ prntf (_STRACE_WM, NULL, "wndproc %d unknown %d %d", message, word, lon);
}
}
#endif /*NOSTRACE*/