Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
detab, tolf, remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rainers committed Jul 3, 2015
1 parent 3f668b9 commit 6d5b30e
Show file tree
Hide file tree
Showing 14 changed files with 85 additions and 85 deletions.
16 changes: 8 additions & 8 deletions src/core/atomic.d
Expand Up @@ -170,10 +170,10 @@ else version( AsmX86_32 )
static if (T.sizeof == 1) asm pure nothrow @nogc { lock; xadd[EDX], AL; }
else static if (T.sizeof == 2) asm pure nothrow @nogc { lock; xadd[EDX], AX; }
else static if (T.sizeof == 4) asm pure nothrow @nogc { lock; xadd[EDX], EAX; }
asm pure nothrow @nogc
{
mov tmp, EAX;

asm pure nothrow @nogc
{
mov tmp, EAX;
}

return cast(T)tmp;
Expand Down Expand Up @@ -688,10 +688,10 @@ else version( AsmX86_64 )
else static if (T.sizeof == 2) asm pure nothrow @nogc { lock; xadd[RDX], AX; }
else static if (T.sizeof == 4) asm pure nothrow @nogc { lock; xadd[RDX], EAX; }
else static if (T.sizeof == 8) asm pure nothrow @nogc { lock; xadd[RDX], RAX; }
asm pure nothrow @nogc
{
mov tmp, RAX;

asm pure nothrow @nogc
{
mov tmp, RAX;
}

return cast(T)tmp;
Expand Down
2 changes: 1 addition & 1 deletion src/core/stdc/math.d
Expand Up @@ -2410,7 +2410,7 @@ else
///
float fabsf(float x);
///
real fabsl(real x);
real fabsl(real x);
}

///
Expand Down
26 changes: 13 additions & 13 deletions src/core/sys/linux/epoll.d
Expand Up @@ -3,7 +3,7 @@
* Available since Linux 2.6
*
* Copyright: Copyright Adil Baig 2012.
* License : $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* License : $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Authors : Adil Baig (github.com/adilbaig)
*/
module core.sys.linux.epoll;
Expand All @@ -20,21 +20,21 @@ enum
EPOLL_NONBLOCK = 0x800
}

enum
enum
{
EPOLLIN = 0x001,
EPOLLPRI = 0x002,
EPOLLOUT = 0x004,
EPOLLIN = 0x001,
EPOLLPRI = 0x002,
EPOLLOUT = 0x004,
EPOLLRDNORM = 0x040,
EPOLLRDBAND = 0x080,
EPOLLWRNORM = 0x100,
EPOLLWRBAND = 0x200,
EPOLLMSG = 0x400,
EPOLLERR = 0x008,
EPOLLHUP = 0x010,
EPOLLRDHUP = 0x2000, // since Linux 2.6.17
EPOLLMSG = 0x400,
EPOLLERR = 0x008,
EPOLLHUP = 0x010,
EPOLLRDHUP = 0x2000, // since Linux 2.6.17
EPOLLONESHOT = 1u << 30,
EPOLLET = 1u << 31
EPOLLET = 1u << 31
}

/* Valid opcodes ( "op" parameter ) to issue to epoll_ctl(). */
Expand All @@ -45,21 +45,21 @@ enum
EPOLL_CTL_MOD = 3, // Change file descriptor epoll_event structure.
}

struct epoll_event
struct epoll_event
{
align(1):
uint events;
epoll_data_t data;
};

union epoll_data_t
union epoll_data_t
{
void *ptr;
int fd;
uint u32;
ulong u64;
};

int epoll_create (int size);
int epoll_create1 (int flags);
int epoll_ctl (int epfd, int op, int fd, epoll_event *event);
Expand Down
4 changes: 2 additions & 2 deletions src/core/sys/linux/sys/xattr.d
Expand Up @@ -15,8 +15,8 @@ extern (C):
nothrow:

enum {
XATTR_CREATE = 1, /* set value, fail if attr already exists. */
XATTR_REPLACE = 2 /* set value, fail if attr does not exist. */
XATTR_CREATE = 1, /* set value, fail if attr already exists. */
XATTR_REPLACE = 2 /* set value, fail if attr does not exist. */
}

enum XATTR_OS2_PREFIX = "os2.";
Expand Down
8 changes: 4 additions & 4 deletions src/core/sys/posix/sys/statvfs.d
Expand Up @@ -16,7 +16,7 @@ version (Posix):
extern (C) :

