code
stringlengths
3
10M
language
stringclasses
31 values
module twm.cocoa; version (OSX): import std.stdint; public import twm.common; bool constructWindow(uint16_t width, uint16_t height, Window* window) { return false; } void pollEvents(const Window* window, Event* events, size_t eventCount) { } void shutdownWindow(Window* window) { }
D
import std.stdio; import std.regex; import std.json; import tpl.match; import tpl.rule; import tpl.parser; import tpl.renderer; import tpl.util; import tpl.environment; void main() { JSONValue data; data["name"] = "Cree"; data["alias"] = "Cree"; data["city"] = "Christchurch"; data["age"] = 3; data["age1"] = 28; ...
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
instance GRD_282_Nek(Npc_Default) { name[0] = "Mrtvý strážce"; npcType = npctype_main; guild = GIL_GRD; level = 10; voice = 7; id = 282; attribute[ATR_STRENGTH] = 40; attribute[ATR_DEXTERITY] = 20; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 160; attribute[ATR_HITPO...
D
// Written in the D programming language. /** DLANGUI library. This module contains simple controls widgets implementation. TextWidget ImageWidget Button ImageButton ScrollBar Synopsis: ---- import dlangui.widgets.controls; ---- Copyright: Vadim Lopatin, 2014 License: Boost License 1.0 Authors: Vadim Lo...
D
module org.serviio.upnp.discovery.MediaServerConstants; import java.lang.String; public class MediaServerConstants { public static immutable String MEDIA_SERVER_DEVICE_TYPE = "urn:schemas-upnp-org:device:MediaServer:1"; public static immutable String MEDIA_RENDERER_DEVICE_TYPE = "urn:schemas-upnp-org:device:M...
D
/****** * Описание: * Этот модуль инстанциирует многие общие типы векторов. * Он добавляет около 25K кода с dmd/win, поэтому по умолчанию не импортируется. * * Но с его помощью можно легко получить все, что относится к Вектор в одном * пространстве имен с переименованым импортом: import vecs = linalg...
D
// Written in the D programming language. /** Defines generic _containers. Source: $(PHOBOSSRC std/_container.d) Macros: WIKI = Phobos/StdContainer TEXTWITHCOMMAS = $0 Copyright: Red-black tree code copyright (C) 2008- by Steven Schveighoffer. Other code copyright 2010- Andrei Alexandrescu. All rights reserved by th...
D
module async; public import async.event.selector; public import async.eventloop; public import async.net.tcpclient; public import async.net.tcplistener; public import async.thread; public import async.codec;
D
/Users/dinghba/repos/Campus2Home/Map/build/Map.build/Debug-iphonesimulator/Map.build/Objects-normal/x86_64/AfterSubmitViewController.o : /Users/dinghba/repos/Campus2Home/Map/Map/DriverShuttleViewController.swift /Users/dinghba/repos/Campus2Home/Map/Map/SwiftyJSON.swift /Users/dinghba/repos/Campus2Home/Map/Map/Destinati...
D
func void B_AssessQuietSound() { if(!Hlp_IsValidNpc(other)) { return; }; if(Npc_GetHeightToNpc(self,other) > PERC_DIST_HEIGHT) { return; }; if((Wld_GetPlayerPortalGuild() >= GIL_NONE) && (Npc_GetHeightToNpc(self,other) > PERC_DIST_INDOOR_HEIGHT)) { return; }; if(B_AssessEnterRoom()) { return; }; i...
D
/Users/sapientisat/Projects/Supplements/Supplements/XcodeBuild/Intermediates.noindex/Supplements.build/Debug-iphonesimulator/Supplements.build/Objects-normal/x86_64/SymptomsViewController.o : /Users/sapientisat/Projects/Supplements/Supplements/Supplements/Form/Views/CustomTextField.swift /Users/sapientisat/Projects/Sup...
D
import std.math : sin; import derelict.sdl2.sdl; import derelict.sdl2.image; import window; immutable width = 480; immutable height = 640; immutable birdWidth = 80; immutable birdHeight = 50; immutable floorHeight = 64; struct GameState { enum GameMoment { WAITING, PLAYING, LOST } GameMoment currentMomen...
D
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/IBarLineScatterCandleBubbleChartDataSet.o : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/D...
D
/** Each board position can identified using a hash value which is calculated using $(D generatePosKey). Source: $(PHOBOSSRC libchess/_hash.d) Copyright: Copyright Michael Weber Jr. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Michael Weber JR. */ module libchess.hash; imp...
D
/** * Define `enum` declarations and `enum` members. * * Specification: $(LINK2 https://dlang.org/spec/enum.html, Enums) * * Copyright: Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.b...
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
// Copyright 2018 - 2021 Michael D. Parker // 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 bindbc.opengl.bind.arb.core_42; import bindbc.loader; import bindbc.opengl.config, ...
D
.build_Debug/src/qc-T020.xc.d ./.build_Debug/src/qc-T020.xc.o: ././src/qc-T020.xc
D
instance DIA_GornOW_EXIT(C_Info) { npc = PC_Fighter_OW; nr = 999; condition = DIA_GornOW_EXIT_Condition; information = DIA_GornOW_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_GornOW_EXIT_Condition() { return TRUE; }; func void DIA_GornOW_EXIT_Info() { AI_StopProcessInfos(self); };...
D
/** * TypeInfo support code. * * Copyright: Copyright Digital Mars 2004 - 2009. * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: Walter Bright */ /* Copyright Digital Mars 2004 - 2009. * Distributed under the Boost Software License, Version 1.0. * (See...
D
module vulkan.gui.widgets.MenuBar; import vulkan.gui; final class MenuBar : Widget { private: public: }
D
// Compiler implementation of the D programming language // Copyright (c) 1999-2015 by Digital Mars // All Rights Reserved // written by Walter Bright // http://www.digitalmars.com // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt module ddmd.expression; import core...
D
/Users/Dawid/Nauka/Game Dev/Typespeed/target/release/deps/num_integer-244b5535b396de79.rmeta: /Users/Dawid/.cargo/registry/src/github.com-1ecc6299db9ec823/num-integer-0.1.42/src/lib.rs /Users/Dawid/.cargo/registry/src/github.com-1ecc6299db9ec823/num-integer-0.1.42/src/roots.rs /Users/Dawid/Nauka/Game Dev/Typespeed/tar...
D
/** * @file pmapp.h * @brief PM (Process Manager) application service. */ module ctru.services.pmapp; import ctru.types; import ctru.exheader; import ctru.services.fs; extern (C): nothrow: @nogc: /// Launch flags for PM launch commands. enum { PMLAUNCHFLAG_NORMAL_APPLICATION = BIT(0), PMLAUNCHFLAG_LOAD_D...
D
/* * SDLMain.m - main entry point for our Cocoa-ized SDL app * Initial Version: Darrell Walisser <dwaliss1@purdue.edu> * Non-NIB-Code & other changes: Max Horn <max@quendi.de> * Port to the D programming language: Jacob Carlborg <jacob.carlborg@gmail.com> * * Feel free to customize this file to suit your needs *...
D
/* * Copyright (C) 2007 The Android Open Source Project * * 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 app...
D
/Users/Lorenzo/Desktop/EO18_2/Build/Intermediates/Pods.build/Debug-iphonesimulator/MapboxCoreNavigation.build/Objects-normal/x86_64/DistanceFormatter.o : /Users/Lorenzo/Desktop/EO18_2/Pods/MapboxCoreNavigation/MapboxCoreNavigation/UIDevice.swift /Users/Lorenzo/Desktop/EO18_2/Pods/MapboxCoreNavigation/MapboxCoreNavigati...
D
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/Base64.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIOWebSocket/SHA1.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/N...
D
module android.java.javax.security.auth.login.LoginException_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import1 = android.java.java.io.PrintStream_d_interface; import import4 = android.java.java....
D
INSTANCE Info_Mod_Wesen_03_Hi (C_INFO) { npc = Monster_11027_Wesen_HALU; nr = 1; condition = Info_Mod_Wesen_03_Hi_Condition; information = Info_Mod_Wesen_03_Hi_Info; permanent = 0; important = 1; }; FUNC INT Info_Mod_Wesen_03_Hi_Condition() { return 1; }; FUNC VOID Info_Mod_Wesen_03_Hi_Info() { AI_Output(se...
D
/** * Copyright: Copyright (c) 2011 Nick Sabalausky. * Authors: Nick Sabalausky * Version: Initial created: Jun 1, 2011 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) */ module dvm.util.Windows; version (Windows): import std.utf : toUTF16z; import dvm.dvm.Exceptions; import...
D
/** * Copyright: Copyright (c) 2017 Wojciech Szęszoł. All rights reserved. * Authors: Wojciech Szęszoł * Version: Initial created: October 19, 2017 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) */ import std.stdio; import Common; import dstep.translator.Translator; unittest ...
D
/substrate-node-template/target/release/deps/ref_cast-358deca11be003bd.rmeta: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.2/src/lib.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.2/src/trivial.rs /substrate-node-template/target/release/deps/libref_cast-358deca11be003bd.rli...
D
/homes/e18charr/Documents/A3/Rust/Projet_IOT/nkeys/target/debug/deps/typenum-50a5864b187f3226.rmeta: /homes/e18charr/.cargo/registry/src/github.com-1ecc6299db9ec823/typenum-1.12.0/src/lib.rs /homes/e18charr/.cargo/registry/src/github.com-1ecc6299db9ec823/typenum-1.12.0/src/bit.rs /homes/e18charr/.cargo/registry/src/git...
D
module gfm.core.queue; import std.range; // what to do when capacity is exceeded? private enum OverflowPolicy { GROW, CRASH, DROP } /** Doubly-indexed queue, can be used as a FIFO or stack. Bugs: Doesn't call struct destructors. */ final class QueueImpl(T, OverflowPolicy overflowPo...
D
/* Copyright (c) 2014-2019 Martin Cejp 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, distri...
D
/** File handling. Copyright: © 2012 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 dub.internal.vibecompat.core.file; public import dub.internal.vibecompat.inet.url; import dub.internal.vibecompat.core.log; im...
D
The government suit against Microsoft is the most aggressive antitrust case in a quarter century. The heart of the case is the Internet browser battle between Microsoft and Netscape. Microsoft says that its Internet Explorer is an integral part of its Windows system, the industry dominant operating system. Microsoft, i...
D
int main(){ Print(0xA2a5); Print(0X12f5); Print(-0xaaa); Print(01234); Print(12.); Print(12.2E+2); Print(12.2E-2); Print(12.E+2); Print(12.2E+2); Print(0012.e+002); }
D
/Users/nileshkumar/Documents/Files/helloworld/Todoey/Todoey/DerivedData/Todoey/Build/Intermediates.noindex/Todoey.build/Debug-iphonesimulator/Todoey.build/Objects-normal/x86_64/ViewController.o : /Users/nileshkumar/Documents/Files/helloworld/Todoey/Todoey/Todoey/AppDelegate.swift /Users/nileshkumar/Documents/Files/hell...
D
/Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/x86_64-apple-macosx/debug/NIOExtras.build/LineBasedFrameDecoder.swift.o : /Users/sadikekinozbay/Documents/TUM/WS-2/Swift/Apodini-Example-Project/.build/checkouts/swift-nio-extras/Sources/NIOExtras/JSONRPCFraming.swift /Users/sadikekinozbay/Do...
D
/** Authors: Lars Tandle Kyllingstad Copyright: Copyright (c) 2009, Lars T. Kyllingstad. All rights reserved. License: Boost License 1.0 */ module scid.ports.napack.stopit; import std.math; // // ________________________________________________________ // | ...
D
/Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Console.build/Command/Group.swift.o : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Console-1.0.0/Sources/Console/Bar/Bar.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Console-1.0.0/Sources/Console/Command/Argument.swift /Users/miladmehrpoo/Desktop/Helloworl...
D
module android.java.java.text.AttributedString; public import android.java.java.text.AttributedString_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!AttributedString; import import3 = android.java.java.lang.Class;
D
module android.java.android.hardware.display.VirtualDisplay; public import android.java.android.hardware.display.VirtualDisplay_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!VirtualDisplay; import import1 = android.java.android.view.Surface; import import2 = android.java.java.lang.Class; imp...
D
module armos.app.windowconfig; import armos.math; import armos.utils.semver; import std.conv; /++ +/ class WindowConfig { public{ /// int height()const{return _height;} /// typeof(this) height(in int h){_height = h;return this;} /// int width()const{return...
D
import bench_suite, std.algorithm, std.stdio, std.typetuple, std.conv, std.utf; //static import std.ascii; import alpha; version(std_uni){ import std.uni; import std.internal.uni; import std.internal.uni_tab; } else{ import uni; alias TypeTuple!(invAlpha, invMark, invNumber, invSymbol) invTests...
D
/Users/sergiysobol/Projects/MovieDatabase/build/Pods.build/Debug-iphonesimulator/netfox.build/Objects-normal/x86_64/NFXSettingsController_iOS.o : /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXListCell_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXInfoController_iOS....
D
import vibe.appmain; import vibe.core.core; import vibe.http.fileserver; import vibe.http.router; import vibe.http.server; import vibe.core.stream : pipe, nullSink; import std.functional : toDelegate; shared string data; void empty(scope HTTPServerRequest req, scope HTTPServerResponse res) { res.writeBody(""); } ...
D
/******************************************************************************* * Copyright (c) 2000, 2006 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
module fibra_derivada; import core.thread : Fiber; import cuenta; class FibraDerivada : Fiber { shared Cuenta cuenta; int numero; this(shared Cuenta cuenta, int numero) { this.cuenta = cuenta; this.numero = numero; super( &run ); } private : void run() { for (int p = 1; p <numero; p++) { cuenta.agre...
D
// Written by Christopher E. Miller // See the included license.txt for copyright and license details. /// module dfl.messagebox; private import dfl.internal.winapi, dfl.internal.dlib, dfl.base; /// enum MsgBoxButtons { ABORT_RETRY_IGNORE = MB_ABORTRETRYIGNORE, /// OK = MB_OK, /// ditto OK_CANCEL = MB_OKCANCEL,...
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-61989591...
D
module minima.graphics; import minima.util; import std.exception; import std.string; import std.conv; import derelict.sdl2.sdl; public struct Color { byte red, green, blue, alpha; this(byte red, byte green, byte blue, byte alpha = cast(byte) 255) { this.red = red; this.green = green; this.blue = bl...
D
INSTANCE DienerDesBoesen_01 (Npc_Default) { //----- Monster ---- name = "Diener des Bösen"; guild = GIL_DEMON; id = 7196; voice = 0; level = 100; npctype = NPCTYPE_MAIN; //----- Attribute ---- attribute [ATR_STRENGTH] = 120; //+ 105 Waffe attribute [ATR_DEXTERITY] = 120; attribute ...
D
instance DIA_Cipher_EXIT(C_Info) { npc = Sld_803_Cipher; nr = 999; condition = DIA_Cipher_EXIT_Condition; information = DIA_Cipher_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Cipher_EXIT_Condition() { return TRUE; }; func void DIA_Cipher_EXIT_Info() { AI_StopProcessInfos(self); }...
D
import std.stdio; import omscript; void main() { //test_long_double(); om_data undefined = new_undefined(); om_data c = new_number(10); auto obj = new class om_callback { public override om_data run(om_list_data __arguments__) { om_data a = __get_arg__(__arguments__, 0);...
D
/Volumes/data/huian/win/haim_tauri/src-tauri/target/release/build/log-ac4051996197b328/build_script_build-ac4051996197b328: /Users/lwjzsj/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.17/build.rs /Volumes/data/huian/win/haim_tauri/src-tauri/target/release/build/log-ac4051996197b328/build_script_build-ac40519...
D
/* * gdiplusmetaheader.d * * This module implements GdiPlusMetaHeader.h for D. The original copyright * info is given below. * * Author: Dave Wilkinson * Originated: November 25th, 2009 * */ module binding.win32.gdiplusmetaheader; import binding.win32.windef; import binding.win32.winbase; import binding.win3...
D
module path; import interfaces; private import std.stdio; class Path { public: ILevel level; int start_x; int start_y; int target_x; int target_y; int x; int y; int last_dx = 0; int last_dy = 0; int dx = 0; int dy = 0; ...
D
/* TEST_OUTPUT: --- fail_compilation/mixintype2.d(9): Error: alias `mixintype2.Foo.T` recursive alias declaration --- */ struct Foo { alias T = mixin("T2"); } alias T1 = mixin("Foo.T"); alias T2 = mixin("T1"); void func (T2 p) {}
D
/** * TypeInfo support code. * * Copyright: Copyright Digital Mars 2004 - 2009. * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: Walter Bright */ /* Copyright Digital Mars 2004 - 2009. * Distributed under the Boost Software License, Version 1.0. * (See...
D
/* TEST_OUTPUT: --- fail_compilation/fail251.d(12): Error: undefined identifier 'xs' fail_compilation/fail251.d(16): called from here: foo() fail_compilation/fail251.d(16): while evaluating: static assert(foo()) --- */ bool foo() { foreach (x; xs) {} return true; } static assert(foo());
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
any of a group of hard crystalline minerals that consist of aluminum silicates of potassium or sodium or calcium or barium
D
module android.java.java.lang.UnsatisfiedLinkError; public import android.java.java.lang.UnsatisfiedLinkError_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!UnsatisfiedLinkError; import import4 = android.java.java.lang.Class; import import3 = android.java.java.lang.StackTraceElement; import i...
D
module dk.scale; import dk.widget; import dk.options; import std.conv; import std.string; class Scale: public Widget { this(Widget master,string text) { Options o; o["label"]=text; super(master,"scale",o); } int get() { return .toInt(eval("get")); } void set(int value) { eval("set...
D
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/TemplateKit.build/Utilities/Exports.swift.o : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/user/Documents/RiseTimeAssets/server/.buil...
D
# FIXED grlib/msp-exp432p401r_grlib_example/fonts/fontcmsc24.obj: ../grlib/msp-exp432p401r_grlib_example/fonts/fontcmsc24.c ../grlib/msp-exp432p401r_grlib_example/fonts/fontcmsc24.c:
D
/* * hunt-console eases the creation of beautiful and testable command line interfaces. * * Copyright (C) 2018-2019, HuntLabs * * Website: https://www.huntlabs.net * * Licensed under the Apache-2.0 License. * */ module hunt.console.input.InputOption; import hunt.console.error.InvalidArgumentException; impor...
D
/Users/dimdew/CLionProjects/talent_plan_kv/simple_kv/target/debug/deps/fs2-0437b7b05fe5e9aa.rmeta: /Users/dimdew/.cargo/registry/src/github.com-1ecc6299db9ec823/fs2-0.4.3/src/lib.rs /Users/dimdew/.cargo/registry/src/github.com-1ecc6299db9ec823/fs2-0.4.3/src/unix.rs /Users/dimdew/CLionProjects/talent_plan_kv/simple_kv/...
D
/** * Defines the Component abstract class, which is the base for all components. */ module components.icomponent; import core, graphics; import yaml; /** * Interface for components to implement. */ shared interface IComponent { private: shared static GameObject[ shared IComponent ] owners; public: /** ...
D
/home/hustccc/OS_Tutorial_Summer_of_Code/rCore_Labs/Lab5/os/target/debug/deps/proc_macro2-fd0b09dcd38b7a95.rmeta: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/proc-macro2-1.0.18/src/lib.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/proc-macro2-1.0.18/src/parse.rs /h...
D
/* TEST_OUTPUT: --- fail_compilation/ice11856_0.d(19): Error: template `ice11856_0.f` cannot deduce function from argument types `!()(int)` fail_compilation/ice11856_0.d(13): Candidates are: `f(T)(T t)` fail_compilation/ice11856_0.d(16): `f(T)(T t)` with `T = int` must satisfy the foll...
D
instance Mod_596_MIL_Martin_NW (Npc_Default) { // ------ NSC ------ name = "Martin"; guild = GIL_PAL;//wegen Rangermeeting id = 596; voice = 7; flags = 0; npctype = NPCTYPE_MAIN; aivar[AIV_ToughGuy] = TRUE; // ------ Attribute ------ B_SetAttributesToChapter (self, 3); ...
D
a list of items (names or tasks etc.) to be checked or consulted
D
module graphics.models.cgymodel; import std.stdio; import cgy.opengl.error : glError; import cgy.debug_.debug_ : BREAK_IF; import cgy.stolen.quaternion; import graphics.ogl; import scene.texturearray; import modelparser.cgyparser; struct cgyVertex { vec3f pos; float[2] st; vec3f normal; ubyte[4] bo...
D
// written in the D programming language /++ + Authors: Stephan Dilly, www.extrawurst.org +/ module framework; import derelict.sdl.sdl; import derelict.opengl.gl; import derelict.opengl.glu; import std.string; import std.stdio; void startup(string _title,int _width,int _height,bool useVsync=true) { Derelict...
D
// TP2Q2 import std.stdio; import std.math; long square_root(long x) in { // Ensure that x is positive // FIXME-begin assert(x >= 0, "argument must be positive"); // FIXME-end } out (result) { // Ensure that result^2 <= x < (result+1)^2 // Otherwise raise "not a valid square root" // FIX...
D
// ************************************************************ // EXIT // ************************************************************ INSTANCE DIA_Gorn_DI_KAP5_EXIT(C_INFO) { npc = PC_Fighter_DI; nr = 999; condition = DIA_Gorn_DI_KAP5_EXIT_Condition; information = DIA_Gorn_DI_KAP5_EXIT_Info; per...
D
// Written in the D programming language. /** This module implements a variety of type constructors, i.e., templates that allow construction of new, useful general-purpose types. Source: $(PHOBOSSRC std/_typecons.d) Macros: WIKI = Phobos/StdVariant Synopsis: ---- // value tuples alias Coord = Tuple!(float, "x"...
D
// This source code is in the public domain. // ScaleButton example import std.stdio; import gtk.MainWindow; import gtk.Main; import gtk.Box; import gtk.Widget; import gtk.ScaleButton; import gtk.Adjustment; import gtk.c.types; void main(string[] args) { TestRigWindow testRigWindow; Main.init(args); testRigWi...
D
a small refracting telescope
D
module deimos.sane.bindingtests; import deimos.sane.sane; extern(C) extern __gshared uint* sane_bind_test_vals; extern(C) extern __gshared uint** sane_bind_test_offsets; enum SANE_BIND_TEST_BYTE_SIZEOF = 0; enum SANE_BIND_TEST_WORD_SIZEOF = 1; enum SANE_BIND_TEST_CHAR_SIZEOF = 2; enum SANE_BIND_TEST_ENUM_SIZEO...
D
/***************************************************************************** * * Higgs JavaScript Virtual Machine * * This file is part of the Higgs project. The project is distributed at: * https://github.com/maximecb/Higgs * * Copyright (c) 2012-2014, Maxime Chevalier-Boisvert. All rights re...
D
void main() { auto K = ri; auto ip = readAs!(int[]), A = ip[0], B = ip[1]; foreach(i; A..B+1) { if(i % K == 0) { writeln("OK"); return; } } writeln("NG"); } // =================================== import std.stdio; import std.string; import std.functional; import std.algorithm; import std.range; import ...
D
module mangareader.manga; import std.algorithm.comparison; import std.algorithm.iteration; import std.algorithm.sorting; import std.array; import std.conv; import std.experimental.logger; import std.file; import std.math; import std.stdio; import mangareader.globalbookmark; import mangareader.page; import mangareader....
D
//настройки сложности для засева грибов var int MR_Opts_MrAmount; //сколько грибов? const int MR_OptsAmount_Less = -1; const int MR_OptsAmount_Index_Less = 1; const int MR_OptsAmount_Norm = 0; const int MR_OptsAmount_Index_Norm = 0; const int MR_OptsAmount_More = 1; const int MR_OptsAmount_Index_More = 2; var int...
D
import std.stdio, std.math, std.algorithm, std.range, std.numeric, std.typecons; Tuple!(double[],"x", string,"err") gaussPartial(in double[][] a0, in double[] b0) pure /*nothrow*/ in { assert(a0.length == a0[0].length); assert(a0.length == b0.length); assert(a0.all!(row => row.length == a0[0].length...
D
/** A package manager. Copyright: © 2012 Matthias Dondorff License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Matthias Dondorff, Sönke Ludwig */ module dub.dub; import dub.compilers.compiler; import dub.dependency; import dub.installation; import dub.utils; imp...
D
// Copyright © 2012, Jakob Bornecrantz. All rights reserved. // See copyright notice in src/charge/charge.d (GPLv2 only). /** * Source file for StartupRunner. */ module charge.game.startup; import charge.charge; import charge.game.runner; /** * Runner that runs tasks and displays progress. * * Often used at s...
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Bo...
D
/* crypto/crypto.h */ /* ==================================================================== * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
D
/* TEST_OUTPUT: --- fail_compilation/fail304.d(15): Error: cannot cast expression `foo()` of type `Small` to `Large` because of different sizes --- */ struct Small { uint x; } struct Large { uint x, y, z; } Small foo() { return Small(); } void main() { Large l; Small s; l = cast(Large)foo(); }
D
/** * Inline assembler for the GCC D compiler. * * Copyright (C) 2018-2022 by The D Language Foundation, All Rights Reserved * Authors: Iain Buclaw * License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/...
D
#!/usr/bin/env dub /+ dub.sdl: name "snippet142" dependency "dwt" path="../../../../../../" libs \ "atk-1.0" \ "cairo" \ "dl" \ "fontconfig" \ "gdk-x11-2.0" \ "gdk_pixbuf-2.0" \ "glib-2.0" \ "gmodule-2.0" \ "gnomeui-2" \ "gnomevfs-2" \ "gobje...
D
/Users/express/Movies/TryTableView/WeatherAppp/DerivedData/WeatherAppp/Build/Intermediates.noindex/WeatherAppp.build/Debug-iphonesimulator/WeatherAppp.build/Objects-normal/x86_64/ViewController.o : /Users/express/Movies/TryTableView/WeatherAppp/WeatherAppp/Search/Model/CityName.swift /Users/express/Movies/TryTableView/...
D
<?xml version="1.0" encoding="ASCII"?> <di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi"> <pageList> <availablePage> <emfPageIdentifier href="model.notation#_fO9zYIY9EeGyoJv1sk...
D
const string Grd_212_CHECKPOINT = "OCC_GATE_INSIDE"; instance Info_Grd_212_FirstWarn(C_Info) { npc = Grd_212_Torwache; nr = 1; condition = Info_Grd_212_FirstWarn_Condition; information = Info_Grd_212_FirstWarn_Info; permanent = 1; important = 1; }; func int Info_Grd_212_FirstWarn_Condition() { if((hero.aivar...
D