code
stringlengths
3
10M
language
stringclasses
31 values
/** A very abbreviated Xml tree, with array of Item instead of links. DOM features: NodeType in base class Item. Authors: Michael Rynn */ module xml.xmlArrayDom; import std.stdio; import xml.util.buffer; import xml.txml; import xml.input; import xml.dtd; import std.string, std.conv, std.exception; import std.varia...
D
module android.java.android.provider.CalendarContract_EventsColumns_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import0 = android.java.java.lang.Class_d_interface; @JavaName("CalendarContract$Eve...
D
//T compiles:yes //T has-passed:yes //T retval:6 // Catch auto a = 5; void foo() { scope(exit) a++; throw new Exception(); } int main() { try { foo(); } catch(Exception e) { return a; } return 0; }
D
/Users/lizelu/Documents/Github/PerfectDemo/.build/debug/PerfectLib.build/File.swift.o : /Users/lizelu/Documents/Github/PerfectDemo/Packages/PerfectLib-2.0.4/Sources/PerfectLib/Bytes.swift /Users/lizelu/Documents/Github/PerfectDemo/Packages/PerfectLib-2.0.4/Sources/PerfectLib/Dir.swift /Users/lizelu/Documents/Github/Per...
D
module android.java.android.graphics.drawable.AnimationDrawable_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import7 = android.java.android.graphics.Rect_d_interface; import import5 = android.java....
D
module dub.version_; enum dubVersion = "v1.1.0-beta.1-3-gc807a61";
D
module main; import std.stdio : writefln, writef; import std.string : isWhite, split, toLower, format; import std.file : readText; import std.conv; // default to Stats version version(NoStats) {} else{ version = Stats; } // instruction code enum Instr { Mkbasic , // no args Getbasic , Eval , ...
D
/Users/alimurat_mac/Desktop/Tanitim_calisma/SiberSuclarTanitim/DerivedData/SiberSuclarTanitim-ddywkabefydtlkfvshlbygjxqcua/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/AFError.o : /Users/alimurat_mac/Desktop/Tanitim_calisma/SiberSuclarTanitim/Pods/Alamofire/Source/M...
D
C:/Users/glutnix/Desktop/philrobokit_xc8/libraries/soft_dac/examples/.phr_out/lib/PhilRoboKit_CoreLib_Macro.d C:/Users/glutnix/Desktop/philrobokit_xc8/libraries/soft_dac/examples/.phr_out/lib/PhilRoboKit_CoreLib_Macro.p1: hardware/cores/PhilRoboKit_CoreLib_Macro.c C:/Users/glutnix/Desktop/philrobokit_xc8/hardware/co...
D
instance VLK_580_Grim (Npc_Default) { //-------- primary data -------- name = "Grim"; npctype = npctype_main; guild = GIL_GRD; level = 15; voice = 6; id = 580; //-------- abilities -------- attribute[ATR_STRENGTH] = 85; attribute[ATR_DEXTERITY] = 35; attri...
D
/* Copyright © 2020, Inochi2D Project Distributed under the 2-Clause BSD License, see LICENSE file. Authors: Luna Nielsen */ module creator.frames.textureslots; import creator.frames; import creator.windows; import creator : incActivePuppet; import bindbc.imgui; import inochi2d; import std.conv; /** ...
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1984-1995 by Symantec * Copyright (C) 2000-2019 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: ...
D
/Users/DanielChang/Documents/Vapor/Hello/.build/debug/Fluent.build/Query/Join.swift.o : /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/Fluent/Database/Database.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Fluent-1.4.1/Sources/Fluent/Database/Driver.swift /Users/DanielChang/Documents/V...
D
/home/lincyaw/zcore_test/target/rls/debug/deps/downcast_rs-904ea28aba046704.rmeta: /home/lincyaw/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/downcast-rs-1.2.0/src/lib.rs /home/lincyaw/zcore_test/target/rls/debug/deps/downcast_rs-904ea28aba046704.d: /home/lincyaw/.cargo/registry/src/mirrors.ustc.edu.cn-61e...
D
instance GUR_1208_BaalCadar(Npc_Default) { name[0] = "Baal Cadar"; npcType = npctype_main; guild = GIL_GUR; level = 28; flags = NPC_FLAG_IMMORTAL; voice = 2; id = 1208; attribute[ATR_STRENGTH] = 70; attribute[ATR_DEXTERITY] = 50; attribute[ATR_MANA_MAX] = 60; attribute[ATR_MANA] = 60; attribute[ATR_HITPOINT...
D
<?xml version="1.0" encoding="ASCII" standalone="no"?> <di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0"> <pageList> <availablePage> <emfPageIdentifier href="VAR_2_BeT-84187179...
D
module gui.button.button; /* A clickable button, can have a hotkey. * * Two design patterns are supported: a) Event-based callback and b) polling. * a) To poll the button, (bool execute() const) during its parent's calc(). * b) To register a delegate f to be called back, use onExecute(f). */ import std.algorithm...
D
// Generated by gnome-h2d.rb <http://github.com/ddude/gnome.d>. module gobject.types; alias size_t GType; public import gobject.type; /* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 2000-2001 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it ...
D
/* TEST_OUTPUT: --- fail_compilation/fail12932.d(11): Error: array literal in `@nogc` function `fail12932.foo` may cause a GC allocation fail_compilation/fail12932.d(15): Error: array literal in `@nogc` function `fail12932.foo` may cause a GC allocation --- */ int* foo() @nogc { foreach (ref e; [1,2,3]) { ...
D
// Copyright Ferdinand Majerech 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) /** * YAML emitter. * Code based on PyYAML: http://www.pyyaml.org */ module dyaml.emitter; import s...
D
module served.commands.complete; import served.commands.format : formatCode, formatSnippet; import served.extension; import served.types; import served.utils.ddoc; import served.utils.fibermanager; import workspaced.api; import workspaced.com.dfmt : DfmtComponent; import workspaced.com.dcd; import workspaced.com.dcde...
D
instance NOV_1301_Caine(Npc_Default) { name[0] = "Каин"; npcType = npctype_main; guild = GIL_NOV; level = 9; voice = 13; id = 1301; attribute[ATR_STRENGTH] = 15; attribute[ATR_DEXTERITY] = 15; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 148; attribute[ATR_HITPOINTS]...
D
/* * Copyright Andrej Mitrovic 2013 - 2020. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module test_listbox; import core.thread; import std.conv; import std.range; import std.std...
D
/++ This internal module, with the help of the luad.conversions package, takes care of converting between D and Lua types. The conversion rules are as follows, where conversion goes both ways: $(DL $(DT boolean $(DD $(D bool)) ) $(DT number $(DD $(D lua_Integer) (default $(D int))) $(DD $(D lua_Number) (defau...
D
/** * Copyright © DiamondMVC 2019 * License: MIT (https://github.com/DiamondMVC/Diamond/blob/master/LICENSE) * Author: Jacob Jensen (bausshf) */ module diamond.http.status; import diamond.core.apptype; static if (isWeb) { import vibe.d : HTTPStatus; import diamond.core.traits; /// Alias to HTTPStatus. mixin...
D
/* REQUIRED_ARGS: PERMUTE_ARGS: TEST_OUTPUT: --- fail_compilation/test16095.d(20): Error: shared method `test16095.C.ping` is not callable using a non-shared `a` fail_compilation/test16095.d(30): Error: shared method `test16095.S.ping` is not callable using a non-shared `*a` fail_compilation/test16095.d(43): Error: mut...
D
module BinaryTypeCodecTest; import std.stdio; import std.stdio; import CodecTestSupport; import hunt.Assert ; import hunt.String; import hunt.proton.codec.TypeConstructor; import hunt.Assert ; import hunt.logging; import hunt.proton.amqp.Binary; class BinaryTypeCodecTest: CodecTestSupport { this() { } ...
D
/Users/jackwong/Desktop/Developer/SkillUpTest1/Build/Intermediates.noindex/SkillUpTest1.build/Debug-iphonesimulator/SkillUpTest1.build/Objects-normal/x86_64/CustomTransition.o : /Users/jackwong/Desktop/Developer/SkillUpTest1/SkillUpTest1/Extension/UIStoryboard+Instance.swift /Users/jackwong/Desktop/Developer/ANALoginSa...
D
/* * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses...
D
a thief who steals from the pockets or purses of others in public places
D
void main() { auto ip = readAs!(int[]), N = ip[0], M = ip[1], X = ip[2]; auto A = readAs!(int[]); auto c = A.count!(a => a > X); min(c, A.length - c).writeln; } // =================================== import std.stdio; import std.string; import std.conv; import std.algorithm; import std.range; import std.traits; i...
D
/** * Windows API header module * * Translated from MinGW-w64 API * * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(DRUNTIMESRC src/core/sys/windows/_wtsapi32.d) */ module core.sys.windows.wtsapi32; version (Windows): version (ANSI) {} else version = Unicode; pragma(lib, ...
D
/* Copyright (c) 2017-2018 Timur Gafarov Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute,...
D
import dshell; import std.algorithm; import std.file; import std.process; import std.conv; int main() { version(DigitalMars) { } else { writeln("Skipping dwarf.d for non-DMD compilers."); return DISABLED; } version(Windows) { writeln("Skipping dwarf.d for Windows."); ...
D
/home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Node.build/Fuzzy/Set+Convertible.swift.o : /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-30784128862...
D
instance Mod_7301_UntoterMagier_AW (Npc_Default) { //-------- primary data -------- name = "Untoter Hohepriester"; Npctype = Npctype_UNTOTERMAGIER; guild = GIL_STRF; level = 25; voice = 2; id = 7301; //-------- abilities -------- B_SetAttributesToChapter (self, 4); //-------- visua...
D
/// module dpq.serialisation; // TODO: merge all serialisers' imports import dpq.serialisers.composite; import dpq.serialisers.array; import dpq.serialisers.scalar; import dpq.serialisers.systime; import dpq.serialisers.string; import dpq.serialisers.bytea; import dpq.meta; import dpq.attributes; import dpq.value : T...
D
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.0 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ------------------------------...
D
/Users/JasonVranek/Desktop/rust/tokio-serge-json-server/target/debug/build/rand_chacha-a771a4f682b01031/build_script_build-a771a4f682b01031: /Users/JasonVranek/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_chacha-0.1.1/build.rs /Users/JasonVranek/Desktop/rust/tokio-serge-json-server/target/debug/build/rand_chac...
D
.hd memo "automated memo and reminder system" 01/13/83 memo [[[-t] <user>] [-d <display_cond>] [-e <erase_cond>]] .ds 'Memo' allows a user to send dated memos to himself or to another user. 'Memo' differs from 'mail' in that "display conditions" and "erase conditions" may be specified for memos; i.e., the user has cont...
D
module engine.graphics.animationset; import std.json; import dsfml.audio; import dsfml.graphics; import engine.resourcemgr; import engine.graphics.animation; class AnimationSet : Drawable { private Sprite sprite; private Vector2i size; private Animation[string] animatio...
D
static if (someCondition) void doStuff() { } else void doStuff() { } static if (someCondition) void doStuff() { } else static if (otherCondition) void doStuff() { } static if (someCondition) void doStuff() { } else static if (otherCondition) void doStuff() { } else void doStuff() { } static if (...
D
// c04ex11.d import std.stdio; void main() { int I; for (I = 1; I <= 10; I += 2) writefln("I = %2d", I); }
D
/// Copyright: Copyright (c) 2017-2019 Andrey Penechko. /// License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). /// Authors: Andrey Penechko. module fe.ast.expr.binary_op; import all; @(AstType.expr_bin_op) struct BinaryExprNode { mixin ExpressionNodeData!(AstType.expr_bin_op, 0); BinOp op; AstIndex lef...
D
import { WebpackConfigOptions } from '../build-options'; export declare function getBrowserConfig(wco: WebpackConfigOptions): { devtool: string | boolean; resolve: { mainFields: string[]; }; output: { crossOriginLoading: string | boolean; }; optimization: { runtimeChunk: ...
D
// SDLang-D // Written in the D programming language. module sdlang.exception; import std.array; import std.exception; import std.range; import std.stdio; import std.string; import sdlang.ast; import sdlang.util; /// Abstract parent class of all SDLang-D defined exceptions. abstract class SDLangException : Exceptio...
D
module dcv.features.corner.fast.fast_10; /** * Authors: Edward Rosten * Copyright: Copyright (c) 2006, 2008 Edward Rosten, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * *Redi...
D
// Copyright Brian Schott (Hackerpilot) 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) module analysis.enumarrayliteral; import dparse.ast; import dparse.lexer; import analysis.base;...
D
module source.info; static immutable Version = [2, 8, 0];
D
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
D
/Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Build/Intermediates/FoodTracker.build/Debug-iphonesimulator/FoodTracker.build/Objects-normal/x86_64/CalendarCell.o : /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/FoodTrack...
D
/Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTellersAPI/.build/debug/Core.build/RFC1123.swift.o : /Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTellersAPI/Packages/Core-1.0.0/Sources/Core/Array.swift /Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTellersAPI/Packages...
D
troops trained to fight on horseback a highly mobile army unit
D
module spasm.bindings.fetch; import spasm.types; import spasm.bindings.common; import spasm.bindings.dom; import spasm.bindings.fileapi; import spasm.bindings.streams; import spasm.bindings.url; import spasm.bindings.webappsec; import spasm.bindings.xhr; @safe: nothrow: alias BodyInit = SumType!(Blob, BufferSource, ...
D
module chipmunk.cpRotaryLimitJoint; import chipmunk.chipmunk_types; import chipmunk.chipmunk_structs; extern (C): cpBool cpConstraintIsRotaryLimitJoint (const(cpConstraint)* constraint); cpRotaryLimitJoint* cpRotaryLimitJointAlloc (); cpRotaryLimitJoint* cpRotaryLimitJointInit (cpRotaryLimitJoint* joint, cpBody* a, ...
D
import darg; import encoder; import picture; import std.conv; import std.exception; import std.regex; import std.stdio; struct Options { @Option("help", "h") @Help("Prints this help.") OptionFlag help; @Option("frames", "f") @Help("Number of frames to encode.") size_t frames_to_decode = size_t.max; @Option("...
D
/******************************************************************************* AioScheduler that is informed when the aio operations are done and ready to be continued. Scheduler internally has two queues: queue that's accessible to main thread and the queue that's accessible to all worker threads. ...
D
/* Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, a...
D
/** File handling functions and types. Copyright: © 2012-2014 RejectedSoftware e.K. License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig */ module vibe.core.file; public import vibe.core.stream; import vibe.core.drivers.threadedfile; // temporarily ...
D
module systems.inputhandler; import std; import bindbc.sdl; import inmath.linalg; import components.input; import converters; import entity; import navigationinput; import system; class InputHandler : System!Input { bool canAddEntity(Entity entity) { return entity.has("inputType") && !entity.has("remoteEnt...
D
/Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Transport.build/Streams/StreamError.swift.o : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/Stream.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/sockets.git-972942...
D
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed...
D
/Users/srikanthadavalli/pokeman/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/NetworkReachabilityManager.o : /Users/srikanthadavalli/pokeman/Pods/Alamofire/Source/Alamofire.swift /Users/srikanthadavalli/pokeman/Pods/Alamofire/Source/Download.swift /Users/srikanthadavalli/pok...
D
instance Mod_7607_STT_Schatten_NW (Npc_Default) { //-------- primary data -------- name = NAME_Schatten; npctype = NPCTYPE_mt_schatten; guild = GIL_STRF; level = 7; voice = 0; id = 7607; //-------- abilities -------- B_SetAttributesToChapter (self, 4); //-------- visuals -------- // ...
D
/Users/mprechner/vapor-demo/HelloWorld/.build/debug/Leaf.build/Tag/Models/Else.swift.o : /Users/mprechner/vapor-demo/HelloWorld/.build/checkouts/leaf.git-9164445114487378533/Sources/Leaf/Argument.swift /Users/mprechner/vapor-demo/HelloWorld/.build/checkouts/leaf.git-9164445114487378533/Sources/Leaf/Byte+Leaf.swift /Use...
D
someone who flies a balloon
D
module godot.colorpickerbutton; import std.meta : AliasSeq, staticIndexOf; import std.traits : Unqual; import godot.d.meta; import godot.core; import godot.c; import godot.d.bind; import godot.object; import godot.classdb; import godot.button; import godot.colorpicker; @GodotBaseClass struct ColorPickerButton { static...
D
/* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
D
module entity.rendersystem; import entity.system; alias IRenderComponent rc; interface IRenderComponent:IComponent { void draw(); } class RenderSystem : ISystem { private rc[] comps; override void registerComponent(IComponent comp) { if(is(comp:IRenderComponent)) comps ~= cast(rc)comp; } override void p...
D
instance DIA_ADDON_GREG_BF_EXIT(C_Info) { npc = pir_13200_addon_greg; nr = 999; condition = dia_addon_greg_bf_exit_condition; information = dia_addon_greg_bf_exit_info; permanent = TRUE; description = Dialog_Ende; }; func int dia_addon_greg_bf_exit_condition() { return TRUE; }; func void dia_addon_greg_bf_ex...
D
/+ dub.sdl: name "calls" description "benchmark calls" targetType "executable" dependency "openmethods" path="../" +/ import std.stdio, std.format, std.array; import openmethods; mixin(registerMethods); interface BaseInterface { void vfInterfaceToClass(); } interface DerivedInterface : BaseInterface { } cla...
D
/Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/HTTP.build/Parser/ParserError.swift.o : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Async/Response+Async.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/....
D
// This source code was generated by regenerator module windowskits.dcommon; import windowskits.minwindef; import core.sys.windows.windef; import core.sys.windows.winnt; import windowskits.dxgiformat; import core.sys.windows.basetsd; import windowskits.windef; struct D2D_MATRIX_3X2_F___anonymous_6 { FLOAT...
D
module imports.diag9210c; import diag9210a; interface C : A {}
D
module tvm.compiler.printer; import std.string : format; import tvm.compiler.ast; import tvm.vm.objects; import tvm.vm.bytecode; import tvm.vm.primops; string toString(TVMValue value) { switch(value.type) { case TVMValue.POINTER: return toString(value.ptr); case TVMValue.FLOATING: ...
D
import std.stdio; import std.format; import std.algorithm; import derelict.sdl2.sdl; import lava; Sprite background1; void main() { screen.init("oofy", 640, 480, 2, true); maps.loadMap("maps/map_1.json","images/tiles.png"); game.addObject(new Girl(50, 50)); background1 = new Sprite("images/b...
D
/* Copyright (C) 2012 Zach Reizner (zach297@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
D
void main() { auto ip = readAs!(int[]), A = ip[0], B = ip[1], C = ip[2], D = ip[3]; ulong k; while(true) { if(k % 2 == 0) { if(C - B <= 0) { writeln("Yes"); return; } C -= B; } else { if(A - D <= 0) { writeln("No"); return; } A -= D; } k++; } } // ======================...
D
module gfm.sdl2.renderer; import std.string; import derelict.sdl2.sdl; import gfm.common.log; import gfm.math.smallvector; import gfm.math.box; import gfm.sdl2.sdl; import gfm.sdl2.window; import gfm.sdl2.surface; enum Blend { NONE = SDL_BLENDMODE_NONE, MUL = SDL_BLENDMODE_MOD, ADD = SDL_BLENDMODE_ADD,...
D
module android.java.android.text.method.DigitsKeyListener; public import android.java.android.text.method.DigitsKeyListener_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!DigitsKeyListener; import import2 = android.java.java.lang.CharSequence; import import8 = android.java.java.lang.Class; im...
D
module string.strchr; import string.strchrnul; extern(C): char* strchr(char *s, int c) { char* r = __strchrnul(s, c); return *cast(ubyte*)r == cast(ubyte)c ? r : cast(char*)0; }
D
@compute module dcompute.std.transcendental; import dcompute.attribute; import dcompute.common.vector; /* acos acosh asin asinh atan atan2 atanh cos cosh cospi exp exp2 exp10 log log2 log10 sincos sin sinh sinpi tan tanh tanpi */
D
/** * Package module for the Poodinis Dependency Injection framework. * * Authors: * Mike Bierlee, m.bierlee@lostmoment.com * Copyright: 2014-2023 Mike Bierlee * License: * This software is licensed under the terms of the MIT license. * The full terms of the license can be found in the LICENSE file. ...
D
/** * Внешнее API Copyright: © 2014 Semantic Machines License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Valeriy Bushenev */ module pacahon.context; private import std.concurrency, std.datetime; private import type; private import util.container; priva...
D
// Copyright Ferdinand Majerech 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) ///YAML node formatting styles. module dyaml.style; ///Scalar styles. enum ScalarStyle : ubyte { ...
D
// PERMUTE_ARGS: -O -release -g import std.file, std.stdio; int main() { auto size = thisExePath.getSize(); writeln(size); version (D_LP64) enum limit = 1_906_432; else enum limit = 1_900_000; return size > limit * 13 / 10; }
D
module pixelperfectengine.concrete.elements; public import pixelperfectengine.concrete.elements.base; public import pixelperfectengine.concrete.elements.button; public import pixelperfectengine.concrete.elements.label; public import pixelperfectengine.concrete.elements.textbox; public import pixelperfectengine.concret...
D
/* Copyright 2006, 2007 Kirk McDonald Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,...
D
//Org: http://forum.dlang.org/thread/k7orpj$1tt5$1@digitalmars.com module toy; import std.concurrency, std.stdio; struct SImpl { string s; int i; } alias shared( SImpl ) S; struct Msg { S s; } struct Quit {} S global = S( "global", 999 ); void main () { auto child = spawn( &task ); S s = S( "abc", 4...
D
module android.java.android.print.PrinterId_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import1 = android.java.java.lang.Class_d_interface; import import0 = android.java.android.os.Parcel_d_interf...
D
module antlr.v4.runtime.atn.SimState; import antlr.v4.runtime.dfa.DFAState; /** * When we hit an accept state in either the DFA or the ATN, we * have to notify the character stream to start buffering characters * via {@link IntStream#mark} and record the current state. The current sim state * includes the current...
D
// To compile: // dfl pictureviewer -gui // Note: see http://wiki.dprogramming.com/DflDoc/PictureFormats for supported image formats. private import core.memory; private import dfl.all; class PictureForm: Form { PictureBox pic; this() { startPosition = FormStartPosition.WINDOWS_DEFAULT_BOUNDS; text = "...
D
// Generated by gnome-h2d.rb <http://github.com/ddude/gnome.d>. module glib.trashstack; /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * * This library is free software; you can redistribute it and/or * modify it under the terms o...
D
<?xml version="1.0" encoding="ASCII" standalone="no"?> <di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0"> <pageList> <availablePage> <emfPageIdentifier href="VAR_7_MobileMedia-...
D
module KissRpc.RpcClientImpl; import KissRpc.RpcClient; import KissRpc.RpcRequest; import KissRpc.RpcResponse; import KissRpc.Unit; import KissRpc.Logs; import std.stdio; class RpcClientImpl(T) { this(RpcClient refClient) { client = refClient; foreach(i, func; __traits(derivedMembers, T)) { foreach(t ;__...
D
import std.algorithm; import std.conv; import std.array; import std.exception; import std.traits; import std.format; import std.stdio; import util; class MooreState(Tin, Tout = Tin) { Tout value; MooreState[Tin] children; uint id; } struct JustInterface; class Moore(T...
D
instance Info_Vlk_2_EXIT(C_Info) { nr = 999; condition = Info_Vlk_2_EXIT_Condition; information = Info_Vlk_2_EXIT_Info; permanent = 1; description = "KONIEC"; }; func int Info_Vlk_2_EXIT_Condition() { return 1; }; func void Info_Vlk_2_EXIT_Info() { AI_StopProcessInfos(self); }; instance Info_Vlk_2_EinerVon...
D
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE 289.600006 75.1999969 1.79999995 73.1999969 11 19 -31.6000004 145.600006 9338 2.5 2.5 0.75 sediments, saprolite 294.399994 82.9000015 1.89999998 472.299988 8 23 -33.5999985 150.600006 1154 2.0999999 2.79999995 0.4 sediments 236.600006 78.5 0 7.5...
D
module jaster.ioc.depinject; /// Describes the lifetime of a service. enum ServiceLifetime { /++ + The service is constructed every single time it is requested. + + These services are the most expensive to use, as they need to be constructed *every single time* they're requested, which also + p...
D
/++ サブパッケージの作り方 Source: $(LINK_TO_SRC subpkg/source/subpkg/_test.d) +/ module subpkg.test; /++ DubのsubPackageの確認 +/ /++ unittestの例 +/ unittest { // nothing todo }
D