version(CRuntime_Glibc) {
static if(__WORDSIZE == 32)
static if(__WORDSIZE == 32)
{
version=_STATVFSBUF_F_UNUSED;
}
Expand All @@ -31,7 +31,7 @@ version(CRuntime_Glibc) {
fsfilcnt_t f_ffree;
fsfilcnt_t f_favail;
c_ulong f_fsid;
version(_STATVFSBUF_F_UNUSED)
version(_STATVFSBUF_F_UNUSED)
{
int __f_unused;
}
Expand All @@ -41,7 +41,7 @@ version(CRuntime_Glibc) {
}
/* Definitions for the flag in `f_flag'. These definitions should be
kept in sync with the definitions in <sys/mount.h>. */
static if(__USE_GNU)
static if(__USE_GNU)
{
enum FFlag
{
Expand All @@ -60,7 +60,7 @@ version(CRuntime_Glibc) {

}
} /* Use GNU. */
else
else
{ // Posix defined:
enum FFlag
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/sys/posix/sys/types.d
Expand Up @@ -695,7 +695,7 @@ else version (Solaris)
ubyte __pthread_mutex_flag2;
ubyte __pthread_mutex_ceiling;
ushort __pthread_mutex_type;
ushort __pthread_mutex_magic;
ushort __pthread_mutex_magic;
}

___pthread_mutex_flags __pthread_mutex_flags;
Expand Down Expand Up @@ -821,7 +821,7 @@ else version (Solaris)
ulong __pthread_barrier_cycle;
ulong __pthread_barrier_reserved;
pthread_mutex_t __pthread_barrier_lock;
pthread_cond_t __pthread_barrier_cond;
pthread_cond_t __pthread_barrier_cond;
}

struct pthread_barrierattr_t
Expand Down
54 changes: 27 additions & 27 deletions src/core/sys/posix/syslog.d
Expand Up @@ -32,7 +32,7 @@ version(CRuntime_Glibc)
LOG_INFO = 6, /* informational */
LOG_DEBUG = 7, /* debug-level messages */
};

//OPTIONS
enum {
LOG_PID = 0x01, /* log the pid with each message */
Expand All @@ -42,7 +42,7 @@ version(CRuntime_Glibc)
LOG_NOWAIT = 0x10, /* don't wait for console forks: DEPRECATED */
LOG_PERROR = 0x20, /* log to stderr as well */
};

//FACILITY
enum {
LOG_KERN = (0<<3), /* kernel messages */
Expand All @@ -57,7 +57,7 @@ version(CRuntime_Glibc)
LOG_CRON = (9<<3), /* clock daemon */
LOG_AUTHPRIV = (10<<3), /* security/authorization messages (private), */
LOG_FTP = (11<<3), /* ftp daemon */

/* other codes through 15 reserved for system use */
LOG_LOCAL0 = (16<<3), /* reserved for local use */
LOG_LOCAL1 = (17<<3), /* reserved for local use */
Expand All @@ -67,13 +67,13 @@ version(CRuntime_Glibc)
LOG_LOCAL5 = (21<<3), /* reserved for local use */
LOG_LOCAL6 = (22<<3), /* reserved for local use */
LOG_LOCAL7 = (23<<3), /* reserved for local use */

LOG_NFACILITIES = 24, /* current number of facilities */
};

int LOG_MASK(int pri) { return 1 << pri; } /* mask for one priority */
int LOG_UPTO(int pri) { return (1 << (pri+1)) - 1; } /* all priorities through pri */

void openlog (const char *, int __option, int __facility);
int setlogmask (int __mask);
void syslog (int __pri, const char *__fmt, ...);
Expand All @@ -82,7 +82,7 @@ version(CRuntime_Glibc)
else version( OSX )
{
//http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/osfmk/sys/syslog.h

//PRIORITY
enum {
LOG_EMERG = 0, /* system is unusable */
Expand All @@ -94,7 +94,7 @@ else version( OSX )
LOG_INFO = 6, /* informational */
LOG_DEBUG = 7, /* debug-level messages */
};

//OPTIONS
enum {
LOG_PID = 0x01, /* log the pid with each message */
Expand All @@ -103,7 +103,7 @@ else version( OSX )
LOG_NDELAY = 0x08, /* don't delay open */
LOG_NOWAIT = 0x10, /* don't wait for console forks: DEPRECATED */
};

//FACILITY
enum {
LOG_KERN = (0<<3), /* kernel messages */
Expand All @@ -115,7 +115,7 @@ else version( OSX )
LOG_LPR = (6<<3), /* line printer subsystem */
LOG_NEWS = (7<<3), /* network news subsystem */
LOG_UUCP = (8<<3), /* UUCP subsystem */

/* other codes through 15 reserved for system use */
LOG_LOCAL0 = (16<<3), /* reserved for local use */
LOG_LOCAL1 = (17<<3), /* reserved for local use */
Expand All @@ -125,13 +125,13 @@ else version( OSX )
LOG_LOCAL5 = (21<<3), /* reserved for local use */
LOG_LOCAL6 = (22<<3), /* reserved for local use */
LOG_LOCAL7 = (23<<3), /* reserved for local use */

LOG_NFACILITIES = 24, /* current number of facilities */
};

int LOG_MASK(int pri) { return 1 << pri; } /* mask for one priority */
int LOG_UPTO(int pri) { return (1 << (pri+1)) - 1; } /* all priorities through pri */

void openlog (const char *, int __option, int __facility);
int setlogmask (int __mask);
void syslog (int __pri, const char *__fmt, ...);
Expand All @@ -140,7 +140,7 @@ else version( OSX )
else version( FreeBSD )
{
//http://fxr.watson.org/fxr/source/sys/syslog.h

//PRIORITY
enum {
LOG_EMERG = 0, /* system is unusable */
Expand All @@ -152,7 +152,7 @@ else version( FreeBSD )
LOG_INFO = 6, /* informational */
LOG_DEBUG = 7, /* debug-level messages */
};

//OPTIONS
enum {
LOG_PID = 0x01, /* log the pid with each message */
Expand All @@ -162,7 +162,7 @@ else version( FreeBSD )
LOG_NOWAIT = 0x10, /* don't wait for console forks: DEPRECATED */
LOG_PERROR = 0x20, /* log to stderr as well */
};

//FACILITY
enum {
LOG_KERN = (0<<3), /* kernel messages */
Expand All @@ -180,7 +180,7 @@ else version( FreeBSD )
LOG_NTP = (12<<3), /* NTP subsystem */
LOG_SECURITY = (13<<3), /* security subsystems (firewalling, etc.) */
LOG_CONSOLE = (14<<3), /* /dev/console output */

/* other codes through 15 reserved for system use */
LOG_LOCAL0 = (16<<3), /* reserved for local use */
LOG_LOCAL1 = (17<<3), /* reserved for local use */
Expand All @@ -190,13 +190,13 @@ else version( FreeBSD )
LOG_LOCAL5 = (21<<3), /* reserved for local use */
LOG_LOCAL6 = (22<<3), /* reserved for local use */
LOG_LOCAL7 = (23<<3), /* reserved for local use */

LOG_NFACILITIES = 24, /* current number of facilities */
};

int LOG_MASK(int pri) { return 1 << pri; } /* mask for one priority */
int LOG_UPTO(int pri) { return (1 << (pri+1)) - 1; } /* all priorities through pri */

void openlog (const char *, int __option, int __facility);
int setlogmask (int __mask);
void syslog (int __pri, const char *__fmt, ...);
Expand All @@ -205,7 +205,7 @@ else version( FreeBSD )
else version( Solaris )
{
//http://pubs.opengroup.org/onlinepubs/007904875/basedefs/syslog.h.html

//PRIORITY
enum {
LOG_EMERG = 0, /* system is unusable */
Expand All @@ -217,15 +217,15 @@ else version( Solaris )
LOG_INFO = 6, /* informational */
LOG_DEBUG = 7, /* debug-level messages */
};

//OPTIONS
enum {
LOG_PID = 0x01, /* log the pid with each message */
LOG_CONS = 0x02, /* log on the console if errors in sending */
LOG_NDELAY = 0x08, /* don't delay open */
LOG_NOWAIT = 0x10, /* don't wait for console forks: DEPRECATED */
};

//FACILITY
enum {
LOG_KERN = (0<<3), /* kernel messages */
Expand All @@ -240,7 +240,7 @@ else version( Solaris )
LOG_CRON = (9<<3), /* clock daemon */
LOG_AUTHPRIV = (10<<3), /* security/authorization messages (private), */
LOG_FTP = (11<<3), /* ftp daemon */

/* other codes through 15 reserved for system use */
LOG_LOCAL0 = (16<<3), /* reserved for local use */
LOG_LOCAL1 = (17<<3), /* reserved for local use */
Expand All @@ -250,13 +250,13 @@ else version( Solaris )
LOG_LOCAL5 = (21<<3), /* reserved for local use */
LOG_LOCAL6 = (22<<3), /* reserved for local use */
LOG_LOCAL7 = (23<<3), /* reserved for local use */

LOG_NFACILITIES = 24, /* current number of facilities */
};

int LOG_MASK(int pri) { return 1 << pri; } /* mask for one priority */
int LOG_UPTO(int pri) { return (1 << (pri+1)) - 1; } /* all priorities through pri */

void openlog (const char *, int __option, int __facility);
int setlogmask (int __mask);
void syslog (int __pri, const char *__fmt, ...);
Expand Down
2 changes: 1 addition & 1 deletion src/core/sys/posix/unistd.d
Expand Up @@ -786,7 +786,7 @@ else version( FreeBSD )
_SC_XOPEN_XCU_VERSION = 117,
_SC_CPUSET_SIZE = 122,
_SC_PHYS_PAGES = 121,
}
}

enum _SC_PAGE_SIZE = _SC_PAGESIZE;

Expand Down
2 changes: 1 addition & 1 deletion src/core/sys/windows/winsock2.d
Expand Up @@ -390,7 +390,7 @@ int FD_ISSET(SOCKET fd, const(fd_set)* set) pure @nogc


// Adds.
void FD_SET(SOCKET fd, fd_set* set) pure @nogc
void FD_SET(SOCKET fd, fd_set* set) pure @nogc
{
uint c = set.fd_count;
set.fd_array.ptr[c] = fd;
Expand Down
2 changes: 1 addition & 1 deletion src/core/thread.d
Expand Up @@ -4017,7 +4017,7 @@ class Fiber
* fibers that have terminated, as doing otherwise could result in
* scope-dependent functionality that is not executed.
* Stack-based classes, for example, may not be cleaned up
* properly if a fiber is reset before it has terminated.
* properly if a fiber is reset before it has terminated.
*
* In:
* This fiber must be in state TERM or HOLD.
Expand Down

0 comments on commit 6d5b30e

Please sign in to comment.