code
stringlengths 3
10M
| language
stringclasses 31
values |
|---|---|
// BulletD - a D binding for the Bullet Physics engine
// written in the D programming language
//
// Copyright: Ben Merritt 2012 - 2013,
// MeinMein 2013 - 2014.
// License: Boost License 1.0
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Authors: Ben Merrit,
// Gerbrand Kamphuis (meinmein.com).
module bullet.bindings.symbols;
import std.conv: to;
import bullet.bindings.bindings;
version(genBindings)
enum bool bindSymbols = true;
else
enum bool bindSymbols = false;
version(Windows)
enum bool adjustSymbols = true;
else
enum bool adjustSymbols = false;
static if(adjustSymbols)
{
static if(!bindSymbols)
public import bullet.bindings.glue;
template symbolName(Class, string name, ArgTypes ...)
{
enum symbolName = "_glue_" ~ fnv1a(Class.stringof ~ " " ~ name ~ "(" ~ argList!(dType, 0, ArgTypes) ~ ")").to!string();
}
//Applies the 64-bit FNV-1a hash function to a string
ulong fnv1a(string str) pure
{
ulong hash = 14695981039346656037u;
foreach(char c; str)
{
hash ^= cast(ulong)c;
hash *= 1099511628211;
}
return hash;
}
}
|
D
|
// Copyright © 2012, Jakob Bornecrantz. All rights reserved.
// See copyright notice in src/charge/charge.d (GPLv2 only).
/**
* Source file for BackgroundScene.
*/
module charge.game.scene.background;
import charge.math.color;
import charge.sys.resource : reference;
import charge.gfx.draw;
import charge.gfx.target;
import charge.gfx.texture;
import charge.game.scene.scene : Scene;
/**
* Only used to display something when nothing is being runned.
*/
class BackgroundScene : Scene
{
public:
Color4f color;
enum Mode {
Color,
Center,
CenterDoubled,
Tiled,
TiledDoubled,
TiledCenterSeem,
}
Mode mode;
protected:
Texture background;
Draw d;
public:
this()
{
super(Type.Background);
this.color = Color4f.Black;
d = new Draw();
}
void close()
{
reference(&this.background, null);
}
void newBackground(Texture background)
{
reference(&this.background, background);
}
void render(RenderTarget rt)
{
d.target = rt;
d.start();
auto mode = background is null ? Mode.Color : this.mode;
switch(mode) {
case Mode.Color:
// Fill everything with a single color
d.fill(color, false, 0, 0, rt.width, rt.height);
break;
case Mode.Center:
// Center the picture
int x = rt.width / 2 - background.width / 2;
int y = rt.height / 2 - background.height / 2;
d.fill(color, false, 0, 0, rt.width, rt.height);
d.blit(background, Color4f.White, false, x, y);
break;
case Mode.CenterDoubled:
// Centered and doubled
int x = rt.width / 2 - background.width;
int y = rt.height / 2 - background.height;
d.fill(color, false, 0, 0, rt.width, rt.height);
d.blit(background, Color4f.White, false,
0, 0, background.width, background.height,
x, y, background.width * 2, background.height * 2);
break;
case Mode.Tiled:
// Just a normal tile
d.blit(background, Color4f.White, false,
0, 0, rt.width, rt.height,
0, 0, rt.width, rt.height);
break;
case Mode.TiledDoubled:
// Like normal but dubbled.
d.blit(background, Color4f.White, false,
0, 0, rt.width / 2, rt.height / 2,
0, 0, rt.width, rt.height);
break;
case Mode.TiledCenterSeem:
// Tile with a seem in the middle
uint bW = background.width * 100;
uint bH = background.height * 100;
int offX = (bW - rt.width) / 2;
int offY = (bH - rt.height) / 2;
d.blit(background, Color4f.White, false,
0, 0, bW, bH,
-offX, -offY, bW, bH);
break;
default:
assert(false);
}
d.stop();
}
void logic() {}
void assumeControl() { assert(false); }
void dropControl() { assert(false); }
void resize(uint w, uint h) {}
}
|
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 under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module flow.engine.impl.util.TaskHelper;
import flow.task.api.TaskInfo;
import flow.engine.impl.util.CommandContextUtil;
import hunt.collection.ArrayList;
import hunt.collection;
import hunt.collection.List;
import hunt.collection.Map;
import flow.common.api.FlowableException;
import flow.common.api.deleg.event.FlowableEngineEventType;
import flow.common.api.deleg.event.FlowableEventDispatcher;
import flow.common.api.scop.ScopeTypes;
import flow.common.api.variable.VariableContainer;
import flow.common.el.ExpressionManager;
import flow.common.history.HistoryLevel;
//import flow.common.identity.Authentication;
import flow.common.interceptor.CommandContext;
//import flow.common.logging.LoggingSessionConstants;
import flow.engine.compatibility.Flowable5CompatibilityHandler;
import flow.engine.deleg.TaskListener;
import flow.engine.deleg.event.impl.FlowableEventBuilder;
import flow.engine.impl.cfg.ProcessEngineConfigurationImpl;
import flow.engine.impl.persistence.CountingExecutionEntity;
import flow.engine.impl.persistence.entity.ExecutionEntity;
import flow.identitylink.service.event.impl.FlowableIdentityLinkEventBuilder;
import flow.identitylink.service.impl.persistence.entity.IdentityLinkEntity;
import flow.task.api.DelegationState;
import flow.task.api.Task;
import flow.task.api.history.HistoricTaskInstance;
import flow.task.api.history.HistoricTaskLogEntryType;
import flow.task.service.HistoricTaskService;
import flow.task.service.TaskService;
import flow.task.service.TaskServiceConfiguration;
import flow.task.service.impl.BaseHistoricTaskLogEntryBuilderImpl;
import flow.task.service.impl.persistence.CountingTaskEntity;
import flow.task.service.impl.persistence.entity.HistoricTaskInstanceEntity;
import flow.task.service.impl.persistence.entity.TaskEntity;
import flow.variable.service.event.impl.FlowableVariableEventBuilder;
import flow.variable.service.impl.persistence.entity.VariableByteArrayRef;
import flow.variable.service.impl.persistence.entity.VariableInstanceEntity;
import flow.engine.impl.util.CountingEntityUtil;
import flow.engine.impl.util.EntityLinkUtil;
import hunt.Exceptions;
import flow.engine.deleg.event.impl.FlowableEventBuilder;
import hunt.String;
import hunt.Boolean;
import std.uni;
//import com.fasterxml.jackson.databind.node.ObjectNode;
/**
* @author Tijs Rademakers
* @author Joram Barrez
*/
class TaskHelper {
public static void completeTask(TaskEntity taskEntity, Map!(string, Object) variables,
Map!(string, Object) transientVariables, bool localScope, CommandContext commandContext) {
// Task complete logic
if (taskEntity.getDelegationState() !is null && taskEntity.getDelegationState() == DelegationState.PENDING) {
throw new FlowableException("A delegated task cannot be completed, but should be resolved instead.");
}
if (variables !is null) {
if (localScope) {
taskEntity.setVariablesLocal(variables);
} else if (taskEntity.getExecutionId() !is null && taskEntity.getExecutionId().length != 0) {
ExecutionEntity execution = CommandContextUtil.getExecutionEntityManager().findById(taskEntity.getExecutionId());
if (execution !is null) {
execution.setVariables(variables);
}
} else {
taskEntity.setVariables(variables);
}
}
if (transientVariables !is null) {
if (localScope) {
taskEntity.setTransientVariablesLocal(transientVariables);
} else {
taskEntity.setTransientVariables(transientVariables);
}
}
ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext);
processEngineConfiguration.getListenerNotificationHelper().executeTaskListeners(taskEntity, TaskListener.EVENTNAME_COMPLETE);
if (processEngineConfiguration.getIdentityLinkInterceptor() !is null) {
processEngineConfiguration.getIdentityLinkInterceptor().handleCompleteTask(taskEntity);
}
logUserTaskCompleted(taskEntity);
FlowableEventDispatcher eventDispatcher = CommandContextUtil.getProcessEngineConfiguration(commandContext).getEventDispatcher();
if (eventDispatcher !is null && eventDispatcher.isEnabled()) {
if (variables !is null) {
eventDispatcher.dispatchEvent(FlowableEventBuilder.createEntityWithVariablesEvent(
FlowableEngineEventType.TASK_COMPLETED, cast(Object)taskEntity, variables, localScope));
} else {
eventDispatcher.dispatchEvent(
FlowableEventBuilder.createEntityEvent(FlowableEngineEventType.TASK_COMPLETED, cast(Object)taskEntity));
}
}
//if (processEngineConfiguration.isLoggingSessionEnabled() && taskEntity.getExecutionId() !is null) {
// string taskLabel = null;
// if (taskEntity.getName() !is null && taskEntity.getName().length != 0) {
// taskLabel = taskEntity.getName();
// } else {
// taskLabel = taskEntity.getId();
// }
//
// ExecutionEntity execution = CommandContextUtil.getExecutionEntityManager().findById(taskEntity.getExecutionId());
// if (execution !is null) {
// //BpmnLoggingSessionUtil.addLoggingData(LoggingSessionConstants.TYPE_USER_TASK_COMPLETE,
// // "User task '" + taskLabel + "' completed", taskEntity, execution);
// }
//}
deleteTask(taskEntity, null, false, true, true);
// Continue process (if not a standalone task)
if (taskEntity.getExecutionId() !is null && taskEntity.getExecutionId().length != 0) {
ExecutionEntity executionEntity = CommandContextUtil.getExecutionEntityManager(commandContext).findById(taskEntity.getExecutionId());
CommandContextUtil.getAgenda(commandContext).planTriggerExecutionOperation(executionEntity);
}
}
protected static void logUserTaskCompleted(TaskEntity taskEntity) {
implementationMissing(false);
//TaskServiceConfiguration taskServiceConfiguration = CommandContextUtil.getTaskServiceConfiguration();
//if (taskServiceConfiguration.isEnableHistoricTaskLogging()) {
// BaseHistoricTaskLogEntryBuilderImpl taskLogEntryBuilder = new BaseHistoricTaskLogEntryBuilderImpl(taskEntity);
// ObjectNode data = taskServiceConfiguration.getObjectMapper().createObjectNode();
// taskLogEntryBuilder.timeStamp(taskServiceConfiguration.getClock().getCurrentTime());
// taskLogEntryBuilder.userId(Authentication.getAuthenticatedUserId());
// taskLogEntryBuilder.data(data.toString());
// taskLogEntryBuilder.type(HistoricTaskLogEntryType.USER_TASK_COMPLETED.name());
// taskServiceConfiguration.getInternalHistoryTaskManager().recordHistoryUserTaskLog(taskLogEntryBuilder);
//}
}
public static void changeTaskAssignee(TaskEntity taskEntity, string assignee) {
if ((taskEntity.getAssignee().length != 0 && taskEntity.getAssignee() != (assignee))
|| (taskEntity.getAssignee().length == 0 && assignee.length != 0)) {
CommandContextUtil.getTaskService().changeTaskAssignee(taskEntity, assignee);
fireAssignmentEvents(taskEntity);
if (taskEntity.getId() !is null && taskEntity.getId().length != 0) {
addAssigneeIdentityLinks(taskEntity);
}
}
}
public static void changeTaskOwner(TaskEntity taskEntity, string owner) {
if ((taskEntity.getOwner() !is null && taskEntity.getOwner() != (owner))
|| (taskEntity.getOwner() is null && owner !is null)) {
CommandContextUtil.getTaskService().changeTaskOwner(taskEntity, owner);
if (taskEntity.getId() !is null) {
addOwnerIdentityLink(taskEntity, taskEntity.getOwner());
}
}
}
public static void insertTask(TaskEntity taskEntity, ExecutionEntity execution, bool fireCreateEvent, bool addEntityLinks) {
// Inherit tenant id (if applicable)
if (execution !is null && execution.getTenantId() !is null) {
taskEntity.setTenantId(execution.getTenantId());
}
if (execution !is null) {
execution.getTasks().add(taskEntity);
taskEntity.setExecutionId(execution.getId());
taskEntity.setProcessInstanceId(execution.getProcessInstanceId());
taskEntity.setProcessDefinitionId(execution.getProcessDefinitionId());
}
insertTask(taskEntity, fireCreateEvent);
if (execution !is null) {
if (CountingEntityUtil.isExecutionRelatedEntityCountEnabled(execution)) {
CountingExecutionEntity countingExecutionEntity = cast(CountingExecutionEntity) execution;
countingExecutionEntity.setTaskCount(countingExecutionEntity.getTaskCount() + 1);
}
if (addEntityLinks) {
EntityLinkUtil.copyExistingEntityLinks(execution.getProcessInstanceId(), taskEntity.getId(), ScopeTypes.TASK);
EntityLinkUtil.createNewEntityLink(execution.getProcessInstanceId(), taskEntity.getId(), ScopeTypes.TASK);
}
}
FlowableEventDispatcher eventDispatcher = CommandContextUtil.getEventDispatcher();
if (fireCreateEvent && eventDispatcher !is null && eventDispatcher.isEnabled()) {
if (taskEntity.getAssignee() !is null && taskEntity.getAssignee().length != 0) {
eventDispatcher.dispatchEvent(
FlowableEventBuilder.createEntityEvent(FlowableEngineEventType.TASK_ASSIGNED, cast(Object)taskEntity));
}
}
CommandContextUtil.getActivityInstanceEntityManager().recordTaskCreated(taskEntity, execution);
}
public static void insertTask(TaskEntity taskEntity, bool fireCreateEvent) {
if (taskEntity.getOwner() !is null && taskEntity.getOwner().length != 0) {
addOwnerIdentityLink(taskEntity, taskEntity.getOwner());
}
if (taskEntity.getAssignee() !is null && taskEntity.getAssignee().length != 0) {
addAssigneeIdentityLinks(taskEntity);
}
CommandContextUtil.getTaskService().insertTask(taskEntity, fireCreateEvent);
}
public static void addAssigneeIdentityLinks(TaskEntity taskEntity) {
ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration();
if (processEngineConfiguration.getIdentityLinkInterceptor() !is null) {
processEngineConfiguration.getIdentityLinkInterceptor().handleAddAssigneeIdentityLinkToTask(taskEntity, taskEntity.getAssignee());
}
}
public static void addOwnerIdentityLink(TaskEntity taskEntity, string owner) {
if ((owner is null || owner.length == 0) && (taskEntity.getOwner() is null || taskEntity.getOwner().length == 0)) {
return;
}
ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration();
if (processEngineConfiguration.getIdentityLinkInterceptor() !is null) {
processEngineConfiguration.getIdentityLinkInterceptor().handleAddOwnerIdentityLinkToTask(taskEntity, owner);
}
}
/**
* Deletes all tasks that relate to the same execution.
*
* @param executionEntity The {@link ExecutionEntity} to which the {@link TaskEntity} relate to.
* @param taskEntities Tasks to be deleted. It is assumed that all {@link TaskEntity} instances need to be related to the same execution.
*/
public static void deleteTasksForExecution(ExecutionEntity executionEntity, Collection!TaskEntity taskEntities, string deleteReason) {
CommandContext commandContext = CommandContextUtil.getCommandContext();
// Delete all entities related to the task entities
foreach (TaskEntity taskEntity ; taskEntities) {
internalDeleteTask(taskEntity, deleteReason, false, false, true, true);
}
// Delete the task entities itself
CommandContextUtil.getTaskService(commandContext).deleteTasksByExecutionId(executionEntity.getId());
}
/**
* @param task
* The task to be deleted.
* @param deleteReason
* A delete reason that will be stored in the history tables.
* @param cascade
* If true, the historical counterpart will be deleted, otherwise
* it will be updated with an end time.
* @param fireTaskListener
* If true, the delete event of the task listener will be called.
* @param fireEvents
* If true, the event dispatcher will be used to fire an event
* for the deletion.
*/
public static void deleteTask(TaskEntity task, string deleteReason, bool cascade, bool fireTaskListener, bool fireEvents) {
internalDeleteTask(task, deleteReason, cascade, true, fireTaskListener, fireEvents);
}
protected static void internalDeleteTask(TaskEntity task, string deleteReason,
bool cascade, bool executeTaskDel, bool fireTaskListener, bool fireEvents) {
if (!task.isDeleted()) {
CommandContext commandContext = CommandContextUtil.getCommandContext();
FlowableEventDispatcher eventDispatcher = CommandContextUtil.getEventDispatcher(commandContext);
fireEvents = fireEvents && eventDispatcher !is null && eventDispatcher.isEnabled();
if (fireTaskListener) {
CommandContextUtil.getProcessEngineConfiguration(commandContext).getListenerNotificationHelper()
.executeTaskListeners(task, TaskListener.EVENTNAME_DELETE);
}
task.setDeleted(true);
handleRelatedEntities(commandContext, task, deleteReason, cascade, fireTaskListener, fireEvents, eventDispatcher);
handleTaskHistory(commandContext, task, deleteReason, cascade);
if (executeTaskDel) {
executeTaskDelete(task, commandContext);
}
if (fireEvents) {
fireTaskDeletedEvent(task, commandContext, eventDispatcher);
}
}
}
protected static void handleRelatedEntities(CommandContext commandContext, TaskEntity task, string deleteReason, bool cascade,
bool fireTaskListener, bool fireEvents, FlowableEventDispatcher eventDispatcher) {
bool isTaskRelatedEntityCountEnabled = CountingEntityUtil.isTaskRelatedEntityCountEnabled(task);
if (!isTaskRelatedEntityCountEnabled
|| (isTaskRelatedEntityCountEnabled && (cast(CountingTaskEntity) task).getSubTaskCount() > 0)) {
TaskService taskService = CommandContextUtil.getTaskService(commandContext);
List!Task subTasks = taskService.findTasksByParentTaskId(task.getId());
foreach (Task subTask ; subTasks) {
internalDeleteTask(cast(TaskEntity) subTask, deleteReason, cascade, true, fireTaskListener, fireEvents); // Sub tasks are always immediately deleted
}
}
if (!isTaskRelatedEntityCountEnabled
|| (isTaskRelatedEntityCountEnabled && (cast(CountingTaskEntity) task).getIdentityLinkCount() > 0)) {
bool deleteIdentityLinks = true;
if (fireEvents) {
List!IdentityLinkEntity identityLinks = CommandContextUtil.getIdentityLinkService(commandContext).findIdentityLinksByTaskId(task.getId());
foreach (IdentityLinkEntity identityLinkEntity ; identityLinks) {
eventDispatcher.dispatchEvent(FlowableIdentityLinkEventBuilder.createEntityEvent(FlowableEngineEventType.ENTITY_DELETED, cast(Object)identityLinkEntity));
}
deleteIdentityLinks = !identityLinks.isEmpty();
}
if (deleteIdentityLinks) {
CommandContextUtil.getIdentityLinkService(commandContext).deleteIdentityLinksByTaskId(task.getId());
}
}
if (!isTaskRelatedEntityCountEnabled
|| (isTaskRelatedEntityCountEnabled && (cast(CountingTaskEntity) task).getVariableCount() > 0)) {
Map!(string, VariableInstanceEntity) taskVariables = task.getVariableInstanceEntities();
ArrayList!VariableByteArrayRef variableByteArrayRefs = new ArrayList!VariableByteArrayRef();
foreach (VariableInstanceEntity variableInstanceEntity ; taskVariables.values()) {
if (fireEvents) {
eventDispatcher.dispatchEvent(FlowableVariableEventBuilder.createEntityEvent(FlowableEngineEventType.ENTITY_DELETED, cast(Object)variableInstanceEntity));
}
if (variableInstanceEntity.getByteArrayRef() !is null && variableInstanceEntity.getByteArrayRef().getId() !is null && variableInstanceEntity.getByteArrayRef().getId().length != 0) {
variableByteArrayRefs.add(variableInstanceEntity.getByteArrayRef());
}
}
foreach (VariableByteArrayRef variableByteArrayRef ; variableByteArrayRefs) {
CommandContextUtil.getByteArrayEntityManager(commandContext).deleteByteArrayById(variableByteArrayRef.getId());
}
if (!taskVariables.isEmpty()) {
CommandContextUtil.getVariableService(commandContext).deleteVariablesByTaskId(task.getId());
}
}
}
protected static void handleTaskHistory(CommandContext commandContext, TaskEntity task, string deleteReason, bool cascade) {
if (cascade) {
deleteHistoricTask(task.getId());
deleteHistoricTaskEventLogEntries(task.getId());
} else {
ExecutionEntity execution = null;
if (task.getExecutionId() !is null && task.getExecutionId().length != 0) {
execution = CommandContextUtil.getExecutionEntityManager(commandContext).findById(task.getExecutionId());
}
CommandContextUtil.getHistoryManager(commandContext)
.recordTaskEnd(task, execution, deleteReason, commandContext.getCurrentEngineConfiguration().getClock().getCurrentTime());
}
}
protected static void executeTaskDelete(TaskEntity task, CommandContext commandContext) {
CommandContextUtil.getTaskService(commandContext).deleteTask(task, false); // false: event will be sent out later
if (task.getExecutionId() !is null && task.getExecutionId().length != 0 && CountingEntityUtil.isExecutionRelatedEntityCountEnabledGlobally()) {
CountingExecutionEntity countingExecutionEntity = cast(CountingExecutionEntity) CommandContextUtil
.getExecutionEntityManager(commandContext).findById(task.getExecutionId());
if (CountingEntityUtil.isExecutionRelatedEntityCountEnabled(countingExecutionEntity)) {
countingExecutionEntity.setTaskCount(countingExecutionEntity.getTaskCount() - 1);
}
}
}
protected static void fireTaskDeletedEvent(TaskEntity task, CommandContext commandContext, FlowableEventDispatcher eventDispatcher) {
if (eventDispatcher !is null && eventDispatcher.isEnabled()) {
CommandContextUtil.getEventDispatcher(commandContext).dispatchEvent(
FlowableEventBuilder.createEntityEvent(FlowableEngineEventType.ENTITY_DELETED, cast(Object)task));
}
}
public static void deleteTask(string taskId, string deleteReason, bool cascade) {
CommandContext commandContext = CommandContextUtil.getCommandContext();
TaskEntity task = CommandContextUtil.getTaskService(commandContext).getTask(taskId);
if (task !is null) {
if (task.getExecutionId() !is null) {
throw new FlowableException("The task cannot be deleted because is part of a running process");
} else if (task.getScopeId() !is null && ScopeTypes.CMMN == (task.getScopeType())) {
throw new FlowableException("The task cannot be deleted because is part of a running case");
}
//if (Flowable5Util.isFlowable5ProcessDefinitionId(commandContext,task.getProcessDefinitionId())) {
// Flowable5CompatibilityHandler compatibilityHandler = Flowable5Util.getFlowable5CompatibilityHandler();
// compatibilityHandler.deleteTask(taskId, deleteReason, cascade);
// return;
//}
deleteTask(task, deleteReason, cascade, true, true);
} else if (cascade) {
deleteHistoricTask(taskId);
deleteHistoricTaskEventLogEntries(taskId);
}
}
public static void deleteTasksByProcessInstanceId(string processInstanceId, string deleteReason, bool cascade) {
List!TaskEntity tasks = CommandContextUtil.getTaskService().findTasksByProcessInstanceId(processInstanceId);
foreach (TaskEntity task ; tasks) {
FlowableEventDispatcher eventDispatcher = CommandContextUtil.getEventDispatcher();
if (eventDispatcher !is null && eventDispatcher.isEnabled() && !task.isCanceled()) {
task.setCanceled(true);
ExecutionEntity execution = CommandContextUtil.getExecutionEntityManager().findById(task.getExecutionId());
eventDispatcher
.dispatchEvent(flow.engine.deleg.event.impl.FlowableEventBuilder.FlowableEventBuilder
.createActivityCancelledEvent(execution.getActivityId(), task.getName(),
task.getExecutionId(), task.getProcessInstanceId(),
task.getProcessDefinitionId(), "userTask", new String(deleteReason)));
}
deleteTask(task, deleteReason, cascade, true, true);
}
}
public static void deleteHistoricTaskInstancesByProcessInstanceId(string processInstanceId) {
if (CommandContextUtil.getHistoryManager().isHistoryLevelAtLeast(HistoryLevel.AUDIT)) {
HistoricTaskService historicTaskService = CommandContextUtil.getHistoricTaskService();
List!HistoricTaskInstanceEntity taskInstances = historicTaskService.findHistoricTasksByProcessInstanceId(processInstanceId);
foreach (HistoricTaskInstanceEntity historicTaskInstanceEntity ; taskInstances) {
deleteHistoricTask(historicTaskInstanceEntity.getId());
}
}
}
public static void deleteHistoricTask(string taskId) {
if (CommandContextUtil.getHistoryManager().isHistoryEnabled()) {
CommandContextUtil.getCommentEntityManager().deleteCommentsByTaskId(taskId);
CommandContextUtil.getAttachmentEntityManager().deleteAttachmentsByTaskId(taskId);
HistoricTaskService historicTaskService = CommandContextUtil.getHistoricTaskService();
HistoricTaskInstanceEntity historicTaskInstance = historicTaskService.getHistoricTask(taskId);
if (historicTaskInstance !is null) {
//if (historicTaskInstance.getProcessDefinitionId() !is null
// && Flowable5Util.isFlowable5ProcessDefinitionId(CommandContextUtil.getCommandContext(), historicTaskInstance.getProcessDefinitionId())) {
// Flowable5CompatibilityHandler compatibilityHandler = Flowable5Util.getFlowable5CompatibilityHandler();
// compatibilityHandler.deleteHistoricTask(taskId);
// return;
//}
List!HistoricTaskInstanceEntity subTasks = historicTaskService.findHistoricTasksByParentTaskId(historicTaskInstance.getId());
foreach (HistoricTaskInstanceEntity subTask ; subTasks) {
deleteHistoricTask((cast(TaskInfo)subTask).getId());
}
CommandContextUtil.getHistoricDetailEntityManager().deleteHistoricDetailsByTaskId(taskId);
CommandContextUtil.getHistoricVariableService().deleteHistoricVariableInstancesByTaskId(taskId);
CommandContextUtil.getHistoricIdentityLinkService().deleteHistoricIdentityLinksByTaskId(taskId);
historicTaskService.deleteHistoricTask(historicTaskInstance);
}
}
}
public static void deleteHistoricTaskEventLogEntries(string taskId) {
TaskServiceConfiguration taskServiceConfiguration = CommandContextUtil.getTaskServiceConfiguration();
if (taskServiceConfiguration.isEnableHistoricTaskLogging()) {
CommandContextUtil.getHistoricTaskService().deleteHistoricTaskLogEntriesForTaskId(taskId);
}
}
public static bool isFormFieldValidationEnabled(VariableContainer variableContainer,
ProcessEngineConfigurationImpl processEngineConfiguration, string formFieldValidationExpression) {
if (formFieldValidationExpression !is null && formFieldValidationExpression.length != 0) {
Boolean formFieldValidation = getBoolean(new String(formFieldValidationExpression));
if (formFieldValidation !is null) {
return formFieldValidation.booleanValue();
}
if (variableContainer !is null) {
ExpressionManager expressionManager = processEngineConfiguration.getExpressionManager();
Boolean formFieldValidationValue = getBoolean(
expressionManager.createExpression(formFieldValidationExpression).getValue(variableContainer)
);
if (formFieldValidationValue is null) {
throw new FlowableException("Unable to resolve formFieldValidationExpression to bool value");
}
return formFieldValidationValue.booleanValue();
}
throw new FlowableException("Unable to resolve formFieldValidationExpression without variable container");
}
return true;
}
protected static Boolean getBoolean(Object booleanObject) {
if (cast(Boolean)booleanObject !is null) {
return cast(Boolean)booleanObject;
}
if (cast(String)booleanObject !is null) {
if (sicmp("true",(cast(String) booleanObject).value) == 0) {
return Boolean.TRUE();
}
if (sicmp("false",(cast(String) booleanObject).value) == 0) {
return Boolean.FALSE();
}
}
return null;
}
protected static void fireAssignmentEvents(TaskEntity taskEntity) {
CommandContextUtil.getProcessEngineConfiguration().getListenerNotificationHelper().executeTaskListeners(taskEntity, TaskListener.EVENTNAME_ASSIGNMENT);
FlowableEventDispatcher eventDispatcher = CommandContextUtil.getEventDispatcher();
if (eventDispatcher !is null && eventDispatcher.isEnabled()) {
eventDispatcher.dispatchEvent(
FlowableEventBuilder.createEntityEvent(FlowableEngineEventType.TASK_ASSIGNED, cast(Object)taskEntity));
}
}
}
|
D
|
module core.error;
private
{
import core.consoletypes;
import core.stdio;
}
extern(C):
void kAssert(bool condition, string failMessage = "")
{
if(!condition)
kPanic(failMessage);
}
void kPanic(string message = "")
{
kprintf(message);
for(;;) { }
}
|
D
|
// This file is generated from text files from GLEW.
// See copyright in src/lib/gl/gl.d (BSD/MIT like).
module lib.gl.core.gl12;
import lib.gl.types;
bool GL_VERSION_1_2;
const GL_UNSIGNED_BYTE_3_3_2 = 0x8032;
const GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033;
const GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034;
const GL_UNSIGNED_INT_8_8_8_8 = 0x8035;
const GL_UNSIGNED_INT_10_10_10_2 = 0x8036;
const GL_RESCALE_NORMAL = 0x803A;
const GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362;
const GL_UNSIGNED_SHORT_5_6_5 = 0x8363;
const GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364;
const GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365;
const GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366;
const GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367;
const GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368;
const GL_BGR = 0x80E0;
const GL_BGRA = 0x80E1;
const GL_MAX_ELEMENTS_VERTICES = 0x80E8;
const GL_MAX_ELEMENTS_INDICES = 0x80E9;
const GL_CLAMP_TO_EDGE = 0x812F;
const GL_TEXTURE_MIN_LOD = 0x813A;
const GL_TEXTURE_MAX_LOD = 0x813B;
const GL_TEXTURE_BASE_LEVEL = 0x813C;
const GL_TEXTURE_MAX_LEVEL = 0x813D;
const GL_LIGHT_MODEL_COLOR_CONTROL = 0x81F8;
const GL_SINGLE_COLOR = 0x81F9;
const GL_SEPARATE_SPECULAR_COLOR = 0x81FA;
const GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12;
const GL_SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13;
const GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22;
const GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23;
const GL_ALIASED_POINT_SIZE_RANGE = 0x846D;
const GL_ALIASED_LINE_WIDTH_RANGE = 0x846E;
const GL_PACK_SKIP_IMAGES = 0x806B;
const GL_PACK_IMAGE_HEIGHT = 0x806C;
const GL_UNPACK_SKIP_IMAGES = 0x806D;
const GL_UNPACK_IMAGE_HEIGHT = 0x806E;
const GL_TEXTURE_3D = 0x806F;
const GL_PROXY_TEXTURE_3D = 0x8070;
const GL_TEXTURE_DEPTH = 0x8071;
const GL_TEXTURE_WRAP_R = 0x8072;
const GL_MAX_3D_TEXTURE_SIZE = 0x8073;
const GL_TEXTURE_BINDING_3D = 0x806A;
extern(System):
void function(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLvoid *indices) glDrawRangeElements;
void function(GLenum target, GLint level, GLint initernalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GLvoid *pixels) glTexImage3D;
void function(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *pixels) glTexSubImage3D;
void function(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) glCopyTexSubImage3D;
|
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.gl45;
import bindbc.opengl.config;
static if(glSupport >= GLSupport.gl45) {
import bindbc.loader : SharedLib;
import bindbc.opengl.context,
bindbc.opengl.bind.types;
enum uint GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT = 0x00000004;
extern(System) @nogc nothrow {
alias pglGetnCompressedTexImage = void function( GLenum,GLint,GLsizei,void* );
alias pglGetnTexImage = void function( GLenum,GLint,GLenum,GLenum,GLsizei,void* );
alias pglGetnUniformdv = void function( GLuint,GLint,GLsizei,GLdouble* );
}
__gshared {
pglGetnTexImage glGetnTexImage;
pglGetnCompressedTexImage glGetnCompressedTexImage;
pglGetnUniformdv glGetnUniformdv;
}
package(bindbc.opengl) @nogc nothrow
bool loadGL45(SharedLib lib, GLSupport contextVersion)
{
import bindbc.opengl.bind.arb : loadARB45;
if(contextVersion >= GLSupport.gl45) {
lib.bindGLSymbol(cast(void**)&glGetnTexImage, "glGetnTexImage");
lib.bindGLSymbol(cast(void**)&glGetnCompressedTexImage, "glGetnCompressedTexImage");
lib.bindGLSymbol(cast(void**)&glGetnUniformdv, "glGetnUniformdv");
if(errorCountGL() == 0 && loadARB45(lib, contextVersion)) return true;
}
return false;
}
}
|
D
|
import std.stdio;
import std.math;
long[] prim_numbers(long N){
long[] v;
v.length = N;
v[2] = 1;
for(auto i = 1; 2*i+1<=N;++i)
v[2*i+1]=1;
long sr= cast(int)sqrt(cast(double)N);
for(auto i = 0;i<sr ;++i){
if(v[i])
for(auto j = 0; i*i+j*i<N;++j)
v[i*i+j*i] = 0;
}
long[] s;
for(auto i = 0; i<v.length;++i)
if(v[i]) s~=i;
return s;
}
void main(){
long N = 600851475143L;
long[] primes = prim_numbers(10000000);
long[] factors;
foreach(long i;primes)
if(N%i == 0)
factors~=i;
writeln(factors);
}
|
D
|
module UnrealScript.UnrealEd.PersistentCookerData;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Core.UObject;
extern(C++) interface PersistentCookerData : UObject
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class UnrealEd.PersistentCookerData")); }
private static __gshared PersistentCookerData mDefaultProperties;
@property final static PersistentCookerData DefaultProperties() { mixin(MGDPC("PersistentCookerData", "PersistentCookerData UnrealEd.Default__PersistentCookerData")); }
}
|
D
|
import std.stdio;
void main() {
int countLines;
char[] ln;
auto f = File("linenumber.d", "r");
foreach (char[] line; f.byLine()) {
countLines++;
if (countLines == 7) {
ln = line;
break;
}
}
switch(countLines) {
case 0 : writeln("the file has zero length");
break;
case 7 : writeln("line 7: ", (ln.length ? ln : "empty"));
break;
default :
writefln("the file only contains %d lines", countLines);
}
}
|
D
|
instance ItWrLevelMap(C_Item)
{
name = "Map of Test Level";
mainflag = ITEM_KAT_DOCS;
flags = 0;
value = 15;
visual = "ItWrMap.3ds";
material = MAT_LEATHER;
scemeName = "MAP";
on_state[0] = UseLevelMap;
};
func void UseLevelMap()
{
var int nDocID;
nDocID = Doc_CreateMap();
Doc_SetPages(nDocID,1);
Doc_SetPage(nDocID,0,"Map_X.TGA",1);
Doc_SetFont(nDocID,-1,"FONT_OLD_20_WHITE.TGA");
Doc_SetMargins(nDocID,-1,10,10,10,10,1);
Doc_PrintLine(nDocID,-1,"Level Map");
Doc_Show(nDocID);
};
instance ItWrBookOfTales(C_Item)
{
name = "Book of Tales";
mainflag = ITEM_KAT_DOCS;
flags = 0;
value = 15;
visual = "ItWrMap.3ds";
material = MAT_LEATHER;
scemeName = "MAP";
on_state[0] = UseBookOfTales;
};
func void UseBookOfTales()
{
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,2);
Doc_SetPage(nDocID,0,"BOOK_LEFT.TGA",0);
Doc_SetPage(nDocID,1,"BOOK_RIGHT.TGA",0);
Doc_SetFont(nDocID,-1,"FONT_OLD_10_WHITE.TGA");
Doc_SetMargins(nDocID,-1,10,10,10,10,1);
Doc_PrintLine(nDocID,-1,"HEADER");
Doc_PrintLine(nDocID,-1,"");
Doc_PrintLines(nDocID,0,"One line on the left");
Doc_PrintLines(nDocID,1,"One line on the right");
Doc_Show(nDocID);
};
instance ItMw1hSwordBurning(C_Item)
{
name = "Legendary short sword of burning";
visual = "ItMw1hSword01.3DS";
mainflag = ITEM_KAT_NF;
flags = ITEM_SWD;
material = MAT_METAL;
damagetype = DAM_EDGE | DAM_FIRE | DAM_MAGIC;
damageTotal = 191;
value = 20000;
damage[DAM_INDEX_EDGE] = 1;
damage[DAM_INDEX_FIRE] = 120;
damage[DAM_INDEX_MAGIC] = 70;
description = "Legendary Short Sword of Burning";
text[1] = "This is a fucking good sword for";
text[2] = "killing all fucking creatures who";
text[3] = "trying to fuck with you!";
text[5] = "Damage";
count[5] = damageTotal;
};
instance ItMw2hSwordBurning(C_Item)
{
name = "Legendary heavy sword of burning";
visual = "ItMw2hSword01.3DS";
mainflag = ITEM_KAT_NF;
flags = ITEM_2HD_SWD;
material = MAT_METAL;
damagetype = DAM_FIRE;
damageTotal = 250;
value = 30000;
description = "Legendary Heavy Sword of Burning";
text[1] = "Nothing restists the burning touch";
text[2] = "of this legendary shword that was";
text[3] = "already believe to be lost forever";
text[5] = "Damage";
count[5] = damageTotal;
};
instance ItRwWarBowBurning(C_Item)
{
name = "Legendary bow of burning";
visual = "ItRw_Bow_War_01.mms";
mainflag = ITEM_KAT_FF;
flags = ITEM_BOW;
material = MAT_WOOD;
damagetype = DAM_FIRE | DAM_POINT | DAM_FLY;
damageTotal = 200;
value = 30000;
damage[DAM_INDEX_POINT] = 75;
damage[DAM_INDEX_FIRE] = 75;
damage[DAM_INDEX_FLY] = 50;
description = "Legendary War Bow of Burning";
text[1] = "Carved in the ancient times before";
text[2] = "the creation of mankind, this bow is";
text[3] = "the mightiest ranged weapon ever";
text[5] = "Damage";
count[5] = damageTotal;
};
instance ItArRobeMithril(C_Item)
{
name = "Ledengary mithril robe";
mainflag = ITEM_KAT_ARMOR;
flags = 0;
value = 1098;
protection[PROT_EDGE] = 20;
protection[PROT_BLUNT] = 20;
protection[PROT_POINT] = 20;
protection[PROT_FIRE] = 20;
protection[PROT_MAGIC] = 20;
wear = WEAR_TORSO;
ownerGuild = GIL_None;
disguiseGuild = GIL_None;
visual = "dmbm.3ds";
visual_change = "Hum_DMBM_ARMOR.asc";
visual_skin = 0;
material = MAT_METAL;
};
instance PC_Roman(Npc_Default)
{
name[0] = "Roman der Romulaner";
id = 9995;
guild = GIL_None;
voice = 11;
attribute[ATR_HITPOINTS_MAX] = 50;
attribute[ATR_MANA_MAX] = 50;
attribute[ATR_HITPOINTS] = 25;
attribute[ATR_MANA] = 50;
attribute[ATR_STRENGTH] = 50;
attribute[ATR_DEXTERITY] = 50;
level = 50;
Mdl_SetVisual(self,"HUMANS.MDS");
Mdl_SetVisualBody(self,"HUM_BODY_NAKED0",0,0,"Hum_Head_Fighter",1,2,ItArRobeMithril);
EquipItem(self,ItRwWarBowBurning);
EquipItem(self,ItMw1hSwordBurning);
EquipItem(self,ItMw2hSwordBurning);
CreateInvItem(self,ItWrLevelMap);
};
instance Allround_Testmodell(Npc_Default)
{
name[0] = "Allrounder";
id = 9999;
guild = GIL_None;
voice = 11;
attribute[ATR_HITPOINTS_MAX] = 250;
attribute[ATR_MANA_MAX] = 250;
attribute[ATR_HITPOINTS] = 250;
attribute[ATR_MANA] = 250;
attribute[ATR_STRENGTH] = 250;
attribute[ATR_DEXTERITY] = 250;
level = 250;
Mdl_SetVisual(self,"HUMANS.MDS");
Mdl_SetVisualBody(self,"HUM_BODY_NAKED0",0,0,"Hum_Head_Fighter",1,2,grd_armor_h);
Npc_SetTalentSkill(self,NPC_TALENT_ACROBAT,3);
Npc_SetTalentValue(self,NPC_TALENT_ACROBAT,100);
Npc_SetTalentSkill(self,NPC_TALENT_PICKLOCK,3);
Npc_SetTalentValue(self,NPC_TALENT_PICKLOCK,0);
Npc_SetTalentSkill(self,NPC_TALENT_PICKPOCKET,3);
Npc_SetTalentValue(self,NPC_TALENT_PICKPOCKET,0);
Npc_SetTalentSkill(self,NPC_TALENT_SNEAK,3);
Npc_SetTalentSkill(self,NPC_TALENT_1H,3);
Npc_SetTalentSkill(self,NPC_TALENT_2H,3);
Npc_SetTalentSkill(self,NPC_TALENT_BOW,3);
Npc_SetTalentSkill(self,NPC_TALENT_CROSSBOW,3);
Npc_SetTalentSkill(self,NPC_TALENT_MAGE,8);
Npc_SetTalentSkill(self,NPC_TALENT_FIREMASTER,3);
flags = NPC_FLAG_IMMORTAL;
fight_tactic = FAI_HUMAN_Strong;
CreateInvItem(self,ItArRobeMithril);
EquipItem(self,ItMw_2H_Sword_Heavy_01);
CreateInvItems(self,ItAmArrow,50);
CreateInvItem(self,ItArRuneLight);
CreateInvItem(self,ItArRuneFirebolt);
CreateInvItem(self,ItArRuneFireball);
CreateInvItem(self,ItArRuneFirestorm);
CreateInvItem(self,ItArRuneFireRain);
CreateInvItem(self,ItArRuneTeleport1);
CreateInvItem(self,ItArRuneTeleport2);
CreateInvItem(self,ItArRuneTeleport3);
CreateInvItem(self,ItArRuneTeleport5);
CreateInvItem(self,ItArRuneHeal);
CreateInvItem(self,ItArRuneChainLightning);
CreateInvItem(self,ItArRuneThunderbolt);
CreateInvItem(self,ItArRuneThunderball);
CreateInvItem(self,ItArRuneIceCube);
CreateInvItem(self,ItArRuneIceWave);
CreateInvItem(self,ItArRuneDestroyUndead);
CreateInvItem(self,ItArRuneWindfist);
CreateInvItem(self,ItArRuneStormfist);
CreateInvItem(self,ItArRuneTelekinesis);
CreateInvItem(self,ItArRuneCharm);
CreateInvItem(self,ItArRuneSleep);
CreateInvItem(self,ItArRunePyrokinesis);
CreateInvItem(self,ItArRuneControl);
CreateInvItem(self,ItArScrollLight);
CreateInvItem(self,ItArScrollFirebolt);
CreateInvItem(self,ItArScrollFireball);
CreateInvItem(self,ItArScrollFirestorm);
CreateInvItem(self,ItArScrollFirerain);
CreateInvItem(self,ItArScrollTeleport1);
CreateInvItem(self,ItArScrollTeleport2);
CreateInvItem(self,ItArScrollTeleport3);
CreateInvItem(self,ItArScrollTeleport4);
CreateInvItem(self,ItArScrollTeleport5);
CreateInvItem(self,ItArScrollHeal);
CreateInvItem(self,ItArScrollTrfBloodfly);
CreateInvItem(self,ItArScrollTrfCrawler);
CreateInvItem(self,ItArScrollTrfLurker);
CreateInvItem(self,ItArScrollTrfMeatbug);
CreateInvItem(self,ItArScrollTrfMolerat);
CreateInvItem(self,ItArScrollTrfOrcdog);
CreateInvItem(self,ItArScrollTrfScavenger);
CreateInvItem(self,ItArScrollTrfShadowbeast);
CreateInvItem(self,ItArScrollTrfSnapper);
CreateInvItem(self,ItArScrollTrfWaran);
CreateInvItem(self,ItArScrollTrfWolf);
CreateInvItem(self,ItArScrollChainLightning);
CreateInvItem(self,ItArScrollThunderbolt);
CreateInvItem(self,ItArScrollThunderball);
CreateInvItem(self,ItArScrollIcecube);
CreateInvItem(self,ItArScrollIceWave);
CreateInvItem(self,ItArScrollSummonDemon);
CreateInvItem(self,ItArScrollSummonSkeletons);
CreateInvItem(self,ItArScrollSummonGolem);
CreateInvItem(self,ItArScrollArmyOfDarkness);
CreateInvItem(self,ItArScrollDestroyUndead);
CreateInvItem(self,ItArScrollWindfist);
CreateInvItem(self,ItArScrollStormfist);
CreateInvItem(self,ItArScrollTelekinesis);
CreateInvItem(self,ItArScrollCharm);
CreateInvItem(self,ItArScrollSleep);
CreateInvItem(self,ItArScrollPyrokinesis);
CreateInvItem(self,ItArScrollControl);
CreateInvItem(self,ItArScrollFear);
CreateInvItem(self,ItArScrollBerzerk);
CreateInvItem(self,ItArScrollShrink);
CreateInvItems(self,ItFoApple,10);
CreateInvItems(self,ItFoCheese,10);
CreateInvItems(self,ItFoLoaf,10);
CreateInvItems(self,ItFoBeer,10);
CreateInvItems(self,ItFoWine,10);
CreateInvItem(self,ItWrLevelMap);
CreateInvItem(self,ItWrBookOfTales);
Npc_SetPermAttitude(self,ATT_HOSTILE);
Npc_SetAttitude(self,ATT_HOSTILE);
start_aistate = ZS_TestEmpty;
};
func void ZS_TestEmpty()
{
Npc_PercEnable(self,PERC_ASSESSTALK,ZS_TestFinishMove);
PrintScreen("Looking at player ...",-1,50,"FONT_OLD_20_WHITE.TGA",2);
AI_LookAtNpc(self,hero);
};
func void ZS_TestEmpty_Loop()
{
};
func void ZS_TestEmpty_End()
{
};
func void ZS_TestSmoke()
{
B_ChooseJoint(self);
AI_UseMob(self,"SMOKE",1);
};
func int ZS_TestSmoke_Loop()
{
AI_Wait(self,1);
return 1;
};
func void ZS_TestSmoke_End()
{
AI_UseMob(self,"SMOKE",-1);
AI_UseItemToState(self,ItMiJoint_1,-1);
};
var int m_nGuild;
func void ZS_TestGuild()
{
if(m_nGuild == 0)
{
m_nGuild = GIL_None;
}
else if(m_nGuild == GIL_None)
{
m_nGuild = GIL_GRD;
}
else if(m_nGuild == GIL_GRD)
{
m_nGuild = GIL_VLK;
}
else if(m_nGuild == GIL_VLK)
{
m_nGuild = GIL_None;
};
Npc_SetTrueGuild(hero,m_nGuild);
};
func int ZS_TestGuild_Loop()
{
return 1;
};
func void ZS_TestGuild_End()
{
};
func void ZS_TestInfos()
{
AI_ProcessInfos(self);
};
func int ZS_TestInfos_Loop()
{
return 1;
};
func void ZS_TestInfos_End()
{
};
var int g_nMana;
func void ZS_TestSpell()
{
PrintScreen("Increasing Mana ...",-1,50,"FONT_OLD_20_WHITE.TGA",3);
g_nMana = g_nMana + 1;
if(g_nMana > 50)
{
g_nMana = 25;
};
if(g_nMana < 25)
{
g_nMana = 25;
};
if(Npc_HasSpell(self,g_nSpell))
{
PrintScreen("Readying spell ...",-1,40,"FONT_OLD_20_WHITE.TGA",3);
AI_ReadySpell(self,SPL_FIREBALL,g_nMana);
};
};
func int ZS_TestSpell_Loop()
{
return 1;
};
func void ZS_TestSpell_End()
{
};
var int g_nSpell;
func void ZS_TestMagic()
{
PrintScreen("Unreadying spell ...",-1,30,"FONT_OLD_20_WHITE.TGA",3);
AI_UnreadySpell(self);
if(Npc_HasSpell(self,g_nSpell))
{
PrintScreen("Readying spell ...",-1,40,"FONT_OLD_20_WHITE.TGA",3);
AI_ReadySpell(self,g_nSpell,50);
}
else
{
PrintScreen("Spell unavailable ...",-1,60,"FONT_OLD_20_WHITE.TGA",3);
};
g_nSpell = g_nSpell + 1;
if(g_nSpell > SPL_DESTROYUNDEAD)
{
g_nSpell = SPL_LIGHT;
};
};
func int ZS_TestMagic_Loop()
{
return 1;
};
func void ZS_TestMagic_End()
{
};
func void ZS_TestPatrol()
{
Npc_PercEnable(self,PERC_MOVEMOB,ZS_TestMoveMob);
AI_GotoWP(self,"WP_OUT");
AI_AlignToFP(self);
};
func void ZS_TestPatrol_Loop()
{
};
func void ZS_TestPatrol_End()
{
};
func void ZS_TestMoveMob()
{
PrintScreen("Stopping ...",-1,30,"FONT_OLD_20_WHITE.TGA",3);
Npc_ClearAIQueue(self);
AI_Standup(self);
};
func void ZS_TestMoveMob_Loop()
{
if(!Npc_IsWayBlocked(self))
{
PrintScreen("Way is free now ...",-1,40,"FONT_OLD_20_WHITE.TGA",3);
AI_StartState(self,ZS_TestPatrol,0," ");
};
};
func void ZS_TestMoveMob_End()
{
};
func void ZS_TestDraw()
{
PrintScreen("Arming ranged weapon ...",-1,50,"FONT_OLD_20_WHITE.TGA",2);
AI_Standup(self);
AI_EquipBestRangedWeapon(self);
AI_ReadyRangedWeapon(self);
PrintScreen("Aiming at player ...",-1,60,"FONT_OLD_20_WHITE.TGA",2);
AI_AimAt(self,hero);
PrintScreen("Next time I will shoot ...",-1,70,"FONT_OLD_20_WHITE.TGA",2);
Npc_PercEnable(self,PERC_ASSESSTALK,ZS_TestShoot);
};
func void ZS_TestDraw_Loop()
{
};
func void ZS_TestDraw_End()
{
};
func void ZS_TestShoot()
{
PrintScreen("Shooting at player ...",-1,50,"FONT_OLD_20_WHITE.TGA",2);
AI_ShootAt(self,hero);
PrintScreen("Standing up ...",-1,60,"FONT_OLD_20_WHITE.TGA",2);
AI_Standup(self);
PrintScreen("Removing weapon ...",-1,70,"FONT_OLD_20_WHITE.TGA",2);
AI_RemoveWeapon(self);
AI_StartState(self,ZS_TestEmpty,0," ");
};
func int ZS_TestShoot_Loop()
{
return 1;
};
func void ZS_TestShoot_End()
{
};
func void ZS_TestFinishMove()
{
PrintScreen("Arming weapon ...",-1,20,"FONT_OLD_20_WHITE.TGA",2);
AI_Standup(self);
AI_EquipBestMeleeWeapon(self);
AI_ReadyMeleeWeapon(self);
Npc_SetAttitude(self,ATT_HOSTILE);
Npc_SetTarget(self,hero);
};
func void ZS_TestFinishMove_Loop()
{
PrintScreen("Attacking hero ...",-1,25,"FONT_OLD_20_WHITE.TGA",2);
AI_Attack(self);
if(Npc_IsInState(hero,ZS_Unconscious))
{
PrintScreen("Finishing hero ...",-1,30,"FONT_OLD_20_WHITE.TGA",2);
AI_FinishingMove(self,hero);
AI_Standup(self);
AI_RemoveWeapon(self);
Npc_SetAttitude(self,ATT_NEUTRAL);
AI_StartState(self,ZS_TestEmpty,0," ");
};
};
func void ZS_TestFinishMove_End()
{
};
func void DailyRoute_Test_Empty()
{
};
instance Mission_Test_Empty(C_Mission)
{
name = "Mission_Test_Empty";
description = "Mission_Test_Empty";
important = 1;
offerConditions = Mis_Con_Off_TE;
successConditions = Mis_Con_Suc_TE;
failureConditions = Mis_Con_Fai_TE;
obsoleteConditions = Mis_Con_Obs_TE;
offer = Mis_Off_TE;
success = Mis_Suc_TE;
failure = Mis_Fai_TE;
obsolete = Mis_Obs_TE;
running = Mis_Run_TE;
};
func int Mis_Con_Off_TE()
{
return 1;
};
func int Mis_Con_Suc_TE()
{
return 1;
};
func int Mis_Con_Fai_TE()
{
return 0;
};
func int Mis_Con_Obs_TE()
{
return 0;
};
func void Mis_Off_TE()
{
AI_AskText(self,NOFUNC,NOFUNC,"Yes","No");
};
func void Mis_Suc_TE()
{
Print("Empty Mission succeeded");
};
func void Mis_Fai_TE()
{
Print("Empty Mission failed");
};
func void Mis_Obs_TE()
{
Print("Empty Mission became obsolete");
};
func void Mis_Run_TE()
{
Print("Empty Mission is running");
};
instance Mission_Test_Default(C_Mission)
{
name = "Mission_Test_Default";
description = "Mission_Test_Default";
important = 1;
offerConditions = Mis_Con_Off_TD;
successConditions = Mis_Con_Suc_TD;
failureConditions = Mis_Con_Fai_TD;
obsoleteConditions = Mis_Con_Obs_TD;
offer = Mis_Off_TD;
success = Mis_Suc_TD;
failure = Mis_Fai_TD;
obsolete = Mis_Obs_TD;
running = Mis_Run_TD;
};
func int Mis_Con_Off_TD()
{
return 1;
};
func int Mis_Con_Suc_TD()
{
return 1;
};
func int Mis_Con_Fai_TD()
{
return 0;
};
func int Mis_Con_Obs_TD()
{
return 0;
};
func void Mis_Off_TD()
{
AI_AskText(self,NOFUNC,NOFUNC,"Yep","Nope");
};
func void Mis_Suc_TD()
{
Print("Default Mission succeeded");
};
func void Mis_Fai_TD()
{
Print("Default Mission failed");
};
func void Mis_Obs_TD()
{
Print("Default Mission became obsolete");
};
func void Mis_Run_TD()
{
Print("Default Mission is running");
};
instance Trade_Test(C_ITEMREACT)
{
npc = Allround_Testmodell;
trade_item = ItFoApple;
trade_amount = 10;
requested_item = ItFoBeer;
requested_amount = 2;
reaction = Trade_Test_Check;
};
func int Trade_Test_Check()
{
var string strTradeAmount;
var string strTradeItem;
var string strRequestedAmount;
var string strRequestedItem;
strTradeAmount = "Trade amount : ";
strTradeAmount = ConcatStrings(strTradeAmount,IntToString(Trade_Test.trade_amount));
strTradeItem = "Trade item : ";
strTradeItem = ConcatStrings(strTradeItem,IntToString(Trade_Test.trade_item));
strRequestedAmount = "Requested amount : ";
strRequestedAmount = ConcatStrings(strRequestedAmount,IntToString(Trade_Test.requested_amount));
strRequestedItem = "Requested item : ";
strRequestedItem = ConcatStrings(strRequestedItem,IntToString(Trade_Test.requested_item));
PrintScreen(strTradeAmount,10,20,"FONT_OLD_20_WHITE.TGA",3);
PrintScreen(strTradeItem,10,30,"FONT_OLD_20_WHITE.TGA",3);
PrintScreen(strRequestedAmount,10,40,"FONT_OLD_20_WHITE.TGA",3);
PrintScreen(strRequestedItem,10,50,"FONT_OLD_20_WHITE.TGA",3);
if(Trade_Test.requested_amount == 2)
{
return 1;
};
return 0;
};
instance Info_Test_Trade(C_Info)
{
npc = Allround_Testmodell;
nr = 666;
condition = Info_Test_Trade_Success;
information = Info_Test_Trade_Procedure;
important = 0;
description = "Allrounder's Trade";
trade = 1;
};
func int Info_Test_Trade_Success()
{
return 1;
};
func void Info_Test_Trade_Procedure()
{
PrintScreen("Info_Test_Trade_Procedure()",-1,50,"FONT_OLD_20_WHITE.TGA",10);
};
instance Info_Test_Trade_Permanent(C_Info)
{
npc = Allround_Testmodell;
nr = 666;
condition = Info_Test_Trade_Permanent_Success;
information = Info_Test_Trade_Permanent_Procedure;
important = 0;
description = "Allrounder's Permanent Trade";
permanent = 1;
trade = 1;
};
func int Info_Test_Trade_Permanent_Success()
{
return 1;
};
func void Info_Test_Trade_Permanent_Procedure()
{
PrintScreen("Info_Test_Trade_Permanent_Procedure()",-1,50,"FONT_OLD_20_WHITE.TGA",10);
};
instance Info_Test_Permanent(C_Info)
{
npc = Allround_Testmodell;
nr = 666;
condition = Info_Test_Permanent_Success;
information = Info_Test_Permanent_Procedure;
important = 0;
permanent = 1;
description = "Allrounder's Permanent Info";
};
func int Info_Test_Permanent_Success()
{
return 1;
};
func void Info_Test_Permanent_Procedure()
{
PrintScreen("Info_Test_Permanent_Procedure()",-1,50,"FONT_OLD_20_WHITE.TGA",10);
};
instance Info_Test_Important(C_Info)
{
npc = Allround_Testmodell;
nr = 666;
condition = Info_Test_Important_Success;
information = Info_Test_Important_Procedure;
important = 1;
permanent = 0;
description = "Allrounder's Important Info";
};
func int Info_Test_Important_Success()
{
return 1;
};
func void Info_Test_Important_Procedure()
{
PrintScreen("Info_Test_Important_Procedure()",-1,50,"FONT_OLD_20_WHITE.TGA",10);
};
instance Info_Test_Important_Permanent(C_Info)
{
npc = Allround_Testmodell;
nr = 666;
condition = Info_Test_Important_Permanent_Success;
information = Info_Test_Important_Permanent_Procedure;
important = 1;
permanent = 1;
description = "Allrounder's Important Permanent Info";
};
func int Info_Test_Important_Permanent_Success()
{
return 1;
};
func void Info_Test_Important_Permanent_Procedure()
{
PrintScreen("Info_Test_Important_Permanent_Procedure()",-1,50,"FONT_OLD_20_WHITE.TGA",10);
};
instance Info_Test_Normal(C_Info)
{
npc = Allround_Testmodell;
nr = 666;
condition = Info_Test_Success_Normal;
information = Info_Test_Procedure_Normal;
important = 0;
description = "Allrounder's Normal Info";
};
func int Info_Test_Success_Normal()
{
return 1;
};
func void Info_Test_Procedure_Normal()
{
PrintScreen("Info_Test_Procedure_Normal()",-1,50,"FONT_OLD_20_WHITE.TGA",10);
};
instance Info_Test_Choice(C_Info)
{
npc = Allround_Testmodell;
nr = 666;
condition = Info_Test_Success_Choice;
information = Info_Test_Procedure_Choice;
important = 0;
permanent = 0;
description = "Allrounder's Choice Info";
};
func int Info_Test_Success_Choice()
{
return 1;
};
func void Info_Test_Procedure_Choice()
{
PrintScreen("Info_Test_Procedure_Choice()",-1,50,"FONT_OLD_20_WHITE.TGA",10);
Info_ClearChoices(Info_Test_Choice);
Info_AddChoice(Info_Test_Choice,"Yes",Info_Test_Procedure_Choice_Yes);
Info_AddChoice(Info_Test_Choice,"No",Info_Test_Procedure_Choice_No);
Info_AddChoice(Info_Test_Choice,"Don't know",Info_Test_Procedure_Choice_Unsure);
Info_AddChoice(Info_Test_Choice,"Exit",Info_Test_Procedure_Choice_Exit);
};
func void Info_Test_Procedure_Choice_Yes()
{
Info_ClearChoices(Info_Test_Choice);
};
func void Info_Test_Procedure_Choice_No()
{
Info_ClearChoices(Info_Test_Choice);
};
func void Info_Test_Procedure_Choice_Unsure()
{
Info_ClearChoices(Info_Test_Choice);
Info_AddChoice(Info_Test_Choice,"Yes",Info_Test_Procedure_Choice_Yes);
Info_AddChoice(Info_Test_Choice,"No",Info_Test_Procedure_Choice_No);
Info_AddChoice(Info_Test_Choice,"Exit",Info_Test_Procedure_Choice_Exit);
};
func void Info_Test_Procedure_Choice_Exit()
{
Info_ClearChoices(Info_Test_Choice);
};
instance Info_Test_Permanent_Choice(C_Info)
{
npc = Allround_Testmodell;
nr = 666;
condition = Info_Test_Success_Permanent_Choice;
information = Info_Test_Procedure_Permanent_Choice;
important = 0;
permanent = 1;
description = "Allrounder's Permanent Choice Info";
};
func int Info_Test_Success_Permanent_Choice()
{
return 1;
};
func void Info_Test_Procedure_Permanent_Choice()
{
PrintScreen("Info_Test_Procedure_Permanent_Choice()",-1,50,"FONT_OLD_20_WHITE.TGA",10);
Info_ClearChoices(Info_Test_Permanent_Choice);
Info_AddChoice(Info_Test_Permanent_Choice,"Ok",Info_Test_Procedure_Permanent_Choice_Yes);
Info_AddChoice(Info_Test_Permanent_Choice,"Fuck you",Info_Test_Procedure_Permanent_Choice_No);
Info_AddChoice(Info_Test_Permanent_Choice,"Hmm...",Info_Test_Procedure_Permanent_Choice_Unsure);
Info_AddChoice(Info_Test_Permanent_Choice,"(Leave)",Info_Test_Procedure_Permanent_Choice_Exit);
};
func void Info_Test_Procedure_Permanent_Choice_Yes()
{
Info_ClearChoices(Info_Test_Permanent_Choice);
};
func void Info_Test_Procedure_Permanent_Choice_No()
{
Info_ClearChoices(Info_Test_Permanent_Choice);
};
func void Info_Test_Procedure_Permanent_Choice_Unsure()
{
};
func void Info_Test_Procedure_Permanent_Choice_Exit()
{
Info_ClearChoices(Info_Test_Permanent_Choice);
AI_StopProcessInfos(self);
};
instance Info_Test_Permanent_Important_Choice(C_Info)
{
npc = Allround_Testmodell;
nr = 666;
condition = Info_Test_Success_Permanent_Important_Choice;
information = Info_Test_Procedure_Permanent_Important_Choice;
important = 1;
permanent = 1;
description = "Allrounder's Permanent Important Choice Info";
};
func int Info_Test_Success_Permanent_Important_Choice()
{
return 1;
};
func void Info_Test_Procedure_Permanent_Important_Choice()
{
PrintScreen("Info_Test_Procedure_Permanent_Important_Choice()",-1,50,"FONT_OLD_20_WHITE.TGA",10);
Info_ClearChoices(Info_Test_Permanent_Important_Choice);
Info_AddChoice(Info_Test_Permanent_Important_Choice,"Yes",Info_Test_Procedure_Permanent_Important_Choice_Yes);
Info_AddChoice(Info_Test_Permanent_Important_Choice,"No",Info_Test_Procedure_Permanent_Important_Choice_No);
Info_AddChoice(Info_Test_Permanent_Important_Choice,"Don't know",Info_Test_Procedure_Permanent_Important_Choice_Unsure);
Info_AddChoice(Info_Test_Permanent_Important_Choice,"Bye",Info_Test_Procedure_Permanent_Important_Choice_Exit);
};
func void Info_Test_Procedure_Permanent_Important_Choice_Yes()
{
Info_ClearChoices(Info_Test_Permanent_Important_Choice);
};
func void Info_Test_Procedure_Permanent_Important_Choice_No()
{
Info_ClearChoices(Info_Test_Permanent_Important_Choice);
};
func void Info_Test_Procedure_Permanent_Important_Choice_Unsure()
{
};
func void Info_Test_Procedure_Permanent_Important_Choice_Exit()
{
Info_ClearChoices(Info_Test_Permanent_Important_Choice);
AI_StopProcessInfos(self);
};
|
D
|
/Users/ins/Documents/Code/rust-study/wasm-struct-nesting/@rsw/demo/target/release/deps/bumpalo-614c58be8eaabcaf.rmeta: /Users/ins/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.6.1/src/lib.rs /Users/ins/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.6.1/src/alloc.rs
/Users/ins/Documents/Code/rust-study/wasm-struct-nesting/@rsw/demo/target/release/deps/libbumpalo-614c58be8eaabcaf.rlib: /Users/ins/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.6.1/src/lib.rs /Users/ins/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.6.1/src/alloc.rs
/Users/ins/Documents/Code/rust-study/wasm-struct-nesting/@rsw/demo/target/release/deps/bumpalo-614c58be8eaabcaf.d: /Users/ins/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.6.1/src/lib.rs /Users/ins/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.6.1/src/alloc.rs
/Users/ins/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.6.1/src/lib.rs:
/Users/ins/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.6.1/src/alloc.rs:
|
D
|
import std.stdio;
import std.conv;
import std.string;
import std.range;
import std.array;
import std.algorithm;
import std.bigint;
void solve(int i){
auto n = to!(int)(chomp(readln()));
auto x = array(map!(a => BigInt(to!(int)(a)))(readln().chomp().split()));
auto y = array(map!(a => BigInt(to!(int)(a)))(readln().chomp().split()));
sort!"a<b"(x);
sort!"a>b"(y);
auto prod = new BigInt[n];
foreach(j; iota(0,n)){
prod[j] = x[j] * y[j];
}
auto sum = reduce!"a+b"(prod);
writefln("Case #%d: %d", i+1, sum);
}
void main(){
auto caseNum = to!(int)(readln().chomp());
foreach(i; iota(0, caseNum)){
solve(i);
}
}
|
D
|
module darts;
import std.math : hypot;
pure int score(immutable float x, immutable float y)
{
immutable float hypot = hypot(x, y);
if (hypot <= 1)
{
return 10;
}
else if (hypot <= 5)
{
return 5;
}
else if (hypot <= 10)
{
return 1;
}
return 0;
}
|
D
|
module vector;
import std.stdio;
import std.math;
private immutable string elementNamesA = "xyzw";
private immutable string elementNamesB = "stuv";
private immutable string elementNamesC = "rgba";
private string vecProperties(uint numProps) pure
in{
assert(numProps >= 2 && numProps <= 4, "Vector must have between 2 and 4 elements");
}body{
string sA = elementNamesA[0..numProps];
string sB = elementNamesB[0..numProps];
string sC = elementNamesC[0..numProps];
char[] s;
foreach(i; 0..numProps){
s ~= "union{elementType "~sA[i]~", "~sB[i]~", "~sC[i]~";}\n";
}
return "struct{"~s~"}";
}
struct vec(elementType, uint dim){
public:
union{
mixin(vecProperties(dim));
elementType[dim] values;
}
alias vecx = vec!(elementType, dim);
public:
this(elementType[dim] a){
foreach(i; 0..dim){
values[i] = a[i];
}
}
this(elementType[] a){
assert(a.length == dim, "Vec dimension mismatch");
foreach(i; 0..dim){
values[i] = a[i];
}
}
this(elementType[dim] a...){
foreach(i; 0..dim){
values[i] = a[i];
}
}
void opAssign(T)(T[dim] a){
foreach(i; 0..dim){
values[i] = a[i];
}
}
vecx opUnary(string op)() if(op == "-"){
elementType[dim] v = -values[];
return vecx(v);
}
vecx opBinary(string op)(vecx rhs){
static if(op == "+"){
elementType[dim] v = values[] + rhs.values[];
return vecx(v);
}else static if(op == "-"){
elementType[dim] v = rhs.values[] - values[];
return vecx(v);
}
}
vecx opBinary(string op)(elementType rhs){
static if(op == "*"){
elementType[dim] v = values[] * rhs;
return vecx(v);
}else static if(op == "/"){
elementType[dim] v = values[] / rhs;
return vecx(v);
}/*else static if(op == "+"){
elementType[dim] v = values[] + rhs;
return vecx(v);
}else static if(op == "-"){
elementType[dim] v = values.dup;
v[] -= rhs;
return vecx(v);
}*/
}
static uint dimensions(){
return dim;
}
elementType magnitude(){
elementType m = 0;
foreach(i; 0..dim){
m += values[i] * values[i];
}
return m;
}
vecx normalised(){
elementType m = this.magnitude;
if(m == 0f) return vecx();
vecx ret = this / m;
return ret;
}
vecx rotate(elementType th){
assert(dim == 2, "Rotate only implemented for 2 dimensions");
elementType cs = cos(th);
elementType sn = sin(th);
vecx ret;
ret.x = x * cs - y * sn;
ret.y = x * sn + y * cs;
return ret;
}
string toString(){
import std.conv : to;
return to!string(values);
}
}
alias vec2 = vec!(float, 2);
alias vec3 = vec!(float, 3);
alias vec4 = vec!(float, 4);
|
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, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module org.eclipse.swt.custom.TableTreeItem;
import org.eclipse.swt.SWT;
import org.eclipse.swt.SWTException;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Widget;
import org.eclipse.swt.custom.TableTree;
import java.lang.all;
/**
* A TableTreeItem is a selectable user interface object
* that represents an item in a hierarchy of items in a
* TableTree.
*
* @deprecated As of 3.1 use Tree, TreeItem and TreeColumn
*/
public class TableTreeItem : Item {
TableItem tableItem;
TableTree parent;
TableTreeItem parentItem;
TableTreeItem [] items;
String[] texts;
Image[] images;
Color background;
Color foreground;
Font font;
bool expanded;
bool checked;
bool grayed;
/**
* Constructs a new instance of this class given its parent
* (which must be a <code>TableTree</code>)
* and a style value describing its behavior and appearance.
* The item is added to the end of the items maintained by its parent.
* <p>
* The style value is either one of the style constants defined in
* class <code>SWT</code> which is applicable to instances of this
* class, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>SWT</code> style constants. The class description
* lists the style constants that are applicable to the class.
* Style bits are also inherited from superclasses.
* </p>
*
* @param parent a composite control which will be the parent of the new instance (cannot be null)
* @param style the style of control to construct
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* </ul>
*
* @see SWT
* @see Widget#getStyle()
*/
public this(TableTree parent, int style) {
this (parent, style, parent.getItemCount());
}
/**
* Constructs a new instance of this class given its parent
* (which must be a <code>TableTree</code>,
* a style value describing its behavior and appearance, and the index
* at which to place it in the items maintained by its parent.
* <p>
* The style value is either one of the style constants defined in
* class <code>SWT</code> which is applicable to instances of this
* class, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>SWT</code> style constants. The class description
* lists the style constants that are applicable to the class.
* Style bits are also inherited from superclasses.
* </p>
*
* @param parent a composite control which will be the parent of the new instance (cannot be null)
* @param style the style of control to construct
* @param index the index to store the receiver in its parent
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* </ul>
*
* @see SWT
* @see Widget#getStyle()
*/
public this(TableTree parent, int style, int index) {
this (parent, null, style, index);
}
/**
* Constructs a new instance of this class given its parent
* (which must be a <code>TableTreeItem</code>)
* and a style value describing its behavior and appearance.
* The item is added to the end of the items maintained by its parent.
* <p>
* The style value is either one of the style constants defined in
* class <code>SWT</code> which is applicable to instances of this
* class, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>SWT</code> style constants. The class description
* lists the style constants that are applicable to the class.
* Style bits are also inherited from superclasses.
* </p>
*
* @param parent a composite control which will be the parent of the new instance (cannot be null)
* @param style the style of control to construct
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* </ul>
*
* @see SWT
* @see Widget#getStyle()
*/
public this(TableTreeItem parent, int style) {
this (parent, style, parent.getItemCount());
}
/**
* Constructs a new instance of this class given its parent
* (which must be a <code>TableTreeItem</code>),
* a style value describing its behavior and appearance, and the index
* at which to place it in the items maintained by its parent.
* <p>
* The style value is either one of the style constants defined in
* class <code>SWT</code> which is applicable to instances of this
* class, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>SWT</code> style constants. The class description
* lists the style constants that are applicable to the class.
* Style bits are also inherited from superclasses.
* </p>
*
* @param parent a composite control which will be the parent of the new instance (cannot be null)
* @param style the style of control to construct
* @param index the index to store the receiver in its parent
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* </ul>
*
* @see SWT
* @see Widget#getStyle()
*/
public this(TableTreeItem parent, int style, int index) {
this (parent.getParent(), parent, style, index);
}
this(TableTree parent, TableTreeItem parentItem, int style, int index) {
items = TableTree.EMPTY_ITEMS;
texts = TableTree.EMPTY_TEXTS;
images = TableTree.EMPTY_IMAGES;
super(parent, style);
this.parent = parent;
this.parentItem = parentItem;
if (parentItem is null) {
/* Root items are visible immediately */
int tableIndex = parent.addItem(this, index);
tableItem = new TableItem(parent.getTable(), style, tableIndex);
tableItem.setData(TableTree.ITEMID, this);
addCheck();
/*
* Feature in the Table. The table uses the first image that
* is inserted into the table to size the table rows. If the
* user is allowed to insert the first image, this will cause
* the +/- images to be scaled. The fix is to insert a dummy
* image to force the size.
*/
if (parent.sizeImage is null) {
int itemHeight = parent.getItemHeight();
parent.sizeImage = new Image(parent.getDisplay(), itemHeight, itemHeight);
GC gc = new GC (parent.sizeImage);
gc.setBackground(parent.getBackground());
gc.fillRectangle(0, 0, itemHeight, itemHeight);
gc.dispose();
tableItem.setImage(0, parent.sizeImage);
}
} else {
parentItem.addItem(this, index);
}
}
void addCheck() {
Table table = parent.getTable();
if ((table.getStyle() & SWT.CHECK) is 0) return;
tableItem.setChecked(checked);
tableItem.setGrayed(grayed);
}
void addItem(TableTreeItem item, int index) {
if (item is null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (index < 0 || index > items.length) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
/* Now that item has a sub-node it must indicate that it can be expanded */
if (items.length is 0 && index is 0) {
if (tableItem !is null) {
Image image = expanded ? parent.getMinusImage() : parent.getPlusImage();
tableItem.setImage(0, image);
}
}
/* Put the item in the items list */
TableTreeItem[] newItems = new TableTreeItem[items.length + 1];
System.arraycopy(items, 0, newItems, 0, index);
newItems[index] = item;
System.arraycopy(items, index, newItems, index + 1, items.length - index);
items = newItems;
if (expanded) item.setVisible(true);
}
/**
* Returns the receiver's background color.
*
* @return the background color
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 2.0
*
*/
public Color getBackground () {
checkWidget ();
return (background is null) ? parent.getBackground() : background;
}
/**
* Returns a rectangle describing the receiver's size and location
* relative to its parent.
*
* @return the receiver's bounding rectangle
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public Rectangle getBounds (int index) {
checkWidget();
if (tableItem !is null) {
return tableItem.getBounds(index);
} else {
return new Rectangle(0, 0, 0, 0);
}
}
/**
* Returns <code>true</code> if the receiver is checked,
* and false otherwise. When the parent does not have
* the <code>CHECK style, return false.
*
* @return the checked state of the checkbox
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public bool getChecked () {
checkWidget();
if (tableItem is null) return checked;
return tableItem.getChecked();
}
/**
* Returns <code>true</code> if the receiver is grayed,
* and false otherwise. When the parent does not have
* the <code>CHECK</code> style, return false.
*
* @return the grayed state of the checkbox
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 2.1
*/
public bool getGrayed () {
checkWidget();
if (tableItem is null) return grayed;
return tableItem.getGrayed();
}
/**
* Returns <code>true</code> if the receiver is expanded,
* and false otherwise.
* <p>
*
* @return the expanded state
*/
public bool getExpanded () {
//checkWidget();
return expanded;
}
/**
* Returns the font that the receiver will use to paint textual information for this item.
*
* @return the receiver's font
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.0
*/
public Font getFont () {
checkWidget ();
return (font is null) ? parent.getFont() : font;
}
/**
* Returns the foreground color that the receiver will use to draw.
*
* @return the receiver's foreground color
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 2.0
*
*/
public Color getForeground () {
checkWidget ();
return (foreground is null) ? parent.getForeground() : foreground;
}
/**
* Gets the first image.
* <p>
* The image in column 0 is reserved for the [+] and [-]
* images of the tree, therefore getImage(0) will return null.
*
* @return the image at index 0
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public override Image getImage () {
checkWidget();
return getImage(0);
}
/**
* Gets the image at the specified index.
* <p>
* Indexing is zero based. The image can be null.
* The image in column 0 is reserved for the [+] and [-]
* images of the tree, therefore getImage(0) will return null.
* Return null if the index is out of range.
*
* @param index the index of the image
* @return the image at the specified index or null
*/
public Image getImage (int index) {
//checkWidget();
if (0 < index && index < images.length) return images[index];
return null;
}
int getIndent() {
if (parentItem is null) return 0;
return parentItem.getIndent() + 1;
}
/**
* Returns the item at the given, zero-relative index in the
* receiver. Throws an exception if the index is out of range.
*
* @param index the index of the item to return
* @return the item at the given index
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_INVALID_RANGE - if the index is not between 0 and the number of elements in the list minus 1 (inclusive)</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.1
*/
public TableTreeItem getItem (int index) {
checkWidget();
int count = cast(int) items.length;
if (!(0 <= index && index < count)) SWT.error (SWT.ERROR_INVALID_RANGE);
return items [index];
}
/**
* Returns the number of items contained in the receiver
* that are direct item children of the receiver.
*
* @return the number of items
*/
public int getItemCount () {
//checkWidget();
return cast(int) items.length;
}
/**
* Returns an array of <code>TableTreeItem</code>s which are the
* direct item children of the receiver.
* <p>
* Note: This is not the actual structure used by the receiver
* to maintain its list of items, so modifying the array will
* not affect the receiver.
* </p>
*
* @return the receiver's items
*/
public TableTreeItem[] getItems () {
//checkWidget();
TableTreeItem[] newItems = new TableTreeItem[items.length];
System.arraycopy(items, 0, newItems, 0, items.length);
return newItems;
}
TableTreeItem getItem(TableItem tableItem) {
if (tableItem is null) return null;
if (this.tableItem is tableItem) return this;
for (int i = 0; i < items.length; i++) {
TableTreeItem item = items[i].getItem(tableItem);
if (item !is null) return item;
}
return null;
}
/**
* Returns the receiver's parent, which must be a <code>TableTree</code>.
*
* @return the receiver's parent
*/
public TableTree getParent () {
//checkWidget();
return parent;
}
/**
* Returns the receiver's parent item, which must be a
* <code>TableTreeItem</code> or null when the receiver is a
* root.
*
* @return the receiver's parent item
*/
public TableTreeItem getParentItem () {
//checkWidget();
return parentItem;
}
public override String getText () {
checkWidget();
return getText(0);
}
/**
* Gets the item text at the specified index.
* <p>
* Indexing is zero based.
*
* This operation will fail when the index is out
* of range or an item could not be queried from
* the OS.
*
* @param index the index of the item
* @return the item text at the specified index, which can be null
*/
public String getText(int index) {
//checkWidget();
if (0 <= index && index < texts.length) return texts[index];
return null;
}
bool getVisible () {
return tableItem !is null;
}
/**
* Gets the index of the specified item.
*
* <p>The widget is searched starting at 0 until an
* item is found that is equal to the search item.
* If no item is found, -1 is returned. Indexing
* is zero based. This index is relative to the parent only.
*
* @param item the search item
* @return the index of the item or -1 if the item is not found
*
*/
public int indexOf (TableTreeItem item) {
//checkWidget();
for (int i = 0; i < items.length; i++) {
if (items[i] is item) return i;
}
return -1;
}
void expandAll(bool notify) {
if (items.length is 0) return;
if (!expanded) {
setExpanded(true);
if (notify) {
Event event = new Event();
event.item = this;
parent.notifyListeners(SWT.Expand, event);
}
}
for (int i = 0; i < items.length; i++) {
items[i].expandAll(notify);
}
}
int expandedIndexOf (TableTreeItem item) {
int index = 0;
for (int i = 0; i < items.length; i++) {
if (items[i] is item) return index;
if (items[i].expanded) index += items[i].visibleChildrenCount ();
index++;
}
return -1;
}
int visibleChildrenCount () {
int count = 0;
for (int i = 0; i < items.length; i++) {
if (items[i].getVisible ()) {
count += 1 + items[i].visibleChildrenCount ();
}
}
return count;
}
public override void dispose () {
if (isDisposed()) return;
for (int i = cast(int) items.length - 1; i >= 0; i--) {
items[i].dispose();
}
super.dispose();
if (!parent.inDispose) {
if (parentItem !is null) {
parentItem.removeItem(this);
} else {
parent.removeItem(this);
}
if (tableItem !is null) tableItem.dispose();
}
items = null;
parentItem = null;
parent = null;
images = null;
texts = null;
tableItem = null;
foreground = null;
background = null;
font = null;
}
void removeItem(TableTreeItem item) {
int index = 0;
while (index < items.length && items[index] !is item) index++;
if (index is items.length) return;
TableTreeItem[] newItems = new TableTreeItem[items.length - 1];
System.arraycopy(items, 0, newItems, 0, index);
System.arraycopy(items, index + 1, newItems, index, items.length - index - 1);
items = newItems;
if (items.length is 0) {
if (tableItem !is null) tableItem.setImage(0, null);
}
}
/**
* Sets the receiver's background color to the color specified
* by the argument, or to the default system color for the item
* if the argument is null.
*
* @param color the new color (or null)
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_INVALID_ARGUMENT - if the argument has been disposed</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 2.0
*
*/
public void setBackground (Color color) {
checkWidget ();
if (color !is null && color.isDisposed ()) {
SWT.error (SWT.ERROR_INVALID_ARGUMENT);
}
if (tableItem !is null) {
tableItem.setBackground(color);
}
background = color;
}
/**
* Sets the checked state of the checkbox for this item. This state change
* only applies if the Table was created with the SWT.CHECK style.
*
* @param checked the new checked state of the checkbox
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public void setChecked (bool checked) {
checkWidget();
Table table = parent.getTable();
if ((table.getStyle() & SWT.CHECK) is 0) return;
if (tableItem !is null) {
tableItem.setChecked(checked);
}
this.checked = checked;
}
/**
* Sets the grayed state of the checkbox for this item. This state change
* only applies if the Table was created with the SWT.CHECK style.
*
* @param grayed the new grayed state of the checkbox;
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 2.1
*/
public void setGrayed (bool grayed) {
checkWidget();
Table table = parent.getTable();
if ((table.getStyle() & SWT.CHECK) is 0) return;
if (tableItem !is null) {
tableItem.setGrayed(grayed);
}
this.grayed = grayed;
}
/**
* Sets the expanded state.
* <p>
* @param expanded the new expanded state.
*
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* </ul>
*/
public void setExpanded (bool expanded) {
checkWidget();
if (items.length is 0) return;
if (this.expanded is expanded) return;
this.expanded = expanded;
if (tableItem is null) return;
parent.setRedraw(false);
for (int i = 0; i < items.length; i++) {
items[i].setVisible(expanded);
}
Image image = expanded ? parent.getMinusImage() : parent.getPlusImage();
tableItem.setImage(0, image);
parent.setRedraw(true);
}
/**
* Sets the font that the receiver will use to paint textual information
* for this item to the font specified by the argument, or to the default font
* for that kind of control if the argument is null.
*
* @param font the new font (or null)
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_INVALID_ARGUMENT - if the argument has been disposed</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.0
*/
public void setFont (Font font){
checkWidget ();
if (font !is null && font.isDisposed ()) {
SWT.error (SWT.ERROR_INVALID_ARGUMENT);
}
if (tableItem !is null) {
tableItem.setFont(font);
}
this.font = font;
}
/**
* Sets the receiver's foreground color to the color specified
* by the argument, or to the default system color for the item
* if the argument is null.
*
* @param color the new color (or null)
*
* @since 2.0
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_INVALID_ARGUMENT - if the argument has been disposed</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 2.0
*
*/
public void setForeground (Color color) {
checkWidget ();
if (color !is null && color.isDisposed ()) {
SWT.error (SWT.ERROR_INVALID_ARGUMENT);
}
if (tableItem !is null) {
tableItem.setForeground(color);
}
foreground = color;
}
/**
* Sets the image at an index.
* <p>
* The image can be null.
* The image in column 0 is reserved for the [+] and [-]
* images of the tree, therefore do nothing if index is 0.
*
* @param image the new image or null
*
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* </ul>
*/
public void setImage (int index, Image image) {
checkWidget();
int columnCount = Math.max(parent.getTable().getColumnCount(), 1);
if (index <= 0 || index >= columnCount) return;
if (images.length < columnCount) {
Image[] newImages = new Image[columnCount];
System.arraycopy(images, 0, newImages, 0, images.length);
images = newImages;
}
images[index] = image;
if (tableItem !is null) tableItem.setImage(index, image);
}
/**
* Sets the first image.
* <p>
* The image can be null.
* The image in column 0 is reserved for the [+] and [-]
* images of the tree, therefore do nothing.
*
* @param image the new image or null
*
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* </ul>
*/
public override void setImage (Image image) {
setImage(0, image);
}
/**
* Sets the widget text.
* <p>
*
* The widget text for an item is the label of the
* item or the label of the text specified by a column
* number.
*
* @param index the column number
* @param text the new text
*
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* </ul>
*/
public void setText(int index, String text) {
checkWidget();
// SWT extension: allow null for zero length string
//if (text is null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
int columnCount = Math.max(parent.getTable().getColumnCount(), 1);
if (index < 0 || index >= columnCount) return;
if (texts.length < columnCount) {
String[] newTexts = new String[columnCount];
System.arraycopy(texts, 0, newTexts, 0, texts.length);
texts = newTexts;
}
texts[index] = text;
if (tableItem !is null) tableItem.setText(index, text);
}
public override void setText (String string) {
setText(0, string);
}
void setVisible (bool show) {
if (parentItem is null) return; // this is a root and can not be toggled between visible and hidden
if (getVisible() is show) return;
if (show) {
if (!parentItem.getVisible()) return; // parentItem must already be visible
// create underlying table item and set data in table item to stored data
Table table = parent.getTable();
int parentIndex = table.indexOf(parentItem.tableItem);
int index = parentItem.expandedIndexOf(this) + parentIndex + 1;
if (index < 0) return;
tableItem = new TableItem(table, getStyle(), index);
tableItem.setData(TableTree.ITEMID, this);
tableItem.setImageIndent(getIndent());
if (background !is null) tableItem.setBackground(background);
if (foreground !is null) tableItem.setForeground(foreground);
if (font !is null) tableItem.setFont(font);
addCheck();
// restore fields to item
// ignore any images in the first column
int columnCount = Math.max(table.getColumnCount(), 1);
for (int i = 0; i < columnCount; i++) {
if (i < texts.length && texts[i] !is null) setText(i, texts[i]);
if (i < images.length && images[i] !is null) setImage(i, images[i]);
}
// display the children and the appropriate [+]/[-] symbol as required
if (items.length !is 0) {
if (expanded) {
tableItem.setImage(0, parent.getMinusImage());
for (int i = 0, length = cast(int) items.length; i < length; i++) {
items[i].setVisible(true);
}
} else {
tableItem.setImage(0, parent.getPlusImage());
}
}
} else {
for (int i = 0, length = cast(int) items.length; i < length; i++) {
items[i].setVisible(false);
}
// remove row from table
tableItem.dispose();
tableItem = null;
}
}
}
|
D
|
/**
REST API implementation
*/
module mood.api.implementation;
import mood.api.spec;
import vibe.core.log;
public import mood.api.spec : BlogPost;
///
class MoodAPI : mood.api.spec.MoodAPI
{
import mood.config;
import mood.storage.posts;
private BlogPostStorage storage;
///
this ()
{
version (unittest) { /* use empty data set for tests */ }
{
logInfo("Preparing blog post data");
auto markdown_sources = NativePath(MoodPathConfig.markdownSources);
logInfo("Looking for blog post sources at %s", markdown_sources);
this.storage.loadFromDisk(markdown_sources);
logInfo("%s posts loaded", this.storage.posts_by_url.length);
import std.range : join;
logTrace("\t%s", this.storage.posts_by_url.keys.join("\n\t"));
}
}
override:
/**
Get original Markdown sources for a given post
Params:
_year = 4 digit year part of the URL
_month = 2 digit month part of the URL
_title = URL-normalized title
Returns:
markdown source of the matching post as string
Throws:
HTTPStatusException (with status NotFound) if requested post
is not found in storage
*/
BlogPost getPost(string _year, string _month, string _title)
{
import std.string : format;
import vibe.http.common;
auto url = format("%s/%s/%s", _year, _month, _title);
return this.getPost(url);
}
/// ditto
BlogPost getPost(string rel_url)
{
import vibe.http.common;
auto content = rel_url in this.storage.posts_by_url;
if (content is null)
throw new HTTPStatusException(HTTPStatus.NotFound);
return (*content).metadata;
}
/**
Add new posts to storage, store it in the filesystem and generate
actual post HTML
Params:
raw_title = post title (spaces will be encoded as "_" in the URL)
content = post Markdown sources (including metadata as HTML comment)
tags = space-separated tag list
Returns:
struct with only member field, `url`, containing relative URL added
post is available under
Throws:
Exception if post with such url/path is already present
*/
PostAddingResult addPost(string raw_title, string content, string tags)
{
import mood.config;
import mood.util.compat;
import vibe.inet.path;
import vibe.core.file;
import std.array : replace;
import std.datetime : Clock, SysTime;
import std.string;
import std.exception : enforce;
// normalize line endings to posix ones
content = content.lineSplitter.join("\n");
string title = raw_title
.replace(" ", "_")
.strip();
auto date = Clock.currTime();
auto prefix = format(
"%04d/%02d",
date.year,
date.month,
);
auto target_dir = NativePath(MoodPathConfig.markdownSources ~ prefix);
createDirectoryRecursive(target_dir);
auto file = target_dir ~ NativePath(title ~ ".md");
enforce (!existsFile(file));
string markdown = format(
"<!--\nTitle: %s\nDate: %s\nTags: %s\n-->\n%s",
raw_title,
date.toISOString(),
tags,
content
);
writeFileUTF8(file, markdown);
auto url = prefix ~ "/" ~ title;
this.storage.add(url, markdown);
return PostAddingResult(url);
}
/**
Get last n posts that match (optional) tag.
Params:
n = amount of posts to get
tag = if not empty, only last n posts that match this
tag are retrieved
Returns:
arrays of blog post metadata entries
*/
const(BlogPost)[] getPosts(uint n, string tag = "")
{
import std.algorithm : filter, map;
import std.range : take;
import std.array : array;
// predicate to check if specific blog posts has required tag
// always 'true' if there is no tag filter defined
bool hasTag(const CachedBlogPost* post)
{
if (tag.length == 0)
return true;
foreach (post_tag; post.tags)
{
if (post_tag == tag)
return true;
}
return false;
}
return this.storage.posts_by_date
.filter!hasTag
.take(n)
.map!(x => x.metadata)
.array;
}
// end of `override:`
}
import vibe.core.log;
import vibe.core.file;
import vibe.inet.path;
// simple utility wrapper missing in vibe.d
// differs from Phobos version by using vibe.d async I/O primitives
private void createDirectoryRecursive(NativePath path)
{
if (!existsFile(path))
{
createDirectoryRecursive(path.parentPath);
createDirectory(path);
}
}
|
D
|
/Users/liujianhao/code/rust/simple_web_app/simple_web_app/target/rls/debug/deps/http-6df439634261f5dd.rmeta: /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/lib.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/mod.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/map.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/name.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/value.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/method.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/request.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/response.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/status.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/version.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/mod.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/authority.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/builder.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/path.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/port.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/scheme.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/byte_str.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/convert.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/error.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/extensions.rs
/Users/liujianhao/code/rust/simple_web_app/simple_web_app/target/rls/debug/deps/http-6df439634261f5dd.d: /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/lib.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/mod.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/map.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/name.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/value.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/method.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/request.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/response.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/status.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/version.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/mod.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/authority.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/builder.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/path.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/port.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/scheme.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/byte_str.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/convert.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/error.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/extensions.rs
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/lib.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/mod.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/map.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/name.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/value.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/method.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/request.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/response.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/status.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/version.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/mod.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/authority.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/builder.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/path.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/port.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/uri/scheme.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/byte_str.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/convert.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/error.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/extensions.rs:
|
D
|
/**
* Represents connection to the PostgreSQL server
*
* Most functions is correspond to those in the documentation of Postgres:
* $(HTTPS https://www.postgresql.org/docs/current/static/libpq.html)
*/
module dpq2.connection;
import dpq2.query;
import dpq2.args: QueryParams;
import dpq2.result;
import dpq2.exception;
import derelict.pq.pq;
import std.conv: to;
import std.string: toStringz, fromStringz;
import std.exception: enforce, enforceEx;
import std.range;
import std.stdio: File;
import std.socket;
import core.exception;
import core.time: Duration;
/*
* Bugs: On Unix connection is not thread safe.
*
* On Unix, forking a process with open libpq connections can lead
* to unpredictable results because the parent and child processes share
* the same sockets and operating system resources. For this reason,
* such usage is not recommended, though doing an exec from the child
* process to load a new executable is safe.
int PQisthreadsafe();
Returns 1 if the libpq is thread-safe and 0 if it is not.
*/
/// dumb flag for Connection ctor parametrization
struct ConnectionStart {};
/// Connection
class Connection
{
package PGconn* conn;
invariant
{
assert(conn !is null);
}
/// Makes a new connection to the database server
this(string connString)
{
conn = PQconnectdb(toStringz(connString));
enforceEx!OutOfMemoryError(conn, "Unable to allocate libpq connection data");
if(status != CONNECTION_OK)
throw new ConnectionException(this, __FILE__, __LINE__);
}
/// Starts creation of a connection to the database server in a nonblocking manner
this(ConnectionStart, string connString)
{
conn = PQconnectStart(toStringz(connString));
enforceEx!OutOfMemoryError(conn, "Unable to allocate libpq connection data");
if( status == CONNECTION_BAD )
throw new ConnectionException(this, __FILE__, __LINE__);
}
~this()
{
PQfinish( conn );
}
mixin Queries;
/// Returns the blocking status of the database connection
bool isNonBlocking()
{
return PQisnonblocking(conn) == 1;
}
/// Sets the nonblocking status of the connection
private void setNonBlocking(bool state)
{
if( PQsetnonblocking(conn, state ? 1 : 0 ) == -1 )
throw new ConnectionException(this, __FILE__, __LINE__);
}
/// Begin reset the communication channel to the server, in a nonblocking manner
///
/// Useful only for non-blocking operations.
void resetStart()
{
if(PQresetStart(conn) == 0)
throw new ConnectionException(this, __FILE__, __LINE__);
}
/// Useful only for non-blocking operations.
PostgresPollingStatusType poll() nothrow
{
assert(conn);
return PQconnectPoll(conn);
}
/// Useful only for non-blocking operations.
PostgresPollingStatusType resetPoll() nothrow
{
assert(conn);
return PQresetPoll(conn);
}
/// Returns the status of the connection
ConnStatusType status() nothrow
{
return PQstatus(conn);
}
/// If input is available from the server, consume it
///
/// Useful only for non-blocking operations.
void consumeInput()
{
assert(conn);
const size_t r = PQconsumeInput( conn );
if( r != 1 ) throw new ConnectionException(this, __FILE__, __LINE__);
}
package bool flush()
{
assert(conn);
auto r = PQflush(conn);
if( r == -1 ) throw new ConnectionException(this, __FILE__, __LINE__);
return r == 0;
}
/// Obtains the file descriptor number of the connection socket to the server
int posixSocket()
{
int r = PQsocket(conn);
if(r == -1)
throw new ConnectionException(this, __FILE__, __LINE__);
return r;
}
/// Obtains duplicate file descriptor number of the connection socket to the server
socket_t posixSocketDuplicate()
{
version(Windows)
{
static assert(false, "FIXME: implement socket duplication");
}
else // Posix OS
{
import core.sys.posix.unistd: dup;
return cast(socket_t) dup(cast(socket_t) posixSocket);
}
}
/// Obtains std.socket.Socket of the connection to the server
///
/// Due to a limitation of Socket actually for the Socket creation
/// duplicate of internal posix socket will be used.
Socket socket()
{
return new Socket(posixSocketDuplicate, AddressFamily.UNSPEC);
}
/// Returns the error message most recently generated by an operation on the connection
string errorMessage() const nothrow
{
return PQerrorMessage(conn).to!string;
}
/**
* Sets or examines the current notice processor
*
* Returns the previous notice receiver or processor function pointer, and sets the new value.
* If you supply a null function pointer, no action is taken, but the current pointer is returned.
*/
PQnoticeProcessor setNoticeProcessor(PQnoticeProcessor proc, void* arg) nothrow
{
assert(conn);
return PQsetNoticeProcessor(conn, proc, arg);
}
/// Get next result after sending a non-blocking commands. Can return null.
///
/// Useful only for non-blocking operations.
immutable(Result) getResult()
{
// is guaranteed by libpq that the result will not be changed until it will not be destroyed
auto r = cast(immutable) PQgetResult(conn);
if(r)
{
auto container = new immutable ResultContainer(r);
return new immutable Result(container);
}
return null;
}
/// Get result after PQexec* functions or throw exception if pull is empty
package immutable(ResultContainer) createResultContainer(immutable PGresult* r) const
{
if(r is null) throw new ConnectionException(this, __FILE__, __LINE__);
return new immutable ResultContainer(r);
}
/// Select single-row mode for the currently-executing query
bool setSingleRowMode()
{
return PQsetSingleRowMode(conn) == 1;
}
/**
Try to cancel query
If the cancellation is effective, the current command will
terminate early and return an error result or exception. If the
cancellation will fails (say, because the server was already done
processing the command) there will be no visible result at all.
*/
void cancel()
{
auto c = new Cancellation(this);
c.doCancel;
}
///
bool isBusy() nothrow
{
assert(conn);
return PQisBusy(conn) == 1;
}
///
string parameterStatus(string paramName)
{
assert(conn);
auto res = PQparameterStatus(conn, toStringz(paramName));
if(res is null)
throw new ConnectionException(this, __FILE__, __LINE__);
return to!string(fromStringz(res));
}
///
string escapeLiteral(string msg)
{
assert(conn);
auto buf = PQescapeLiteral(conn, msg.toStringz, msg.length);
if(buf is null)
throw new ConnectionException(this, __FILE__, __LINE__);
string res = buf.fromStringz.to!string;
PQfreemem(buf);
return res;
}
///
string escapeIdentifier(string msg)
{
assert(conn);
auto buf = PQescapeIdentifier(conn, msg.toStringz, msg.length);
if(buf is null)
throw new ConnectionException(this, __FILE__, __LINE__);
string res = buf.fromStringz.to!string;
PQfreemem(buf);
return res;
}
///
string dbName() const nothrow
{
assert(conn);
return PQdb(conn).fromStringz.to!string;
}
///
string host() const nothrow
{
assert(conn);
return PQhost(conn).fromStringz.to!string;
}
///
int protocolVersion() const nothrow
{
assert(conn);
return PQprotocolVersion(conn);
}
///
int serverVersion() const nothrow
{
assert(conn);
return PQserverVersion(conn);
}
///
void trace(ref File stream)
{
PQtrace(conn, stream.getFP);
}
///
void untrace()
{
PQuntrace(conn);
}
///
void setClientEncoding(string encoding)
{
if(PQsetClientEncoding(conn, encoding.toStringz) != 0)
throw new ConnectionException(this, __FILE__, __LINE__);
}
}
/// Check connection options in the provided connection string
///
/// Throws exception if connection string isn't passes check.
void connStringCheck(string connString)
{
char* errmsg = null;
PQconninfoOption* r = PQconninfoParse(connString.toStringz, &errmsg);
if(r is null)
{
enforceEx!OutOfMemoryError(errmsg, "Unable to allocate libpq conninfo data");
}
else
{
PQconninfoFree(r);
}
if(errmsg !is null)
{
string s = errmsg.fromStringz.to!string;
PQfreemem(cast(void*) errmsg);
throw new ConnectionException(s, __FILE__, __LINE__);
}
}
unittest
{
connStringCheck("dbname=postgres user=postgres");
{
bool raised = false;
try
connStringCheck("wrong conninfo string");
catch(ConnectionException e)
raised = true;
assert(raised);
}
}
/// Represents query cancellation process
class Cancellation
{
private PGcancel* cancel;
///
this(Connection c)
{
cancel = PQgetCancel(c.conn);
if(cancel is null)
throw new ConnectionException(c, __FILE__, __LINE__);
}
///
~this()
{
PQfreeCancel(cancel);
}
/**
Requests that the server abandon processing of the current command
Throws exception if cancel request was not successfully dispatched.
Successful dispatch is no guarantee that the request will have any
effect, however. If the cancellation is effective, the current
command will terminate early and return an error result
(exception). If the cancellation fails (say, because the server
was already done processing the command), then there will be no
visible result at all.
*/
void doCancel()
{
char[256] errbuf;
auto res = PQcancel(cancel, errbuf.ptr, errbuf.length);
if(res != 1)
throw new CancellationException(to!string(errbuf.ptr.fromStringz), __FILE__, __LINE__);
}
}
///
class CancellationException : Dpq2Exception
{
this(string msg, string file, size_t line)
{
super(msg, file, line);
}
}
/// Connection exception
class ConnectionException : Dpq2Exception
{
this(in Connection c, string file, size_t line)
{
super(c.errorMessage(), file, line);
}
this(string msg, string file, size_t line)
{
super(msg, file, line);
}
}
version (integration_tests)
void _integration_test( string connParam )
{
assert( PQlibVersion() >= 9_0100 );
{
debug import std.experimental.logger;
auto c = new Connection(connParam);
auto dbname = c.dbName();
auto pver = c.protocolVersion();
auto sver = c.serverVersion();
debug
{
trace("DB name: ", dbname);
trace("Protocol version: ", pver);
trace("Server version: ", sver);
}
destroy(c);
}
{
bool exceptionFlag = false;
try
auto c = new Connection(ConnectionStart(), "!!!some incorrect connection string!!!");
catch(ConnectionException e)
{
exceptionFlag = true;
assert(e.msg.length > 40); // error message check
}
finally
assert(exceptionFlag);
}
{
auto c = new Connection(connParam);
assert(c.escapeLiteral("abc'def") == "'abc''def'");
assert(c.escapeIdentifier("abc'def") == "\"abc'def\"");
c.setClientEncoding("WIN866");
assert(c.exec("show client_encoding")[0][0].as!string == "WIN866");
}
}
|
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, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module org.eclipse.swt.internal.image.PngIhdrChunk;
import java.lang.all;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.PaletteData;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.internal.image.PngFileReadState;
import org.eclipse.swt.internal.image.PngIhdrChunk;
import org.eclipse.swt.internal.image.PngChunk;
class PngIhdrChunk : PngChunk {
static const int IHDR_DATA_LENGTH = 13;
static const int WIDTH_DATA_OFFSET = DATA_OFFSET + 0;
static const int HEIGHT_DATA_OFFSET = DATA_OFFSET + 4;
static const int BIT_DEPTH_OFFSET = DATA_OFFSET + 8;
static const int COLOR_TYPE_OFFSET = DATA_OFFSET + 9;
static const int COMPRESSION_METHOD_OFFSET = DATA_OFFSET + 10;
static const int FILTER_METHOD_OFFSET = DATA_OFFSET + 11;
static const int INTERLACE_METHOD_OFFSET = DATA_OFFSET + 12;
static const byte COLOR_TYPE_GRAYSCALE = 0;
static const byte COLOR_TYPE_RGB = 2;
static const byte COLOR_TYPE_PALETTE = 3;
static const byte COLOR_TYPE_GRAYSCALE_WITH_ALPHA = 4;
static const byte COLOR_TYPE_RGB_WITH_ALPHA = 6;
static const int INTERLACE_METHOD_NONE = 0;
static const int INTERLACE_METHOD_ADAM7 = 1;
static const int FILTER_NONE = 0;
static const int FILTER_SUB = 1;
static const int FILTER_UP = 2;
static const int FILTER_AVERAGE = 3;
static const int FILTER_PAETH = 4;
static const byte[] ValidBitDepths = [ cast(byte)1, 2, 4, 8, 16];
static const byte[] ValidColorTypes = [ cast(byte)0, 2, 3, 4, 6];
int width, height;
byte bitDepth, colorType, compressionMethod, filterMethod, interlaceMethod;
this(int width, int height, byte bitDepth, byte colorType, byte compressionMethod, byte filterMethod, byte interlaceMethod) {
super(IHDR_DATA_LENGTH);
setType(TYPE_IHDR);
setWidth(width);
setHeight(height);
setBitDepth(bitDepth);
setColorType(colorType);
setCompressionMethod(compressionMethod);
setFilterMethod(filterMethod);
setInterlaceMethod(interlaceMethod);
setCRC(computeCRC());
}
/**
* Construct a PNGChunk using the reference bytes
* given.
*/
this(byte[] reference) {
super(reference);
if (reference.length <= IHDR_DATA_LENGTH) SWT.error(SWT.ERROR_INVALID_IMAGE);
width = getInt32(WIDTH_DATA_OFFSET);
height = getInt32(HEIGHT_DATA_OFFSET);
bitDepth = reference[BIT_DEPTH_OFFSET];
colorType = reference[COLOR_TYPE_OFFSET];
compressionMethod = reference[COMPRESSION_METHOD_OFFSET];
filterMethod = reference[FILTER_METHOD_OFFSET];
interlaceMethod = reference[INTERLACE_METHOD_OFFSET];
}
override int getChunkType() {
return CHUNK_IHDR;
}
/**
* Get the image's width in pixels.
*/
int getWidth() {
return width;
}
/**
* Set the image's width in pixels.
*/
void setWidth(int value) {
setInt32(WIDTH_DATA_OFFSET, value);
width = value;
}
/**
* Get the image's height in pixels.
*/
int getHeight() {
return height;
}
/**
* Set the image's height in pixels.
*/
void setHeight(int value) {
setInt32(HEIGHT_DATA_OFFSET, value);
height = value;
}
/**
* Get the image's bit depth.
* This is limited to the values 1, 2, 4, 8, or 16.
*/
byte getBitDepth() {
return bitDepth;
}
/**
* Set the image's bit depth.
* This is limited to the values 1, 2, 4, 8, or 16.
*/
void setBitDepth(byte value) {
reference[BIT_DEPTH_OFFSET] = value;
bitDepth = value;
}
/**
* Get the image's color type.
* This is limited to the values:
* 0 - Grayscale image.
* 2 - RGB triple.
* 3 - Palette.
* 4 - Grayscale with Alpha channel.
* 6 - RGB with Alpha channel.
*/
byte getColorType() {
return colorType;
}
/**
* Set the image's color type.
* This is limited to the values:
* 0 - Grayscale image.
* 2 - RGB triple.
* 3 - Palette.
* 4 - Grayscale with Alpha channel.
* 6 - RGB with Alpha channel.
*/
void setColorType(byte value) {
reference[COLOR_TYPE_OFFSET] = value;
colorType = value;
}
/**
* Get the image's compression method.
* This value must be 0.
*/
byte getCompressionMethod() {
return compressionMethod;
}
/**
* Set the image's compression method.
* This value must be 0.
*/
void setCompressionMethod(byte value) {
reference[COMPRESSION_METHOD_OFFSET] = value;
compressionMethod = value;
}
/**
* Get the image's filter method.
* This value must be 0.
*/
byte getFilterMethod() {
return filterMethod;
}
/**
* Set the image's filter method.
* This value must be 0.
*/
void setFilterMethod(byte value) {
reference[FILTER_METHOD_OFFSET] = value;
filterMethod = value;
}
/**
* Get the image's interlace method.
* This value is limited to:
* 0 - No interlacing used.
* 1 - Adam7 interlacing used.
*/
byte getInterlaceMethod() {
return interlaceMethod;
}
/**
* Set the image's interlace method.
* This value is limited to:
* 0 - No interlacing used.
* 1 - Adam7 interlacing used.
*/
void setInterlaceMethod(byte value) {
reference[INTERLACE_METHOD_OFFSET] = value;
interlaceMethod = value;
}
/**
* Answer whether the chunk is a valid IHDR chunk.
*/
override void validate(PngFileReadState readState, PngIhdrChunk headerChunk) {
// An IHDR chunk is invalid if any other chunk has
// been read.
if (readState.readIHDR
|| readState.readPLTE
|| readState.readIDAT
|| readState.readIEND)
{
SWT.error(SWT.ERROR_INVALID_IMAGE);
} else {
readState.readIHDR = true;
}
super.validate(readState, headerChunk);
if (length !is IHDR_DATA_LENGTH) SWT.error(SWT.ERROR_INVALID_IMAGE);
if (compressionMethod !is 0) SWT.error(SWT.ERROR_INVALID_IMAGE);
if (interlaceMethod !is INTERLACE_METHOD_NONE &&
interlaceMethod !is INTERLACE_METHOD_ADAM7) {
SWT.error(SWT.ERROR_INVALID_IMAGE);
}
bool colorTypeIsValid = false;
for (int i = 0; i < ValidColorTypes.length; i++) {
if (ValidColorTypes[i] is colorType) {
colorTypeIsValid = true;
break;
}
}
if (!colorTypeIsValid) SWT.error(SWT.ERROR_INVALID_IMAGE);
bool bitDepthIsValid = false;
for (int i = 0; i < ValidBitDepths.length; i++) {
if (ValidBitDepths[i] is bitDepth) {
bitDepthIsValid = true;
break;
}
}
if (!bitDepthIsValid) SWT.error(SWT.ERROR_INVALID_IMAGE);
if ((colorType is COLOR_TYPE_RGB
|| colorType is COLOR_TYPE_RGB_WITH_ALPHA
|| colorType is COLOR_TYPE_GRAYSCALE_WITH_ALPHA)
&& bitDepth < 8)
{
SWT.error(SWT.ERROR_INVALID_IMAGE);
}
if (colorType is COLOR_TYPE_PALETTE && bitDepth > 8) {
SWT.error(SWT.ERROR_INVALID_IMAGE);
}
}
String getColorTypeString() {
switch (colorType) {
case COLOR_TYPE_GRAYSCALE: return "Grayscale";
case COLOR_TYPE_RGB: return "RGB";
case COLOR_TYPE_PALETTE: return "Palette";
case COLOR_TYPE_GRAYSCALE_WITH_ALPHA: return "Grayscale with Alpha";
case COLOR_TYPE_RGB_WITH_ALPHA: return "RGB with Alpha";
default: return "Unknown - " ~ cast(char)colorType;
}
}
String getFilterMethodString() {
switch (filterMethod) {
case FILTER_NONE: return "None";
case FILTER_SUB: return "Sub";
case FILTER_UP: return "Up";
case FILTER_AVERAGE: return "Average";
case FILTER_PAETH: return "Paeth";
default: return "Unknown";
}
}
String getInterlaceMethodString() {
switch (interlaceMethod) {
case INTERLACE_METHOD_NONE: return "Not Interlaced";
case INTERLACE_METHOD_ADAM7: return "Interlaced - ADAM7";
default: return "Unknown";
}
}
override String contributeToString() {
return Format( "\n\tWidth: {}\n\tHeight: {}\n\tBit Depth: {}\n\tColor Type: {}\n\tCompression Method: {}\n\tFilter Method: {}\n\tInterlace Method: {}",
width, height, bitDepth, getColorTypeString(), compressionMethod, getFilterMethodString(), getInterlaceMethodString() );
}
bool getMustHavePalette() {
return colorType is COLOR_TYPE_PALETTE;
}
bool getCanHavePalette() {
return colorType !is COLOR_TYPE_GRAYSCALE &&
colorType !is COLOR_TYPE_GRAYSCALE_WITH_ALPHA;
}
/**
* Answer the pixel size in bits based on the color type
* and bit depth.
*/
int getBitsPerPixel() {
switch (colorType) {
case COLOR_TYPE_RGB_WITH_ALPHA:
return 4 * bitDepth;
case COLOR_TYPE_RGB:
return 3 * bitDepth;
case COLOR_TYPE_GRAYSCALE_WITH_ALPHA:
return 2 * bitDepth;
case COLOR_TYPE_GRAYSCALE:
case COLOR_TYPE_PALETTE:
return bitDepth;
default:
SWT.error(SWT.ERROR_INVALID_IMAGE);
return 0;
}
}
/**
* Answer the pixel size in bits based on the color type
* and bit depth.
*/
int getSwtBitsPerPixel() {
switch (colorType) {
case COLOR_TYPE_RGB_WITH_ALPHA:
case COLOR_TYPE_RGB:
case COLOR_TYPE_GRAYSCALE_WITH_ALPHA:
return 24;
case COLOR_TYPE_GRAYSCALE:
case COLOR_TYPE_PALETTE:
return Math.min(cast(int)bitDepth, 8);
default:
SWT.error(SWT.ERROR_INVALID_IMAGE);
return 0;
}
}
int getFilterByteOffset() {
if (bitDepth < 8) return 1;
return getBitsPerPixel() / 8;
}
bool usesDirectColor() {
switch (colorType) {
case COLOR_TYPE_GRAYSCALE:
case COLOR_TYPE_GRAYSCALE_WITH_ALPHA:
case COLOR_TYPE_RGB:
case COLOR_TYPE_RGB_WITH_ALPHA:
return true;
default:
return false;
}
}
PaletteData createGrayscalePalette() {
int depth = Math.min(cast(int)bitDepth, 8);
int max = (1 << depth) - 1;
int delta = 255 / max;
int gray = 0;
RGB[] rgbs = new RGB[max + 1];
for (int i = 0; i <= max; i++) {
rgbs[i] = new RGB(gray, gray, gray);
gray += delta;
}
return new PaletteData(rgbs);
}
PaletteData getPaletteData() {
switch (colorType) {
case COLOR_TYPE_GRAYSCALE:
return createGrayscalePalette();
case COLOR_TYPE_GRAYSCALE_WITH_ALPHA:
case COLOR_TYPE_RGB:
case COLOR_TYPE_RGB_WITH_ALPHA:
return new PaletteData(0xFF0000, 0xFF00, 0xFF);
default:
return null;
}
}
}
|
D
|
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE
303.5 77.1999969 2.79999995 89.6999969 10 14 -38.7000008 143.100006 139 4.19999981 4.19999981 0.991364334 sediments, limestone
289.600006 75.1999969 1.79999995 73.1999969 11 19 -31.6000004 145.600006 9338 2.5 2.5 0.683912929 sediments, saprolite
264.399994 75 15.6000004 0 2 65 -8.80000019 126.699997 1206 10.3999996 18 0.322887144 extrusives, intrusives
349.5 78.1999969 4.69999981 999.900024 5 35 -36.0999985 149.100006 1153 6.0999999 7.5999999 0.542714916 sediments, weathered volcanics
294.399994 82.9000015 1.89999998 472.299988 8 23 -33.5999985 150.600006 1154 2.0999999 2.79999995 0.629338268 sediments
236.600006 78.5 18.0739223 7.5 0 35 -17.2000008 131.5 1894 0 0 0.299081021 sediments, red mudstones
270.5 80.4000015 8.39999962 125 5 23 -32.5 138.5 1976 8.39999962 8.39999962 0.538548626 sediments, red clays
256.899994 86.9000015 8.39999962 88 5 23 -36 137 1974 8.39999962 8.39999962 0.538548626 sediments, weathered
|
D
|
/*******************************************************************************
* Copyright (c) 2000, 2005 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, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module dwtx.draw2d.ActionListener;
import dwt.dwthelper.utils;
import tango.core.Traits;
import tango.core.Tuple;
import dwtx.draw2d.ActionEvent;
/**
* A Listener interface for receiving {@link ActionEvent ActionEvents}.
*/
public interface ActionListener {
/**
* Called when the action occurs.
* @param event The event
*/
void actionPerformed(ActionEvent event);
}
// DWT Helper
private class _DgActionListenerT(Dg,T...) : ActionListener {
alias ParameterTupleOf!(Dg) DgArgs;
static assert( is(DgArgs == Tuple!(ActionEvent,T)),
"Delegate args not correct" );
Dg dg;
T t;
private this( Dg dg, T t ){
this.dg = dg;
static if( T.length > 0 ){
this.t = t;
}
}
void actionPerformed( ActionEvent e ){
dg(e,t);
}
}
ActionListener dgActionListener( Dg, T... )( Dg dg, T args ){
return new _DgActionListenerT!( Dg, T )( dg, args );
}
|
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 under the License is distributed on an "AS IS" BASIS,
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// * See the License for the specific language governing permissions and
// * limitations under the License.
// */
//
//
//import flow.common.cfg.TransactionListener;
//import flow.common.interceptor.CommandContext;
//import flow.job.service.JobServiceConfiguration;
//import flow.job.service.impl.persistence.entity.HistoryJobEntity;
//import flow.job.service.impl.util.CommandContextUtil;
//
///**
// * A {@link TransactionListener} that will, typically on post-commit, trigger
// * the async history executor to execute the provided list of {@link HistoryJobEntity} instances.
// *
// * @author Joram Barrez
// */
//class TriggerAsyncHistoryExecutorTransactionListener implements TransactionListener {
//
// protected HistoryJobEntity historyJobEntity;
//
// protected JobServiceConfiguration jobServiceConfiguration;
//
// public TriggerAsyncHistoryExecutorTransactionListener(CommandContext commandContext) {
// this(commandContext,null);
// }
//
// public TriggerAsyncHistoryExecutorTransactionListener(CommandContext commandContext, HistoryJobEntity historyJobEntity) {
// // The execution of this listener will reference components that might
// // not be available when the command context is closing (when typically
// // the history jobs are created and scheduled), so they are already referenced here.
// this.jobServiceConfiguration = CommandContextUtil.getJobServiceConfiguration(commandContext);
// this.historyJobEntity = historyJobEntity;
// }
//
// @Override
// public void execute(CommandContext commandContext) {
// jobServiceConfiguration.getAsyncHistoryExecutor().executeAsyncJob(historyJobEntity);
// }
//
//}
|
D
|
# FIXED
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/Common/Minimal/GenQTest.c
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/stdlib.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/linkage.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/FreeRTOS.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/stddef.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/stdint.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/FreeRTOSConfig.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/driverlib.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/adc14.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/ccs_base/arm/include/msp.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/ccs_base/arm/include/msp432p401r.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/ccs_base/arm/include/msp_compatibility.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/ccs_base/arm/include/CMSIS/cmsis_ccs.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/ccs_base/arm/include/msp432p401r_classic.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/ccs_base/arm/include/CMSIS/core_cm4.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/ccs_base/arm/include/CMSIS/cmsis_compiler.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/ccs_base/arm/include/system_msp432p401r.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/stdbool.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/aes256.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/comp_e.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/cpu.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/crc32.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/cs.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/dma.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/eusci.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/flash.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/fpu.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/gpio.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/i2c.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/interrupt.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/mpu.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pcm.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pmap.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pss.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/ref_a.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/reset.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rom.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rom_map.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rtc_c.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/spi.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/sysctl.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/systick.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/timer32.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/timer_a.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/uart.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/wdt_a.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/projdefs.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/portable.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/deprecated_definitions.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Source/portable/CCS/ARM_CM4F/portmacro.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/mpu_wrappers.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/task.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/list.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/queue.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/semphr.h
Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/Common/include/GenQTest.h
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/Common/Minimal/GenQTest.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/stdlib.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/linkage.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/FreeRTOS.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/stddef.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/stdint.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/FreeRTOSConfig.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/driverlib.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/adc14.h:
C:/ti/ccsv7/ccs_base/arm/include/msp.h:
C:/ti/ccsv7/ccs_base/arm/include/msp432p401r.h:
C:/ti/ccsv7/ccs_base/arm/include/msp_compatibility.h:
C:/ti/ccsv7/ccs_base/arm/include/CMSIS/cmsis_ccs.h:
C:/ti/ccsv7/ccs_base/arm/include/msp432p401r_classic.h:
C:/ti/ccsv7/ccs_base/arm/include/CMSIS/core_cm4.h:
C:/ti/ccsv7/ccs_base/arm/include/CMSIS/cmsis_compiler.h:
C:/ti/ccsv7/ccs_base/arm/include/system_msp432p401r.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/stdbool.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/aes256.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/comp_e.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/cpu.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/crc32.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/cs.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/dma.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/eusci.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/flash.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/fpu.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/gpio.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/i2c.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/interrupt.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/mpu.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pcm.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pmap.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pss.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/ref_a.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/reset.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rom.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rom_map.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/rtc_c.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/spi.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/sysctl.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/systick.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/timer32.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/timer_a.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/uart.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/wdt_a.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/projdefs.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/portable.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/deprecated_definitions.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Source/portable/CCS/ARM_CM4F/portmacro.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/mpu_wrappers.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/task.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/list.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/queue.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Source/include/semphr.h:
C:/FreeRTOSv10.1.1/FreeRTOS/Demo/Common/include/GenQTest.h:
|
D
|
/*
* 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 rdmd_test;
/**
RDMD Test-suite.
Authors: Andrej Mitrovic
Notes:
Use the --compiler switch to specify a custom compiler to build RDMD and run the tests with.
Use the --rdmd switch to specify the path to RDMD.
*/
import std.algorithm;
import std.exception;
import std.file;
import std.getopt;
import std.path;
import std.process;
import std.range;
import std.string;
version (Posix)
{
enum objExt = ".o";
enum binExt = "";
}
else version (Windows)
{
enum objExt = ".obj";
enum binExt = ".exe";
}
else
{
static assert(0, "Unsupported operating system.");
}
string rdmdApp; // path/to/rdmd.exe (once built)
string compiler = "dmd"; // e.g. dmd/gdmd/ldmd
void main(string[] args)
{
string rdmd = "rdmd.d";
bool concurrencyTest;
getopt(args,
"compiler", &compiler,
"rdmd", &rdmd,
"concurrency", &concurrencyTest,
);
enforce(rdmd.exists, "Path to rdmd does not exist: %s".format(rdmd));
rdmdApp = tempDir().buildPath("rdmd_app_") ~ binExt;
if (rdmdApp.exists) std.file.remove(rdmdApp);
auto res = execute([compiler, "-of" ~ rdmdApp, rdmd]);
enforce(res.status == 0, res.output);
enforce(rdmdApp.exists);
runTests();
if (concurrencyTest)
runConcurrencyTest();
}
@property string compilerSwitch() { return "--compiler=" ~ compiler; }
void runTests()
{
/* Test help string output when no arguments passed. */
auto res = execute([rdmdApp]);
assert(res.status == 1, res.output);
assert(res.output.canFind("Usage: rdmd [RDMD AND DMD OPTIONS]... program [PROGRAM OPTIONS]..."));
/* Test --help. */
res = execute([rdmdApp, "--help"]);
assert(res.status == 0, res.output);
assert(res.output.canFind("Usage: rdmd [RDMD AND DMD OPTIONS]... program [PROGRAM OPTIONS]..."));
/* Test --force. */
string forceSrc = tempDir().buildPath("force_src_.d");
std.file.write(forceSrc, `void main() { pragma(msg, "compile_force_src"); }`);
res = execute([rdmdApp, compilerSwitch, forceSrc]);
assert(res.status == 0, res.output);
assert(res.output.canFind("compile_force_src"));
res = execute([rdmdApp, compilerSwitch, forceSrc]);
assert(res.status == 0, res.output);
assert(!res.output.canFind("compile_force_src")); // second call will not re-compile
res = execute([rdmdApp, compilerSwitch, "--force", forceSrc]);
assert(res.status == 0, res.output);
assert(res.output.canFind("compile_force_src")); // force will re-compile
/* Test --build-only. */
string failRuntime = tempDir().buildPath("fail_runtime_.d");
std.file.write(failRuntime, "void main() { assert(0); }");
res = execute([rdmdApp, compilerSwitch, "--force", "--build-only", failRuntime]);
assert(res.status == 0, res.output); // only built, assert(0) not called.
res = execute([rdmdApp, compilerSwitch, "--force", failRuntime]);
assert(res.status == 1, res.output); // assert(0) called, rdmd execution failed.
string failComptime = tempDir().buildPath("fail_comptime_.d");
std.file.write(failComptime, "void main() { static assert(0); }");
res = execute([rdmdApp, compilerSwitch, "--force", "--build-only", failComptime]);
assert(res.status == 1, res.output); // building will fail for static assert(0).
res = execute([rdmdApp, compilerSwitch, "--force", failComptime]);
assert(res.status == 1, res.output); // ditto.
/* Test --chatty. */
string voidMain = tempDir().buildPath("void_main_.d");
std.file.write(voidMain, "void main() { }");
res = execute([rdmdApp, compilerSwitch, "--force", "--chatty", voidMain]);
assert(res.status == 0, res.output);
assert(res.output.canFind("stat ")); // stat should be called.
/* Test --dry-run. */
res = execute([rdmdApp, compilerSwitch, "--force", "--dry-run", failComptime]);
assert(res.status == 0, res.output); // static assert(0) not called since we did not build.
assert(res.output.canFind("mkdirRecurse "), res.output); // --dry-run implies chatty
res = execute([rdmdApp, compilerSwitch, "--force", "--dry-run", "--build-only", failComptime]);
assert(res.status == 0, res.output); // --build-only should not interfere with --dry-run
/* Test --eval. */
res = execute([rdmdApp, compilerSwitch, "--force", "-de", "--eval=writeln(`eval_works`);"]);
assert(res.status == 0, res.output);
assert(res.output.canFind("eval_works")); // there could be a "DMD v2.xxx header in the output"
// compiler flags
res = execute([rdmdApp, compilerSwitch, "--force", "-debug",
"--eval=debug {} else assert(false);"]);
assert(res.status == 0, res.output);
// vs program file
res = execute([rdmdApp, compilerSwitch, "--force",
"--eval=assert(true);", voidMain]);
assert(res.status != 0);
assert(res.output.canFind("Cannot have both --eval and a program file ('" ~
voidMain ~ "')."));
/* Test --exclude. */
string packFolder = tempDir().buildPath("dsubpack");
if (packFolder.exists) packFolder.rmdirRecurse();
packFolder.mkdirRecurse();
scope (exit) packFolder.rmdirRecurse();
string subModObj = packFolder.buildPath("submod") ~ objExt;
string subModSrc = packFolder.buildPath("submod.d");
std.file.write(subModSrc, "module dsubpack.submod; void foo() { }");
// build an object file out of the dependency
res = execute([compiler, "-c", "-of" ~ subModObj, subModSrc]);
assert(res.status == 0, res.output);
string subModUser = tempDir().buildPath("subModUser_.d");
std.file.write(subModUser, "module subModUser_; import dsubpack.submod; void main() { foo(); }");
res = execute([rdmdApp, compilerSwitch, "--force", "--exclude=dsubpack", subModUser]);
assert(res.status == 1, res.output); // building without the dependency fails
res = execute([rdmdApp, compilerSwitch, "--force", "--exclude=dsubpack", subModObj, subModUser]);
assert(res.status == 0, res.output); // building with the dependency succeeds
/* Test --extra-file. */
string extraFileDi = tempDir().buildPath("extraFile_.di");
std.file.write(extraFileDi, "module extraFile_; void f();");
string extraFileD = tempDir().buildPath("extraFile_.d");
std.file.write(extraFileD, "module extraFile_; void f() { return; }");
string extraFileMain = tempDir().buildPath("extraFileMain_.d");
std.file.write(extraFileMain,
"module extraFileMain_; import extraFile_; void main() { f(); }");
res = execute([rdmdApp, compilerSwitch, "--force", extraFileMain]);
assert(res.status == 1, res.output); // undefined reference to f()
res = execute([rdmdApp, compilerSwitch, "--force",
"--extra-file=" ~ extraFileD, extraFileMain]);
assert(res.status == 0, res.output); // now OK
/* Test --loop. */
{
auto testLines = "foo\nbar\ndoo".split("\n");
auto pipes = pipeProcess([rdmdApp, compilerSwitch, "--force", "--loop=writeln(line);"], Redirect.stdin | Redirect.stdout);
foreach (input; testLines)
pipes.stdin.writeln(input);
pipes.stdin.close();
while (!testLines.empty)
{
auto line = pipes.stdout.readln.strip;
if (line.empty || line.startsWith("DMD v")) continue; // git-head header
assert(line == testLines.front, "Expected %s, got %s".format(testLines.front, line));
testLines.popFront;
}
auto status = pipes.pid.wait();
assert(status == 0);
}
// vs program file
res = execute([rdmdApp, compilerSwitch, "--force",
"--loop=assert(true);", voidMain]);
assert(res.status != 0);
assert(res.output.canFind("Cannot have both --loop and a program file ('" ~
voidMain ~ "')."));
/* Test --main. */
string noMain = tempDir().buildPath("no_main_.d");
std.file.write(noMain, "module no_main_; void foo() { }");
// test disabled: Optlink creates a dialog box here instead of erroring.
/+ res = execute([rdmdApp, " %s", noMain));
assert(res.status == 1, res.output); // main missing +/
res = execute([rdmdApp, compilerSwitch, "--main", noMain]);
assert(res.status == 0, res.output); // main added
string intMain = tempDir().buildPath("int_main_.d");
std.file.write(intMain, "int main(string[] args) { return args.length; }");
res = execute([rdmdApp, compilerSwitch, "--main", intMain]);
assert(res.status == 1, res.output); // duplicate main
/* Test --makedepend. */
string packRoot = packFolder.buildPath("../").buildNormalizedPath();
string depMod = packRoot.buildPath("depMod_.d");
std.file.write(depMod, "module depMod_; import dsubpack.submod; void main() { }");
res = execute([rdmdApp, compilerSwitch, "-I" ~ packRoot, "--makedepend",
"-of" ~ depMod[0..$-2], depMod]);
import std.ascii : newline;
// simplistic checks
assert(res.output.canFind(depMod[0..$-2] ~ ": \\" ~ newline));
assert(res.output.canFind(newline ~ " " ~ depMod ~ " \\" ~ newline));
assert(res.output.canFind(newline ~ " " ~ subModSrc));
assert(res.output.canFind(newline ~ subModSrc ~ ":" ~ newline));
assert(!res.output.canFind("\\" ~ newline ~ newline));
/* Test --makedepfile. */
string depModFail = packRoot.buildPath("depModFail_.d");
std.file.write(depModFail, "module depMod_; import dsubpack.submod; void main() { assert(0); }");
string depMak = packRoot.buildPath("depMak_.mak");
res = execute([rdmdApp, compilerSwitch, "--force", "--build-only",
"-I" ~ packRoot, "--makedepfile=" ~ depMak,
"-of" ~ depModFail[0..$-2], depModFail]);
scope (exit) std.file.remove(depMak);
string output = std.file.readText(depMak);
// simplistic checks
assert(output.canFind(depModFail[0..$-2] ~ ": \\" ~ newline));
assert(output.canFind(newline ~ " " ~ depModFail ~ " \\" ~ newline));
assert(output.canFind(newline ~ " " ~ subModSrc));
assert(output.canFind(newline ~ "" ~ subModSrc ~ ":" ~ newline));
assert(!output.canFind("\\" ~ newline ~ newline));
assert(res.status == 0, res.output); // only built, assert(0) not called.
/* Test signal propagation through exit codes */
version (Posix)
{
import core.sys.posix.signal;
string crashSrc = tempDir().buildPath("crash_src_.d");
std.file.write(crashSrc, `void main() { int *p; *p = 0; }`);
res = execute([rdmdApp, compilerSwitch, crashSrc]);
assert(res.status == -SIGSEGV, format("%s", res));
}
/* -of doesn't append .exe on Windows: https://d.puremagic.com/issues/show_bug.cgi?id=12149 */
version (Windows)
{
string outPath = tempDir().buildPath("test_of_app");
string exePath = outPath ~ ".exe";
res = execute([rdmdApp, "--build-only", "-of" ~ outPath, voidMain]);
enforce(exePath.exists(), exePath);
}
/* Current directory change should not trigger rebuild */
res = execute([rdmdApp, compilerSwitch, forceSrc]);
assert(res.status == 0, res.output);
assert(!res.output.canFind("compile_force_src"));
{
auto cwd = getcwd();
scope(exit) chdir(cwd);
chdir(tempDir);
res = execute([rdmdApp, compilerSwitch, forceSrc.baseName()]);
assert(res.status == 0, res.output);
assert(!res.output.canFind("compile_force_src"));
}
auto conflictDir = forceSrc.setExtension(".dir");
if (exists(conflictDir))
{
if (isFile(conflictDir))
remove(conflictDir);
else
rmdirRecurse(conflictDir);
}
mkdir(conflictDir);
res = execute([rdmdApp, compilerSwitch, "-of" ~ conflictDir, forceSrc]);
assert(res.status != 0, "-of set to a directory should fail");
/* rdmd should force rebuild when --compiler changes: https://issues.dlang.org/show_bug.cgi?id=15031 */
res = execute([rdmdApp, compilerSwitch, forceSrc]);
assert(res.status == 0, res.output);
assert(!res.output.canFind("compile_force_src"));
auto fullCompilerPath = environment["PATH"]
.splitter(pathSeparator)
.map!(dir => dir.buildPath(compiler ~ binExt))
.filter!exists
.front;
res = execute([rdmdApp, "--compiler=" ~ fullCompilerPath, forceSrc]);
assert(res.status == 0, res.output ~ "\nCan't run with --compiler=" ~ fullCompilerPath);
assert(res.output.canFind("compile_force_src"));
/* tmpdir */
res = execute([rdmdApp, compilerSwitch, forceSrc, "--build-only"]);
assert(res.status == 0, res.output);
auto tmpdir = "rdmdTest";
if (exists(tmpdir)) rmdirRecurse(tmpdir);
mkdir(tmpdir);
scope(exit)
{
import core.thread;
Thread.sleep(100.msecs); // Hack around Windows locking the directory
rmdirRecurse(tmpdir);
}
res = execute([rdmdApp, compilerSwitch, "--tmpdir=" ~ tmpdir, forceSrc, "--build-only"]);
assert(res.status == 0, res.output);
assert(res.output.canFind("compile_force_src"));
}
void runConcurrencyTest()
{
string sleep100 = tempDir().buildPath("delay_.d");
std.file.write(sleep100, "void main() { import core.thread; Thread.sleep(100.msecs); }");
auto argsVariants =
[
[rdmdApp, compilerSwitch, sleep100],
[rdmdApp, compilerSwitch, "--force", sleep100],
];
import std.parallelism, std.range, std.random;
foreach (rnd; rndGen.parallel(1))
{
try
{
auto args = argsVariants[rnd % $];
auto res = execute(args);
assert(res.status == 0, res.output);
}
catch (Exception e)
{
import std.stdio;
writeln(e);
break;
}
}
}
|
D
|
module Dgame.Window.VideoMode;
private {
debug import std.stdio;
import derelict.sdl2.sdl;
}
/**
* The VideoMode struct contains informations about the current window video mode.
* It is passed to Window which extract the informations and use them to build a window context.
*
* Author: rschuett
*/
struct VideoMode {
public:
ushort width; /** The width of this video mode */
ushort height; /** The height of this video mode */
ubyte refreshRate; /** The refresh rate of this video mode */
public:
/**
* CTor
*/
this(uint width, uint height, uint hz = 0) {
this.width = cast(ushort) width;
this.height = cast(ushort) height;
this.refreshRate = cast(ubyte) hz;
}
/**
* Returns: if the this video mode is valid which means, if it is listed from the OS
*/
bool isValid(ubyte display = 1) const {
foreach (ref const VideoMode vm; VideoMode.listModes(display)) {
if (vm == this)
return true;
}
return false;
}
/**
* opEquals
*/
bool opEquals(ref const VideoMode vm) const pure nothrow {
return vm.width == this.width && vm.height == this.height;
}
/**
* Returns: the desktop video mode
*/
static VideoMode getDesktopMode(ubyte display = 1) {
SDL_DisplayMode mode;
int result = SDL_GetDesktopDisplayMode(display, &mode);
return VideoMode(mode.w, mode.h, mode.refresh_rate);
}
/**
* Returns: the video mode on the given index
*/
static VideoMode getMode(uint index, ubyte display = 1) {
SDL_DisplayMode mode;
int result = SDL_GetDisplayMode(display, index, &mode);
return VideoMode(mode.w, mode.h, mode.refresh_rate);
}
/**
* Returns: A List of all valid supported video modes
*/
static VideoMode[] listModes(ubyte display = 1) {
VideoMode[] displayModes;
for (int i = 0; i < VideoMode.countModes(); ++i) {
VideoMode vm = VideoMode.getMode(i, display);
displayModes ~= vm;
}
return displayModes;
}
/**
* Returns: how much valid video modes are supported
*/
static int countModes(ubyte display = 1) {
return SDL_GetNumDisplayModes(display);
}
}
|
D
|
/**
This is an interface to the libcurl library.
Converted to D from curl headers by $(LINK2 http://www.digitalmars.com/d/2.0/htod.html, htod) and
cleaned up by Jonas Drewsen (jdrewsen)
*/
/* **************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*/
/**
* Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at $(LINK http://curl.haxx.se/docs/copyright.html).
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
module etc.c.curl;
pragma(lib, "curl");
import core.stdc.time;
import core.stdc.config;
import std.socket;
// linux
import core.sys.posix.sys.socket;
//
// LICENSE FROM CURL HEADERS
//
/** This is the global package copyright */
enum LIBCURL_COPYRIGHT = "1996 - 2010 Daniel Stenberg, <daniel@haxx.se>.";
/** This is the version number of the libcurl package from which this header
file origins: */
enum LIBCURL_VERSION = "7.21.4";
/** The numeric version number is also available "in parts" by using these
constants */
enum LIBCURL_VERSION_MAJOR = 7;
/// ditto
enum LIBCURL_VERSION_MINOR = 21;
/// ditto
enum LIBCURL_VERSION_PATCH = 4;
/** This is the numeric version of the libcurl version number, meant for easier
parsing and comparions by programs. The LIBCURL_VERSION_NUM define will
always follow this syntax:
0xXXYYZZ
Where XX, YY and ZZ are the main version, release and patch numbers in
hexadecimal (using 8 bits each). All three numbers are always represented
using two digits. 1.2 would appear as "0x010200" while version 9.11.7
appears as "0x090b07".
This 6-digit (24 bits) hexadecimal number does not show pre-release number,
and it is always a greater number in a more recent release. It makes
comparisons with greater than and less than work.
*/
enum LIBCURL_VERSION_NUM = 0x071504;
/**
* This is the date and time when the full source package was created. The
* timestamp is not stored in git, as the timestamp is properly set in the
* tarballs by the maketgz script.
*
* The format of the date should follow this template:
*
* "Mon Feb 12 11:35:33 UTC 2007"
*/
enum LIBCURL_TIMESTAMP = "Thu Feb 17 12:19:40 UTC 2011";
/** Data type definition of curl_off_t. */
/// jdrewsen - Always 64bit signed and that is what long is in D.
/// Comment below is from curlbuild.h:
/**
* NOTE 2:
*
* For any given platform/compiler curl_off_t must be typedef'ed to a
* 64-bit wide signed integral data type. The width of this data type
* must remain constant and independent of any possible large file
* support settings.
*
* As an exception to the above, curl_off_t shall be typedef'ed to a
* 32-bit wide signed integral data type if there is no 64-bit type.
*/
alias long curl_off_t;
///
alias void CURL;
/// jdrewsen - Get socket alias from std.socket
alias socket_t curl_socket_t;
/// jdrewsen - Would like to get socket error constant from std.socket by it is private atm.
version(Windows) {
private import std.c.windows.windows, std.c.windows.winsock;
enum CURL_SOCKET_BAD = SOCKET_ERROR;
}
version(Posix) enum CURL_SOCKET_BAD = -1;
///
extern (C) struct curl_httppost
{
curl_httppost *next; /** next entry in the list */
char *name; /** pointer to allocated name */
c_long namelength; /** length of name length */
char *contents; /** pointer to allocated data contents */
c_long contentslength; /** length of contents field */
char *buffer; /** pointer to allocated buffer contents */
c_long bufferlength; /** length of buffer field */
char *contenttype; /** Content-Type */
curl_slist *contentheader; /** list of extra headers for this form */
curl_httppost *more; /** if one field name has more than one
file, this link should link to following
files */
c_long flags; /** as defined below */
char *showfilename; /** The file name to show. If not set, the
actual file name will be used (if this
is a file part) */
void *userp; /** custom pointer used for
HTTPPOST_CALLBACK posts */
}
enum HTTPPOST_FILENAME = 1; /** specified content is a file name */
enum HTTPPOST_READFILE = 2; /** specified content is a file name */
enum HTTPPOST_PTRNAME = 4; /** name is only stored pointer
do not free in formfree */
enum HTTPPOST_PTRCONTENTS = 8; /** contents is only stored pointer
do not free in formfree */
enum HTTPPOST_BUFFER = 16; /** upload file from buffer */
enum HTTPPOST_PTRBUFFER = 32; /** upload file from pointer contents */
enum HTTPPOST_CALLBACK = 64; /** upload file contents by using the
regular read callback to get the data
and pass the given pointer as custom
pointer */
///
alias int function(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow) curl_progress_callback;
/** Tests have proven that 20K is a very bad buffer size for uploads on
Windows, while 16K for some odd reason performed a lot better.
We do the ifndef check to allow this value to easier be changed at build
time for those who feel adventurous. The practical minimum is about
400 bytes since libcurl uses a buffer of this size as a scratch area
(unrelated to network send operations). */
enum CURL_MAX_WRITE_SIZE = 16384;
/** The only reason to have a max limit for this is to avoid the risk of a bad
server feeding libcurl with a never-ending header that will cause reallocs
infinitely */
enum CURL_MAX_HTTP_HEADER = (100*1024);
/** This is a magic return code for the write callback that, when returned,
will signal libcurl to pause receiving on the current transfer. */
enum CURL_WRITEFUNC_PAUSE = 0x10000001;
///
alias size_t function(char *buffer, size_t size, size_t nitems, void *outstream)curl_write_callback;
/** enumeration of file types */
enum CurlFileType {
file, ///
directory, ///
symlink, ///
device_block, ///
device_char, ///
namedpipe, ///
socket, ///
door, ///
unknown /** is possible only on Sun Solaris now */
}
///
alias int curlfiletype;
///
enum CurlFInfoFlagKnown {
filename = 1, ///
filetype = 2, ///
time = 4, ///
perm = 8, ///
uid = 16, ///
gid = 32, ///
size = 64, ///
hlinkcount = 128 ///
}
/** Content of this structure depends on information which is known and is
achievable (e.g. by FTP LIST parsing). Please see the url_easy_setopt(3) man
page for callbacks returning this structure -- some fields are mandatory,
some others are optional. The FLAG field has special meaning. */
/** If some of these fields is not NULL, it is a pointer to b_data. */
extern (C) struct _N2
{
char *time; ///
char *perm; ///
char *user; ///
char *group; ///
char *target; /** pointer to the target filename of a symlink */
}
/** Content of this structure depends on information which is known and is
achievable (e.g. by FTP LIST parsing). Please see the url_easy_setopt(3) man
page for callbacks returning this structure -- some fields are mandatory,
some others are optional. The FLAG field has special meaning. */
extern (C) struct curl_fileinfo
{
char *filename; ///
curlfiletype filetype; ///
time_t time; ///
uint perm; ///
int uid; ///
int gid; ///
curl_off_t size; ///
c_long hardlinks; ///
_N2 strings; ///
uint flags; ///
char *b_data; ///
size_t b_size; ///
size_t b_used; ///
}
/** return codes for CURLOPT_CHUNK_BGN_FUNCTION */
enum CurlChunkBgnFunc {
ok = 0, ///
fail = 1, /** tell the lib to end the task */
skip = 2 /** skip this chunk over */
}
/** if splitting of data transfer is enabled, this callback is called before
download of an individual chunk started. Note that parameter "remains" works
only for FTP wildcard downloading (for now), otherwise is not used */
alias c_long function(void *transfer_info, void *ptr, int remains)curl_chunk_bgn_callback;
/** return codes for CURLOPT_CHUNK_END_FUNCTION */
enum CurlChunkEndFunc {
ok = 0, ///
fail = 1, ///
}
/** If splitting of data transfer is enabled this callback is called after
download of an individual chunk finished.
Note! After this callback was set then it have to be called FOR ALL chunks.
Even if downloading of this chunk was skipped in CHUNK_BGN_FUNC.
This is the reason why we don't need "transfer_info" parameter in this
callback and we are not interested in "remains" parameter too. */
alias c_long function(void *ptr)curl_chunk_end_callback;
/** return codes for FNMATCHFUNCTION */
enum CurlFnMAtchFunc {
match = 0, ///
nomatch = 1, ///
fail = 2 ///
}
/** callback type for wildcard downloading pattern matching. If the
string matches the pattern, return CURL_FNMATCHFUNC_MATCH value, etc. */
alias int function(void *ptr, char *pattern, char *string)curl_fnmatch_callback;
/// seek whence...
enum CurlSeekPos {
set, ///
current, ///
end ///
}
/** These are the return codes for the seek callbacks */
enum CurlSeek {
ok, ///
fail, /** fail the entire transfer */
cantseek /** tell libcurl seeking can't be done, so
libcurl might try other means instead */
}
///
alias int function(void *instream, curl_off_t offset, int origin)curl_seek_callback;
///
enum CurlReadFunc {
/** This is a return code for the read callback that, when returned, will
signal libcurl to immediately abort the current transfer. */
abort = 0x10000000,
/** This is a return code for the read callback that, when returned,
will const signal libcurl to pause sending data on the current
transfer. */
pause = 0x10000001
}
///
alias size_t function(char *buffer, size_t size, size_t nitems, void *instream)curl_read_callback;
///
enum CurlSockType {
ipcxn, /** socket created for a specific IP connection */
last /** never use */
}
///
alias int curlsocktype;
///
alias int function(void *clientp, curl_socket_t curlfd, curlsocktype purpose)curl_sockopt_callback;
/** addrlen was a socklen_t type before 7.18.0 but it turned really
ugly and painful on the systems that lack this type */
extern (C) struct curl_sockaddr
{
int family; ///
int socktype; ///
int protocol; ///
uint addrlen; /** addrlen was a socklen_t type before 7.18.0 but it
turned really ugly and painful on the systems that
lack this type */
sockaddr addr; ///
}
///
alias curl_socket_t function(void *clientp, curlsocktype purpose, curl_sockaddr *address)curl_opensocket_callback;
///
enum CurlIoError
{
ok, /** I/O operation successful */
unknowncmd, /** command was unknown to callback */
failrestart, /** failed to restart the read */
last /** never use */
}
///
alias int curlioerr;
///
enum CurlIoCmd {
nop, /** command was unknown to callback */
restartread, /** failed to restart the read */
last, /** never use */
}
///
alias int curliocmd;
///
alias curlioerr function(CURL *handle, int cmd, void *clientp)curl_ioctl_callback;
/**
* The following typedef's are signatures of malloc, free, realloc, strdup and
* calloc respectively. Function pointers of these types can be passed to the
* curl_global_init_mem() function to set user defined memory management
* callback routines.
*/
alias void * function(size_t size)curl_malloc_callback;
/// ditto
alias void function(void *ptr)curl_free_callback;
/// ditto
alias void * function(void *ptr, size_t size)curl_realloc_callback;
/// ditto
alias char * function(char *str)curl_strdup_callback;
/// ditto
alias void * function(size_t nmemb, size_t size)curl_calloc_callback;
/** the kind of data that is passed to information_callback*/
enum CurlCallbackInfo {
text, ///
header_in, ///
header_out, ///
data_in, ///
data_out, ///
ssl_data_in, ///
ssl_data_out, ///
end ///
}
///
alias int curl_infotype;
///
alias int function(CURL *handle, /** the handle/transfer this concerns */
curl_infotype type, /** what kind of data */
char *data, /** points to the data */
size_t size, /** size of the data pointed to */
void *userptr /** whatever the user please */
)curl_debug_callback;
/** All possible error codes from all sorts of curl functions. Future versions
may return other values, stay prepared.
Always add new return codes last. Never *EVER* remove any. The return
codes must remain the same!
*/
enum CurlError
{
ok, ///
unsupported_protocol, /** 1 */
failed_init, /** 2 */
url_malformat, /** 3 */
obsolete4, /** 4 - NOT USED */
couldnt_resolve_proxy, /** 5 */
couldnt_resolve_host, /** 6 */
couldnt_connect, /** 7 */
ftp_weird_server_reply, /** 8 */
remote_access_denied, /** 9 a service was denied by the server
due to lack of access - when login fails
this is not returned. */
obsolete10, /** 10 - NOT USED */
ftp_weird_pass_reply, /** 11 */
obsolete12, /** 12 - NOT USED */
ftp_weird_pasv_reply, /** 13 */
ftp_weird_227_format, /** 14 */
ftp_cant_get_host, /** 15 */
obsolete16, /** 16 - NOT USED */
ftp_couldnt_set_type, /** 17 */
partial_file, /** 18 */
ftp_couldnt_retr_file, /** 19 */
obsolete20, /** 20 - NOT USED */
quote_error, /** 21 - quote command failure */
http_returned_error, /** 22 */
write_error, /** 23 */
obsolete24, /** 24 - NOT USED */
upload_failed, /** 25 - failed upload "command" */
read_error, /** 26 - couldn't open/read from file */
out_of_memory, /** 27 */
/** Note: CURLE_OUT_OF_MEMORY may sometimes indicate a conversion error
instead of a memory allocation error if CURL_DOES_CONVERSIONS
is defined
*/
operation_timedout, /** 28 - the timeout time was reached */
obsolete29, /** 29 - NOT USED */
ftp_port_failed, /** 30 - FTP PORT operation failed */
ftp_couldnt_use_rest, /** 31 - the REST command failed */
obsolete32, /** 32 - NOT USED */
range_error, /** 33 - RANGE "command" didn't work */
http_post_error, /** 34 */
ssl_connect_error, /** 35 - wrong when connecting with SSL */
bad_download_resume, /** 36 - couldn't resume download */
file_couldnt_read_file, /** 37 */
ldap_cannot_bind, /** 38 */
ldap_search_failed, /** 39 */
obsolete40, /** 40 - NOT USED */
function_not_found, /** 41 */
aborted_by_callback, /** 42 */
bad_function_argument, /** 43 */
obsolete44, /** 44 - NOT USED */
interface_failed, /** 45 - CURLOPT_INTERFACE failed */
obsolete46, /** 46 - NOT USED */
too_many_redirects, /** 47 - catch endless re-direct loops */
unknown_telnet_option, /** 48 - User specified an unknown option */
telnet_option_syntax, /** 49 - Malformed telnet option */
obsolete50, /** 50 - NOT USED */
peer_failed_verification, /** 51 - peer's certificate or fingerprint
wasn't verified fine */
got_nothing, /** 52 - when this is a specific error */
ssl_engine_notfound, /** 53 - SSL crypto engine not found */
ssl_engine_setfailed, /** 54 - can not set SSL crypto engine as default */
send_error, /** 55 - failed sending network data */
recv_error, /** 56 - failure in receiving network data */
obsolete57, /** 57 - NOT IN USE */
ssl_certproblem, /** 58 - problem with the local certificate */
ssl_cipher, /** 59 - couldn't use specified cipher */
ssl_cacert, /** 60 - problem with the CA cert (path?) */
bad_content_encoding, /** 61 - Unrecognized transfer encoding */
ldap_invalid_url, /** 62 - Invalid LDAP URL */
filesize_exceeded, /** 63 - Maximum file size exceeded */
use_ssl_failed, /** 64 - Requested FTP SSL level failed */
send_fail_rewind, /** 65 - Sending the data requires a rewind that failed */
ssl_engine_initfailed, /** 66 - failed to initialise ENGINE */
login_denied, /** 67 - user, password or similar was not accepted and we failed to login */
tftp_notfound, /** 68 - file not found on server */
tftp_perm, /** 69 - permission problem on server */
remote_disk_full, /** 70 - out of disk space on server */
tftp_illegal, /** 71 - Illegal TFTP operation */
tftp_unknownid, /** 72 - Unknown transfer ID */
remote_file_exists, /** 73 - File already exists */
tftp_nosuchuser, /** 74 - No such user */
conv_failed, /** 75 - conversion failed */
conv_reqd, /** 76 - caller must register conversion
callbacks using curl_easy_setopt options
CURLOPT_CONV_FROM_NETWORK_FUNCTION,
CURLOPT_CONV_TO_NETWORK_FUNCTION, and
CURLOPT_CONV_FROM_UTF8_FUNCTION */
ssl_cacert_badfile, /** 77 - could not load CACERT file, missing or wrong format */
remote_file_not_found, /** 78 - remote file not found */
ssh, /** 79 - error from the SSH layer, somewhat
generic so the error message will be of
interest when this has happened */
ssl_shutdown_failed, /** 80 - Failed to shut down the SSL connection */
again, /** 81 - socket is not ready for send/recv,
wait till it's ready and try again (Added
in 7.18.2) */
ssl_crl_badfile, /** 82 - could not load CRL file, missing or wrong format (Added in 7.19.0) */
ssl_issuer_error, /** 83 - Issuer check failed. (Added in 7.19.0) */
ftp_pret_failed, /** 84 - a PRET command failed */
rtsp_cseq_error, /** 85 - mismatch of RTSP CSeq numbers */
rtsp_session_error, /** 86 - mismatch of RTSP Session Identifiers */
ftp_bad_file_list, /** 87 - unable to parse FTP file list */
chunk_failed, /** 88 - chunk callback reported error */
curl_last /** never use! */
}
///
alias int CURLcode;
/** This prototype applies to all conversion callbacks */
alias CURLcode function(char *buffer, size_t length)curl_conv_callback;
/** actually an OpenSSL SSL_CTX */
alias CURLcode function(CURL *curl, /** easy handle */
void *ssl_ctx, /** actually an
OpenSSL SSL_CTX */
void *userptr
)curl_ssl_ctx_callback;
///
enum CurlProxy {
http, /** added in 7.10, new in 7.19.4 default is to use CONNECT HTTP/1.1 */
http_1_0, /** added in 7.19.4, force to use CONNECT HTTP/1.0 */
socks4 = 4, /** support added in 7.15.2, enum existed already in 7.10 */
socks5 = 5, /** added in 7.10 */
socks4a = 6, /** added in 7.18.0 */
socks5_hostname =7 /** Use the SOCKS5 protocol but pass along the
host name rather than the IP address. added
in 7.18.0 */
}
///
alias int curl_proxytype;
///
enum CurlAuth : long {
none = 0,
basic = 1, /** Basic (default) */
digest = 2, /** Digest */
gssnegotiate = 4, /** GSS-Negotiate */
ntlm = 8, /** NTLM */
digest_ie = 16, /** Digest with IE flavour */
only = 2147483648, /** used together with a single other
type to force no auth or just that
single type */
any = -17, /* (~CURLAUTH_DIGEST_IE) */ /** all fine types set */
anysafe = -18 /* (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE)) */ ///
}
///
enum CurlSshAuth {
any = -1, /** all types supported by the server */
none = 0, /** none allowed, silly but complete */
publickey = 1, /** public/private key files */
password = 2, /** password */
host = 4, /** host key files */
keyboard = 8, /** keyboard interactive */
default_ = -1 // CURLSSH_AUTH_ANY;
}
///
enum CURL_ERROR_SIZE = 256;
/** points to a zero-terminated string encoded with base64
if len is zero, otherwise to the "raw" data */
enum CurlKHType
{
unknown, ///
rsa1, ///
rsa, ///
dss ///
}
///
extern (C) struct curl_khkey
{
char *key; /** points to a zero-terminated string encoded with base64
if len is zero, otherwise to the "raw" data */
size_t len; ///
CurlKHType keytype; ///
}
/** this is the set of return values expected from the curl_sshkeycallback
callback */
enum CurlKHStat {
fine_add_to_file, ///
fine, ///
reject, /** reject the connection, return an error */
defer, /** do not accept it, but we can't answer right now so
this causes a CURLE_DEFER error but otherwise the
connection will be left intact etc */
last /** not for use, only a marker for last-in-list */
}
/** this is the set of status codes pass in to the callback */
enum CurlKHMatch {
ok, /** match */
mismatch, /** host found, key mismatch! */
missing, /** no matching host/key found */
last /** not for use, only a marker for last-in-list */
}
///
alias int function(CURL *easy, /** easy handle */
curl_khkey *knownkey, /** known */
curl_khkey *foundkey, /** found */
CurlKHMatch m, /** libcurl's view on the keys */
void *clientp /** custom pointer passed from app */
)curl_sshkeycallback;
/** parameter for the CURLOPT_USE_SSL option */
enum CurlUseSSL {
none, /** do not attempt to use SSL */
tryssl, /** try using SSL, proceed anyway otherwise */
control, /** SSL for the control connection or fail */
all, /** SSL for all communication or fail */
last /** not an option, never use */
}
///
alias int curl_usessl;
/** parameter for the CURLOPT_FTP_SSL_CCC option */
enum CurlFtpSSL {
ccc_none, /** do not send CCC */
ccc_passive, /** Let the server initiate the shutdown */
ccc_active, /** Initiate the shutdown */
ccc_last /** not an option, never use */
}
///
alias int curl_ftpccc;
/** parameter for the CURLOPT_FTPSSLAUTH option */
enum CurlFtpAuth {
defaultauth, /** let libcurl decide */
ssl, /** use "AUTH SSL" */
tls, /** use "AUTH TLS" */
last /** not an option, never use */
}
///
alias int curl_ftpauth;
/** parameter for the CURLOPT_FTP_CREATE_MISSING_DIRS option */
enum CurlFtp {
create_dir_none, /** do NOT create missing dirs! */
create_dir, /** (FTP/SFTP) if CWD fails, try MKD and then CWD again if MKD
succeeded, for SFTP this does similar magic */
create_dir_retry, /** (FTP only) if CWD fails, try MKD and then CWD again even if MKD
failed! */
create_dir_last /** not an option, never use */
}
///
alias int curl_ftpcreatedir;
/** parameter for the CURLOPT_FTP_FILEMETHOD option */
enum CurlFtpMethod {
defaultmethod, /** let libcurl pick */
multicwd, /** single CWD operation for each path part */
nocwd, /** no CWD at all */
singlecwd, /** one CWD to full dir, then work on file */
last /** not an option, never use */
}
///
alias int curl_ftpmethod;
/** CURLPROTO_ defines are for the CURLOPT_*PROTOCOLS options */
enum CurlProto {
http = 1, ///
https = 2, ///
ftp = 4, ///
ftps = 8, ///
scp = 16, ///
sftp = 32, ///
telnet = 64, ///
ldap = 128, ///
ldaps = 256, ///
dict = 512, ///
file = 1024, ///
tftp = 2048, ///
imap = 4096, ///
imaps = 8192, ///
pop3 = 16384, ///
pop3s = 32768, ///
smtp = 65536, ///
smtps = 131072, ///
rtsp = 262144, ///
rtmp = 524288, ///
rtmpt = 1048576, ///
rtmpe = 2097152, ///
rtmpte = 4194304, ///
rtmps = 8388608, ///
rtmpts = 16777216, ///
gopher = 33554432, ///
all = -1 /** enable everything */
}
/** long may be 32 or 64 bits, but we should never depend on anything else
but 32 */
enum CURLOPTTYPE_LONG = 0;
/// ditto
enum CURLOPTTYPE_OBJECTPOINT = 10000;
/// ditto
enum CURLOPTTYPE_FUNCTIONPOINT = 20000;
/// ditto
enum CURLOPTTYPE_OFF_T = 30000;
/** name is uppercase CURLOPT_<name>,
type is one of the defined CURLOPTTYPE_<type>
number is unique identifier */
/** The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
alias CURLOPTTYPE_LONG LONG;
/// ditto
alias CURLOPTTYPE_OBJECTPOINT OBJECTPOINT;
/// ditto
alias CURLOPTTYPE_FUNCTIONPOINT FUNCTIONPOINT;
/// ditto
alias CURLOPTTYPE_OFF_T OFF_T;
///
enum CurlOption {
/** This is the FILE * or void * the regular output should be written to. */
file = 10001,
/** The full URL to get/put */
url,
/** Port number to connect to, if other than default. */
port = 3,
/** Name of proxy to use. */
proxy = 10004,
/** "name:password" to use when fetching. */
userpwd,
/** "name:password" to use with proxy. */
proxyuserpwd,
/** Range to get, specified as an ASCII string. */
range,
/** not used */
/** Specified file stream to upload from (use as input): */
infile = 10009,
/** Buffer to receive error messages in, must be at least CURL_ERROR_SIZE
* bytes big. If this is not used, error messages go to stderr instead: */
errorbuffer,
/** Function that will be called to store the output (instead of fwrite). The
* parameters will use fwrite() syntax, make sure to follow them. */
writefunction = 20011,
/** Function that will be called to read the input (instead of fread). The
* parameters will use fread() syntax, make sure to follow them. */
readfunction,
/** Time-out the read operation after this amount of seconds */
timeout = 13,
/** If the CURLOPT_INFILE is used, this can be used to inform libcurl about
* how large the file being sent really is. That allows better error
* checking and better verifies that the upload was successful. -1 means
* unknown size.
*
* For large file support, there is also a _LARGE version of the key
* which takes an off_t type, allowing platforms with larger off_t
* sizes to handle larger files. See below for INFILESIZE_LARGE.
*/
infilesize,
/** POST static input fields. */
postfields = 10015,
/** Set the referrer page (needed by some CGIs) */
referer,
/** Set the FTP PORT string (interface name, named or numerical IP address)
Use i.e '-' to use default address. */
ftpport,
/** Set the User-Agent string (examined by some CGIs) */
useragent,
/** If the download receives less than "low speed limit" bytes/second
* during "low speed time" seconds, the operations is aborted.
* You could i.e if you have a pretty high speed connection, abort if
* it is less than 2000 bytes/sec during 20 seconds.
*/
/** Set the "low speed limit" */
low_speed_limit = 19,
/** Set the "low speed time" */
low_speed_time,
/** Set the continuation offset.
*
* Note there is also a _LARGE version of this key which uses
* off_t types, allowing for large file offsets on platforms which
* use larger-than-32-bit off_t's. Look below for RESUME_FROM_LARGE.
*/
resume_from,
/** Set cookie in request: */
cookie = 10022,
/** This points to a linked list of headers, struct curl_slist kind */
httpheader,
/** This points to a linked list of post entries, struct curl_httppost */
httppost,
/** name of the file keeping your private SSL-certificate */
sslcert,
/** password for the SSL or SSH private key */
keypasswd,
/** send TYPE parameter? */
crlf = 27,
/** send linked-list of QUOTE commands */
quote = 10028,
/** send FILE * or void * to store headers to, if you use a callback it
is simply passed to the callback unmodified */
writeheader,
/** point to a file to read the initial cookies from, also enables
"cookie awareness" */
cookiefile = 10031,
/** What version to specifically try to use.
See CURL_SSLVERSION defines below. */
sslversion = 32,
/** What kind of HTTP time condition to use, see defines */
timecondition,
/** Time to use with the above condition. Specified in number of seconds
since 1 Jan 1970 */
timevalue,
/** 35 = OBSOLETE */
/** Custom request, for customizing the get command like
HTTP: DELETE, TRACE and others
FTP: to use a different list command
*/
customrequest = 10036,
/** HTTP request, for odd commands like DELETE, TRACE and others */
stderr,
/** 38 is not used */
/** send linked-list of post-transfer QUOTE commands */
postquote = 10039,
/** Pass a pointer to string of the output using full variable-replacement
as described elsewhere. */
writeinfo,
verbose = 41, /** talk a lot */
header, /** throw the header out too */
noprogress, /** shut off the progress meter */
nobody, /** use HEAD to get http document */
failonerror, /** no output on http error codes >= 300 */
upload, /** this is an upload */
post, /** HTTP POST method */
dirlistonly, /** return bare names when listing directories */
append = 50, /** Append instead of overwrite on upload! */
/** Specify whether to read the user+password from the .netrc or the URL.
* This must be one of the CURL_NETRC_* enums below. */
netrc,
followlocation, /** use Location: Luke! */
transfertext, /** transfer data in text/ASCII format */
put, /** HTTP PUT */
/** 55 = OBSOLETE */
/** Function that will be called instead of the internal progress display
* function. This function should be defined as the curl_progress_callback
* prototype defines. */
progressfunction = 20056,
/** Data passed to the progress callback */
progressdata = 10057,
/** We want the referrer field set automatically when following locations */
autoreferer = 58,
/** Port of the proxy, can be set in the proxy string as well with:
"[host]:[port]" */
proxyport,
/** size of the POST input data, if strlen() is not good to use */
postfieldsize,
/** tunnel non-http operations through a HTTP proxy */
httpproxytunnel,
/** Set the interface string to use as outgoing network interface */
intrface = 10062,
/** Set the krb4/5 security level, this also enables krb4/5 awareness. This
* is a string, 'clear', 'safe', 'confidential' or 'private'. If the string
* is set but doesn't match one of these, 'private' will be used. */
krblevel,
/** Set if we should verify the peer in ssl handshake, set 1 to verify. */
ssl_verifypeer = 64,
/** The CApath or CAfile used to validate the peer certificate
this option is used only if SSL_VERIFYPEER is true */
cainfo = 10065,
/** 66 = OBSOLETE */
/** 67 = OBSOLETE */
/** Maximum number of http redirects to follow */
maxredirs = 68,
/** Pass a long set to 1 to get the date of the requested document (if
possible)! Pass a zero to shut it off. */
filetime,
/** This points to a linked list of telnet options */
telnetoptions = 10070,
/** Max amount of cached alive connections */
maxconnects = 71,
/** What policy to use when closing connections when the cache is filled
up */
closepolicy,
/** 73 = OBSOLETE */
/** Set to explicitly use a new connection for the upcoming transfer.
Do not use this unless you're absolutely sure of this, as it makes the
operation slower and is less friendly for the network. */
fresh_connect = 74,
/** Set to explicitly forbid the upcoming transfer's connection to be re-used
when done. Do not use this unless you're absolutely sure of this, as it
makes the operation slower and is less friendly for the network. */
forbid_reuse,
/** Set to a file name that contains random data for libcurl to use to
seed the random engine when doing SSL connects. */
random_file = 10076,
/** Set to the Entropy Gathering Daemon socket pathname */
egdsocket,
/** Time-out connect operations after this amount of seconds, if connects
are OK within this time, then fine... This only aborts the connect
phase. [Only works on unix-style/SIGALRM operating systems] */
connecttimeout = 78,
/** Function that will be called to store headers (instead of fwrite). The
* parameters will use fwrite() syntax, make sure to follow them. */
headerfunction = 20079,
/** Set this to force the HTTP request to get back to GET. Only really usable
if POST, PUT or a custom request have been used first.
*/
httpget = 80,
/** Set if we should verify the Common name from the peer certificate in ssl
* handshake, set 1 to check existence, 2 to ensure that it matches the
* provided hostname. */
ssl_verifyhost,
/** Specify which file name to write all known cookies in after completed
operation. Set file name to "-" (dash) to make it go to stdout. */
cookiejar = 10082,
/** Specify which SSL ciphers to use */
ssl_cipher_list,
/** Specify which HTTP version to use! This must be set to one of the
CURL_HTTP_VERSION* enums set below. */
http_version = 84,
/** Specifically switch on or off the FTP engine's use of the EPSV command. By
default, that one will always be attempted before the more traditional
PASV command. */
ftp_use_epsv,
/** type of the file keeping your SSL-certificate ("DER", "PEM", "ENG") */
sslcerttype = 10086,
/** name of the file keeping your private SSL-key */
sslkey,
/** type of the file keeping your private SSL-key ("DER", "PEM", "ENG") */
sslkeytype,
/** crypto engine for the SSL-sub system */
sslengine,
/** set the crypto engine for the SSL-sub system as default
the param has no meaning...
*/
sslengine_default = 90,
/** Non-zero value means to use the global dns cache */
dns_use_global_cache,
/** DNS cache timeout */
dns_cache_timeout,
/** send linked-list of pre-transfer QUOTE commands */
prequote = 10093,
/** set the debug function */
debugfunction = 20094,
/** set the data for the debug function */
debugdata = 10095,
/** mark this as start of a cookie session */
cookiesession = 96,
/** The CApath directory used to validate the peer certificate
this option is used only if SSL_VERIFYPEER is true */
capath = 10097,
/** Instruct libcurl to use a smaller receive buffer */
buffersize = 98,
/** Instruct libcurl to not use any signal/alarm handlers, even when using
timeouts. This option is useful for multi-threaded applications.
See libcurl-the-guide for more background information. */
nosignal,
/** Provide a CURLShare for mutexing non-ts data */
share = 10100,
/** indicates type of proxy. accepted values are CURLPROXY_HTTP (default),
CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A and CURLPROXY_SOCKS5. */
proxytype = 101,
/** Set the Accept-Encoding string. Use this to tell a server you would like
the response to be compressed. */
encoding = 10102,
/** Set pointer to private data */
private_opt,
/** Set aliases for HTTP 200 in the HTTP Response header */
http200aliases,
/** Continue to send authentication (user+password) when following locations,
even when hostname changed. This can potentially send off the name
and password to whatever host the server decides. */
unrestricted_auth = 105,
/** Specifically switch on or off the FTP engine's use of the EPRT command ( it
also disables the LPRT attempt). By default, those ones will always be
attempted before the good old traditional PORT command. */
ftp_use_eprt,
/** Set this to a bitmask value to enable the particular authentications
methods you like. Use this in combination with CURLOPT_USERPWD.
Note that setting multiple bits may cause extra network round-trips. */
httpauth,
/** Set the ssl context callback function, currently only for OpenSSL ssl_ctx
in second argument. The function must be matching the
curl_ssl_ctx_callback proto. */
ssl_ctx_function = 20108,
/** Set the userdata for the ssl context callback function's third
argument */
ssl_ctx_data = 10109,
/** FTP Option that causes missing dirs to be created on the remote server.
In 7.19.4 we introduced the convenience enums for this option using the
CURLFTP_CREATE_DIR prefix.
*/
ftp_create_missing_dirs = 110,
/** Set this to a bitmask value to enable the particular authentications
methods you like. Use this in combination with CURLOPT_PROXYUSERPWD.
Note that setting multiple bits may cause extra network round-trips. */
proxyauth,
/** FTP option that changes the timeout, in seconds, associated with
getting a response. This is different from transfer timeout time and
essentially places a demand on the FTP server to acknowledge commands
in a timely manner. */
ftp_response_timeout,
/** Set this option to one of the CURL_IPRESOLVE_* defines (see below) to
tell libcurl to resolve names to those IP versions only. This only has
affect on systems with support for more than one, i.e IPv4 _and_ IPv6. */
ipresolve,
/** Set this option to limit the size of a file that will be downloaded from
an HTTP or FTP server.
Note there is also _LARGE version which adds large file support for
platforms which have larger off_t sizes. See MAXFILESIZE_LARGE below. */
maxfilesize,
/** See the comment for INFILESIZE above, but in short, specifies
* the size of the file being uploaded. -1 means unknown.
*/
infilesize_large = 30115,
/** Sets the continuation offset. There is also a LONG version of this;
* look above for RESUME_FROM.
*/
resume_from_large,
/** Sets the maximum size of data that will be downloaded from
* an HTTP or FTP server. See MAXFILESIZE above for the LONG version.
*/
maxfilesize_large,
/** Set this option to the file name of your .netrc file you want libcurl
to parse (using the CURLOPT_NETRC option). If not set, libcurl will do
a poor attempt to find the user's home directory and check for a .netrc
file in there. */
netrc_file = 10118,
/** Enable SSL/TLS for FTP, pick one of:
CURLFTPSSL_TRY - try using SSL, proceed anyway otherwise
CURLFTPSSL_CONTROL - SSL for the control connection or fail
CURLFTPSSL_ALL - SSL for all communication or fail
*/
use_ssl = 119,
/** The _LARGE version of the standard POSTFIELDSIZE option */
postfieldsize_large = 30120,
/** Enable/disable the TCP Nagle algorithm */
tcp_nodelay = 121,
/** 122 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */
/** 123 OBSOLETE. Gone in 7.16.0 */
/** 124 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */
/** 125 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */
/** 126 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */
/** 127 OBSOLETE. Gone in 7.16.0 */
/** 128 OBSOLETE. Gone in 7.16.0 */
/** When FTP over SSL/TLS is selected (with CURLOPT_USE_SSL), this option
can be used to change libcurl's default action which is to first try
"AUTH SSL" and then "AUTH TLS" in this order, and proceed when a OK
response has been received.
Available parameters are:
CURLFTPAUTH_DEFAULT - let libcurl decide
CURLFTPAUTH_SSL - try "AUTH SSL" first, then TLS
CURLFTPAUTH_TLS - try "AUTH TLS" first, then SSL
*/
ftpsslauth = 129,
ioctlfunction = 20130, ///
ioctldata = 10131, ///
/** 132 OBSOLETE. Gone in 7.16.0 */
/** 133 OBSOLETE. Gone in 7.16.0 */
/** zero terminated string for pass on to the FTP server when asked for
"account" info */
ftp_account = 10134,
/** feed cookies into cookie engine */
cookielist,
/** ignore Content-Length */
ignore_content_length = 136,
/** Set to non-zero to skip the IP address received in a 227 PASV FTP server
response. Typically used for FTP-SSL purposes but is not restricted to
that. libcurl will then instead use the same IP address it used for the
control connection. */
ftp_skip_pasv_ip,
/** Select "file method" to use when doing FTP, see the curl_ftpmethod
above. */
ftp_filemethod,
/** Local port number to bind the socket to */
localport,
/** Number of ports to try, including the first one set with LOCALPORT.
Thus, setting it to 1 will make no additional attempts but the first.
*/
localportrange,
/** no transfer, set up connection and let application use the socket by
extracting it with CURLINFO_LASTSOCKET */
connect_only,
/** Function that will be called to convert from the
network encoding (instead of using the iconv calls in libcurl) */
conv_from_network_function = 20142,
/** Function that will be called to convert to the
network encoding (instead of using the iconv calls in libcurl) */
conv_to_network_function,
/** Function that will be called to convert from UTF8
(instead of using the iconv calls in libcurl)
Note that this is used only for SSL certificate processing */
conv_from_utf8_function,
/** if the connection proceeds too quickly then need to slow it down */
/** limit-rate: maximum number of bytes per second to send or receive */
max_send_speed_large = 30145,
max_recv_speed_large, /// ditto
/** Pointer to command string to send if USER/PASS fails. */
ftp_alternative_to_user = 10147,
/** callback function for setting socket options */
sockoptfunction = 20148,
sockoptdata = 10149,
/** set to 0 to disable session ID re-use for this transfer, default is
enabled (== 1) */
ssl_sessionid_cache = 150,
/** allowed SSH authentication methods */
ssh_auth_types,
/** Used by scp/sftp to do public/private key authentication */
ssh_public_keyfile = 10152,
ssh_private_keyfile,
/** Send CCC (Clear Command Channel) after authentication */
ftp_ssl_ccc = 154,
/** Same as TIMEOUT and CONNECTTIMEOUT, but with ms resolution */
timeout_ms,
connecttimeout_ms,
/** set to zero to disable the libcurl's decoding and thus pass the raw body
data to the application even when it is encoded/compressed */
http_transfer_decoding,
http_content_decoding, /// ditto
/** Permission used when creating new files and directories on the remote
server for protocols that support it, SFTP/SCP/FILE */
new_file_perms,
new_directory_perms, /// ditto
/** Set the behaviour of POST when redirecting. Values must be set to one
of CURL_REDIR* defines below. This used to be called CURLOPT_POST301 */
postredir,
/** used by scp/sftp to verify the host's public key */
ssh_host_public_key_md5 = 10162,
/** Callback function for opening socket (instead of socket(2)). Optionally,
callback is able change the address or refuse to connect returning
CURL_SOCKET_BAD. The callback should have type
curl_opensocket_callback */
opensocketfunction = 20163,
opensocketdata = 10164, /// ditto
/** POST volatile input fields. */
copypostfields,
/** set transfer mode (;type=<a|i>) when doing FTP via an HTTP proxy */
proxy_transfer_mode = 166,
/** Callback function for seeking in the input stream */
seekfunction = 20167,
seekdata = 10168, /// ditto
/** CRL file */
crlfile,
/** Issuer certificate */
issuercert,
/** (IPv6) Address scope */
address_scope = 171,
/** Collect certificate chain info and allow it to get retrievable with
CURLINFO_CERTINFO after the transfer is complete. (Unfortunately) only
working with OpenSSL-powered builds. */
certinfo,
/** "name" and "pwd" to use when fetching. */
username = 10173,
password, /// ditto
/** "name" and "pwd" to use with Proxy when fetching. */
proxyusername,
proxypassword, /// ditto
/** Comma separated list of hostnames defining no-proxy zones. These should
match both hostnames directly, and hostnames within a domain. For
example, local.com will match local.com and www.local.com, but NOT
notlocal.com or www.notlocal.com. For compatibility with other
implementations of this, .local.com will be considered to be the same as
local.com. A single * is the only valid wildcard, and effectively
disables the use of proxy. */
noproxy,
/** block size for TFTP transfers */
tftp_blksize = 178,
/** Socks Service */
socks5_gssapi_service = 10179,
/** Socks Service */
socks5_gssapi_nec = 180,
/** set the bitmask for the protocols that are allowed to be used for the
transfer, which thus helps the app which takes URLs from users or other
external inputs and want to restrict what protocol(s) to deal
with. Defaults to CURLPROTO_ALL. */
protocols,
/** set the bitmask for the protocols that libcurl is allowed to follow to,
as a subset of the CURLOPT_PROTOCOLS ones. That means the protocol needs
to be set in both bitmasks to be allowed to get redirected to. Defaults
to all protocols except FILE and SCP. */
redir_protocols,
/** set the SSH knownhost file name to use */
ssh_knownhosts = 10183,
/** set the SSH host key callback, must point to a curl_sshkeycallback
function */
ssh_keyfunction = 20184,
/** set the SSH host key callback custom pointer */
ssh_keydata = 10185,
/** set the SMTP mail originator */
mail_from,
/** set the SMTP mail receiver(s) */
mail_rcpt,
/** FTP: send PRET before PASV */
ftp_use_pret = 188,
/** RTSP request method (OPTIONS, SETUP, PLAY, etc...) */
rtsp_request,
/** The RTSP session identifier */
rtsp_session_id = 10190,
/** The RTSP stream URI */
rtsp_stream_uri,
/** The Transport: header to use in RTSP requests */
rtsp_transport,
/** Manually initialize the client RTSP CSeq for this handle */
rtsp_client_cseq = 193,
/** Manually initialize the server RTSP CSeq for this handle */
rtsp_server_cseq,
/** The stream to pass to INTERLEAVEFUNCTION. */
interleavedata = 10195,
/** Let the application define a custom write method for RTP data */
interleavefunction = 20196,
/** Turn on wildcard matching */
wildcardmatch = 197,
/** Directory matching callback called before downloading of an
individual file (chunk) started */
chunk_bgn_function = 20198,
/** Directory matching callback called after the file (chunk)
was downloaded, or skipped */
chunk_end_function,
/** Change match (fnmatch-like) callback for wildcard matching */
fnmatch_function,
/** Let the application define custom chunk data pointer */
chunk_data = 10201,
/** FNMATCH_FUNCTION user pointer */
fnmatch_data,
/** send linked-list of name:port:address sets */
resolve,
/** Set a username for authenticated TLS */
tlsauth_username,
/** Set a password for authenticated TLS */
tlsauth_password,
/** Set authentication type for authenticated TLS */
tlsauth_type,
/** the last unused */
lastentry
}
///
alias int CURLoption;
///
enum CURLOPT_SERVER_RESPONSE_TIMEOUT = CurlOption.ftp_response_timeout;
/** Below here follows defines for the CURLOPT_IPRESOLVE option. If a host
name resolves addresses using more than one IP protocol version, this
option might be handy to force libcurl to use a specific IP version. */
enum CurlIpResolve {
whatever = 0, /** default, resolves addresses to all IP versions that your system allows */
v4 = 1, /** resolve to ipv4 addresses */
v6 = 2 /** resolve to ipv6 addresses */
}
/** three convenient "aliases" that follow the name scheme better */
enum CURLOPT_WRITEDATA = CurlOption.file;
/// ditto
enum CURLOPT_READDATA = CurlOption.infile;
/// ditto
enum CURLOPT_HEADERDATA = CurlOption.writeheader;
/// ditto
enum CURLOPT_RTSPHEADER = CurlOption.httpheader;
/** These enums are for use with the CURLOPT_HTTP_VERSION option. */
enum CurlHttpVersion {
none, /** setting this means we don't care, and that we'd
like the library to choose the best possible
for us! */
v1_0, /** please use HTTP 1.0 in the request */
v1_1, /** please use HTTP 1.1 in the request */
last /** *ILLEGAL* http version */
}
/**
* Public API enums for RTSP requests
*/
enum CurlRtspReq {
none, ///
options, ///
describe, ///
announce, ///
setup, ///
play, ///
pause, ///
teardown, ///
get_parameter, ///
set_parameter, ///
record, ///
receive, ///
last ///
}
/** These enums are for use with the CURLOPT_NETRC option. */
enum CurlNetRcOption {
ignored, /** The .netrc will never be read. This is the default. */
optional /** A user:password in the URL will be preferred to one in the .netrc. */,
required, /** A user:password in the URL will be ignored.
* Unless one is set programmatically, the .netrc
* will be queried. */
last ///
}
///
enum CurlSslVersion {
default_version, ///
tlsv1, ///
sslv2, ///
sslv3, ///
last /** never use */
}
///
enum CurlTlsAuth {
none, ///
srp, ///
last /** never use */
}
/** symbols to use with CURLOPT_POSTREDIR.
CURL_REDIR_POST_301 and CURL_REDIR_POST_302 can be bitwise ORed so that
CURL_REDIR_POST_301 | CURL_REDIR_POST_302 == CURL_REDIR_POST_ALL */
enum CurlRedir {
get_all = 0, ///
post_301 = 1, ///
post_302 = 2, ///
///
post_all = (1 | 2) // (CURL_REDIR_POST_301|CURL_REDIR_POST_302);
}
///
enum CurlTimeCond {
none, ///
ifmodsince, ///
ifunmodsince, ///
lastmod, ///
last ///
}
///
alias int curl_TimeCond;
/** curl_strequal() and curl_strnequal() are subject for removal in a future
libcurl, see lib/README.curlx for details */
extern (C) {
int curl_strequal(char *s1, char *s2);
/// ditto
int curl_strnequal(char *s1, char *s2, size_t n);
}
enum CurlForm {
nothing, /********** the first one is unused ************/
copyname,
ptrname,
namelength,
copycontents,
ptrcontents,
contentslength,
filecontent,
array,
obsolete,
file,
buffer,
bufferptr,
bufferlength,
contenttype,
contentheader,
filename,
end,
obsolete2,
stream,
lastentry /** the last unused */
}
alias int CURLformoption;
/** structure to be used as parameter for CURLFORM_ARRAY */
extern (C) struct curl_forms
{
CURLformoption option; ///
char *value; ///
}
/** use this for multipart formpost building */
/** Returns code for curl_formadd()
*
* Returns:
* CURL_FORMADD_OK on success
* CURL_FORMADD_MEMORY if the FormInfo allocation fails
* CURL_FORMADD_OPTION_TWICE if one option is given twice for one Form
* CURL_FORMADD_NULL if a null pointer was given for a char
* CURL_FORMADD_MEMORY if the allocation of a FormInfo struct failed
* CURL_FORMADD_UNKNOWN_OPTION if an unknown option was used
* CURL_FORMADD_INCOMPLETE if the some FormInfo is not complete (or error)
* CURL_FORMADD_MEMORY if a curl_httppost struct cannot be allocated
* CURL_FORMADD_MEMORY if some allocation for string copying failed.
* CURL_FORMADD_ILLEGAL_ARRAY if an illegal option is used in an array
*
***************************************************************************/
enum CurlFormAdd {
ok, /** first, no error */
memory, ///
option_twice, ///
null_ptr, ///
unknown_option, ///
incomplete, ///
illegal_array, ///
disabled, /** libcurl was built with this disabled */
last ///
}
///
alias int CURLFORMcode;
extern (C) {
/**
* Name: curl_formadd()
*
* Description:
*
* Pretty advanced function for building multi-part formposts. Each invoke
* adds one part that together construct a full post. Then use
* CURLOPT_HTTPPOST to send it off to libcurl.
*/
CURLFORMcode curl_formadd(curl_httppost **httppost, curl_httppost **last_post,...);
/**
* callback function for curl_formget()
* The void *arg pointer will be the one passed as second argument to
* curl_formget().
* The character buffer passed to it must not be freed.
* Should return the buffer length passed to it as the argument "len" on
* success.
*/
alias size_t function(void *arg, char *buf, size_t len)curl_formget_callback;
/**
* Name: curl_formget()
*
* Description:
*
* Serialize a curl_httppost struct built with curl_formadd().
* Accepts a void pointer as second argument which will be passed to
* the curl_formget_callback function.
* Returns 0 on success.
*/
int curl_formget(curl_httppost *form, void *arg, curl_formget_callback append);
/**
* Name: curl_formfree()
*
* Description:
*
* Free a multipart formpost previously built with curl_formadd().
*/
void curl_formfree(curl_httppost *form);
/**
* Name: curl_getenv()
*
* Description:
*
* Returns a malloc()'ed string that MUST be curl_free()ed after usage is
* complete. DEPRECATED - see lib/README.curlx
*/
char * curl_getenv(char *variable);
/**
* Name: curl_version()
*
* Description:
*
* Returns a static ascii string of the libcurl version.
*/
char * curl_version();
/**
* Name: curl_easy_escape()
*
* Description:
*
* Escapes URL strings (converts all letters consider illegal in URLs to their
* %XX versions). This function returns a new allocated string or NULL if an
* error occurred.
*/
char * curl_easy_escape(CURL *handle, char *string, int length);
/** the previous version: */
char * curl_escape(char *string, int length);
/**
* Name: curl_easy_unescape()
*
* Description:
*
* Unescapes URL encoding in strings (converts all %XX codes to their 8bit
* versions). This function returns a new allocated string or NULL if an error
* occurred.
* Conversion Note: On non-ASCII platforms the ASCII %XX codes are
* converted into the host encoding.
*/
char * curl_easy_unescape(CURL *handle, char *string, int length, int *outlength);
/** the previous version */
char * curl_unescape(char *string, int length);
/**
* Name: curl_free()
*
* Description:
*
* Provided for de-allocation in the same translation unit that did the
* allocation. Added in libcurl 7.10
*/
void curl_free(void *p);
/**
* Name: curl_global_init()
*
* Description:
*
* curl_global_init() should be invoked exactly once for each application that
* uses libcurl and before any call of other libcurl functions.
*
* This function is not thread-safe!
*/
CURLcode curl_global_init(c_long flags);
/**
* Name: curl_global_init_mem()
*
* Description:
*
* curl_global_init() or curl_global_init_mem() should be invoked exactly once
* for each application that uses libcurl. This function can be used to
* initialize libcurl and set user defined memory management callback
* functions. Users can implement memory management routines to check for
* memory leaks, check for mis-use of the curl library etc. User registered
* callback routines with be invoked by this library instead of the system
* memory management routines like malloc, free etc.
*/
CURLcode curl_global_init_mem(c_long flags, curl_malloc_callback m, curl_free_callback f, curl_realloc_callback r, curl_strdup_callback s, curl_calloc_callback c);
/**
* Name: curl_global_cleanup()
*
* Description:
*
* curl_global_cleanup() should be invoked exactly once for each application
* that uses libcurl
*/
void curl_global_cleanup();
}
/** linked-list structure for the CURLOPT_QUOTE option (and other) */
extern (C) {
struct curl_slist
{
char *data;
curl_slist *next;
}
/**
* Name: curl_slist_append()
*
* Description:
*
* Appends a string to a linked list. If no list exists, it will be created
* first. Returns the new list, after appending.
*/
curl_slist * curl_slist_append(curl_slist *, char *);
/**
* Name: curl_slist_free_all()
*
* Description:
*
* free a previously built curl_slist.
*/
void curl_slist_free_all(curl_slist *);
/**
* Name: curl_getdate()
*
* Description:
*
* Returns the time, in seconds since 1 Jan 1970 of the time string given in
* the first argument. The time argument in the second parameter is unused
* and should be set to NULL.
*/
time_t curl_getdate(char *p, time_t *unused);
/** info about the certificate chain, only for OpenSSL builds. Asked
for with CURLOPT_CERTINFO / CURLINFO_CERTINFO */
struct curl_certinfo
{
int num_of_certs; /** number of certificates with information */
curl_slist **certinfo; /** for each index in this array, there's a
linked list with textual information in the
format "name: value" */
}
} // extern (C) end
///
enum CURLINFO_STRING = 0x100000;
///
enum CURLINFO_LONG = 0x200000;
///
enum CURLINFO_DOUBLE = 0x300000;
///
enum CURLINFO_SLIST = 0x400000;
///
enum CURLINFO_MASK = 0x0fffff;
///
enum CURLINFO_TYPEMASK = 0xf00000;
///
enum CurlInfo {
none, ///
effective_url = 1048577, ///
response_code = 2097154, ///
total_time = 3145731, ///
namelookup_time, ///
connect_time, ///
pretransfer_time, ///
size_upload, ///
size_download, ///
speed_download, ///
speed_upload, ///
header_size = 2097163, ///
request_size, ///
ssl_verifyresult, ///
filetime, ///
content_length_download = 3145743, ///
content_length_upload, ///
starttransfer_time, ///
content_type = 1048594, ///
redirect_time = 3145747, ///
redirect_count = 2097172, ///
private_info = 1048597, ///
http_connectcode = 2097174, ///
httpauth_avail, ///
proxyauth_avail, ///
os_errno, ///
num_connects, ///
ssl_engines = 4194331, ///
cookielist, ///
lastsocket = 2097181, ///
ftp_entry_path = 1048606, ///
redirect_url, ///
primary_ip, ///
appconnect_time = 3145761, ///
certinfo = 4194338, ///
condition_unmet = 2097187, ///
rtsp_session_id = 1048612, ///
rtsp_client_cseq = 2097189, ///
rtsp_server_cseq, ///
rtsp_cseq_recv, ///
primary_port, ///
local_ip = 1048617, ///
local_port = 2097194, ///
/** Fill in new entries below here! */
lastone = 42
}
///
alias int CURLINFO;
/** CURLINFO_RESPONSE_CODE is the new name for the option previously known as
CURLINFO_HTTP_CODE */
enum CURLINFO_HTTP_CODE = CurlInfo.response_code;
///
enum CurlClosePolicy {
none, ///
oldest, ///
least_recently_used, ///
least_traffic, ///
slowest, ///
callback, ///
last ///
}
///
alias int curl_closepolicy;
///
enum CurlGlobal {
ssl = 1, ///
win32 = 2, ///
///
all = (1 | 2), // (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32);
nothing = 0, ///
default_ = (1 | 2) /// all
}
/******************************************************************************
* Setup defines, protos etc for the sharing stuff.
*/
/** Different data locks for a single share */
enum CurlLockData {
none, ///
/** CURL_LOCK_DATA_SHARE is used internally to say that
* the locking is just made to change the internal state of the share
* itself.
*/
share,
cookie, ///
dns, ///
ssl_session, ///
connect, ///
last ///
}
///
alias int curl_lock_data;
/** Different lock access types */
enum CurlLockAccess {
none, /** unspecified action */
shared_access, /** for read perhaps */
single, /** for write perhaps */
last /** never use */
}
///
alias int curl_lock_access;
///
alias void function(CURL *handle, curl_lock_data data, curl_lock_access locktype, void *userptr)curl_lock_function;
///
alias void function(CURL *handle, curl_lock_data data, void *userptr)curl_unlock_function;
///
alias void CURLSH;
///
enum CurlShError {
ok, /** all is fine */
bad_option, /** 1 */
in_use, /** 2 */
invalid, /** 3 */
nomem, /** out of memory */
last /** never use */
}
///
alias int CURLSHcode;
/** pass in a user data pointer used in the lock/unlock callback
functions */
enum CurlShOption {
none, /** don't use */
share, /** specify a data type to share */
unshare, /** specify which data type to stop sharing */
lockfunc, /** pass in a 'curl_lock_function' pointer */
unlockfunc, /** pass in a 'curl_unlock_function' pointer */
userdata, /** pass in a user data pointer used in the lock/unlock
callback functions */
last /** never use */
}
///
alias int CURLSHoption;
extern (C) {
///
CURLSH * curl_share_init();
///
CURLSHcode curl_share_setopt(CURLSH *, CURLSHoption option,...);
///
CURLSHcode curl_share_cleanup(CURLSH *);
}
/*****************************************************************************
* Structures for querying information about the curl library at runtime.
*/
// CURLVERSION_*
enum CurlVer {
first, ///
second, ///
third, ///
fourth, ///
last ///
}
///
alias int CURLversion;
/** The 'CURLVERSION_NOW' is the symbolic name meant to be used by
basically all programs ever that want to get version information. It is
meant to be a built-in version number for what kind of struct the caller
expects. If the struct ever changes, we redefine the NOW to another enum
from above. */
enum CURLVERSION_NOW = CurlVer.fourth;
///
extern (C) struct _N28
{
CURLversion age; /** age of the returned struct */
char *version_; /** LIBCURL_VERSION */
uint version_num; /** LIBCURL_VERSION_NUM */
char *host; /** OS/host/cpu/machine when configured */
int features; /** bitmask, see defines below */
char *ssl_version; /** human readable string */
c_long ssl_version_num; /** not used anymore, always 0 */
char *libz_version; /** human readable string */
/** protocols is terminated by an entry with a NULL protoname */
char **protocols;
/** The fields below this were added in CURLVERSION_SECOND */
char *ares;
int ares_num;
/** This field was added in CURLVERSION_THIRD */
char *libidn;
/** These field were added in CURLVERSION_FOURTH */
/** Same as '_libiconv_version' if built with HAVE_ICONV */
int iconv_ver_num;
char *libssh_version; /** human readable string */
}
///
alias _N28 curl_version_info_data;
///
// CURL_VERSION_*
enum CurlVersion {
ipv6 = 1, /** IPv6-enabled */
kerberos4 = 2, /** kerberos auth is supported */
ssl = 4, /** SSL options are present */
libz = 8, /** libz features are present */
ntlm = 16, /** NTLM auth is supported */
gssnegotiate = 32, /** Negotiate auth support */
dbg = 64, /** built with debug capabilities */
asynchdns = 128, /** asynchronous dns resolves */
spnego = 256, /** SPNEGO auth */
largefile = 512, /** supports files bigger than 2GB */
idn = 1024, /** International Domain Names support */
sspi = 2048, /** SSPI is supported */
conv = 4096, /** character conversions supported */
curldebug = 8192, /** debug memory tracking supported */
tlsauth_srp = 16384 /** TLS-SRP auth is supported */
}
extern (C) {
/**
* Name: curl_version_info()
*
* Description:
*
* This function returns a pointer to a static copy of the version info
* struct. See above.
*/
curl_version_info_data * curl_version_info(CURLversion );
/**
* Name: curl_easy_strerror()
*
* Description:
*
* The curl_easy_strerror function may be used to turn a CURLcode value
* into the equivalent human readable error string. This is useful
* for printing meaningful error messages.
*/
char * curl_easy_strerror(CURLcode );
/**
* Name: curl_share_strerror()
*
* Description:
*
* The curl_share_strerror function may be used to turn a CURLSHcode value
* into the equivalent human readable error string. This is useful
* for printing meaningful error messages.
*/
char * curl_share_strerror(CURLSHcode );
/**
* Name: curl_easy_pause()
*
* Description:
*
* The curl_easy_pause function pauses or unpauses transfers. Select the new
* state by setting the bitmask, use the convenience defines below.
*
*/
CURLcode curl_easy_pause(CURL *handle, int bitmask);
}
///
enum CurlPause {
recv = 1, ///
recv_cont = 0, ///
send = 4, ///
send_cont = 0, ///
///
all = (1 | 4), // CURLPAUSE_RECV | CURLPAUSE_SEND
///
cont = (0 | 0), // CURLPAUSE_RECV_CONT | CURLPAUSE_SEND_CONT
}
/* unfortunately, the easy.h and multi.h include files need options and info
stuff before they can be included! */
/* ***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://curl.haxx.se/docs/copyright.html.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
extern (C) {
///
CURL * curl_easy_init();
///
CURLcode curl_easy_setopt(CURL *curl, CURLoption option,...);
///
CURLcode curl_easy_perform(CURL *curl);
///
void curl_easy_cleanup(CURL *curl);
}
/**
* Name: curl_easy_getinfo()
*
* Description:
*
* Request internal information from the curl session with this function. The
* third argument MUST be a pointer to a long, a pointer to a char * or a
* pointer to a double (as the documentation describes elsewhere). The data
* pointed to will be filled in accordingly and can be relied upon only if the
* function returns CURLE_OK. This function is intended to get used *AFTER* a
* performed transfer, all results from this function are undefined until the
* transfer is completed.
*/
extern (C) CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info,...);
/**
* Name: curl_easy_duphandle()
*
* Description:
*
* Creates a new curl session handle with the same options set for the handle
* passed in. Duplicating a handle could only be a matter of cloning data and
* options, internal state info and things like persistant connections cannot
* be transfered. It is useful in multithreaded applications when you can run
* curl_easy_duphandle() for each new thread to avoid a series of identical
* curl_easy_setopt() invokes in every thread.
*/
extern (C) CURL * curl_easy_duphandle(CURL *curl);
/**
* Name: curl_easy_reset()
*
* Description:
*
* Re-initializes a CURL handle to the default values. This puts back the
* handle to the same state as it was in when it was just created.
*
* It does keep: live connections, the Session ID cache, the DNS cache and the
* cookies.
*/
extern (C) void curl_easy_reset(CURL *curl);
/**
* Name: curl_easy_recv()
*
* Description:
*
* Receives data from the connected socket. Use after successful
* curl_easy_perform() with CURLOPT_CONNECT_ONLY option.
*/
extern (C) CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen, size_t *n);
/**
* Name: curl_easy_send()
*
* Description:
*
* Sends data over the connected socket. Use after successful
* curl_easy_perform() with CURLOPT_CONNECT_ONLY option.
*/
extern (C) CURLcode curl_easy_send(CURL *curl, void *buffer, size_t buflen, size_t *n);
/*
* This header file should not really need to include "curl.h" since curl.h
* itself includes this file and we expect user applications to do #include
* <curl/curl.h> without the need for especially including multi.h.
*
* For some reason we added this include here at one point, and rather than to
* break existing (wrongly written) libcurl applications, we leave it as-is
* but with this warning attached.
*/
/* ***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://curl.haxx.se/docs/copyright.html.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
///
alias void CURLM;
///
enum CurlM {
call_multi_perform = -1, /** please call curl_multi_perform() or curl_multi_socket*() soon */
ok, ///
bad_handle, /** the passed-in handle is not a valid CURLM handle */
bad_easy_handle, /** an easy handle was not good/valid */
out_of_memory, /** if you ever get this, you're in deep sh*t */
internal_error, /** this is a libcurl bug */
bad_socket, /** the passed in socket argument did not match */
unknown_option, /** curl_multi_setopt() with unsupported option */
last, ///
}
///
alias int CURLMcode;
/** just to make code nicer when using curl_multi_socket() you can now check
for CURLM_CALL_MULTI_SOCKET too in the same style it works for
curl_multi_perform() and CURLM_CALL_MULTI_PERFORM */
enum CURLM_CALL_MULTI_SOCKET = CurlM.call_multi_perform;
///
enum CurlMsg
{
none, ///
done, /** This easy handle has completed. 'result' contains
the CURLcode of the transfer */
last, /** no used */
}
///
alias int CURLMSG;
///
extern (C) union _N31
{
void *whatever; /** message-specific data */
CURLcode result; /** return code for transfer */
}
///
extern (C) struct CURLMsg
{
CURLMSG msg; /** what this message means */
CURL *easy_handle; /** the handle it concerns */
_N31 data; ///
}
/**
* Name: curl_multi_init()
*
* Desc: inititalize multi-style curl usage
*
* Returns: a new CURLM handle to use in all 'curl_multi' functions.
*/
extern (C) CURLM * curl_multi_init();
/**
* Name: curl_multi_add_handle()
*
* Desc: add a standard curl handle to the multi stack
*
* Returns: CURLMcode type, general multi error code.
*/
extern (C) CURLMcode curl_multi_add_handle(CURLM *multi_handle, CURL *curl_handle);
/**
* Name: curl_multi_remove_handle()
*
* Desc: removes a curl handle from the multi stack again
*
* Returns: CURLMcode type, general multi error code.
*/
extern (C) CURLMcode curl_multi_remove_handle(CURLM *multi_handle, CURL *curl_handle);
/**
* Name: curl_multi_fdset()
*
* Desc: Ask curl for its fd_set sets. The app can use these to select() or
* poll() on. We want curl_multi_perform() called as soon as one of
* them are ready.
*
* Returns: CURLMcode type, general multi error code.
*/
/** tmp decl */
alias int fd_set;
///
extern (C) CURLMcode curl_multi_fdset(CURLM *multi_handle, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *exc_fd_set, int *max_fd);
/**
* Name: curl_multi_perform()
*
* Desc: When the app thinks there's data available for curl it calls this
* function to read/write whatever there is right now. This returns
* as soon as the reads and writes are done. This function does not
* require that there actually is data available for reading or that
* data can be written, it can be called just in case. It returns
* the number of handles that still transfer data in the second
* argument's integer-pointer.
*
* Returns: CURLMcode type, general multi error code. *NOTE* that this only
* returns errors etc regarding the whole multi stack. There might
* still have occurred problems on invidual transfers even when this
* returns OK.
*/
extern (C) CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles);
/**
* Name: curl_multi_cleanup()
*
* Desc: Cleans up and removes a whole multi stack. It does not free or
* touch any individual easy handles in any way. We need to define
* in what state those handles will be if this function is called
* in the middle of a transfer.
*
* Returns: CURLMcode type, general multi error code.
*/
extern (C) CURLMcode curl_multi_cleanup(CURLM *multi_handle);
/**
* Name: curl_multi_info_read()
*
* Desc: Ask the multi handle if there's any messages/informationals from
* the individual transfers. Messages include informationals such as
* error code from the transfer or just the fact that a transfer is
* completed. More details on these should be written down as well.
*
* Repeated calls to this function will return a new struct each
* time, until a special "end of msgs" struct is returned as a signal
* that there is no more to get at this point.
*
* The data the returned pointer points to will not survive calling
* curl_multi_cleanup().
*
* The 'CURLMsg' struct is meant to be very simple and only contain
* very basic informations. If more involved information is wanted,
* we will provide the particular "transfer handle" in that struct
* and that should/could/would be used in subsequent
* curl_easy_getinfo() calls (or similar). The point being that we
* must never expose complex structs to applications, as then we'll
* undoubtably get backwards compatibility problems in the future.
*
* Returns: A pointer to a filled-in struct, or NULL if it failed or ran out
* of structs. It also writes the number of messages left in the
* queue (after this read) in the integer the second argument points
* to.
*/
extern (C) CURLMsg * curl_multi_info_read(CURLM *multi_handle, int *msgs_in_queue);
/**
* Name: curl_multi_strerror()
*
* Desc: The curl_multi_strerror function may be used to turn a CURLMcode
* value into the equivalent human readable error string. This is
* useful for printing meaningful error messages.
*
* Returns: A pointer to a zero-terminated error message.
*/
extern (C) char * curl_multi_strerror(CURLMcode );
/**
* Name: curl_multi_socket() and
* curl_multi_socket_all()
*
* Desc: An alternative version of curl_multi_perform() that allows the
* application to pass in one of the file descriptors that have been
* detected to have "action" on them and let libcurl perform.
* See man page for details.
*/
enum CurlPoll {
none_ = 0, /** jdrewsen - underscored in order not to clash with reserved D symbols */
in_ = 1, ///
out_ = 2, ///
inout_ = 3, ///
remove_ = 4 ///
}
///
alias CURL_SOCKET_BAD CURL_SOCKET_TIMEOUT;
///
enum CurlCSelect {
in_ = 0x01, /** jdrewsen - underscored in order not to clash with reserved D symbols */
out_ = 0x02, ///
err_ = 0x04 ///
}
extern (C) {
///
alias int function(CURL *easy, /** easy handle */
curl_socket_t s, /** socket */
int what, /** see above */
void *userp, /** private callback pointer */
void *socketp)curl_socket_callback; /** private socket pointer */
}
/**
* Name: curl_multi_timer_callback
*
* Desc: Called by libcurl whenever the library detects a change in the
* maximum number of milliseconds the app is allowed to wait before
* curl_multi_socket() or curl_multi_perform() must be called
* (to allow libcurl's timed events to take place).
*
* Returns: The callback should return zero.
*/
/** private callback pointer */
extern (C) {
alias int function(CURLM *multi, /** multi handle */
c_long timeout_ms, /** see above */
void *userp) curl_multi_timer_callback; /** private callback pointer */
/// ditto
CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s, int *running_handles);
/// ditto
CURLMcode curl_multi_socket_action(CURLM *multi_handle, curl_socket_t s, int ev_bitmask, int *running_handles);
/// ditto
CURLMcode curl_multi_socket_all(CURLM *multi_handle, int *running_handles);
}
/** This macro below was added in 7.16.3 to push users who recompile to use
the new curl_multi_socket_action() instead of the old curl_multi_socket()
*/
/**
* Name: curl_multi_timeout()
*
* Desc: Returns the maximum number of milliseconds the app is allowed to
* wait before curl_multi_socket() or curl_multi_perform() must be
* called (to allow libcurl's timed events to take place).
*
* Returns: CURLM error code.
*/
extern (C) CURLMcode curl_multi_timeout(CURLM *multi_handle, c_long *milliseconds);
///
enum CurlMOption {
socketfunction = 20001, /** This is the socket callback function pointer */
socketdata = 10002, /** This is the argument passed to the socket callback */
pipelining = 3, /** set to 1 to enable pipelining for this multi handle */
timerfunction = 20004, /** This is the timer callback function pointer */
timerdata = 10005, /** This is the argument passed to the timer callback */
maxconnects = 6, /** maximum number of entries in the connection cache */
lastentry ///
}
///
alias int CURLMoption;
/**
* Name: curl_multi_setopt()
*
* Desc: Sets options for the multi handle.
*
* Returns: CURLM error code.
*/
extern (C) CURLMcode curl_multi_setopt(CURLM *multi_handle, CURLMoption option,...);
/**
* Name: curl_multi_assign()
*
* Desc: This function sets an association in the multi handle between the
* given socket and a private pointer of the application. This is
* (only) useful for curl_multi_socket uses.
*
* Returns: CURLM error code.
*/
extern (C) CURLMcode curl_multi_assign(CURLM *multi_handle, curl_socket_t sockfd, void *sockp);
|
D
|
#include <stdio.h>
#include <stddef.h>
#include <unistd.h>
#include <math.h>
#include <time.h>
#include <hw/inout.h>
#include "ldev.h"
#include "../labTools/lcode.h"
#include "../labTools/toys.h"
#include "../labTools/matlab.h"
#include "../labTools/timer.h"
#include "../labTools/vs_dots.h"
#include "../labTools/udpmsg.h"
#include "../labTools/dio_lab.h"
/* signal numbers for eyes */
#define EYEH_SIG 0
#define EYEV_SIG 1
#define OTHERH_SIG 4
#define OTHERV_SIG 5
/* for gl_eye_flag */
#define E_OFF 0
#define E_FIX 1
/** windows for eyeflag and objects **/
#define WIND0 0 /* will be used to enforce fixation */
#define WIND1 1 /* ts */
#define WIND2 2 /* dot patch */
#define WIND3 3 /* correct response window */
#define WIND4 4 /* incorrect response window */
#define WIND5 5 /* sure bet */
#define WIND7 7 /* monitor token */
#define NUM_TARGETS 4
/* tasks in this paradigm */
#define NUM_TASKS 1
#define TASK_EYE 0
/* PRIVATE data structures */
typedef struct menu_info_struct *menu_info;
struct menu_info_struct {
int repetitions;
int seed;
int rfr;
int rft;
int tarjit;
int skip_dir;
int skip_coh;
int skip_p;
};
typedef struct rtvar_struct *rtvar;
struct rtvar_struct {
int total_trials;
int total_correct;
int num_completed;
int num_correct;
int num_wrong;
int num_sbet; /* ts */
int num_ncerr;
int num_brfix;
int last_score;
int coherence;
int pulse_time;
int duration;
int delay;
int direction;
int rt;
};
/* GLOBAL VARIABLES */
static int gl_coh_list[] = {0, 40, 80, 160, 320, 640, 800};
//static int gl_coh_list[] = {0, 800};
static int gl_max_coh_num = sizeof(gl_coh_list)/sizeof(int);
static _VSrecord gl_vsd=NULL; /* the big kahuna. see vs* */
static struct menu_info_struct gl_menu_infoS;
static struct _VSDtask_info_struct gl_task_infoS[NUM_TASKS];
static struct _VSDdot_object_struct gl_dotS[2];
static struct _VSobject_struct gl_object_teyeS[VSD_NUM_OBJECTS]; /* task eye */
static struct _VSobject_struct gl_object_thandS[VSD_NUM_OBJECTS]; /* task hand */
struct rtvar_struct gl_rtvar;
int gl_task;
int gl_remain;
int gl_eye_flag = 0;
int gl_hand_flag = 0;
int gl_dots_flag;
int gl_prize_count;
int gl_prize_max = 0;
int gl_rt_flag = 0; /*Is current trial an RT task?*/
long gl_ref_time = 0; /* reference time for the RT task */
long gl_resp_time = 0; /* (absolute) response time for the RT task */
int gl_teye_perf_cor[7]; /* performance counters */
int gl_teye_perf_sbet[7];
int gl_teye_perf_tot[7];
long gl_teye_rt_cor_sum[7];
int gl_teye_rt_cor_n[7];
long gl_teye_rt_err_sum[7];
int gl_teye_rt_err_n[7];
long gl_teye_rt_sbet_sum[7];
int gl_teye_rt_sbet_n[7];
int gl_sbet_shown = 0; /* ts */
int gl_correct_side;
/* ROUTINES */
/*
***** INITIALIZATION routines
*/
/* ROUTINE: autoinit
**
** initialization of task infos
** executed automatically when running the paradigm
*/
void autoinit(void)
{
int i;
for (i=0; i<NUM_TASKS; i++)
vsd_init_task_info(&gl_task_infoS[i]);
}
/* ROUTINE: rinitf
**
** initialize at first pass or at r s from keyboard
*/
void rinitf(void)
{
/* close/open udp connection */
/*
** This is now done in clock.c so that we can open multiple paradigms
** without causing clashes when binding to the socket
*/
/* initialize interface (window) parameters */
wd_cntrl (WIND0, WD_ON);
wd_src_check (WIND0, WD_SIGNAL, EYEH_SIG, WD_SIGNAL, EYEV_SIG);
wd_src_pos (WIND0, WD_DIRPOS, 0, WD_DIRPOS, 0);
/* static window for screen limits */
#ifdef SCR_LIM_HOR /* defined in ldev.h */
wd_cntrl (WIND7, WD_ON);
wd_src_pos (WIND7, WD_DIRPOS, 0, WD_DIRPOS, 0);
wd_pos (WIND7, 0, 0);
wd_siz (WIND7, SCR_LIM_HOR, SCR_LIM_VER); /* from ldev.h! */
#endif
/* WIND1 is used to mark the appearance of the sure bet target */
wd_cntrl (WIND1, WD_ON);
wd_src_pos (WIND1, WD_DIRPOS, 0, WD_DIRPOS, 0);
wd_pos (WIND1, 0, 0);
wd_siz (WIND1, 0, 0);
/* WIND2 is used to mark the appearance of the dots patch */
wd_cntrl (WIND2, WD_ON);
wd_src_pos (WIND2, WD_DIRPOS, 0, WD_DIRPOS, 0);
wd_pos (WIND2, 0, 0);
/* WIND3 will be checking correct response */
wd_cntrl (WIND3, WD_ON);
wd_src_check (WIND3, WD_SIGNAL, EYEH_SIG, WD_SIGNAL, EYEV_SIG);
wd_src_pos (WIND3, WD_DIRPOS, 0, WD_DIRPOS, 0);
/* WIND4 will be checking incorrect response */
wd_cntrl (WIND4, WD_ON);
wd_src_check (WIND4, WD_SIGNAL, EYEH_SIG, WD_SIGNAL, EYEV_SIG);
wd_src_pos (WIND4, WD_DIRPOS, 0, WD_DIRPOS, 0);
}
/* ROUTINE: setup_screen
**
** initialize parameters/routines... two sets are considered:
** those that typically need to be set once during a session and
** those that should be set each time through the state set
**
** args:
** mon_horiz_cm ... screen width
** view_dist_cm ... viewing distance (eyes to screen)
** repeat_flag ... a hedge -- if != 0 then always do
** initializations
*/
int setup_screen(long mon_width_cm, long view_dist_cm, long num_targets, long num_dots_patch, long long repeat_flag)
{
static int first_time = 1;
/* Do these only if first time through or if explicitly
** told to do each time... enable pcmsg & init the screen
*/
if(repeat_flag || first_time) {
first_time = 0;
/* Added here so reset states doesn't necessarily clear gl_vsd */
make_tasks();
/* init the screen */
printf("\n");
printf("Initializing screen with values from state list (root file):\n");
mat_initScreen(mon_width_cm, view_dist_cm, num_targets, num_dots_patch);
}
printf("\n");
printf("Horizontal screen size: %d cm\n", mon_width_cm);
printf("Viewing distance: %d cm\n", view_dist_cm);
printf("\n");
return 0;
}
/* ROUTINE: make_tasks
**
** function to determine TASKS in current record following update of
** count
*/
int make_tasks(void)
{
int i;
/* make sure the VSD REC exist and are clear */
if(!gl_vsd) {
gl_vsd = vsd_init_record();
gl_rtvar.total_correct = 0;
} else {
vsd_clear_record(gl_vsd);
}
/* Luke was here, seed? */
gl_vsd->seed = (unsigned int) gl_menu_infoS.seed;
/* initialize performance counters */
for (i=0; i<7; i++) {
gl_teye_perf_cor[i]=0;
gl_teye_perf_sbet[i]=0; /* ts */
gl_teye_perf_tot[i]=0;
gl_teye_rt_cor_sum[i]=0;
gl_teye_rt_cor_n[i]=0;
gl_teye_rt_err_sum[i]=0;
gl_teye_rt_err_n[i]=0;
gl_teye_rt_sbet_sum[i]=0; /* ts */
gl_teye_rt_sbet_n[i]=0;
}
/* initialize the tasks */
for ( i=0 ; i < NUM_TASKS ; i++ ) {
vsd_add_task(gl_max_coh_num, gl_coh_list, gl_vsd, &(gl_task_infoS[i]), i);
}
/* set the counters */
gl_vsd->num_repetitions = gl_menu_infoS.repetitions;
gl_remain = 1; /* dummy before we can really calculate it */
/* FOR DEBUGGING */
vsd_print_record(gl_vsd);
return 0;
}
/****
***** VISUAL STIMULUS (MATLAB) routines
****/
/* ROUTINE: defTargLum
** changes the defined luminance of targets, no change is made on the screen until drawTarg is called
** the routine scales the original colors defined in the task menu. the original color is assigned a
** luminance of 1000. black has a luminance of zero.
*/
int defTargLum(long lum1, long lum2, long lum3, long lum4)
{
long lum[4] = {lum1, lum2, lum3, lum4}; //currently we have only 4 valid targets
RGB color;
_VSobject obj_v;
int i;
for(i=0; i<5; i++) {
switch(i) {
case 0:
obj_v = VSD_GET_FP(gl_vsd); break;
case 1:
obj_v = VSD_GET_T1(gl_vsd); break;
case 2:
obj_v = VSD_GET_T2(gl_vsd); break;
case 3:
obj_v = VSD_GET_TS(gl_vsd); break;
}
if (lum[i]>=0) {
color.R = lum[i] * obj_v->color.R / 1000;
color.G = lum[i] * obj_v->color.G / 1000;
color.B = lum[i] * obj_v->color.B / 1000;
mat_targDefine(i+1, obj_v->x, obj_v->y, obj_v->diameter, &color);
}
}
return 0;
}
/* ROUTINE: drawTarg
**
** prob1-5 refer to FP, T1, T2, TCERT0 and TCERT1 if tflag is zero
** if tflag is 1, prob2 and prob3 will refer to correct and wrong targets, respectively
**
*/
int drawTarg(long prob1, long prob2, long prob3, long prob4, long tflag)
{
long prob[4] = {prob1, prob2, prob3, prob4};
int num_show=0, num_hide=0;
int show_ind[VSD_NUM_OBJECTS], hide_ind[VSD_NUM_OBJECTS];
_VSobject obj_v;
int i, tind;
for(i=0; i<4; i++) {
if(i==0)
tind = (VSD_GET_FP(gl_vsd))->matlab_index;
else if(i==1)
tind = (tflag==1) ? (VSD_GET_TC(gl_vsd))->matlab_index : (VSD_GET_T1(gl_vsd))->matlab_index;
else if(i==2)
tind = (tflag==1) ? (VSD_GET_TW(gl_vsd))->matlab_index : (VSD_GET_T2(gl_vsd))->matlab_index;
else if(i==3)
tind = (VSD_GET_TS(gl_vsd))->matlab_index;
else
tind = i;
if (prob[i]>0 && TOY_RAND(1000.0)<(int)prob[i])
show_ind[num_show++] = tind;
else if (prob[i]>=0)
hide_ind[num_hide++] = tind;
}
mat_targDraw(num_show, show_ind, num_hide, hide_ind);
/* set the da markers. Remember that by default:
** CU_DATA4 (octagon) is connected to DA channels 0 (x) and 1 (y)
** CU_DATA5 (X) is connected to DA channels 2 (x) and 3 (y)
*/
obj_v = VSD_GET_TC(gl_vsd);
da_set_2(0, obj_v->x, 1, obj_v->y);
obj_v = VSD_GET_TW(gl_vsd);
da_set_2(2, obj_v->x, 3, obj_v->y);
return 0;
}
/* ROUTINE: showDots
**
** Note: starts not just dots, but cases on whether we're
** showing the dots or just changing the fixation point color
*/
int showDots(void)
{
/* showing dots */
if(SHOW_DOTS(gl_vsd)) {
_VSDdot_object dot = VSD_GET_DTOBJECT(gl_vsd);
/* start the dots and mark it */
mat_dotsShow(dot->seed_base, dot->seed_var, 5000);
gl_dots_flag = -1;
/* update real-time variables */
gl_rtvar.coherence = dot->coherence;
gl_rtvar.direction = dot->direction;
/* show dots patch on the Window Display */
wd_pos ( WIND2, (VSD_GET_AP(gl_vsd))->x, (VSD_GET_AP(gl_vsd))->y);
wd_siz ( WIND2, (VSD_GET_AP(gl_vsd))->diameter/2, (VSD_GET_AP(gl_vsd))->diameter/2);
wd_cntrl ( WIND2, WD_ON );
}
return(0);
}
/* ROUTINE: stopDots
**
*/
int stopDots(void)
{
/* dots are on .. call matlab routine to stop 'em */
if(gl_dots_flag == -1) { /* dots are on */
mat_dotsStop();
wd_siz ( WIND2, 0, 0 );
wd_cntrl ( WIND2, WD_ON );
}
gl_dots_flag = 0;
return(0);
}
int initScreen_done()
{
return mat_getWent(MAT_INIT_SCREEN_CMD, IS_EXECUTED);
}
int drawTarg_done()
{
//printf("time = %d\n", (int) i_b->i_time);
//printf("matdone = %d\n", mat_getWent(MAT_TARG_DRAW_CMD, IS_EXECUTED));
return mat_getWent(MAT_TARG_DRAW_CMD, IS_EXECUTED);
}
int showDots_done()
{
return mat_getWent(MAT_DOTS_SHOW_CMD, IS_EXECUTED);
}
int stopDots_done()
{
return mat_getWent(MAT_DOTS_STOP_CMD, IS_EXECUTED);
}
/****
***** UTILITY routines
*/
/* ROUTINE position_eyewindow
**
** sets window location
*/
int position_eyewindow(long wd_width, long wd_height, long flag)
{
_VSobject vso;
/* position window @ fix point */
if(flag == 0) {
vso = VSD_GET_FP(gl_vsd);
wd_pos(WIND0, vso->x, vso->y);
EC_TAG2(I_EFIX_ACCEPTHX, wd_width);
EC_TAG2(I_EFIX_ACCEPTHY, wd_height);
/* position window @ correct target */
} else if(flag == 1) {
vso = VSD_GET_TC(gl_vsd);
wd_pos(WIND0, vso->x, vso->y);
/* position window @ incorrect target */
} else if(flag == 2) {
vso = VSD_GET_TW(gl_vsd);
wd_pos(WIND0, vso->x, vso->y);
/* position window @ eye position */
} else if(flag == 3) {
wd_pos(WIND0, (long)(eyeh/4), (long)(eyev/4));
/* position window @ sure target */ /* ts */
} else if(flag == 4) {
vso = VSD_GET_TS(gl_vsd);
wd_pos(WIND0, vso->x, vso->y);
}
wd_siz(WIND0, wd_width, wd_height);
wd_cntrl(WIND0, WD_ON);
return(0);
}
int setup_eyewindows(long wd_width, long wd_height)
{
_VSobject vso;
vso = VSD_GET_TC(gl_vsd);
wd_pos(WIND3, vso->x, vso->y);
wd_siz(WIND3, wd_width, wd_height);
wd_cntrl(WIND3, WD_ON);
if (vso->x < 0)
gl_correct_side = -1;
else
gl_correct_side = 1;
vso = VSD_GET_TW(gl_vsd);
wd_pos(WIND4, vso->x, vso->y);
wd_siz(WIND4, wd_width, wd_height);
wd_cntrl(WIND4, WD_ON);
EC_TAG2(I_ETARG_ACCEPTHX, wd_width);
EC_TAG2(I_ETARG_ACCEPTHY, wd_height);
}
/* ROUTINE: open_adata
**
** Specify object locations, set up display,
** check if the trial should be shown or skipped and
** send trial data if it is not to be skipped
*/
int open_adata(void)
{
int i, j, x, y;
/*
** Clear all the old objects,then call the big kahuna
** to update the display.
*/
vsd_clear_display(gl_vsd->display);
/* copy the appropriate gl_object_t*S struct into the gl_vsd display */
if(gl_task == TASK_EYE) {
for(i=0;i<VSD_NUM_OBJECTS;i++)
vs_copy_object(&(gl_object_teyeS[i]), gl_vsd->display->object_array[i]);
vsd_copy_dot_object(&gl_dotS[0], VSD_GET_DTOBJECT(gl_vsd));
}
/* call update display to parse the object info */
/* This is the main section to randomize object locations on each trial
** APPROACH: Take R & Theta as input and jitter on Theta
*/
i = gl_menu_infoS.rft + TOY_RAND(gl_menu_infoS.tarjit);
j = TOY_RAND(1000);
if (j < 334) {
gl_vsd->display->object_array[VSD_OBJECT_T1]->vertex = TOY_RT_TO_X(0,gl_menu_infoS.rfr,i);
gl_vsd->display->object_array[VSD_OBJECT_T1]->wrt = TOY_RT_TO_Y(0,gl_menu_infoS.rfr,i);
gl_vsd->display->object_array[VSD_OBJECT_T2]->vertex = TOY_RT_TO_X(0,gl_menu_infoS.rfr,i+120);
gl_vsd->display->object_array[VSD_OBJECT_T2]->wrt = TOY_RT_TO_Y(0,gl_menu_infoS.rfr,i+120);
} else if(j < 667){
gl_vsd->display->object_array[VSD_OBJECT_T1]->vertex = TOY_RT_TO_X(0,gl_menu_infoS.rfr,i+120);
gl_vsd->display->object_array[VSD_OBJECT_T1]->wrt = TOY_RT_TO_Y(0,gl_menu_infoS.rfr,i+120);
gl_vsd->display->object_array[VSD_OBJECT_T2]->vertex = TOY_RT_TO_X(0,gl_menu_infoS.rfr,i+240);
gl_vsd->display->object_array[VSD_OBJECT_T2]->wrt = TOY_RT_TO_Y(0,gl_menu_infoS.rfr,i+240);
} else {
gl_vsd->display->object_array[VSD_OBJECT_T1]->vertex = TOY_RT_TO_X(0,gl_menu_infoS.rfr,i+240);
gl_vsd->display->object_array[VSD_OBJECT_T1]->wrt = TOY_RT_TO_Y(0,gl_menu_infoS.rfr,i+240);
gl_vsd->display->object_array[VSD_OBJECT_T2]->vertex = TOY_RT_TO_X(0,gl_menu_infoS.rfr,i+0);
gl_vsd->display->object_array[VSD_OBJECT_T2]->wrt = TOY_RT_TO_Y(0,gl_menu_infoS.rfr,i+0);
}
vsd_update_display(gl_vsd, 0); /* Zero indicates no reverse dot-motion/target association */
/* send the dots setup command if necessary */
if(SHOW_DOTS(gl_vsd)) {
/* define the dots patch */
mat_dotsDefine(1, (VSD_GET_AP(gl_vsd))->x, (VSD_GET_AP(gl_vsd))->y, (VSD_GET_AP(gl_vsd))->diameter,
(VSD_GET_DTOBJECT(gl_vsd))->direction, (VSD_GET_DTOBJECT(gl_vsd))->coherence, (VSD_GET_DTOBJECT(gl_vsd))->speed);
}
/* send the target setup commands */
mat_targDefine(1, (VSD_GET_FP(gl_vsd))->x, (VSD_GET_FP(gl_vsd))->y, (VSD_GET_FP(gl_vsd))->diameter, &((VSD_GET_FP(gl_vsd))->color));
mat_targDefine(2, (VSD_GET_T1(gl_vsd))->x, (VSD_GET_T1(gl_vsd))->y, (VSD_GET_T1(gl_vsd))->diameter, &((VSD_GET_T1(gl_vsd))->color));
mat_targDefine(3, (VSD_GET_T2(gl_vsd))->x, (VSD_GET_T2(gl_vsd))->y, (VSD_GET_T2(gl_vsd))->diameter, &((VSD_GET_T2(gl_vsd))->color));
mat_targDefine(4, (VSD_GET_TS(gl_vsd))->x, (VSD_GET_TS(gl_vsd))->y, (VSD_GET_TS(gl_vsd))->diameter, &((VSD_GET_TS(gl_vsd))->color));
/*
** Also set gl_dots_flag... kinda ugly:
** -- 0 if showing nothing
** -- -2 if showing either DOTS
** (later we'll set it to -1 while dots are actually showing)
*/
if(SHOW_DOTS(gl_vsd))
gl_dots_flag = -2;
else
gl_dots_flag = 0;
/* FOR DEBUGGING
**
*/
vsd_print_record(gl_vsd);
/* Check if trial needs to be skipped
** for e.g, for bias correction, reducing 0% trials ,etc
*/
_VSDdot_object dot = VSD_GET_DTOBJECT(gl_vsd);
printf("\n");
printf("COHERENCE = %d\n",dot->coherence);
if ( dot->direction==gl_menu_infoS.skip_dir && dot->coherence<=gl_menu_infoS.skip_coh && TOY_RAND(1000)<gl_menu_infoS.skip_p){
gl_sbet_shown = 1; /* Hijacking sbet to skip trials */
return(0);
}
/* save the parameters */
/* task identifier */
ec_send_code(STARTCD); /* official start of trial ! */
EC_TAG2(I_TRIALIDCD,35); /* 3 is Abstract dot series, 5 is version*/
EC_TAG2(I_MONITORDISTCD, VIEW_DIST_CM);
/* fixation x, y, diameter */
EC_TAG1(I_FIXXCD, (VSD_GET_FP(gl_vsd))->x);
EC_TAG1(I_FIXYCD, (VSD_GET_FP(gl_vsd))->y);
EC_TAG2(I_EFIXDIAMCD, (VSD_GET_FP(gl_vsd))->diameter);
/* target 1 x, y, lum, diameter*/
EC_TAG1(I_TRG1XCD, (VSD_GET_T1(gl_vsd))->x);
EC_TAG1(I_TRG1YCD, (VSD_GET_T1(gl_vsd))->y);
EC_TAG2(I_TRG1DIAMCD, (VSD_GET_T1(gl_vsd))->diameter);
/* target 2 x, y, lum, diameter */
EC_TAG1(I_TRG2XCD, (VSD_GET_T2(gl_vsd))->x);
EC_TAG1(I_TRG2YCD, (VSD_GET_T2(gl_vsd))->y);
EC_TAG2(I_TRG2DIAMCD, (VSD_GET_T2(gl_vsd))->diameter);
/* sure target x, y, lum */
EC_TAG1(I_TRG3XCD, (VSD_GET_TS(gl_vsd))->x);
EC_TAG1(I_TRG3YCD, (VSD_GET_TS(gl_vsd))->y);
/* correct target */
EC_TAG1(I_CORRTARGCD, gl_vsd->display->t_correct==VSD_OBJECT_T1?1:2);
/* Dots dir, coh (if necessary), speed, and aperture size */
if(SHOW_DOTS(gl_vsd)) {
_VSDdot_object dot = VSD_GET_DTOBJECT(gl_vsd);
EC_TAG1(I_DOTDIRCD, dot->direction);
EC_TAG2(I_COHCD, dot->coherence);
EC_TAG2(I_SEEDBASECD, dot->seed_base);
EC_TAG2(I_SEEDVARCD, dot->seed_var);
EC_TAG2(I_SPDCD, dot->speed);
EC_TAG2(I_STDIACD, (VSD_GET_AP(gl_vsd))->diameter);
EC_TAG1(I_STXCD, (VSD_GET_AP(gl_vsd))->x);
EC_TAG1(I_STYCD, (VSD_GET_AP(gl_vsd))->y);
/* also update real-time variables */
gl_rtvar.direction = dot->direction;
gl_rtvar.coherence = dot->coherence;
}
return(0);
}
/* ROUTINE: end_trial
**
*/
int end_trial(long aflag)
{
/* turn eye position window off */
wd_cntrl(WIND0, WD_OFF);
wd_cntrl(WIND1, WD_OFF); /* ts */
wd_cntrl(WIND2, WD_OFF); /* dots patch */
wd_cntrl(WIND3, WD_OFF); /* correct response */
wd_cntrl(WIND4, WD_OFF); /* incorrect response */
/* blank the screen */
mat_allOff();
ec_send_code(LASTCD);
return(0);
}
/* ROUTINE: set_eye_flag
**
*/
int set_eye_flag(long flag)
{
gl_eye_flag = flag;
if (flag == E_FIX)
ec_send_code(EFIXACQ);
return(0);;
}
/* ROUTINE: print_status
**
** Probably should use PF_print_all
*/
void print_status(void)
{
printf("status\n");
}
/* ROUTINE: print_experiment_info
**
*/
void print_experiment_info(void)
{
register int i;
printf("\n");
printf("------------------------------------------------------------\n");
printf("Number of repetitions = %d\n", gl_vsd->num_repetitions);
printf("Number of unique trials = %d\n", gl_vsd->num_trials);
printf("Number of total trials = %d\n", gl_vsd->num_trials * gl_vsd->num_repetitions);
printf("Number of remaining trials = %d\n", gl_remain);
printf("-TASK 1-----------------------------------------------------\n");
printf("\t\t 0.0\t 3.2\t 6.4\t12.8\t25.6\t51.2\t99.9\n");
printf("Performance");
for (i=0;i<7;i++)
if (gl_teye_perf_tot[i])
printf("\t %3d",(int)(gl_teye_perf_cor[i]/(gl_teye_perf_tot[i]/100.0)+.5));
else
printf("\t ---");
printf("\n");
printf("Sure-bet"); /* ts */
for (i=0;i<7;i++)
if (gl_teye_perf_tot[i])
printf("\t %3d",(int)(gl_teye_perf_sbet[i]/(gl_teye_perf_tot[i]/100.0)+.5));
else
printf("\t ---");
printf("\n");
printf("Correct RT");
for (i=0;i<7;i++)
if (gl_teye_rt_cor_n[i])
printf("\t%4d",(int)((float)gl_teye_rt_cor_sum[i]/gl_teye_rt_cor_n[i]+.5));
else
printf("\t----");
printf("\n");
printf("Error RT");
for (i=0;i<7;i++)
if (gl_teye_rt_err_n[i])
printf("\t%4d",(int)((float)gl_teye_rt_err_sum[i]/gl_teye_rt_err_n[i]+.5));
else
printf("\t----");
printf("\n");
printf("Sure-bet RT"); /* ts */
for (i=0;i<7;i++)
if (gl_teye_rt_sbet_n[i])
printf("\t%4d",(int)((float)gl_teye_rt_sbet_sum[i]/gl_teye_rt_sbet_n[i]+.5));
else
printf("\t----");
}
/* ROUTINE: get_ref_time
*/
int get_ref_time(void)
{
gl_ref_time=i_b->i_time;
return 0;
}
/* ROUTINE: get_resp_time
*/
int get_resp_time(void)
{
gl_resp_time=i_b->i_time;
return 0;
}
/* ROUTINE: set_dots_duration
**
** Wrapper that allows us to set the global "duration"
** to show as a real-time variable
*/
int set_dots_duration(long a, long b, long c, long d, long e, long f)
{
gl_rtvar.duration = timer_set1(a,b,c,d,e,f);
EC_TAG2(I_MAXDOTSDUR, e/10); // in ms/10, so units digit will be rounded
return(0);
}
/*ROUTINE: set_delay_duration
**
** Wrapper that allows us to set the global "delay"
** to show as a real-time variable
*/
int set_delay_duration(long a, long b, long c, long d, long e, long f)
{
gl_rtvar.delay = timer_set1(a,b,c,d,e,f);
return(0);
}
int set_delay_rtvar (long a)
{
gl_rtvar.delay = a;
return(0);
}
/* ROUTINE: set_reward_delay_timer (guarantee a minimum time between dot onset and reward)
*/
int set_reward_delay(long min_time)
{
int set_timer_to = 0;
//long cur_time = i_b->i_time;
//if ((cur_time-gl_ref_time)<min_time) /* extra delay necessary? */
// set_timer_to=min_time-(cur_time-gl_ref_time);
/* Luke was here, based on actual RT time */
if ((gl_resp_time - gl_ref_time)<min_time) /* extra delay necessary? */
set_timer_to=min_time-(gl_resp_time-gl_ref_time);
timer_set1(0,0,0,0,set_timer_to,0);
return 0;
}
/* ROUTINE: set_punishment_timer (timeout is an exponential function of RT)
timeout = max_time * exp (-RT/scaling)
if timeout > cutoff -> timeout = cutoff
timeout = non_rt for non-RT trials
*/
int set_punishment_timer(long max_time, long scaling, long cutoff, long non_rt)
{
int temp;
if (scaling==0)
scaling=1000; /* prevent division by zero */
if (!gl_rt_flag)
temp=non_rt; /* non-RT trial */
else
temp=min(cutoff, max_time*exp(-(gl_resp_time-gl_ref_time)/(float)scaling));
timer_set1(0,0,0,0,temp,0);
return 0;
}
/* ROUTNE: give_reward
**
** description: activates the water reward system
*/
int give_reward(long dio, long duration, long who_calling)
{
static int gl_rew_size_cor = 0; /* size of the reward */
static int gl_rew_size_sbet = 0;
if (gl_correct_side == -1)
duration = duration;
dio_on(dio);
timer_set1(0,0,0,0,duration,0);
switch ( who_calling ) {
case CORRECT:
gl_rew_size_cor = duration;
break;
case SBET:
gl_rew_size_sbet = duration;
break;
}
/* save the reward size only once on each trial */
if (gl_prize_count==0) {
EC_TAG2(I_REWSIZE_COR, gl_rew_size_cor);
EC_TAG2(I_REWSIZE_SBET, gl_rew_size_sbet);
printf("--reward. cor=%d, sbet=%d\n", gl_rew_size_cor, gl_rew_size_sbet);
}
return 0;
}
/* ROUTINE: update_prize_count
**
** update gl_prize_count based on the score (CORRECT, WRONG, NCERR, BRFIX or BRHANDFIX) of
** the current trial and previous trials
** prizes are additional reward drops that are given to the monkey for doing
** several trials correct in a row
** <gl_prize_count> is a global variable that is updated by <update_prize_count>
** at the end of each trial.
** don't worry about the maximum number of prizes, it will be managed by
** <set_max_prize_count>
**
*/
void update_prize_count ( long score )
{
static int prev_score = WRONG;
static int prize_count = 0;
if ( score == CORRECT ) {
if ( prev_score==CORRECT )
prize_count++;
prev_score = CORRECT;
} else if ( score==WRONG || score==NCERR ) {
prize_count = 0;
prev_score = WRONG;
}
gl_prize_count = min(prize_count, gl_prize_max);
// dprintf("prize count: %d, max: %d\n", gl_prize_count, gl_prize_max);
}
/* ROUNTINE: randsample
**
** randomly samples from an array of numbers. the array is defined by 4 variables
** base first element of the array
** step distance of consecutive elements in the array (on a linear or log scale)
** n number of elements in the array
** flag "log" or "linear", defines the scaling of elements
*/
double randsample(double base, double step, int n, char *flag)
{
double ret;
if (stricmp(flag,"log")==0)
ret = base * exp(log(step)*(double)TOY_RAND(n));
if (stricmp(flag,"linear")==0)
ret = base+step*(double)TOY_RAND(n);
return(ret);
}
/* ROUTINE: nexttrl
**
** Arguments:
** do_over ... if >0, need to get the current trial correct
** this many times before proceeding to next trial
** min_block_size ... if non-staircase, min # of trials per block
** (see vs_get_next_trial)
** randomize_flag ... flag sent to vs_get_next_trial
*/
int nexttrl (long do_over, long min_block_size, long randomize_flag)
{
static int num_correct = 0;
int i, j, x, y;
_VStrial trial = NULL;
int corrtarg;
gl_sbet_shown = 0; /* ts */
wd_siz ( WIND1, 0, 0 ); /* ts */
wd_cntrl ( WIND1, WD_ON );
if ( !trial ) {
/* check "do_over" flag to see if we should just redo last trial */
if(do_over > 0) {
if((gl_vsd->last == CORRECT) && (++num_correct >= do_over))
num_correct = 0;
else
gl_vsd->last = DO_OVER;
}
/* vs_get_next_trial is the real workhorse.. makes
** trial_array in gl_vsd if necessary, randomizes it,
** & selects the next trial
*/
trial = vs_get_next_trial(gl_vsd, min_block_size, randomize_flag); /* trial = gl_vsd->cur_trial */
}
/* make sure we have a trial and are continuing... */
if(!trial) {
gl_remain = 0;
return(0);
}
/* set some globals */
gl_task = trial->task->id;
gl_remain = gl_vsd->num_trials;
gl_rt_flag = gl_task_infoS[gl_task].rt_flag;
return 0;
}
/* ROUTINE: total
**
** use vs_score_trial to keep track of monkey's performance
*/
int total(long score)
{
/* local variables */
int coh, ind, i;
/* update the prize count */
update_prize_count(score);
/* score the trial in the global rec */
vs_score_trial(gl_vsd, score, gl_sbet_shown);
/* set globals for eye checking */
gl_eye_flag = 0;
/* Drop the appropriate code */
if(score == CORRECT) {
ec_send_code(CORRECTCD);
EC_TAG1(I_RESPONSE, 1);
gl_rtvar.total_correct++; /* keeping track of total correct */
} else if(score == WRONG) {
ec_send_code(WRONGCD);
EC_TAG1(I_RESPONSE, 0);
} else if(score == SBET) { /* ts */
ec_send_code(SBETCD);
} else if(score == NCERR) {
ec_send_code(NOCHCD);
EC_TAG1(I_RESPONSE, -1);
} else if(score == BRFIX) {
ec_send_code(FIXBREAKCD);
EC_TAG1(I_RESPONSE, -2);
again(); /* this is equivalent of reset_s(), it executes the abort list */
} else {
EC_TAG1(I_RESPONSE, -10); /* default, for no fixation acquired */
}
/* record in real-time variables (for display) */
gl_rtvar.total_trials = gl_vsd->total;
gl_rtvar.num_completed = gl_vsd->correct + gl_vsd->wrong + gl_vsd->sbet; /* ts */
gl_rtvar.num_correct = gl_vsd->correct;
gl_rtvar.num_wrong = gl_vsd->wrong;
gl_rtvar.num_sbet = gl_vsd->sbet; /* ts */
gl_rtvar.num_ncerr = gl_vsd->ncerr;
gl_rtvar.num_brfix = gl_vsd->brfix;
gl_rtvar.last_score = gl_vsd->last;
/* find the type of last trial, which coherence */
coh=-1;
ind=-1;
if (SHOW_DOTS(gl_vsd)){
coh = (VSD_GET_DTOBJECT(gl_vsd))->coherence;
for(i=0; i<sizeof(gl_coh_list); i++)
if(coh == gl_coh_list[i]) {
ind = i;
break;
}
}
/* set real time variable for RT to zero, revise below if an RT task */
gl_rtvar.rt = 0;
/* counts and RT for task 1 */
if (gl_task==TASK_EYE) {
/* total correct/wrong/sbet counts */
if (ind!=-1) {
if ((score==CORRECT)||(score==WRONG)||(score==SBET)) {
if (score==CORRECT)
gl_teye_perf_cor[ind]++;
else if (score==SBET) /* ts */
gl_teye_perf_sbet[ind]++;
gl_teye_perf_tot[ind]++;
}
}
/* Reaction times */
if (gl_rt_flag) {
if ((score==CORRECT)||(score==WRONG)||(score==SBET)) {
gl_rtvar.rt = gl_resp_time - gl_ref_time;
if (ind!=-1) {
if (score==CORRECT) {
gl_teye_rt_cor_sum[ind]+=gl_rtvar.rt;
gl_teye_rt_cor_n[ind]++;
} else if (score==WRONG) {
gl_teye_rt_err_sum[ind]+=gl_rtvar.rt;
gl_teye_rt_err_n[ind]++;
} else if (score==SBET) { /* ts */
gl_teye_rt_sbet_sum[ind]+=gl_rtvar.rt;
gl_teye_rt_sbet_n[ind]++;
}
}
}
}
}
/* outta */
return(0);
}
/* ROUTINE: abort_cleanup
**
** called only from abort list
*/
int abort_cleanup(void)
{
timer_pause(100); /* wait in case of went */
//mat_getWent();/* make sure not waiting for went*/
if(gl_dots_flag == -1) /* stop the dots, if they're on */
mat_dotsAbort();
end_trial(CANCEL_W); /* cancel analog window, blank screen */
return(0);
}
/* USER FUNCTIONS
**
** functions that we can call from the command
** menu.
**
** performance ... task-specific information (% correct, etc)
** status ... status information (trials remaining)
** geometry ... geometry information
*/
USER_FUNC ufuncs[] = {
{"status", &print_status, "void"},
{"performance", &print_experiment_info, "void"},
{""},
};
/*
** The geometry of a "vs_dots" task is defined as follows:
**
** - Fixation point ... X-Y coordinates defined at the top-level
** menu & thus the same for all tasks/trials
** - Dots' aperture ... R-T coordinates (AP_amp and AP_angle) relative to
** the fixation point
** - Target centroid ... Central point of the two targets, in R-T (TC_amp
** and TC_angle) relative to AP
** - Target p ... Pref (correct) target, in R-T (T1_amp and T1_angle)
** relative to TC
** - Target n ... Null (incorrect) target, in R-T (T1_amp and T1_angle)
** relative to TC
**
** INDEX SCHEME FOR SUN/PLANET
** 0 ... fixation point
** 1 ... center of dots' aperture
** 2 ... centroid of targets
** 3 ... target p (pref or correct target)
** 4 ... target n (null or incorrect target)
*/
/* ACCESS FUNCTIONS */
/* ROUTINE: o_agf
**
** Object Argument Generation Function, from REX 7.* manual
*/
int o_agf(int call_cnt, MENU *mp, char *astr)
{
if(call_cnt >= VSD_NUM_OBJECTS)
*astr='\0';
else
itoa_RL(call_cnt, 'd', astr, &astr[P_ISLEN]);
return(0);
}
/* ROUTINE: o*_maf
**
** Menu Access Function, from REX 7.* manual
*/
int o1_maf(int flag, MENU *mp, char *astr, ME_RECUR *rp)
{
int num;
if(*astr == '\0')
num = 0;
else
num = atoi(astr);
if ( num<0 || num>=VSD_NUM_OBJECTS )
return(-1);
mp->me_basep = (unsign)&gl_object_teyeS[num];
return(0);
}
int o2_maf(int flag, MENU *mp, char *astr, ME_RECUR *rp)
{
int num;
if(*astr == '\0')
num = 0;
else
num = atoi(astr);
if ( num<0 || num>=VSD_NUM_OBJECTS)
return(-1);
mp->me_basep = (unsign)&gl_object_thandS[num];
return(0);
}
/* Top-level state menu
*/
VLIST state_vl[] = {
{"Repetitions", &(gl_menu_infoS.repetitions), NP, make_tasks, ME_AFT, ME_DEC},
{"RF_radius", &(gl_menu_infoS.rfr), NP, NP, 0, ME_DEC},
{"RF_theta", &(gl_menu_infoS.rft), NP, NP, 0, ME_DEC},
{"RF_jitter", &(gl_menu_infoS.tarjit), NP, NP, 0, ME_DEC},
{"RNG_Seed", &(gl_menu_infoS.seed), NP, NP, 0, ME_DEC},
{"Max_prize_count", &gl_prize_max, NP, NP, 0, ME_DEC},
{"Skip_dir", &(gl_menu_infoS.skip_dir), NP, NP, 0, ME_DEC},
{"Skip_coh", &(gl_menu_infoS.skip_coh), NP, NP, 0, ME_DEC},
{"Skip_p", &(gl_menu_infoS.skip_p), NP, NP, 0, ME_DEC},
{"Proportion", &(gl_task_infoS[0].proportion), NP, NP, 0, ME_DEC},
{NS}};
/* task_info vlist ... used for the two dots-style tasks */
VLIST task1_info_vl[] = {
{"object_1", &(gl_task_infoS[0].object_1), NP, NP, ME_GB, ME_DEC},
{"object_2", &(gl_task_infoS[0].object_2), NP, NP, ME_GB, ME_DEC},
{"series_o", &(gl_task_infoS[0].series_o), NP, NP, ME_GB, ME_DEC},
{"series_n", &(gl_task_infoS[0].series_n), NP, NP, ME_GB, ME_DEC},
{"series_delta", &(gl_task_infoS[0].series_delta), NP, NP, ME_GB, ME_DEC},
{"t_flag", &(gl_task_infoS[0].t_flag), NP, NP, ME_GB, ME_DEC},
{"coherence_lo", &(gl_task_infoS[0].coherence_lo), NP, NP, ME_GB, ME_DEC},
{"coherence_hi", &(gl_task_infoS[0].coherence_hi), NP, NP, ME_GB, ME_DEC},
{"RT_task", &(gl_task_infoS[0].rt_flag), NP, NP, ME_GB, ME_DEC},
{NS}};
VLIST task2_info_vl[] = {
{"object_1", &(gl_task_infoS[1].object_1), NP, NP, ME_GB, ME_DEC},
{"object_2", &(gl_task_infoS[1].object_2), NP, NP, ME_GB, ME_DEC},
{"series_o", &(gl_task_infoS[1].series_o), NP, NP, ME_GB, ME_DEC},
{"series_n", &(gl_task_infoS[1].series_n), NP, NP, ME_GB, ME_DEC},
{"series_delta", &(gl_task_infoS[1].series_delta), NP, NP, ME_GB, ME_DEC},
{"t_flag", &(gl_task_infoS[1].t_flag), NP, NP, ME_GB, ME_DEC},
{"coherence_lo", &(gl_task_infoS[1].coherence_lo), NP, NP, ME_GB, ME_DEC},
{"coherence_hi", &(gl_task_infoS[1].coherence_hi), NP, NP, ME_GB, ME_DEC},
{"RT_task", &(gl_task_infoS[1].rt_flag), NP, NP, ME_GB, ME_DEC},
{NS}};
/* Object vlist... remember that there are VSD_NUM_OBJECTS # of objects
** per task, so we make an array of that many objects
*/
#define OS &((_VSobject)NP)
VLIST object_vl[] = {
{"x", OS->x, NP, NP, ME_GB, ME_DEC},
{"y", OS->y, NP, NP, ME_GB, ME_DEC},
{"amplitude", OS->amplitude, NP, NP, ME_GB, ME_DEC},
{"angle", OS->angle, NP, NP, ME_GB, ME_DEC},
{"vertex", OS->vertex, NP, NP, ME_GB, ME_DEC},
{"wrt", OS->wrt, NP, NP, ME_GB, ME_DEC},
{"angle_offset", OS->angle_offset, NP, NP, ME_GB, ME_DEC},
{"diameter", OS->diameter, NP, NP, ME_GB, ME_DEC},
{"color.R", OS->color.R, NP, NP, ME_GB, ME_DEC},
{"color.G", OS->color.G, NP, NP, ME_GB, ME_DEC},
{"color.B", OS->color.B, NP, NP, ME_GB, ME_DEC},
{NS}};
/* Dots parameters vlist */
#define DOTS_VL(DOS) \
{"coherence", &(DOS.coherence), NP, NP, ME_GB, ME_DEC}, \
{"direction", &(DOS.direction), NP, NP, ME_GB, ME_DEC}, \
{"speed", &(DOS.speed), NP, NP, ME_GB, ME_DEC}, \
{"novar_pct", &(DOS.novar_pct), NP, NP, ME_GB, ME_DEC}, \
{"seed_base", &(DOS.seed_base), NP, NP, ME_GB, ME_DEC}, \
{NS}
VLIST dots1_vl[] = {DOTS_VL(gl_dotS[0])};
VLIST dots2_vl[] = {DOTS_VL(gl_dotS[1])};
/* Help strings */
char no_help[] = "";
MENU umenus[] = {
{"State_vars", &state_vl, NP, NP, 0, NP, no_help},
{"separator", NP},
{"Task1_info", &task1_info_vl, NP, NP, 0, NP, no_help},
{"Task1_objList", &object_vl, NP, o1_maf, ME_BEF, o_agf, no_help},
{"Task1_dots", &dots1_vl, NP, NP, 0, NP, no_help},
{"separator", NP},
{"Task2_info", &task2_info_vl, NP, NP, 0, NP, no_help},
{"Task2_objList", &object_vl, NP, o2_maf, ME_BEF, o_agf, no_help},
{"Task2_dots", &dots2_vl, NP, NP, 0, NP, no_help},
{NS}
};
/* REAL-TIME VARIABLES */
RTVAR rtvars[] = {
{"Total trials", &(gl_rtvar.total_trials)},
{"Total correct", &(gl_rtvar.total_correct)},
{"Trials this set", &(gl_rtvar.num_completed)},
{"Previous score", &(gl_rtvar.last_score)},
{"Broke fixation", &(gl_rtvar.num_brfix)},
{"No choice", &(gl_rtvar.num_ncerr)},
{"Correct", &(gl_rtvar.num_correct)},
{"Wrong", &(gl_rtvar.num_wrong)},
{"Sure Bet", &(gl_rtvar.num_sbet)},
{"Coherence", &(gl_rtvar.coherence)},
{"Duration", &(gl_rtvar.duration)},
{"Direction", &(gl_rtvar.direction)},
// {"Elec stim", &gl_elestim_flag},
{"Pulse", &(gl_rtvar.pulse_time)},
{"Delay", &(gl_rtvar.delay)},
{"", 0}
};
/* THE STATE SET
*/
%%
id 901
restart rinitf
main_set {
status ON
begin first:
to firstcd
firstcd:
do ec_send_code(HEADCD)
to setup
setup: /* SETUP THE SCREEN */
do setup_screen(32, 48, 4, 1, 0)
to loop on 1 % initScreen_done
loop: /* START THE LOOP -- loop on # trials */
time 1000
to pause on +PSTOP & softswitch
to go
pause:
do ec_send_code(PAUSECD)
to go on -PSTOP & softswitch
go: /**** TRIAL !!! ****/
to donelist on -ONES & gl_remain
to settrl
donelist: /* done with current set... wait for "gl_remain" to update */
do ec_send_code(LISTDONECD)
to loop on +ONES & gl_remain
settrl: /* set up current trial */
do nexttrl(0, 10, 1)
to task on +ONES & gl_remain
to loop
task: /* control what to do on current trial */
do open_adata()
to skiptrl on 1 = gl_sbet_shown /* Skipped trials are considered sure bet choices */
to teye_start on TASK_EYE = gl_task
skiptrl:
do total(SBET)
to skipdone
skipdone:
do end_trial(CLOSE_W)
to settrl
/* position window, wait for fixation */
fixeyewinpos:
do position_eyewindow(30, 30, 0)
time 10 /* this is very important - it takes time to set window */
to fixeyewait
fixeyewait: /* wait for either eye or hand fixation */
time 5000
to fixeyedelay on -WD0_XY & eyeflag
to nofix
nofix: /* failed to attain fixation */
do total(DO_OVER) // just redo the trial
to nofixDone
nofixDone:
time 2000
do end_trial(CANCEL_W)
to loop
fixeyedelay:
time 100 /* delay before activating eye_flag - noise on the eye position signal should not be able to "break eye fixation" */
to fixeyeset
fixeyeset: /* set flag to check for eye fixation breaks */
do set_eye_flag(E_FIX)
to fixeyedone
/* Done with fixating stuff */
fixeyedone:
do position_eyewindow(35, 35, 0)
to teye_targ_wait on TASK_EYE = gl_task
// to teye_waitdots
/*** CHAIN FOR TASK EYE ***/
teye_start:
do setup_eyewindows(35, 30)
to teye_fp
teye_fp:
do drawTarg(1000,0,0,0,0)
to teye_fp_cd on MAT_WENT % drawTarg_done
/* to teye_fp_cd on PHOTO_DETECT_UP % dio_check_photodetector */
teye_fp_cd:
do ec_send_code(FPONCD)
to fixeyewinpos
teye_targ_wait:
do timer_set1_shell(1000,0,0,0,0,0)
to teye_targ_def on +MET % timer_check1
teye_targ_def:
do defTargLum(-1, 0, 0, -1)
to teye_targ
teye_targ: /* initialize the targets */
do drawTarg(-1, 1000, 1000, -1, 0)
to teye_waitdots on MAT_WENT % drawTarg_done
/* to teye_targ_cd on PHOTO_DETECT_DOWN % dio_check_photodetector */
/* START SHOWING DOTS */
teye_waitdots:
do timer_set1_shell(1000,200,1000,200,0,0)
to teye_startdots on +MET % timer_check1
teye_startdots: /* START DOTS */
do showDots()
to teye_wentdots on MAT_WENT % showDots_done
/* to teye_wentdots on PHOTO_DETECT_UP % dio_check_photodetector */
teye_wentdots:
do ec_send_code(GOCOHCD)
to teye_setdotdur
/* VARIABLE DURATION TASK */
teye_setdotdur: /* set the dots duration timer */
do set_dots_duration(1000,600,1000,200,0,0)
to teye_stopdots on +MET % timer_check1 /* check the timer */
teye_stopdots:
do stopDots()
to teye_stopdotscd on MAT_WENT % stopDots_done
teye_stopdotscd: /* drop the stop dots code */
do ec_send_code(STOFFCD)
to teye_waitfpoff
/* FINAL WAIT, FP OFF */
teye_waitfpoff:
do set_delay_duration(1000,300,50,400,0,0)
to teye_chkwait
teye_chkwait:
to teye_tarlumup on +MET % timer_check1
teye_tarlumup:
do defTargLum(-1, 1000, 1000, -1) /* reheat targs */
to teye_fpoff
teye_fpoff: /* turn the FP off and show reheated targets */
do drawTarg(0,-1,-1,-1,1000, 0)
to teye_fpoff_cd on MAT_WENT % drawTarg_done
teye_fpoff_cd:
do ec_send_code(FPOFFCD)
to teye_targ_cd
teye_targ_cd:
do ec_send_code(TARGC1CD)
to teye_grace /* wait for sac*/
/* grace period in which monsieur le monk has to
** break fixation and start the saccade
*/
teye_grace:
do set_eye_flag(E_OFF)
to teye_gracea
teye_gracea:
time 2000
to teye_saccd on +WD0_XY & eyeflag
to ncshow
teye_saccd:
do ec_send_code(SACMADCD)
to check_eye_response
/* end trial possibilities:
**
** - brfix. broke fixation, counted regardless of trial type
** - ncerr. didn't complete trial once something happened
** - null. chose wrong target in dots discrimination task
** - pref. finished correctly and got rewarded
*/
check_eye_response:
time 500
to peyehold on -WD3_XY & eyeflag /* got correct target! */
to neyehold on -WD4_XY & eyeflag /* got incorrect target! */
to ncshow /* got nada */
peyehold:
do ec_send_code(TRGACQUIRECD)
time 50 /* gotta hold for this long */
to ncshow on +WD3_XY & eyeflag
to pref
neyehold:
do ec_send_code(TRGACQUIRECD)
time 50 /* gotta hold for this long */
to ncshow on +WD4_XY & eyeflag
to nushow
/* visual feedback if not successful (NO CHOICE) */
ncshow: /* show the targets */
do drawTarg(-1, -1, -1, -1, -1, 0)
to ncwait on MAT_WENT % drawTarg_done
ncwait:
time 0
to ncerr
/* NO CHOICE: didn't complete the task */
ncerr:
do total(NCERR)
to ncend
ncend:
do end_trial(CLOSE_W)
time 1000
to loop
/* visual feedback if not successful (WRONG CHOICE) */
nushow: /* show the targets */
do drawTarg(-1, 1000, 0, -1, 1, 0)
to nuwait on MAT_WENT % drawTarg_done
nuwait:
time 250
to null
/* NULL: chose wrong target in dots task */
null:
do total(WRONG)
to nuclose
nuclose:
do end_trial(CLOSE_W)
to nupunish
nupunish:
do set_punishment_timer(0,1000,0,2000)
to nuend on +MET % timer_check1
nuend:
time 1000
to loop
/* PREF: update the totals and give a reward
*/
pref:
time 250
do total(CORRECT)
to prend
prend:
do drawTarg(-1, 1000, 0, -1, -1, 1)
to prdelay
prdelay: /* guarantee a minimum time between dot onset and reward */
do set_reward_delay(0)
to prrew on +MET % timer_check1
prrew:
do give_reward(REW, 200, CORRECT)
to prrew_off on +MET % timer_check1
prrew_off:
do dio_off(REW)
to prize_loop on 0 < gl_prize_count
to prdone
prize_loop:
to prdone on 0 ? gl_prize_count
to prize_delay
prize_delay:
time 150 /* the delay between consecutive rewards */
do drawTarg(-1, 0, -1, -1, -1, 1)
to prize
prize:
do give_reward(REW, 50, PRIZE)
to prize_off on +MET % timer_check1
prize_off:
do dio_off(REW)
to prize_loop
prdone:
do end_trial(CLOSE_W)
time 0
to loop
abtst: /* for abort list */
do abort_cleanup()
to prdone
abort list:
abtst
}
/* set to check for fixation break during task...
** use set_eye_flag to set gl_eye_state to non-zero
** to enable loop
*/
eye_set {
status ON
begin efirst:
to etest
etest:
to echk on E_FIX = gl_eye_flag
echk:
to efail on +WD0_XY & eyeflag
to etest on E_OFF = gl_eye_flag
efail:
do total(BRFIX)
to etest
abort list:
}
udp_set {
status ON
begin ufirst:
to uchk
uchk:
do udpCheckReceiveFork()
to uchkAgain
uchkAgain: // simply prevents looping back on same state, which Rex doesn't always like
do udpCheckReceiveFork()
to uchk
abort list:
}
|
D
|
INSTANCE Info_Mod_Grimbald_Hi (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_Hi_Condition;
information = Info_Mod_Grimbald_Hi_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Grimbald_Hi_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Grimbald_Hi_Info()
{
AI_Output(self, hero, "Info_Mod_Grimbald_Hi_07_00"); //Verdammt, mach hier nicht so ein Lärm! Oder willst du, dass uns der Schwarze Troll dort hört?
AI_Output(hero, self, "Info_Mod_Grimbald_Hi_15_01"); //Na auf keinen Fall! Soll ich ihn für dich töten?
AI_Output(self, hero, "Info_Mod_Grimbald_Hi_07_02"); //Um Adanos Willen, nein! Ich beobachte diese Kreatur schon seit Tagen und es ist faszinierend.
};
INSTANCE Info_Mod_Grimbald_Faszinierend (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_Faszinierend_Condition;
information = Info_Mod_Grimbald_Faszinierend_Info;
permanent = 0;
important = 0;
description = "Was ist so faszinierend an dieser hässlichen Kreatur?";
};
FUNC INT Info_Mod_Grimbald_Faszinierend_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Grimbald_Hi))
{
return 1;
};
};
FUNC VOID Info_Mod_Grimbald_Faszinierend_Info()
{
AI_Output(hero, self, "Info_Mod_Grimbald_Faszinierend_15_00"); //Was ist so faszinierend an dieser hässlichen Kreatur?
AI_Output(self, hero, "Info_Mod_Grimbald_Faszinierend_07_01"); //Hässliche Kreatur? Mein Junge, du hast keinen Sinn für Ästetik. Schau dir doch nur einmal diese grazielen Bewegungen an.
AI_Output(hero, self, "Info_Mod_Grimbald_Faszinierend_15_02"); //Nunja ...
AI_Output(self, hero, "Info_Mod_Grimbald_Faszinierend_07_03"); //Oder sieh nur das Rudel Snapper dort vorne ...
AI_Output(hero, self, "Info_Mod_Grimbald_Faszinierend_15_04"); //Welche Snapper?
AI_Output(self, hero, "Info_Mod_Grimbald_Faszinierend_07_05"); //Na die, die der Schwarze Troll erst Vorgestern in den Boden gestampft hat ...
AI_Output(hero, self, "Info_Mod_Grimbald_Faszinierend_15_06"); //Aha ...
AI_Output(self, hero, "Info_Mod_Grimbald_Faszinierend_07_07"); //Da fällt mir ein, dass die Snapper schon recht merkwürdig waren.
AI_Output(self, hero, "Info_Mod_Grimbald_Faszinierend_07_08"); //Kein normales Tier würde einfach einen Schwarzen Troll angreifen, doch die sind einfach blindlings in den Tod gerannt.
AI_Output(self, hero, "Info_Mod_Grimbald_Faszinierend_07_09"); //Unheimlich agressiv. Sie sahen eh schon ein wenig mitgenommen aus.
AI_Output(hero, self, "Info_Mod_Grimbald_Faszinierend_15_10"); //Mitgenommen? Du meinst, sie waren verletzt?
AI_Output(self, hero, "Info_Mod_Grimbald_Faszinierend_07_11"); //Nicht wirklich ... sie sahen einfach nicht gut aus.
AI_Output(hero, self, "Info_Mod_Grimbald_Faszinierend_15_12"); //Geht es auch genauer?
AI_Output(self, hero, "Info_Mod_Grimbald_Faszinierend_07_13"); //Ich habe nicht mehr gesehen, sie kamen bereits in den Morgenstunden, haben aber gefaucht wie verrückt.
};
INSTANCE Info_Mod_Grimbald_Dragomir (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_Dragomir_Condition;
information = Info_Mod_Grimbald_Dragomir_Info;
permanent = 0;
important = 0;
description = "Ich komme von Dragomir.";
};
FUNC INT Info_Mod_Grimbald_Dragomir_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Grimbald_Faszinierend))
&& (Npc_KnowsInfo(hero, Info_Mod_Dragomir_Mitmachen))
{
return 1;
};
};
FUNC VOID Info_Mod_Grimbald_Dragomir_Info()
{
AI_Output(hero, self, "Info_Mod_Grimbald_Dragomir_15_00"); //Ich komme von Dragomir, er möchte wissen, was du gefunden hast.
AI_Output(self, hero, "Info_Mod_Grimbald_Dragomir_07_01"); //Hm, dich kenne ich noch gar nicht. Bist wohl noch nicht lange dabei, was?
AI_Output(hero, self, "Info_Mod_Grimbald_Dragomir_15_02"); //Kann man so sagen, ja.
AI_Output(self, hero, "Info_Mod_Grimbald_Dragomir_07_03"); //Ich bin Grimbald, einer von Dragomirs Jägern. Ausser dem Schwarzen Troll und den Snappern nicht viel.
AI_Output(self, hero, "Info_Mod_Grimbald_Dragomir_07_04"); //Eigentlich ein schönes Tal hier zum Jagen, wenn nicht gerade der Schwarze Troll hier wäre und keine Magier stören würden.
AI_Output(hero, self, "Info_Mod_Grimbald_Dragomir_15_05"); //Hier laufen Magier rum?
AI_Output(self, hero, "Info_Mod_Grimbald_Dragomir_07_06"); //Ja, manchmal haben die Pfaffen hier irgendeine Zeremonie, verschwinden in der Grotte dort auf der anderen Seite des Sees, scheint aber nichts allzu wichtiges zu sein.
AI_Output(hero, self, "Info_Mod_Grimbald_Dragomir_15_07"); //Na dann. Gibt es noch etwas?
AI_Output(self, hero, "Info_Mod_Grimbald_Dragomir_07_08"); //Nein. Und ach, falls du noch nicht bei Nandor gewesen bist, er hat mich bis hierhin begleitet und ist dann den Weg durch die Schlucht weiter in Richtung des Waldes gegangen.
AI_Output(hero, self, "Info_Mod_Grimbald_Dragomir_15_09"); //Danke, ich geh dann weiter.
B_LogEntry (TOPIC_MOD_JG_JAGDGEBIETE, "Grimbald hat ein gutes Jagdgebiet gefunden, welches allerdings durch den scharzen Troll und die Magier, die gelegentlich vorbeikommen, etwas gestört wird.");
B_StartOtherRoutine(self, "FOLLOW");
};
INSTANCE Info_Mod_Grimbald_Erzbrocken (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_Erzbrocken_Condition;
information = Info_Mod_Grimbald_Erzbrocken_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Grimbald_Erzbrocken_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Grimbald_Dragomir))
{
return 1;
};
};
FUNC VOID Info_Mod_Grimbald_Erzbrocken_Info()
{
AI_Output(self, hero, "Info_Mod_Grimbald_Erzbrocken_07_00"); //Halt, warte mal, das hätte ich fast vergessen.
B_Say (hero, self, "$WASISTDENN");
AI_Output(self, hero, "Info_Mod_Grimbald_Erzbrocken_07_01"); //Hier, diesen merkwürigen Erzbrocken habe ich zwischen den Knochen der toten Snappern gefunden, der ist mir nicht ganz geheuer.
B_GiveInvItems (self, hero, ItMi_Erzbrocken_Seltsam, 1);
AI_Output(self, hero, "Info_Mod_Grimbald_Erzbrocken_07_02"); //Nimm ihn am besten mit zu Dragomir, vielleicht kann er etwas damit anfangen.
B_LogEntry (TOPIC_MOD_JG_JAGDGEBIETE, "Grimbald hat mir noch einen merkwürdigen Erzbrocken für Dragomir mitgegeben, den er bei den aggressiven Snappern gefunden hat.");
AI_StopProcessInfos (self);
B_StartOtherRoutine(self, "START");
};
INSTANCE Info_Mod_Grimbald_NandorGrom (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_NandorGrom_Condition;
information = Info_Mod_Grimbald_NandorGrom_Info;
permanent = 0;
important = 0;
description = "Hallo Grimbald! Bin zurück. Gibt's was Neues?";
};
FUNC INT Info_Mod_Grimbald_NandorGrom_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Grimbald_Erzbrocken))
&& (Npc_KnowsInfo(hero, Info_Mod_Grom_Dragomir))
&& (Npc_KnowsInfo(hero, Info_Mod_Nandor_WoelfeTot))
{
return 1;
};
};
FUNC VOID Info_Mod_Grimbald_NandorGrom_Info()
{
AI_Output(hero, self, "Info_Mod_Grimbald_NandorGrom_15_00"); //Hallo Grimbald! Bin zurück. Gibt's was Neues?
AI_Output(self, hero, "Info_Mod_Grimbald_NandorGrom_07_01"); //Eigentlich nicht.
AI_Output(hero, self, "Info_Mod_Grimbald_NandorGrom_15_02"); //Trotzdem: Bei Nandor hatten wir's mit unnormalen Wölfen zu tun. Hier waren es verrückte Snapper und bei Grom agressive Feldräuber.
AI_Output(self, hero, "Info_Mod_Grimbald_NandorGrom_07_03"); //Schon seltsam das Ganze. Na ja, Dragomir wird sich schon darum kümmern.
AI_Output(hero, self, "Info_Mod_Grimbald_NandorGrom_15_04"); //Gewiss doch, Herr Grimbald.
AI_Output(self, hero, "Info_Mod_Grimbald_NandorGrom_07_05"); //Spinner! Übrigens, da ist mir noch was aufgefallen ...
AI_Output(hero, self, "Info_Mod_Grimbald_NandorGrom_15_06"); //Hm ...?
AI_Output(self, hero, "Info_Mod_Grimbald_NandorGrom_07_07"); //Ja. Da unten im Wald, neben dem See, ist auch was im Gange. Höre manchmal Stimmen und Geräusche.
AI_Output(hero, self, "Info_Mod_Grimbald_NandorGrom_15_08"); //Vielleicht die Höhlenmagier?
AI_Output(self, hero, "Info_Mod_Grimbald_NandorGrom_07_09"); //Glaube ich nicht. Die kommen immer den Weg.
AI_Output(hero, self, "Info_Mod_Grimbald_NandorGrom_15_10"); //Verstehe. Ich werde es Dragomir berichten. So, ich muss weiter ...
AI_Output(self, hero, "Info_Mod_Grimbald_NandorGrom_07_11"); //Mach's gut.
};
INSTANCE Info_Mod_Grimbald_Kapitel2 (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_Kapitel2_Condition;
information = Info_Mod_Grimbald_Kapitel2_Info;
permanent = 0;
important = 0;
description = "Wieder was Neues?";
};
FUNC INT Info_Mod_Grimbald_Kapitel2_Condition()
{
if (Mod_Drago == 4)
{
return 1;
};
};
FUNC VOID Info_Mod_Grimbald_Kapitel2_Info()
{
AI_Output(hero, self, "Info_Mod_Grimbald_Kapitel2_15_00"); //Wieder was Neues?
AI_Output(self, hero, "Info_Mod_Grimbald_Kapitel2_07_01"); //Nicht so arg ... Na ja. Es wird kälter dieser Tage hier oben ... Gehe wohl bald ins Tal.
AI_Output(hero, self, "Info_Mod_Grimbald_Kapitel2_15_02"); //Mach das. Ich muss ins Minental. Bis dann.
AI_Output(self, hero, "Info_Mod_Grimbald_Kapitel2_07_03"); //Bis dann.
};
INSTANCE Info_Mod_Grimbald_Untier (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_Untier_Condition;
information = Info_Mod_Grimbald_Untier_Info;
permanent = 0;
important = 0;
description = "Hattest du in letzter Zeit mit ungewöhnlichem Wild zu tun?";
};
FUNC INT Info_Mod_Grimbald_Untier_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Grimbald_Untier))
&& (Mod_Cronos_Artefakt == 2)
&& (!Npc_KnowsInfo(hero, Info_Mod_Cronos_AW_Artefakt_02))
{
return 1;
};
};
FUNC VOID Info_Mod_Grimbald_Untier_Info()
{
AI_Output(hero, self, "Info_Mod_Grimbald_Untier_15_00"); //Hattest du in letzter Zeit mit ungewöhnlichem Wild zu tun?
AI_Output(self, hero, "Info_Mod_Grimbald_Untier_07_01"); //Also, abgesehen von lebensmüden Snappern und einem schwarzen Troll ... tatsächlich ...
AI_Output(hero, self, "Info_Mod_Grimbald_Untier_15_02"); //Ja?
AI_Output(self, hero, "Info_Mod_Grimbald_Untier_07_03"); //Nachdem ich vor einigen Tagen einige Eber erbeutet hatte, wurde ich des Nachts von einigen Geräuschen geweckt und konnte gerade noch erkennen, wie ein großes Raubtier – es war zu dunkel, um es genau zu erkennen – mit einem der erbeuteten Tiere in der Dunkelheit verschwand.
AI_Output(hero, self, "Info_Mod_Grimbald_Untier_15_04"); //Wohin ist dieses Tier gelaufen?
AI_Output(self, hero, "Info_Mod_Grimbald_Untier_07_05"); //Es lief Richtung des Steinkreises im kleinen Wald gleich dort hinten.
AI_Output(hero, self, "Info_Mod_Grimbald_Untier_15_06"); //Danke, das war alles, was ich hören wollte.
B_GivePlayerXP (100);
B_LogEntry (TOPIC_MOD_ADANOS_NOVIZE, "Grimbald wurde nachts ein erbeutetes Wildtier von einem großen Raubtier gestohlen. Es machte sich Richtung Steinkreis davon.");
};
INSTANCE Info_Mod_Grimbald_Snorre (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_Snorre_Condition;
information = Info_Mod_Grimbald_Snorre_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Grimbald_Snorre_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Dragon_Snorre))
&& (!Npc_KnowsInfo(hero, Info_Mod_KoboldDragon_Stab))
{
return 1;
};
};
FUNC VOID Info_Mod_Grimbald_Snorre_Info()
{
AI_Output(self, hero, "Info_Mod_Grimbald_Snorre_07_00"); //Hast du auch diese kleine Flammenkreatur gesehen?
AI_Output(hero, self, "Info_Mod_Grimbald_Snorre_15_01"); //Flammenkreatur?
AI_Output(self, hero, "Info_Mod_Grimbald_Snorre_07_02"); //Ja, ist von Richtung Steinkreis gekommen und an mir vorbeigeflitzt. Und wenn mich nicht alles täuscht voll beladen mit Gold.
AI_Output(self, hero, "Info_Mod_Grimbald_Snorre_07_03"); //Ungewöhnliche Dinge scheinen zurzeit Hochkonjunktur zu haben.
AI_Output(hero, self, "Info_Mod_Grimbald_Snorre_15_04"); //Und wohin ist das Geschöpf gelaufen?
AI_Output(self, hero, "Info_Mod_Grimbald_Snorre_07_05"); //Nun, es lief über die Brücke. Und von weitem habe ich dann, wenn mich nicht alles täuscht, den Flammenpunkt im Zugang zu Relendel verschwinden sehen.
B_LogEntry (TOPIC_MOD_NL_STAB, "Der Jäger sah Snorre im Zugang zu Relendel verschwinden.");
};
INSTANCE Info_Mod_Grimbald_Moor (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_Moor_Condition;
information = Info_Mod_Grimbald_Moor_Info;
permanent = 0;
important = 0;
description = "Weißt du zufällig, wo sich ein Moor befindet?";
};
FUNC INT Info_Mod_Grimbald_Moor_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Xardas_NW_Moorhexe))
&& (!Npc_KnowsInfo(hero, Info_Mod_Moorhexe_Hi))
{
return 1;
};
};
FUNC VOID Info_Mod_Grimbald_Moor_Info()
{
AI_Output(hero, self, "Info_Mod_Grimbald_Moor_15_00"); //Weißt du zufällig, wo sich ein Moor befindet?
AI_Output(self, hero, "Info_Mod_Grimbald_Moor_07_01"); //Ein Moor auf Khorinis? Mir ist nur eines bekannt, das "verfluchte Moor". Es befindet sich im Osten von Relendel.
Info_ClearChoices (Info_Mod_Grimbald_Moor);
Info_AddChoice (Info_Mod_Grimbald_Moor, "Danke, das war alles, was ich wissen wollte.", Info_Mod_Grimbald_Moor_B);
Info_AddChoice (Info_Mod_Grimbald_Moor, "Kannst du mich dorthin bringen?", Info_Mod_Grimbald_Moor_A);
};
FUNC VOID Info_Mod_Grimbald_Moor_C()
{
AI_Output(self, hero, "Info_Mod_Grimbald_Moor_C_07_00"); //Viele Glücksritter haben bereits versucht die Schätze des Moores zu bergen und alle bezahlten es mit dem Leben.
AI_Output(self, hero, "Info_Mod_Grimbald_Moor_C_07_01"); //Giftige Dämpfe und Moorleichen sollen jedem Eindringling einen grausamen Tot bereiten, so sagt man ... bedenke, worauf du dich da einlässt.
};
FUNC VOID Info_Mod_Grimbald_Moor_B()
{
AI_Output(hero, self, "Info_Mod_Grimbald_Moor_B_15_00"); //Danke, das war alles, was ich wissen wollte.
AI_Output(self, hero, "Info_Mod_Grimbald_Moor_B_07_01"); //Falls du dorthin willst, so würde ich dir ernsthaft davon abraten.
Info_Mod_Grimbald_Moor_C();
Info_ClearChoices (Info_Mod_Grimbald_Moor);
};
FUNC VOID Info_Mod_Grimbald_Moor_A()
{
AI_Output(hero, self, "Info_Mod_Grimbald_Moor_A_15_00"); //Kannst du mich dorthin bringen?
AI_Output(self, hero, "Info_Mod_Grimbald_Moor_A_07_01"); //Ins verfluchte Moor?! Bist des Wahnsinns?!
AI_Output(hero, self, "Info_Mod_Grimbald_Moor_A_15_02"); //Es ist wichtig. Das Schicksal von Khorinis könnte davon abhängen.
AI_Output(self, hero, "Info_Mod_Grimbald_Moor_A_07_03"); //Bist du sicher, dass du mir keinen Troll aufbindest?
AI_Output(self, hero, "Info_Mod_Grimbald_Moor_A_07_04"); //Falls du dorthin willst mit der Hoffnung dir die Taschen mit Gold zu füllen, so würde ich dir eindringlich davon abraten.
Info_Mod_Grimbald_Moor_C();
AI_Output(hero, self, "Info_Mod_Grimbald_Moor_A_15_05"); //Ich schwöre, dass ich die Wahrheit sage.
AI_Output(hero, self, "Info_Mod_Grimbald_Moor_A_15_06"); //Das Verderben lauert näher, als du denkst (im Stillen) genau genommen in der Kerkerhöhle des Magiers um die Ecke.
AI_Output(self, hero, "Info_Mod_Grimbald_Moor_A_07_07"); //Hmm, ja vielleicht sprichst du wahr. Ich hörte in letzter Zeit von vielen seltsamen und beunruhigenden Vorkommnissen ...
AI_Output(self, hero, "Info_Mod_Grimbald_Moor_A_07_08"); //Ist gut, ich bringe dich dorthin. Bleib dicht hinter mir.
Mod_NL_Grimbald = 1;
self.aivar[AIV_Partymember] = TRUE;
Info_ClearChoices (Info_Mod_Grimbald_Moor);
AI_StopProcessInfos (self);
B_StartOtherRoutine (self, "RELENDEL");
};
INSTANCE Info_Mod_Grimbald_DragomirErzbrocken (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_DragomirErzbrocken_Condition;
information = Info_Mod_Grimbald_DragomirErzbrocken_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Grimbald_DragomirErzbrocken_Condition()
{
if (Mod_JG_GrimbaldTeacher == 1)
{
return 1;
};
};
FUNC VOID Info_Mod_Grimbald_DragomirErzbrocken_Info()
{
AI_Output(self, hero, "Info_Mod_Grimbald_DragomirErzbrocken_07_00"); //Hast du mit Dragomir über den Erzbrocken gesprochen?
AI_Output(hero, self, "Info_Mod_Grimbald_DragomirErzbrocken_15_01"); //Ja, er ist ihm nicht geheuer und deswegen hat er ihn mir wieder mitgegeben.
AI_Output(self, hero, "Info_Mod_Grimbald_DragomirErzbrocken_07_02"); //Sag ich ja. Aber danke, dass du ihn mir abgenommen hast, ich hätte ihn nicht länger in meiner Nähe haben wollen.
AI_Output(self, hero, "Info_Mod_Grimbald_DragomirErzbrocken_07_03"); //Wenn du willst, dann kann ich dir ein bisschen was über die Jagd beibringen.
Log_CreateTopic (TOPIC_MOD_LEHRER_KHORINIS, LOG_NOTE);
B_LogEntry (TOPIC_MOD_LEHRER_KHORINIS, "Der Jäger Grimbald kann mir etwas über die Jagd beibringen.");
};
INSTANCE Info_Mod_Grimbald_Lernen (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_Lernen_Condition;
information = Info_Mod_Grimbald_Lernen_Info;
permanent = 1;
important = 0;
description = "Was kannst du mir beibringen?";
};
FUNC INT Info_Mod_Grimbald_Lernen_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Grimbald_DragomirErzbrocken))
{
return 1;
};
};
FUNC VOID Info_Mod_Grimbald_Lernen_Info()
{
AI_Output(hero, self, "Info_Mod_Grimbald_Lernen_15_00"); //Was kannst du mir beibringen?
if ((PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Claws] == FALSE)
|| (PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_BFWing] == FALSE)
|| (PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_BFSting] == FALSE)
|| (PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_ReptileSkin] == FALSE)
|| (PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Teeth] == FALSE))
{
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_07_01"); //Kommt darauf an, was du wissen willst.
Info_ClearChoices (Info_Mod_Grimbald_Lernen);
Info_AddChoice (Info_Mod_Grimbald_Lernen, DIALOG_BACK, Info_Mod_Grimbald_Lernen_BACK);
if (PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Teeth] == FALSE)
{
Info_AddChoice (Info_Mod_Grimbald_Lernen, B_BuildLearnString("Zähne reissen", B_GetLearnCostTalent (hero,NPC_TALENT_TAKEANIMALTROPHY, TROPHY_Teeth)), Info_Mod_Grimbald_Lernen_Teeth);
};
if (PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_ReptileSkin] == FALSE)
{
Info_AddChoice (Info_Mod_Grimbald_Lernen, B_BuildLearnString("Tiere häuten", B_GetLearnCostTalent (hero,NPC_TALENT_TAKEANIMALTROPHY, TROPHY_ReptileSkin)), Info_Mod_Grimbald_Lernen_ReptileSkin);
};
if (PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_Claws] == FALSE)
{
Info_AddChoice (Info_Mod_Grimbald_Lernen, B_BuildLearnString("Klauen hacken", B_GetLearnCostTalent (hero,NPC_TALENT_TAKEANIMALTROPHY, TROPHY_Claws)), Info_Mod_Grimbald_Lernen_Claws);
};
if (PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_BFSting] == FALSE)
{
Info_AddChoice (Info_Mod_Grimbald_Lernen, B_BuildLearnString("Fliegenstachel", B_GetLearnCostTalent (hero,NPC_TALENT_TAKEANIMALTROPHY, TROPHY_BFSting)), Info_Mod_Grimbald_Lernen_BFSting);
};
if (PLAYER_TALENT_TAKEANIMALTROPHY[TROPHY_BFWing] == FALSE)
{
Info_AddChoice (Info_Mod_Grimbald_Lernen, B_BuildLearnString("Fliegenflügel", B_GetLearnCostTalent (hero,NPC_TALENT_TAKEANIMALTROPHY, TROPHY_BFWing)), Info_Mod_Grimbald_Lernen_BFWing);
};
}
else
{
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_07_02"); //Ich kann dir im Moment nicht mehr beibringen, als du ohnehin schon weißt. Tut mir Leid.
};
};
FUNC void Info_Mod_Grimbald_Lernen_BACK()
{
Info_ClearChoices (Info_Mod_Grimbald_Lernen);
};
FUNC void Info_Mod_Grimbald_Lernen_Claws()
{
if (B_TeachPlayerTalentTakeAnimalTrophy(self, hero, TROPHY_Claws))
{
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_Claws_07_00"); //Tiere geben ihre Klauen nicht sehr gerne her. Du musst schon sehr genau den Punkt treffen, an dem du mit deinem Messer ansetzt.
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_Claws_07_01"); //Die Haltung deiner Hand sollte etwas verschränkt sein. Mit einem kräftigen Ruck trennst du dann die Klaue ab.
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_Claws_07_02"); //Klauen sind immer ein begehrtes Zahlungsmittel bei einem Händler.
};
Info_ClearChoices (Info_Mod_Grimbald_Lernen);
Info_AddChoice (Info_Mod_Grimbald_Lernen, DIALOG_BACK, Info_Mod_Grimbald_Lernen_BACK);
};
FUNC void Info_Mod_Grimbald_Lernen_ReptileSkin()
{
if (B_TeachPlayerTalentTakeAnimalTrophy(self, hero, TROPHY_ReptileSkin))
{
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_ReptileSkin_07_00"); //Und immer nur am Bauch aufschneiden, sonst verminderst du die Qualität.
};
Info_ClearChoices (Info_Mod_Grimbald_Lernen);
Info_AddChoice (Info_Mod_Grimbald_Lernen, DIALOG_BACK, Info_Mod_Grimbald_Lernen_BACK);
};
FUNC void Info_Mod_Grimbald_Lernen_Teeth()
{
if (B_TeachPlayerTalentTakeAnimalTrophy(self, hero, TROPHY_Teeth))
{
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_Teeth_07_00"); //Das einfachste, was du Tieren entnehmen kannst, sind seine Zähne. Du fährst mit deinem Messer in seinem Maul um das Gebiss.
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_Teeth_07_01"); //Dann trennst es geschickt mit einem Ruck vom Schädel des Tieres.
};
Info_ClearChoices (Info_Mod_Grimbald_Lernen);
Info_AddChoice (Info_Mod_Grimbald_Lernen, DIALOG_BACK, Info_Mod_Grimbald_Lernen_BACK);
};
FUNC void Info_Mod_Grimbald_Lernen_Fur()
{
if (B_TeachPlayerTalentTakeAnimalTrophy(self, hero, TROPHY_Fur))
{
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_Fur_07_00"); //Felle ziehst du am besten ab, indem du einen tiefen Schnitt an den Hinterläufen des Tieres vornimmst.
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_Fur_07_01"); //Dann kannst du das Fell von vorne nach hinten eigentlich immer sehr leicht abziehen.
};
Info_ClearChoices (Info_Mod_Grimbald_Lernen);
Info_AddChoice (Info_Mod_Grimbald_Lernen, DIALOG_BACK, Info_Mod_Grimbald_Lernen_BACK);
};
FUNC void Info_Mod_Grimbald_Lernen_BFSting()
{
if (B_TeachPlayerTalentTakeAnimalTrophy(self, hero, TROPHY_BFSting))
{
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_BFSting_07_00"); //Die Fliege hat am Rücken eine weiche Stelle.
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_BFSting_07_01"); //Wenn du dort mit der Hand gegen drückst, fährt der Stachel sehr weit aus und du kannst ihn mit dem Messer abtrennen.
};
Info_ClearChoices (Info_Mod_Grimbald_Lernen);
Info_AddChoice (Info_Mod_Grimbald_Lernen, DIALOG_BACK, Info_Mod_Grimbald_Lernen_BACK);
};
FUNC void Info_Mod_Grimbald_Lernen_BFWing()
{
if (B_TeachPlayerTalentTakeAnimalTrophy(self, hero, TROPHY_BFWing))
{
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_BFWing_07_00"); //Die Flügel einer Fliege entfernst du am besten mit einem Hieb einer scharfen Klinge sehr nah am Körper der Fliege.
AI_Output(self, hero, "Info_Mod_Grimbald_Lernen_BFWing_07_01"); //Du musst nur darauf achten, dass du das feine Gewebe der Flügel nicht verletzt. Sie sind nichts mehr wert, wenn du es nicht vorsichtig machst.
};
Info_ClearChoices (Info_Mod_Grimbald_Lernen);
Info_AddChoice (Info_Mod_Grimbald_Lernen, DIALOG_BACK, Info_Mod_Grimbald_Lernen_BACK);
};
INSTANCE Info_Mod_Grimbald_Pickpocket (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_Pickpocket_Condition;
information = Info_Mod_Grimbald_Pickpocket_Info;
permanent = 1;
important = 0;
description = Pickpocket_90;
};
FUNC INT Info_Mod_Grimbald_Pickpocket_Condition()
{
C_Beklauen (80, ItAt_Sting, 4);
};
FUNC VOID Info_Mod_Grimbald_Pickpocket_Info()
{
Info_ClearChoices (Info_Mod_Grimbald_Pickpocket);
Info_AddChoice (Info_Mod_Grimbald_Pickpocket, DIALOG_BACK, Info_Mod_Grimbald_Pickpocket_BACK);
Info_AddChoice (Info_Mod_Grimbald_Pickpocket, DIALOG_PICKPOCKET, Info_Mod_Grimbald_Pickpocket_DoIt);
};
FUNC VOID Info_Mod_Grimbald_Pickpocket_BACK()
{
Info_ClearChoices (Info_Mod_Grimbald_Pickpocket);
};
FUNC VOID Info_Mod_Grimbald_Pickpocket_DoIt()
{
if (B_Beklauen() == TRUE)
{
Info_ClearChoices (Info_Mod_Grimbald_Pickpocket);
}
else
{
Info_ClearChoices (Info_Mod_Grimbald_Pickpocket);
Info_AddChoice (Info_Mod_Grimbald_Pickpocket, DIALOG_PP_BESCHIMPFEN, Info_Mod_Grimbald_Pickpocket_Beschimpfen);
Info_AddChoice (Info_Mod_Grimbald_Pickpocket, DIALOG_PP_BESTECHUNG, Info_Mod_Grimbald_Pickpocket_Bestechung);
Info_AddChoice (Info_Mod_Grimbald_Pickpocket, DIALOG_PP_HERAUSREDEN, Info_Mod_Grimbald_Pickpocket_Herausreden);
};
};
FUNC VOID Info_Mod_Grimbald_Pickpocket_Beschimpfen()
{
B_Say (hero, self, "$PICKPOCKET_BESCHIMPFEN");
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_Grimbald_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
};
FUNC VOID Info_Mod_Grimbald_Pickpocket_Bestechung()
{
B_Say (hero, self, "$PICKPOCKET_BESTECHUNG");
var int rnd; rnd = r_max(99);
if (rnd < 25)
|| ((rnd >= 25) && (rnd < 50) && (Npc_HasItems(hero, ItMi_Gold) < 50))
|| ((rnd >= 50) && (rnd < 75) && (Npc_HasItems(hero, ItMi_Gold) < 100))
|| ((rnd >= 75) && (rnd < 100) && (Npc_HasItems(hero, ItMi_Gold) < 200))
{
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_Grimbald_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
}
else
{
if (rnd >= 75)
{
B_GiveInvItems (hero, self, ItMi_Gold, 200);
}
else if (rnd >= 50)
{
B_GiveInvItems (hero, self, ItMi_Gold, 100);
}
else if (rnd >= 25)
{
B_GiveInvItems (hero, self, ItMi_Gold, 50);
};
B_Say (self, hero, "$PICKPOCKET_BESTECHUNG_01");
Info_ClearChoices (Info_Mod_Grimbald_Pickpocket);
AI_StopProcessInfos (self);
};
};
FUNC VOID Info_Mod_Grimbald_Pickpocket_Herausreden()
{
B_Say (hero, self, "$PICKPOCKET_HERAUSREDEN");
if (r_max(99) < Mod_Verhandlungsgeschick)
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_01");
Info_ClearChoices (Info_Mod_Grimbald_Pickpocket);
}
else
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_02");
};
};
INSTANCE Info_Mod_Grimbald_EXIT (C_INFO)
{
npc = Mod_765_NONE_Grimbald_NW;
nr = 1;
condition = Info_Mod_Grimbald_EXIT_Condition;
information = Info_Mod_Grimbald_EXIT_Info;
permanent = 1;
important = 0;
description = DIALOG_ENDE;
};
FUNC INT Info_Mod_Grimbald_EXIT_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Grimbald_EXIT_Info()
{
AI_StopProcessInfos (self);
if (Npc_KnowsInfo(hero, Info_Mod_Grimbald_Dragomir))
&& (!Npc_KnowsInfo(hero, Info_Mod_Grimbald_Erzbrocken))
{
AI_Wait (hero, 1);
};
};
|
D
|
module android.java.java.nio.channels.CompletionHandler;
public import android.java.java.nio.channels.CompletionHandler_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!CompletionHandler;
import import1 = android.java.java.lang.Class;
|
D
|
module specs.core.random;
import testing.support;
import core.random;
describe random() {
const uint SEED = 12345678;
const uint REPEATS = 10000000;
describe creation() {
it should_have_sane_defaults() {
auto r = new Random();
should(r.seed >= 0);
}
it should_not_reuse_a_seed() {
auto a = new Random();
auto b = new Random();
shouldNot(a.seed == b.seed);
}
it should_use_the_given_seed() {
auto r = new Random(SEED);
should(r.seed == SEED);
}
}
describe state() {
it should_be_reproducible() {
auto a = new Random(SEED);
auto b = new Random(SEED);
should(a.next() == b.next());
}
}
describe seed() {
it should_set_and_get_the_seed() {
auto r = new Random();
r.seed = SEED;
should(r.seed == SEED);
}
}
// TODO: Statistical tests should be implemented for all the "next" methods.
describe next() {
it should_not_be_stuck() {
auto r = new Random();
shouldNot(r.next() == r.next());
}
it should_return_zero_if_upper_bound_is_zero() {
auto r = new Random();
should(r.next(0) == 0);
}
it should_return_a_nonnegative_value_less_than_upper_bound() {
auto r = new Random();
uint v;
uint upper = 1;
for (uint i = 0; i < REPEATS; i++) {
v = r.next(upper);
should(v >= 0);
should(v < upper);
upper += i;
}
}
it should_return_greatest_bound_if_bounds_overlap() {
auto r = new Random();
should(r.next(0, 0) == 0);
should(r.next(123, 123) == 123);
should(r.next(-123, -123) == -123);
should(r.next(123, -123) == 123);
}
it should_return_a_value_within_bounds() {
auto r = new Random();
int v;
int lower = 0;
int upper = 1;
for (uint i = 0; i < REPEATS; i++) {
v = r.next(lower, upper);
should(v >= lower);
should(v < upper);
lower -= 12;
upper += 3;
}
}
}
describe nextLong() {
it should_not_be_stuck() {
auto r = new Random();
shouldNot(r.nextLong() == r.nextLong());
}
it should_return_zero_if_upper_bound_is_zero() {
auto r = new Random();
should(r.nextLong(0) == 0);
}
it should_return_a_nonnegative_value_less_than_upper_bound() {
auto r = new Random();
ulong v;
ulong upper = 1;
for (uint i = 0; i < REPEATS; i++) {
v = r.nextLong(upper);
should(v >= 0);
should(v < upper);
upper += i;
}
}
it should_return_greatest_bound_if_bounds_overlap() {
auto r = new Random();
should(r.nextLong(0, 0) == 0);
should(r.nextLong(123, 123) == 123);
should(r.nextLong(-123, -123) == -123);
should(r.nextLong(123, -123) == 123);
}
it should_return_a_value_within_bounds() {
auto r = new Random();
long v;
long lower = 0;
long upper = 1;
for (uint i = 0; i < REPEATS; i++) {
v = r.nextLong(lower, upper);
should(v >= lower);
should(v < upper);
lower -= i;
upper += 2*i;
}
}
}
describe nextBoolean() {
it should_return_a_boolean() {
auto r = new Random();
bool to_be = r.nextBoolean();
should(to_be || !to_be);
}
}
describe nextDouble() {
it should_return_a_value_between_0_and_1() {
auto r = new Random();
double v;
for (uint i = 0; i < REPEATS; i++) {
v = r.nextDouble();
should(v >= 0.0);
should(v <= 1.0);
}
}
}
describe nextFloat() {
it should_return_a_value_between_0_and_1() {
auto r = new Random();
double v;
for (uint i = 0; i < REPEATS; i++) {
v = r.nextFloat();
should(v >= 0.0);
should(v <= 1.0);
}
}
}
describe choose() {
it should_fail_on_empty_list() {
auto r = new Random();
shouldThrow();
r.choose(new List!(uint));
}
it should_return_the_item_given_one() {
auto r = new Random();
uint[] arr = [1234];
should(r.choose(arr) == 1234);
}
it should_work_for_arrays() {
auto r = new Random();
uint[] arr = [2, 5, 6, 9, 10, 13];
uint v;
for (uint i = 0; i < REPEATS; i++) {
v = r.choose(arr);
shouldNot(member(v, arr) is null);
}
}
it should_work_for_lists() {
auto r = new Random();
List!(char) lst = new List!(char)(['a', 'e', 'i', 'o', 'u']);
char v;
for (uint i = 0; i < REPEATS; i++) {
v = r.choose(lst);
shouldNot(member(v, lst) is null);
}
}
}
}
|
D
|
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Vapor.build/Server/RunningServer.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Vapor.build/Server/RunningServer~partial.swiftmodule : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Vapor.build/Server/RunningServer~partial.swiftdoc : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
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_9_agm-8536947343.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_9_agm-8536947343.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
/**
This module expands each header encountered in the original input file.
It usually delegates to dstep but not always. Since dstep has a different
goal, which is to produce human-readable D files from a header, we can't
just call into it.
The translate function here will handle the cases it knows how to deal with,
otherwise it asks dstep to it for us.
*/
module dpp.translation;
public import dpp.translation.aggregate;
public import dpp.translation.function_;
public import dpp.translation.typedef_;
public import dpp.translation.macro_;
public import dpp.translation.enum_;
public import dpp.translation.variable;
public import dpp.translation.namespace;
public import dpp.translation.template_;
|
D
|
func int B_CountStealASTMoney(var C_Npc pStealedNpc)
{
var int CsMoney;
if((pStealedNpc.guild == GIL_NONE) || (pStealedNpc.guild == GIL_OUT) || (pStealedNpc.guild == GIL_SEK) || (pStealedNpc.guild == GIL_NOV))
{
CsMoney = 5 + Hlp_Random(20);
}
else if((pStealedNpc.guild == GIL_BAU) || (pStealedNpc.guild == GIL_VLK))
{
if(Hlp_GetInstanceID(pStealedNpc) == Hlp_GetInstanceID(Bau_900_Onar))
{
CsMoney = 100 + Hlp_Random(20);
}
else if(Hlp_GetInstanceID(pStealedNpc) == Hlp_GetInstanceID(VLK_400_Larius))
{
CsMoney = 100 + Hlp_Random(20);
}
else if(Hlp_GetInstanceID(pStealedNpc) == Hlp_GetInstanceID(VLK_403_Gerbrandt))
{
CsMoney = 80 + Hlp_Random(20);
}
else if(Hlp_GetInstanceID(pStealedNpc) == Hlp_GetInstanceID(VLK_404_Lutero))
{
CsMoney = 80 + Hlp_Random(20);
}
else if(Hlp_GetInstanceID(pStealedNpc) == Hlp_GetInstanceID(VLK_405_Fernando))
{
CsMoney = 80 + Hlp_Random(20);
}
else if(Hlp_GetInstanceID(pStealedNpc) == Hlp_GetInstanceID(VLK_409_Zuris))
{
CsMoney = 50 + Hlp_Random(20);
}
else if(Hlp_GetInstanceID(pStealedNpc) == Hlp_GetInstanceID(VLK_447_Cassia))
{
CsMoney = 50 + Hlp_Random(20);
}
else if(Hlp_GetInstanceID(pStealedNpc) == Hlp_GetInstanceID(VLK_445_Ramirez))
{
CsMoney = 50 + Hlp_Random(20);
}
else if(Hlp_GetInstanceID(pStealedNpc) == Hlp_GetInstanceID(VLK_6027_TALIASAN))
{
CsMoney = 50 + Hlp_Random(20);
}
else
{
CsMoney = 10 + Hlp_Random(20);
};
}
else if((pStealedNpc.guild == GIL_SLD) || (pStealedNpc.guild == GIL_MIL) || (pStealedNpc.guild == GIL_PIR) || (pStealedNpc.guild == GIL_BDT))
{
CsMoney = 20 + Hlp_Random(20);
}
else if((pStealedNpc.guild == GIL_DJG) || (pStealedNpc.guild == GIL_TPL))
{
CsMoney = 30 + Hlp_Random(20);
}
else if(pStealedNpc.guild == GIL_PAL)
{
CsMoney = 50 + Hlp_Random(20);
}
else if((pStealedNpc.guild == GIL_KDF) || (pStealedNpc.guild == GIL_KDW) || (pStealedNpc.guild == GIL_GUR))
{
CsMoney = 80 + Hlp_Random(20);
}
else
{
CsMoney = 1 + Hlp_Random(5);
};
return CsMoney;
};
func void G_OpenSteal(var int uKey)
{
var C_Npc pNpc;
var int tmpThfXP;
var int tempPickPocket;
var int sMoney;
var int sExp;
var int sChance;
var int sChanceProc;
var string concatText;
var int daynow;
daynow = Wld_GetDay();
pNpc = GetFocusNpc(hero);
if(bNewSteal[0] == FALSE)
{
return;
};
if(!Npc_ValidFocusNpc(hero))
{
return;
};
if(PLAYER_MOBSI_PRODUCTION != MOBSI_NONE)
{
return;
};
if((Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(Crait)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_8147_Dagrag)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_8148_Gunnok)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_8149_Turuk)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_8150_UrTrok)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_8151_Umrak)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_8152_UrTak)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_2153_Fighter)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_2154_Fighter)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_2155_Fighter)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_2156_Fighter)) || (Hlp_GetInstanceID(pNpc) == Hlp_GetInstanceID(STRF_2157_Fighter)))
{
return;
};
if(pNpc.guild == GIL_STRF)
{
return;
}
if(pNpc.guild > GIL_SEPERATOR_HUM)
{
return;
}
if(Npc_IsDead(pNpc) == TRUE)
{
return;
}
if(Npc_GetDistToNpc(pNpc,hero) > 200)
{
return;
};
if(pNpc.aivar[AIV_MM_REAL_ID] == ID_SKELETON)
{
return;
};
if((pNpc.flags == NPC_FLAG_XARADRIM) || (pNpc.flags == NPC_FLAG_IMMORTAL) || (pNpc.guild == GIL_DMT) || (pNpc.aivar[90] == TRUE) || (pNpc.aivar[AIV_MM_REAL_ID] == ID_SKELETON) || (pNpc.aivar[AIV_MM_RestEnd] == TRUE))
{
return;
};
if((uKey == KEY_O) && (Npc_CanSeeNpc(pNpc,hero) == FALSE) && (Npc_GetTalentSkill(hero,NPC_TALENT_PICKPOCKET) > 0) && (Npc_IsInFightMode(hero,FMODE_NONE) == TRUE) && (bNewSteal[0] == TRUE) && (pNpc.aivar[AIV_PlayerHasPickedMyPocket] == FALSE))
{
if(StrCmp("SNEAK",GetWalkModeString(hero)) || (PickPocketBonusCount >= 90))
{
if(hero.attribute[ATR_DEXTERITY] < pNpc.attribute[ATR_DEXTERITY])
{
sChance = pNpc.attribute[ATR_DEXTERITY] - hero.attribute[ATR_DEXTERITY];
if(sChance >= 100)
{
sChanceProc = 0;
}
else
{
sChanceProc = 100 - sChance;
};
}
else
{
sChanceProc = 100;
};
if((sChanceProc < 100) && (PickPocketBonusCount > 0))
{
sChanceProc = sChanceProc + (PickPocketBonusCount / 20);
if(sChanceProc > 100)
{
sChanceProc = 100;
};
};
if((sChanceProc < 100) && (Npc_IsInState(pNpc,ZS_Sleep) || Npc_IsInState(pNpc,ZS_MagicSleep)))
{
sChanceProc += 20;
if(sChanceProc > 100)
{
sChanceProc = 100;
};
};
concatText = ConcatStrings(PICKPOCKETCHANCE_AST,IntToString(sChanceProc));
concatText = ConcatStrings(concatText,"%");
if(sChanceProc > 75)
{
AI_PrintClr(concatText,52,200,4);
}
else if(sChanceProc > 50)
{
AI_PrintClr(concatText,155,251,5);
}
else if(sChanceProc > 30)
{
AI_PrintClr(concatText,255,234,17);
}
else if(sChanceProc > 10)
{
AI_PrintClr(concatText,255,126,17);
}
else
{
AI_PrintClr(concatText,244,34,0);
};
return;
};
}
if((uKey == MOUSE_XBUTTON1) && (Npc_CanSeeNpc(pNpc,hero) == FALSE) && (Npc_GetTalentSkill(hero,NPC_TALENT_PICKPOCKET) > 0) && (Npc_IsInFightMode(hero,FMODE_NONE) == TRUE) && (bNewSteal[0] == TRUE) && (pNpc.aivar[AIV_PlayerHasPickedMyPocket] == FALSE))
{
if(StrCmp("SNEAK",GetWalkModeString(hero)) || (PickPocketBonusCount >= 90))
{
if(hero.attribute[ATR_DEXTERITY] < pNpc.attribute[ATR_DEXTERITY])
{
sChance = pNpc.attribute[ATR_DEXTERITY] - hero.attribute[ATR_DEXTERITY];
if(sChance >= 100)
{
sChanceProc = 0;
}
else
{
sChanceProc = 100 - sChance;
};
}
else
{
sChanceProc = 100;
};
if((sChanceProc < 100) && (PickPocketBonusCount > 0))
{
sChanceProc = sChanceProc + (PickPocketBonusCount / 20);
if(sChanceProc > 100)
{
sChanceProc = 100;
};
};
if((sChanceProc < 100) && (Npc_IsInState(pNpc,ZS_Sleep) || Npc_IsInState(pNpc,ZS_MagicSleep)))
{
sChanceProc += 20;
if(sChanceProc > 100)
{
sChanceProc = 100;
};
};
concatText = ConcatStrings(PICKPOCKETCHANCE_AST,IntToString(sChanceProc));
concatText = ConcatStrings(concatText,"%");
if(sChanceProc > 75)
{
AI_PrintClr(concatText,52,200,4);
}
else if(sChanceProc > 50)
{
AI_PrintClr(concatText,155,251,5);
}
else if(sChanceProc > 30)
{
AI_PrintClr(concatText,255,234,17);
}
else if(sChanceProc > 10)
{
AI_PrintClr(concatText,255,126,17);
}
else
{
AI_PrintClr(concatText,244,34,0);
};
return;
};
}
else if((uKey == MOUSE_BUTTONRIGHT) && (Npc_CanSeeNpc(pNpc,hero) == FALSE) && (Npc_GetTalentSkill(hero,NPC_TALENT_PICKPOCKET) > 0) && (Npc_IsInFightMode(hero,FMODE_NONE) == TRUE) && (bNewSteal[0] == TRUE))
{
if(StrCmp("SNEAK",GetWalkModeString(hero)) || (PickPocketBonusCount >= 90))
{
if((pNpc.guild != GIL_STRF) && (pNpc.aivar[AIV_PlayerHasPickedMyPocket] == FALSE) && (pNpc.vars[0] == FALSE) && (pNpc.guild <= GIL_SEPERATOR_HUM) && (pNpc.npcType != npctype_friend) && (pNpc.flags != NPC_FLAG_XARADRIM) && (pNpc.flags != NPC_FLAG_IMMORTAL) && (pNpc.guild != GIL_DMT) && (pNpc.aivar[90] != TRUE) && (pNpc.aivar[AIV_MM_REAL_ID] != ID_SKELETON) && (pNpc.aivar[AIV_MM_RestEnd] != TRUE))
{
if(hero.attribute[ATR_DEXTERITY] < pNpc.attribute[ATR_DEXTERITY])
{
sChance = pNpc.attribute[ATR_DEXTERITY] - hero.attribute[ATR_DEXTERITY];
if(sChance >= 100)
{
sChanceProc = 0;
}
else
{
sChanceProc = 100 - sChance;
};
}
else
{
sChanceProc = 100;
};
if((sChanceProc < 100) && (PickPocketBonusCount > 0))
{
sChanceProc = sChanceProc + (PickPocketBonusCount / 20);
};
if((sChanceProc < 100) && (Npc_IsInState(pNpc,ZS_Sleep) || Npc_IsInState(pNpc,ZS_MagicSleep)))
{
sChanceProc += 20;
if(sChanceProc > 100)
{
sChanceProc = 100;
};
};
AI_PlayAni(hero,"T_STEAL");
AI_Wait(hero,1);
if(sChanceProc >= (1 + Hlp_Random(99)))
{
if((hero.guild == GIL_PAL) || (hero.guild == GIL_KDF))
{
INNOSCRIMECOUNT = INNOSCRIMECOUNT + 1;
}
else
{
GlobalThiefCount += 1;
if(GlobalThiefCount >= 3)
{
INNOSCRIMECOUNT = INNOSCRIMECOUNT + 1;
GlobalThiefCount = FALSE;
};
};
Snd_Play("Geldbeutel");
sMoney = B_CountStealASTMoney(pNpc);
PickPocketBonusCount += 1;
B_GiveInvItems(pNpc,hero,ItMi_Gold,sMoney);
pNpc.aivar[AIV_PlayerHasPickedMyPocket] = TRUE;
Ext_RemoveFromSlot(pNpc,"BIP01 SPINE1");
if(PickPocketBonusCount > 10)
{
sExp = (pNpc.attribute[ATR_DEXTERITY] / 10) + (PickPocketBonusCount / 10);
}
else
{
sExp = pNpc.attribute[ATR_DEXTERITY] / 10;
};
B_GivePlayerXP(sExp);
if(OverallBonusThief < (10 * Kapitel))
{
CountThiefOverallBonus += 1;
if(CountThiefOverallBonus >= 15)
{
B_RaiseAttribute_Bonus(hero,ATR_DEXTERITY,1);
CountThiefOverallBonus = FALSE;
OverallBonusThief += 1;
};
};
return;
}
else
{
AI_PrintClr("Tvůj pokus o krádež byl odhalen!",177,58,17);
THIEFCATCHER = Hlp_GetNpc(pNpc);
HERO_CANESCAPEFROMGOTCHA = TRUE;
B_ResetThiefLevel();
pNpc.vars[0] = TRUE;
if(StrCmp("SNEAK",GetWalkModeString(hero)))
{
AI_SetWalkMode(hero,NPC_RUN);
AI_Standup(hero);
};
if(!C_BodyStateContains(pNpc,BS_MOBINTERACT_INTERRUPT) && (Npc_IsInState(pNpc,ZS_Sleep) == FALSE) && (Npc_IsInState(pNpc,ZS_MagicSleep) == FALSE))
{
AI_TurnToNPC(pNpc,hero);
AI_Dodge(pNpc);
};
return;
};
}
else
{
if(pNpc.vars[0] == TRUE)
{
AI_PrintClr("Už jsi jednou byl odhalen...",177,58,17);
B_Say(hero,hero,"$DONTKNOW");
}
else if(pNpc.aivar[AIV_PlayerHasPickedMyPocket] == TRUE)
{
AI_PrintClr("Není tu nic k ukradení...",255,255,255);
B_Say(hero,hero,"$DONTKNOW");
};
return;
};
}
else
{
return;
};
}
else if((uKey == KEY_P) && (Npc_CanSeeNpc(pNpc,hero) == FALSE) && (Npc_GetTalentSkill(hero,NPC_TALENT_PICKPOCKET) > 0) && (Npc_IsInFightMode(hero,FMODE_NONE) == TRUE) && (bNewSteal[0] == TRUE))
{
if(StrCmp("SNEAK",GetWalkModeString(hero)) || (PickPocketBonusCount >= 90))
{
if((pNpc.guild != GIL_STRF) && (pNpc.aivar[AIV_PlayerHasPickedMyPocket] == FALSE) && (pNpc.vars[0] == FALSE) && (pNpc.guild <= GIL_SEPERATOR_HUM) && (pNpc.npcType != npctype_friend) && (pNpc.flags != NPC_FLAG_XARADRIM) && (pNpc.flags != NPC_FLAG_IMMORTAL) && (pNpc.guild != GIL_DMT) && (pNpc.aivar[90] != TRUE) && (pNpc.aivar[AIV_MM_REAL_ID] != ID_SKELETON) && (pNpc.aivar[AIV_MM_RestEnd] != TRUE))
{
if(hero.attribute[ATR_DEXTERITY] < pNpc.attribute[ATR_DEXTERITY])
{
sChance = pNpc.attribute[ATR_DEXTERITY] - hero.attribute[ATR_DEXTERITY];
if(sChance >= 100)
{
sChanceProc = 0;
}
else
{
sChanceProc = 100 - sChance;
};
}
else
{
sChanceProc = 100;
};
if((sChanceProc < 100) && (PickPocketBonusCount > 0))
{
sChanceProc = sChanceProc + (PickPocketBonusCount / 20);
};
if((sChanceProc < 100) && (Npc_IsInState(pNpc,ZS_Sleep) || Npc_IsInState(pNpc,ZS_MagicSleep)))
{
sChanceProc += 20;
if(sChanceProc > 100)
{
sChanceProc = 100;
};
};
AI_PlayAni(hero,"T_STEAL");
AI_Wait(hero,1);
if(sChanceProc >= (1 + Hlp_Random(99)))
{
if((hero.guild == GIL_PAL) || (hero.guild == GIL_KDF))
{
INNOSCRIMECOUNT = INNOSCRIMECOUNT + 1;
}
else
{
GlobalThiefCount += 1;
if(GlobalThiefCount >= 3)
{
INNOSCRIMECOUNT = INNOSCRIMECOUNT + 1;
GlobalThiefCount = FALSE;
};
};
Snd_Play("Geldbeutel");
sMoney = B_CountStealASTMoney(pNpc);
PickPocketBonusCount += 1;
B_GiveInvItems(pNpc,hero,ItMi_Gold,sMoney);
pNpc.aivar[AIV_PlayerHasPickedMyPocket] = TRUE;
Ext_RemoveFromSlot(pNpc,"BIP01 SPINE1");
if(PickPocketBonusCount > 10)
{
sExp = (pNpc.attribute[ATR_DEXTERITY] / 10) + (PickPocketBonusCount / 10);
}
else
{
sExp = pNpc.attribute[ATR_DEXTERITY] / 10;
};
B_GivePlayerXP(sExp);
if(OverallBonusThief < (10 * Kapitel))
{
CountThiefOverallBonus += 1;
if(CountThiefOverallBonus >= 15)
{
B_RaiseAttribute_Bonus(hero,ATR_DEXTERITY,1);
CountThiefOverallBonus = FALSE;
OverallBonusThief += 1;
};
};
return;
}
else
{
AI_PrintClr("Tvůj pokus o krádež byl odhalen!",177,58,17);
THIEFCATCHER = Hlp_GetNpc(pNpc);
HERO_CANESCAPEFROMGOTCHA = TRUE;
B_ResetThiefLevel();
pNpc.vars[0] = TRUE;
if(StrCmp("SNEAK",GetWalkModeString(hero)))
{
AI_SetWalkMode(hero,NPC_RUN);
AI_Standup(hero);
};
if(!C_BodyStateContains(pNpc,BS_MOBINTERACT_INTERRUPT) && (Npc_IsInState(pNpc,ZS_Sleep) == FALSE) && (Npc_IsInState(pNpc,ZS_MagicSleep) == FALSE))
{
AI_TurnToNPC(pNpc,hero);
AI_Dodge(pNpc);
};
return;
};
}
else
{
if(pNpc.vars[0] == TRUE)
{
AI_PrintClr("Už jsi jednou byl odhalen...",177,58,17);
B_Say(hero,hero,"$DONTKNOW");
}
else if(pNpc.aivar[AIV_PlayerHasPickedMyPocket] == TRUE)
{
AI_PrintClr("Není tu nic k ukradení...",255,255,255);
B_Say(hero,hero,"$DONTKNOW");
};
return;
};
}
else
{
return;
};
};
};
func int ItemStealed(var int npc, var int itm,var int amount)
{
return FALSE;
};
func void B_StealModeIn()
{
};
func void B_GetXPSteal()
{
};
func int G_CanSteal()
{
return FALSE;
};
|
D
|
/home/jj/githubRepos/rust_tutorials/variables/target/debug/deps/variables-3b736149aabe80bf: src/main.rs
/home/jj/githubRepos/rust_tutorials/variables/target/debug/deps/variables-3b736149aabe80bf.d: src/main.rs
src/main.rs:
|
D
|
/**
* Windows API header module
*
* written in the D programming language
*
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC src/core/sys/windows/_vfw.d)
*/
module core.sys.windows.vfw;
version (Windows):
version (ANSI) {} else version = Unicode;
pragma(lib, "vfw32");
private import
core.sys.windows.commdlg,
core.sys.windows.wingdi,
core.sys.windows.mmsystem,
core.sys.windows.unknwn,
core.sys.windows.w32api,
core.sys.windows.windef,
core.sys.windows.winuser;
extern(Windows) {
DWORD VideoForWindowsVersion();
LONG InitVFW();
LONG TermVFW();
}
DWORD MKFOURCC(char ch0, char ch1, char ch2, char ch3) {
return (cast(DWORD)ch0) | ((cast(DWORD)ch1) << 8) | ((cast(DWORD)ch2) << 16) | ((cast(DWORD)ch3) << 24);
}
/**
* COMPMAN - Installable Compression Manager.
*/
enum ICVERSION = 0x0104;
alias TypeDef!(HANDLE) HIC;
enum BI_1632 = 0x32333631;
template aviTWOCC(char c0, char c1) {
enum WORD aviTWOCC = c0 | (c1 << 8);
}
enum ICTYPE_VIDEO = mmioFOURCC!('v', 'i', 'd', 'c');
enum ICTYPE_AUDIO = mmioFOURCC!('a', 'u', 'd', 'c');
enum {
ICERR_OK = 0,
ICERR_DONTDRAW = 1,
ICERR_NEWPALETTE = 2,
ICERR_GOTOKEYFRAME = 3,
ICERR_STOPDRAWING = 4,
}
enum ICERR_UNSUPPORTED = -1;
enum ICERR_BADFORMAT = -2;
enum ICERR_MEMORY = -3;
enum ICERR_INTERNAL = -4;
enum ICERR_BADFLAGS = -5;
enum ICERR_BADPARAM = -6;
enum ICERR_BADSIZE = -7;
enum ICERR_BADHANDLE = -8;
enum ICERR_CANTUPDATE = -9;
enum ICERR_ABORT = -10;
enum ICERR_ERROR = -100;
enum ICERR_BADBITDEPTH = -200;
enum ICERR_BADIMAGESIZE = -201;
enum ICERR_CUSTOM = -400;
enum {
ICMODE_COMPRESS = 1,
ICMODE_DECOMPRESS,
ICMODE_FASTDECOMPRESS,
ICMODE_QUERY,
ICMODE_FASTCOMPRESS,
ICMODE_DRAW = 8,
}
enum ICMODE_INTERNALF_FUNCTION32 = 0x8000;
enum ICMODE_INTERNALF_MASK = 0x8000;
enum {
AVIIF_LIST = 0x00000001,
AVIIF_TWOCC = 0x00000002,
AVIIF_KEYFRAME = 0x00000010,
}
enum ICQUALITY_LOW = 0;
enum ICQUALITY_HIGH = 10000;
enum ICQUALITY_DEFAULT = -1;
enum {
ICM_USER = DRV_USER + 0x0000,
ICM_RESERVED_LOW = DRV_USER + 0x1000,
ICM_RESERVED_HIGH = DRV_USER + 0x2000,
ICM_RESERVED = ICM_RESERVED_LOW,
}
// messages
enum {
ICM_GETSTATE = ICM_RESERVED + 0,
ICM_SETSTATE = ICM_RESERVED + 1,
ICM_GETINFO = ICM_RESERVED + 2,
ICM_CONFIGURE = ICM_RESERVED + 10,
ICM_ABOUT = ICM_RESERVED + 11,
ICM_GETERRORTEXT = ICM_RESERVED + 12,
ICM_GETFORMATNAME = ICM_RESERVED + 20,
ICM_ENUMFORMATS = ICM_RESERVED + 21,
ICM_GETDEFAULTQUALITY = ICM_RESERVED + 30,
ICM_GETQUALITY = ICM_RESERVED + 31,
ICM_SETQUALITY = ICM_RESERVED + 32,
ICM_SET = ICM_RESERVED + 40,
ICM_GET = ICM_RESERVED + 41,
}
enum ICM_FRAMERATE = mmioFOURCC!('F','r','m','R');
enum ICM_KEYFRAMERATE = mmioFOURCC!('K','e','y','R');
// ICM specific messages.
enum {
ICM_COMPRESS_GET_FORMAT = ICM_USER + 4,
ICM_COMPRESS_GET_SIZE = ICM_USER + 5,
ICM_COMPRESS_QUERY = ICM_USER + 6,
ICM_COMPRESS_BEGIN = ICM_USER + 7,
ICM_COMPRESS = ICM_USER + 8,
ICM_COMPRESS_END = ICM_USER + 9,
ICM_DECOMPRESS_GET_FORMAT = ICM_USER + 10,
ICM_DECOMPRESS_QUERY = ICM_USER + 11,
ICM_DECOMPRESS_BEGIN = ICM_USER + 12,
ICM_DECOMPRESS = ICM_USER + 13,
ICM_DECOMPRESS_END = ICM_USER + 14,
ICM_DECOMPRESS_SET_PALETTE = ICM_USER + 29,
ICM_DECOMPRESS_GET_PALETTE = ICM_USER + 30,
ICM_DRAW_QUERY = ICM_USER + 31,
ICM_DRAW_BEGIN = ICM_USER + 15,
ICM_DRAW_GET_PALETTE = ICM_USER + 16,
ICM_DRAW_UPDATE = ICM_USER + 17,
ICM_DRAW_START = ICM_USER + 18,
ICM_DRAW_STOP = ICM_USER + 19,
ICM_DRAW_BITS = ICM_USER + 20,
ICM_DRAW_END = ICM_USER + 21,
ICM_DRAW_GETTIME = ICM_USER + 32,
ICM_DRAW = ICM_USER + 33,
ICM_DRAW_WINDOW = ICM_USER + 34,
ICM_DRAW_SETTIME = ICM_USER + 35,
ICM_DRAW_REALIZE = ICM_USER + 36,
ICM_DRAW_FLUSH = ICM_USER + 37,
ICM_DRAW_RENDERBUFFER = ICM_USER + 38,
ICM_DRAW_START_PLAY = ICM_USER + 39,
ICM_DRAW_STOP_PLAY = ICM_USER + 40,
ICM_DRAW_SUGGESTFORMAT = ICM_USER + 50,
ICM_DRAW_CHANGEPALETTE = ICM_USER + 51,
ICM_DRAW_IDLE = ICM_USER + 52,
ICM_GETBUFFERSWANTED = ICM_USER + 41,
ICM_GETDEFAULTKEYFRAMERATE = ICM_USER + 42,
ICM_DECOMPRESSEX_BEGIN = ICM_USER + 60,
ICM_DECOMPRESSEX_QUERY = ICM_USER + 61,
ICM_DECOMPRESSEX = ICM_USER + 62,
ICM_DECOMPRESSEX_END = ICM_USER + 63,
ICM_COMPRESS_FRAMES_INFO = ICM_USER + 70,
ICM_COMPRESS_FRAMES = ICM_USER + 71,
ICM_SET_STATUS_PROC = ICM_USER + 72,
}
struct ICOPEN {
DWORD dwSize;
DWORD fccType;
DWORD fccHandler;
DWORD dwVersion;
DWORD dwFlags;
LRESULT dwError;
LPVOID pV1Reserved;
LPVOID pV2Reserved;
DWORD dnDevNode;
}
struct ICINFO {
DWORD dwSize;
DWORD fccType;
DWORD fccHandler;
DWORD dwFlags;
DWORD dwVersion;
DWORD dwVersionICM;
WCHAR[16] szName = 0;
WCHAR[128] szDescription = 0;
WCHAR[128] szDriver = 0;
}
enum {
VIDCF_QUALITY = 0x0001,
VIDCF_CRUNCH = 0x0002,
VIDCF_TEMPORAL = 0x0004,
VIDCF_COMPRESSFRAMES = 0x0008,
VIDCF_DRAW = 0x0010,
VIDCF_FASTTEMPORALC = 0x0020,
VIDCF_FASTTEMPORALD = 0x0080,
}
enum ICCOMPRESS_KEYFRAME = 0x00000001L;
struct ICCOMPRESS {
DWORD dwFlags;
LPBITMAPINFOHEADER lpbiOutput;
LPVOID lpOutput;
LPBITMAPINFOHEADER lpbiInput;
LPVOID lpInput;
LPDWORD lpckid;
LPDWORD lpdwFlags;
LONG lFrameNum;
DWORD dwFrameSize;
DWORD dwQuality;
LPBITMAPINFOHEADER lpbiPrev;
LPVOID lpPrev;
}
enum ICCOMPRESSFRAMES_PADDING = 0x00000001;
struct ICCOMPRESSFRAMES {
DWORD dwFlags;
LPBITMAPINFOHEADER lpbiOutput;
LPARAM lOutput;
LPBITMAPINFOHEADER lpbiInput;
LPARAM lInput;
LONG lStartFrame;
LONG lFrameCount;
LONG lQuality;
LONG lDataRate;
LONG lKeyRate;
DWORD dwRate;
DWORD dwScale; DWORD dwOverheadPerFrame;
DWORD dwReserved2;
extern (Windows):
LONG function(LPARAM lInput, LONG lFrame, LPVOID lpBits, LONG len) GetData;
LONG function(LPARAM lOutput, LONG lFrame, LPVOID lpBits, LONG len) PutData;
}
enum {
ICSTATUS_START = 0,
ICSTATUS_STATUS = 1,
ICSTATUS_END = 2,
ICSTATUS_ERROR = 3,
ICSTATUS_YIELD = 4,
}
struct ICSETSTATUSPROC {
DWORD dwFlags;
LPARAM lParam;
extern (Windows)
LONG function(LPARAM lParam, UINT message, LONG l) Status;
}
enum {
ICDECOMPRESS_NOTKEYFRAME = 0x08000000,
ICDECOMPRESS_NULLFRAME = 0x10000000,
ICDECOMPRESS_PREROLL = 0x20000000,
ICDECOMPRESS_UPDATE = 0x40000000,
ICDECOMPRESS_HURRYUP = 0x80000000,
}
struct ICDECOMPRESS {
DWORD dwFlags;
LPBITMAPINFOHEADER lpbiInput;
LPVOID lpInput;
LPBITMAPINFOHEADER lpbiOutput;
LPVOID lpOutput;
DWORD ckid;
}
struct ICDECOMPRESSEX {
DWORD dwFlags;
LPBITMAPINFOHEADER lpbiSrc;
LPVOID lpSrc;
LPBITMAPINFOHEADER lpbiDst;
LPVOID lpDst;
int xDst;
int yDst;
int dxDst;
int dyDst;
int xSrc;
int ySrc;
int dxSrc;
int dySrc;
}
enum {
ICDRAW_QUERY = 0x00000001,
ICDRAW_FULLSCREEN = 0x00000002,
ICDRAW_HDC = 0x00000004,
ICDRAW_ANIMATE = 0x00000008,
ICDRAW_CONTINUE = 0x00000010,
ICDRAW_MEMORYDC = 0x00000020,
ICDRAW_UPDATING = 0x00000040,
ICDRAW_RENDER = 0x00000080,
ICDRAW_BUFFER = 0x00000100,
}
struct ICDRAWBEGIN {
DWORD dwFlags;
HPALETTE hpal;
HWND hwnd;
HDC hdc;
int xDst;
int yDst;
int dxDst;
int dyDst;
LPBITMAPINFOHEADER lpbi;
int xSrc;
int ySrc;
int dxSrc;
int dySrc;
DWORD dwRate;
DWORD dwScale;
}
enum {
ICDRAW_NOTKEYFRAME = 0x08000000,
ICDRAW_NULLFRAME = 0x10000000,
ICDRAW_PREROLL = 0x20000000,
ICDRAW_UPDATE = 0x40000000,
ICDRAW_HURRYUP = 0x80000000,
}
struct ICDRAW {
DWORD dwFlags;
LPVOID lpFormat;
LPVOID lpData;
DWORD cbData;
LONG lTime;
}
struct ICDRAWSUGGEST {
LPBITMAPINFOHEADER lpbiIn;
LPBITMAPINFOHEADER lpbiSuggest;
int dxSrc;
int dySrc;
int dxDst;
int dyDst;
HIC hicDecompressor;
}
struct ICPALETTE {
DWORD dwFlags;
int iStart;
int iLen;
LPPALETTEENTRY lppe;
}
/**
* ICM function declarations
*/
extern (Windows) {
BOOL ICInfo(DWORD fccType, DWORD fccHandler, ICINFO *lpicinfo);
BOOL ICInstall(DWORD fccType, DWORD fccHandler, LPARAM lParam, LPSTR szDesc, UINT wFlags);
BOOL ICRemove(DWORD fccType, DWORD fccHandler, UINT wFlags);
LRESULT ICGetInfo(HIC hic, ICINFO *picinfo, DWORD cb);
HIC ICOpen(DWORD fccType, DWORD fccHandler, UINT wMode);
HIC ICOpenFunction(DWORD fccType, DWORD fccHandler, UINT wMode, FARPROC lpfnHandler);
LRESULT ICClose(HIC hic);
LRESULT ICSendMessage(HIC hic, UINT msg, DWORD_PTR dw1, DWORD_PTR dw2);
}
enum {
ICINSTALL_FUNCTION = 0x0001,
ICINSTALL_DRIVER = 0x0002,
ICINSTALL_HDRV = 0x0004,
ICINSTALL_UNICODE = 0x8000,
ICINSTALL_DRIVERW = 0x8002,
}
// query macros
enum ICMF_CONFIGURE_QUERY = 0x00000001;
enum ICMF_ABOUT_QUERY = 0x00000001;
DWORD ICQueryAbout(HIC hic) {
return ICSendMessage(hic, ICM_ABOUT, -1, ICMF_ABOUT_QUERY) == ICERR_OK;
}
DWORD ICAbout(HIC hic, HWND hwnd) {
return cast(DWORD) ICSendMessage(hic, ICM_ABOUT, cast(DWORD_PTR) cast(UINT_PTR) hwnd, 0);
}
DWORD ICQueryConfigure(HIC hic) {
return (ICSendMessage(hic, ICM_CONFIGURE, -1, ICMF_CONFIGURE_QUERY) == ICERR_OK);
}
DWORD ICConfigure(HIC hic, HWND hwnd) {
return cast(DWORD) ICSendMessage(hic, ICM_CONFIGURE, cast(DWORD_PTR) cast(UINT_PTR) hwnd, 0);
}
DWORD ICGetState(HIC hic, LPVOID pv, DWORD_PTR cb) {
return cast(DWORD) ICSendMessage(hic, ICM_GETSTATE, cast(DWORD_PTR) pv, cb);
}
DWORD ICSetState(HIC hic, LPVOID pv, DWORD_PTR cb) {
return cast(DWORD) ICSendMessage(hic, ICM_SETSTATE, cast(DWORD_PTR) pv, cb);
}
DWORD ICGetStateSize(HIC hic) {
return ICGetState(hic, null, 0);
}
DWORD dwICValue;
DWORD ICGetDefaultQuality(HIC hic) {
ICSendMessage(hic, ICM_GETDEFAULTQUALITY, cast(DWORD_PTR)&dwICValue, DWORD.sizeof);
return dwICValue;
}
DWORD ICGetDefaultKeyFrameRate(HIC hic) {
ICSendMessage(hic, ICM_GETDEFAULTKEYFRAMERATE, cast(DWORD_PTR)&dwICValue, DWORD.sizeof);
return dwICValue;
}
DWORD ICDrawWindow(HIC hic, LPVOID prc) {
return cast(DWORD) ICSendMessage(hic, ICM_DRAW_WINDOW, cast(DWORD_PTR) prc, RECT.sizeof);
}
extern (Windows) {
DWORD ICCompress(HIC hic, DWORD dwFlags, LPBITMAPINFOHEADER lpbiOutput, LPVOID lpData,
LPBITMAPINFOHEADER lpbiInput, LPVOID lpBits, LPDWORD lpckid, LPDWORD lpdwFlags,
LONG lFrameNum, DWORD dwFrameSize, DWORD dwQuality, LPBITMAPINFOHEADER lpbiPrev, LPVOID lpPrev);
}
LRESULT ICCompressBegin(HIC hic, LPVOID lpbiInput, LPVOID lpbiOutput) {
return ICSendMessage(hic, ICM_COMPRESS_BEGIN, cast(DWORD_PTR)lpbiInput, cast(DWORD_PTR)lpbiOutput);
}
LRESULT ICCompressQuery(HIC hic, LPVOID lpbiInput, LPVOID lpbiOutput) {
return ICSendMessage(hic, ICM_COMPRESS_QUERY, cast(DWORD_PTR)lpbiInput, cast(DWORD_PTR)lpbiOutput);
}
LRESULT ICCompressGetFormat(HIC hic, LPVOID lpbiInput, LPVOID lpbiOutput) {
return ICSendMessage(hic, ICM_COMPRESS_GET_FORMAT, cast(DWORD_PTR)lpbiInput, cast(DWORD_PTR)lpbiOutput);
}
DWORD ICCompressGetFormatSize(HIC hic, LPVOID lpbi) {
return cast(DWORD)ICCompressGetFormat(hic, lpbi, null);
}
DWORD ICCompressGetSize(HIC hic, LPVOID lpbiInput, LPVOID lpbiOutput) {
return cast(DWORD)ICSendMessage(hic, ICM_COMPRESS_GET_SIZE, cast(DWORD_PTR)lpbiInput, cast(DWORD_PTR)lpbiOutput);
}
LRESULT ICCompressEnd(HIC hic) {
return ICSendMessage(hic, ICM_COMPRESS_END, 0, 0);
}
extern (Windows) {
DWORD ICDecompress(HIC hic, DWORD dwFlags, LPBITMAPINFOHEADER lpbiFormat, LPVOID lpData, LPBITMAPINFOHEADER lpbi, LPVOID lpBits);
}
LRESULT ICDecompressBegin(HIC hic, LPVOID lpbiInput, LPVOID lpbiOutput) {
return ICSendMessage(hic, ICM_DECOMPRESS_BEGIN, cast(DWORD_PTR)lpbiInput, cast(DWORD_PTR)lpbiOutput);
}
LRESULT ICDecompressQuery(HIC hic, LPVOID lpbiInput, LPVOID lpbiOutput) {
return ICSendMessage(hic, ICM_DECOMPRESS_QUERY, cast(DWORD_PTR)lpbiInput, cast(DWORD_PTR)lpbiOutput);
}
LONG ICDecompressGetFormat(HIC hic, LPVOID lpbiInput, LPVOID lpbiOutput) {
return cast(LONG)ICSendMessage(hic, ICM_DECOMPRESS_GET_FORMAT, cast(DWORD_PTR)lpbiInput, cast(DWORD_PTR)lpbiOutput);
}
LONG ICDecompressGetFormatSize(HIC hic, LPVOID lpbi) {
return ICDecompressGetFormat(hic, lpbi, null);
}
LRESULT ICDecompressGetPalette(HIC hic, LPVOID lpbiInput, LPVOID lpbiOutput) {
return ICSendMessage(hic, ICM_DECOMPRESS_GET_PALETTE, cast(DWORD_PTR)lpbiInput, cast(DWORD_PTR)lpbiOutput);
}
LRESULT ICDecompressSetPalette(HIC hic, LPVOID lpbiPalette) {
return ICSendMessage(hic, ICM_DECOMPRESS_SET_PALETTE, cast(DWORD_PTR)lpbiPalette, 0);
}
LRESULT ICDecompressEnd(HIC hic) {
return ICSendMessage(hic, ICM_DECOMPRESS_END, 0, 0);
}
LRESULT ICDecompressEx(HIC hic, DWORD dwFlags, LPBITMAPINFOHEADER lpbiSrc,
LPVOID lpSrc, int xSrc, int ySrc, int dxSrc, int dySrc, LPBITMAPINFOHEADER lpbiDst,
LPVOID lpDst, int xDst, int yDst, int dxDst, int dyDst) {
ICDECOMPRESSEX ic;
ic.dwFlags = dwFlags;
ic.lpbiSrc = lpbiSrc;
ic.lpSrc = lpSrc;
ic.xSrc = xSrc;
ic.ySrc = ySrc;
ic.dxSrc = dxSrc;
ic.dySrc = dySrc;
ic.lpbiDst = lpbiDst;
ic.lpDst = lpDst;
ic.xDst = xDst;
ic.yDst = yDst;
ic.dxDst = dxDst;
ic.dyDst = dyDst;
return ICSendMessage(hic, ICM_DECOMPRESSEX, cast(DWORD_PTR)&ic, ic.sizeof);
}
LRESULT ICDecompressExBegin(HIC hic, DWORD dwFlags, LPBITMAPINFOHEADER lpbiSrc,
LPVOID lpSrc, int xSrc, int ySrc, int dxSrc, int dySrc, LPBITMAPINFOHEADER lpbiDst,
LPVOID lpDst, int xDst, int yDst, int dxDst, int dyDst) {
ICDECOMPRESSEX ic;
ic.dwFlags = dwFlags;
ic.lpbiSrc = lpbiSrc;
ic.lpSrc = lpSrc;
ic.xSrc = xSrc;
ic.ySrc = ySrc;
ic.dxSrc = dxSrc;
ic.dySrc = dySrc;
ic.lpbiDst = lpbiDst;
ic.lpDst = lpDst;
ic.xDst = xDst;
ic.yDst = yDst;
ic.dxDst = dxDst;
ic.dyDst = dyDst;
return ICSendMessage(hic, ICM_DECOMPRESSEX_BEGIN, cast(DWORD_PTR)&ic, ic.sizeof);
}
LRESULT ICDecompressExQuery(HIC hic, DWORD dwFlags, LPBITMAPINFOHEADER lpbiSrc,
LPVOID lpSrc, int xSrc, int ySrc, int dxSrc, int dySrc, LPBITMAPINFOHEADER lpbiDst,
LPVOID lpDst, int xDst, int yDst, int dxDst, int dyDst) {
ICDECOMPRESSEX ic;
ic.dwFlags = dwFlags;
ic.lpbiSrc = lpbiSrc;
ic.lpSrc = lpSrc;
ic.xSrc = xSrc;
ic.ySrc = ySrc;
ic.dxSrc = dxSrc;
ic.dySrc = dySrc;
ic.lpbiDst = lpbiDst;
ic.lpDst = lpDst;
ic.xDst = xDst;
ic.yDst = yDst;
ic.dxDst = dxDst;
ic.dyDst = dyDst;
return ICSendMessage(hic, ICM_DECOMPRESSEX_QUERY, cast(DWORD_PTR)&ic, ic.sizeof);
}
LRESULT ICDecompressExEnd(HIC hic) {
return ICSendMessage(hic, ICM_DECOMPRESSEX_END, 0, 0);
}
extern (Windows) {
DWORD ICDrawBegin(HIC hic, DWORD dwFlags, HPALETTE hpal, HWND hwnd, HDC hdc,
int xDst, int yDst, int dxDst, int dyDst, LPBITMAPINFOHEADER lpbi,
int xSrc, int ySrc, int dxSrc, int dySrc, DWORD dwRate, DWORD dwScale);
}
extern (Windows) {
DWORD ICDraw(HIC hic, DWORD dwFlags, LPVOID lpFormat, LPVOID lpData, DWORD cbData, LONG lTime);
}
LRESULT ICDrawSuggestFormat(HIC hic, LPBITMAPINFOHEADER lpbiIn, LPBITMAPINFOHEADER lpbiOut,
int dxSrc, int dySrc, int dxDst, int dyDst, HIC hicDecomp) {
ICDRAWSUGGEST ic;
ic.lpbiIn = lpbiIn;
ic.lpbiSuggest = lpbiOut;
ic.dxSrc = dxSrc;
ic.dySrc = dySrc;
ic.dxDst = dxDst;
ic.dyDst = dyDst;
ic.hicDecompressor = hicDecomp;
return ICSendMessage(hic, ICM_DRAW_SUGGESTFORMAT, cast(DWORD_PTR)&ic, ic.sizeof);
}
LRESULT ICDrawQuery(HIC hic, LPVOID lpbiInput) {
return ICSendMessage(hic, ICM_DRAW_QUERY, cast(DWORD_PTR)lpbiInput, 0L);
}
LRESULT ICDrawChangePalette(HIC hic, LPVOID lpbiInput) {
return ICSendMessage(hic, ICM_DRAW_CHANGEPALETTE, cast(DWORD_PTR)lpbiInput, 0L);
}
LRESULT ICGetBuffersWanted(HIC hic, LPVOID lpdwBuffers) {
return ICSendMessage(hic, ICM_GETBUFFERSWANTED, cast(DWORD_PTR)lpdwBuffers, 0);
}
LRESULT ICDrawEnd(HIC hic) {
return ICSendMessage(hic, ICM_DRAW_END, 0, 0);
}
LRESULT ICDrawStart(HIC hic) {
return ICSendMessage(hic, ICM_DRAW_START, 0, 0);
}
LRESULT ICDrawStartPlay(HIC hic, DWORD lFrom, DWORD lTo) {
return ICSendMessage(hic, ICM_DRAW_START_PLAY, cast(DWORD_PTR)lFrom, cast(DWORD_PTR)lTo);
}
LRESULT ICDrawStop(HIC hic) {
return ICSendMessage(hic, ICM_DRAW_STOP, 0, 0);
}
LRESULT ICDrawStopPlay(HIC hic) {
return ICSendMessage(hic, ICM_DRAW_STOP_PLAY, 0, 0);
}
LRESULT ICDrawGetTime(HIC hic, LPVOID lplTime) {
return ICSendMessage(hic, ICM_DRAW_GETTIME, cast(DWORD_PTR)lplTime, 0);
}
LRESULT ICDrawSetTime(HIC hic, DWORD lTime) {
return ICSendMessage(hic, ICM_DRAW_SETTIME, cast(DWORD_PTR)lTime, 0);
}
LRESULT ICDrawRealize(HIC hic, HDC hdc, BOOL fBackground) {
return ICSendMessage(hic, ICM_DRAW_REALIZE, cast(DWORD_PTR)hdc, cast(DWORD_PTR)fBackground);
}
LRESULT ICDrawFlush(HIC hic) {
return ICSendMessage(hic, ICM_DRAW_FLUSH, 0, 0);
}
LRESULT ICDrawRenderBuffer(HIC hic) {
return ICSendMessage(hic, ICM_DRAW_RENDERBUFFER, 0, 0);
}
extern (Windows)
LRESULT ICSetStatusProc(HIC hic, DWORD dwFlags, LRESULT lParam, LONG function(LPARAM, UINT, LONG) fpfnStatus) {
ICSETSTATUSPROC ic;
ic.dwFlags = dwFlags;
ic.lParam = lParam;
ic.Status = fpfnStatus;
return ICSendMessage(hic, ICM_SET_STATUS_PROC, cast(DWORD_PTR)&ic, ic.sizeof);
}
HIC ICDecompressOpen(DWORD fccType, DWORD fccHandler, LPBITMAPINFOHEADER lpbiIn, LPBITMAPINFOHEADER lpbiOut) {
return ICLocate(fccType, fccHandler, lpbiIn, lpbiOut, ICMODE_DECOMPRESS);
}
HIC ICDrawOpen(DWORD fccType, DWORD fccHandler, LPBITMAPINFOHEADER lpbiIn) {
return ICLocate(fccType, fccHandler, lpbiIn, null, ICMODE_DRAW);
}
extern (Windows) {
HIC ICLocate(DWORD fccType, DWORD fccHandler, LPBITMAPINFOHEADER lpbiIn, LPBITMAPINFOHEADER lpbiOut, WORD wFlags);
HIC ICGetDisplayFormat(HIC hic, LPBITMAPINFOHEADER lpbiIn, LPBITMAPINFOHEADER lpbiOut, int BitDepth, int dx, int dy);
HANDLE ICImageCompress(HIC hic, UINT uiFlags, LPBITMAPINFO lpbiIn, LPVOID lpBits, LPBITMAPINFO lpbiOut, LONG lQuality, LONG* plSize);
HANDLE ICImageDecompress(HIC hic, UINT uiFlags, LPBITMAPINFO lpbiIn, LPVOID lpBits, LPBITMAPINFO lpbiOut);
}
struct COMPVARS {
LONG cbSize = this.sizeof;
DWORD dwFlags;
HIC hic;
DWORD fccType;
DWORD fccHandler;
LPBITMAPINFO lpbiIn;
LPBITMAPINFO lpbiOut;
LPVOID lpBitsOut;
LPVOID lpBitsPrev;
LONG lFrame;
LONG lKey;
LONG lDataRate;
LONG lQ;
LONG lKeyCount;
LPVOID lpState;
LONG cbState;
}
alias COMPVARS* PCOMPVARS;
enum ICMF_COMPVARS_VALID = 0x00000001;
extern (Windows) {
BOOL ICCompressorChoose(HWND hwnd, UINT uiFlags, LPVOID pvIn, LPVOID lpData, PCOMPVARS pc, LPSTR lpszTitle);
}
enum {
ICMF_CHOOSE_KEYFRAME = 0x0001,
ICMF_CHOOSE_DATARATE = 0x0002,
ICMF_CHOOSE_PREVIEW = 0x0004,
ICMF_CHOOSE_ALLCOMPRESSORS = 0x0008,
}
extern (Windows) {
BOOL ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn);
void ICSeqCompressFrameEnd(PCOMPVARS pc);
LPVOID ICSeqCompressFrame(PCOMPVARS pc, UINT uiFlags, LPVOID lpBits, BOOL* pfKey, LONG* plSize);
void ICCompressorFree(PCOMPVARS pc);
}
mixin DECLARE_HANDLE!("HDRAWDIB");
enum {
DDF_0001 = 0x0001,
DDF_UPDATE = 0x0002,
DDF_SAME_HDC = 0x0004,
DDF_SAME_DRAW = 0x0008,
DDF_DONTDRAW = 0x0010,
DDF_ANIMATE = 0x0020,
DDF_BUFFER = 0x0040,
DDF_JUSTDRAWIT = 0x0080,
DDF_FULLSCREEN = 0x0100,
DDF_BACKGROUNDPAL = 0x0200,
DDF_NOTKEYFRAME = 0x0400,
DDF_HURRYUP = 0x0800,
DDF_HALFTONE = 0x1000,
DDF_2000 = 0x2000,
DDF_PREROLL = DDF_DONTDRAW,
DDF_SAME_DIB = DDF_SAME_DRAW,
DDF_SAME_SIZE = DDF_SAME_DRAW,
}
extern (Windows) {
BOOL DrawDibInit();
HDRAWDIB DrawDibOpen();
BOOL DrawDibClose(HDRAWDIB hdd);
LPVOID DrawDibGetBuffer(HDRAWDIB hdd, LPBITMAPINFOHEADER lpbi, DWORD dwSize, DWORD dwFlags);
UINT DrawDibError(HDRAWDIB hdd);
HPALETTE DrawDibGetPalette(HDRAWDIB hdd);
BOOL DrawDibSetPalette(HDRAWDIB hdd, HPALETTE hpal);
BOOL DrawDibChangePalette(HDRAWDIB hdd, int iStart, int iLen, LPPALETTEENTRY lppe);
UINT DrawDibRealize(HDRAWDIB hdd, HDC hdc, BOOL fBackground);
BOOL DrawDibStart(HDRAWDIB hdd, DWORD rate);
BOOL DrawDibStop(HDRAWDIB hdd);
BOOL DrawDibBegin(HDRAWDIB hdd, HDC hdc, int dxDst, int dyDst, LPBITMAPINFOHEADER lpbi, int dxSrc, int dySrc, UINT wFlags);
BOOL DrawDibDraw(HDRAWDIB hdd, HDC hdc, int xDst, int yDst, int dxDst, int dyDst, LPBITMAPINFOHEADER lpbi,
LPVOID lpBits, int xSrc, int ySrc, int dxSrc, int dySrc, UINT wFlags);
}
BOOL DrawDibUpdate(HDRAWDIB hdd, HDC hdc, int x, int y) {
return DrawDibDraw(hdd, hdc, x, y, 0, 0, null, null, 0, 0, 0, 0, DDF_UPDATE);
}
extern (Windows) {
BOOL DrawDibEnd(HDRAWDIB hdd);
}
struct DRAWDIBTIME {
LONG timeCount;
LONG timeDraw;
LONG timeDecompress;
LONG timeDither;
LONG timeStretch;
LONG timeBlt;
LONG timeSetDIBits;
}
alias DRAWDIBTIME* LPDRAWDIBTIME;
extern (Windows) {
BOOL DrawDibTime(HDRAWDIB hdd, LPDRAWDIBTIME lpddtime);
}
enum {
PD_CAN_DRAW_DIB = 0x0001,
PD_CAN_STRETCHDIB = 0x0002,
PD_STRETCHDIB_1_1_OK = 0x0004,
PD_STRETCHDIB_1_2_OK = 0x0008,
PD_STRETCHDIB_1_N_OK = 0x0010,
}
extern (Windows) {
LRESULT DrawDibProfileDisplay(LPBITMAPINFOHEADER lpbi);
void StretchDIB(LPBITMAPINFOHEADER biDst, LPVOID lpDst, int DstX, int DstY,
int DstXE, int DstYE, LPBITMAPINFOHEADER biSrc, LPVOID lpSrc,
int SrcX, int SrcY, int SrcXE, int SrcYE);
}
alias DWORD FOURCC;
alias WORD TWOCC;
enum formtypeAVI = mmioFOURCC!('A', 'V', 'I', ' ');
enum listtypeAVIHEADER = mmioFOURCC!('h', 'd', 'r', 'l');
enum ckidAVIMAINHDR = mmioFOURCC!('a', 'v', 'i', 'h');
enum listtypeSTREAMHEADER = mmioFOURCC!('s', 't', 'r', 'l');
enum ckidSTREAMHEADER = mmioFOURCC!('s', 't', 'r', 'h');
enum ckidSTREAMFORMAT = mmioFOURCC!('s', 't', 'r', 'f');
enum ckidSTREAMHANDLERDATA = mmioFOURCC!('s', 't', 'r', 'd');
enum ckidSTREAMNAME = mmioFOURCC!('s', 't', 'r', 'n');
enum listtypeAVIMOVIE = mmioFOURCC!('m', 'o', 'v', 'i');
enum listtypeAVIRECORD = mmioFOURCC!('r', 'e', 'c', ' ');
enum ckidAVINEWINDEX = mmioFOURCC!('i', 'd', 'x', '1');
enum streamtypeVIDEO = mmioFOURCC!('v', 'i', 'd', 's');
enum streamtypeAUDIO = mmioFOURCC!('a', 'u', 'd', 's');
enum streamtypeMIDI = mmioFOURCC!('m', 'i', 'd', 's');
enum streamtypeTEXT = mmioFOURCC!('t', 'x', 't', 's');
enum cktypeDIBbits = aviTWOCC!('d', 'b');
enum cktypeDIBcompressed = aviTWOCC!('d', 'c');
enum cktypePALchange = aviTWOCC!('p', 'c');
enum cktypeWAVEbytes = aviTWOCC!('w', 'b');
enum ckidAVIPADDING = mmioFOURCC!('J', 'U', 'N', 'K');
DWORD FromHex(char n) {
return (n >= 'A') ? n + 10 - 'A' : n - '0';
}
WORD StreamFromFOURCC(DWORD fcc) {
return cast(WORD)((FromHex(LOBYTE(LOWORD(fcc))) << 4) + (FromHex(HIBYTE(LOWORD(fcc)))));
}
WORD TWOCCFromFOURCC(DWORD fcc) {
return HIWORD(fcc);
}
BYTE ToHex(DWORD n) {
return cast(BYTE)((n > 9) ? n - 10 + 'A' : n + '0');
}
DWORD MAKEAVICKID(WORD tcc, WORD stream) {
return MAKELONG(cast(WORD)((ToHex(stream & 0x0f) << 8) | (ToHex((stream & 0xf0) >> 4))), tcc);
}
enum {
AVIF_HASINDEX = 0x00000010,
AVIF_MUSTUSEINDEX = 0x00000020,
AVIF_ISINTERLEAVED = 0x00000100,
AVIF_WASCAPTUREFILE = 0x00010000,
AVIF_COPYRIGHTED = 0x00020000,
}
enum AVI_HEADERSIZE = 2048;
struct MainAVIHeader {
DWORD dwMicroSecPerFrame;
DWORD dwMaxBytesPerSec;
DWORD dwPaddingGranularity;
DWORD dwFlags;
DWORD dwTotalFrames;
DWORD dwInitialFrames;
DWORD dwStreams;
DWORD dwSuggestedBufferSize;
DWORD dwWidth;
DWORD dwHeight;
DWORD[4] dwReserved;
}
enum AVISF_DISABLED = 0x00000001;
enum AVISF_VIDEO_PALCHANGES = 0x00010000;
struct AVIStreamHeader {
FOURCC fccType;
FOURCC fccHandler;
DWORD dwFlags;
WORD wPriority;
WORD wLanguage;
DWORD dwInitialFrames;
DWORD dwScale;
DWORD dwRate;
DWORD dwStart;
DWORD dwLength;
DWORD dwSuggestedBufferSize;
DWORD dwQuality;
DWORD dwSampleSize;
RECT rcFrame;
}
enum {
AVIIF_FIRSTPART = 0x00000020L,
AVIIF_LASTPART = 0x00000040L,
AVIIF_MIDPART = (AVIIF_LASTPART|AVIIF_FIRSTPART),
AVIIF_NOTIME = 0x00000100L,
AVIIF_COMPUSE = 0x0FFF0000L,
}
struct AVIINDEXENTRY {
DWORD ckid;
DWORD dwFlags;
DWORD dwChunkOffset;
DWORD dwChunkLength;
}
struct AVIPALCHANGE {
BYTE bFirstEntry;
BYTE bNumEntries;
WORD wFlags;
PALETTEENTRY[1] _peNew;
PALETTEENTRY* peNew() return { return _peNew.ptr; }
}
enum AVIGETFRAMEF_BESTDISPLAYFMT = 1;
struct AVISTREAMINFOW {
DWORD fccType;
DWORD fccHandler;
DWORD dwFlags;
DWORD dwCaps;
WORD wPriority;
WORD wLanguage;
DWORD dwScale;
DWORD dwRate;
DWORD dwStart;
DWORD dwLength;
DWORD dwInitialFrames;
DWORD dwSuggestedBufferSize;
DWORD dwQuality;
DWORD dwSampleSize;
RECT rcFrame;
DWORD dwEditCount;
DWORD dwFormatChangeCount;
WCHAR[64] szName = 0;
}
alias AVISTREAMINFOW* LPAVISTREAMINFOW;
struct AVISTREAMINFOA {
DWORD fccType;
DWORD fccHandler;
DWORD dwFlags;
DWORD dwCaps;
WORD wPriority;
WORD wLanguage;
DWORD dwScale;
DWORD dwRate;
DWORD dwStart;
DWORD dwLength;
DWORD dwInitialFrames;
DWORD dwSuggestedBufferSize;
DWORD dwQuality;
DWORD dwSampleSize;
RECT rcFrame;
DWORD dwEditCount;
DWORD dwFormatChangeCount;
char[64] szName = 0;
}
alias AVISTREAMINFOA* LPAVISTREAMINFOA;
version (Unicode) {
alias AVISTREAMINFOW AVISTREAMINFO;
alias LPAVISTREAMINFOW LPAVISTREAMINFO;
} else { // Unicode
alias AVISTREAMINFOA AVISTREAMINFO;
alias LPAVISTREAMINFOA LPAVISTREAMINFO;
}
enum AVISTREAMINFO_DISABLED = 0x00000001;
enum AVISTREAMINFO_FORMATCHANGES = 0x00010000;
struct AVIFILEINFOW {
DWORD dwMaxBytesPerSec;
DWORD dwFlags;
DWORD dwCaps;
DWORD dwStreams;
DWORD dwSuggestedBufferSize;
DWORD dwWidth;
DWORD dwHeight;
DWORD dwScale;
DWORD dwRate;
DWORD dwLength;
DWORD dwEditCount;
WCHAR[64] szFileType = 0;
}
alias AVIFILEINFOW* LPAVIFILEINFOW;
struct AVIFILEINFOA {
DWORD dwMaxBytesPerSec;
DWORD dwFlags;
DWORD dwCaps;
DWORD dwStreams;
DWORD dwSuggestedBufferSize;
DWORD dwWidth;
DWORD dwHeight;
DWORD dwScale;
DWORD dwRate;
DWORD dwLength;
DWORD dwEditCount;
char[64] szFileType = 0;
}
alias AVIFILEINFOA* LPAVIFILEINFOA;
version (Unicode) {
alias AVIFILEINFOW AVIFILEINFO;
alias LPAVIFILEINFOW LPAVIFILEINFO;
} else { // Unicode
alias AVIFILEINFOA AVIFILEINFO;
alias LPAVIFILEINFOA LPAVIFILEINFO;
}
enum {
AVIFILEINFO_HASINDEX = 0x00000010,
AVIFILEINFO_MUSTUSEINDEX = 0x00000020,
AVIFILEINFO_ISINTERLEAVED = 0x00000100,
AVIFILEINFO_WASCAPTUREFILE = 0x00010000,
AVIFILEINFO_COPYRIGHTED = 0x00020000,
}
enum {
AVIFILECAPS_CANREAD = 0x00000001,
AVIFILECAPS_CANWRITE = 0x00000002,
AVIFILECAPS_ALLKEYFRAMES = 0x00000010,
AVIFILECAPS_NOCOMPRESSION = 0x00000020,
}
extern (Windows) {
alias BOOL function(int) AVISAVECALLBACK;
}
struct AVICOMPRESSOPTIONS {
DWORD fccType;
DWORD fccHandler;
DWORD dwKeyFrameEvery;
DWORD dwQuality;
DWORD dwBytesPerSecond;
DWORD dwFlags;
LPVOID lpFormat;
DWORD cbFormat;
LPVOID lpParms;
DWORD cbParms;
DWORD dwInterleaveEvery;
}
alias AVICOMPRESSOPTIONS* LPAVICOMPRESSOPTIONS;
enum {
AVICOMPRESSF_INTERLEAVE = 0x00000001,
AVICOMPRESSF_DATARATE = 0x00000002,
AVICOMPRESSF_KEYFRAMES = 0x00000004,
AVICOMPRESSF_VALID = 0x00000008,
}
/+ TODO:
DECLARE_INTERFACE_(IAVIStream, IUnknown)
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD(Create) (THIS_ LPARAM lParam1, LPARAM lParam2) PURE ;
STDMETHOD(Info) (THIS_ AVISTREAMINFOW FAR * psi, LONG lSize) PURE ;
STDMETHOD_(LONG, FindSample)(THIS_ LONG lPos, LONG lFlags) PURE ;
STDMETHOD(ReadFormat) (THIS_ LONG lPos,
LPVOID lpFormat, LONG FAR *lpcbFormat) PURE ;
STDMETHOD(SetFormat) (THIS_ LONG lPos,
LPVOID lpFormat, LONG cbFormat) PURE ;
STDMETHOD(Read) (THIS_ LONG lStart, LONG lSamples,
LPVOID lpBuffer, LONG cbBuffer,
LONG FAR * plBytes, LONG FAR * plSamples) PURE ;
STDMETHOD(Write) (THIS_ LONG lStart, LONG lSamples,
LPVOID lpBuffer, LONG cbBuffer,
DWORD dwFlags,
LONG FAR *plSampWritten,
LONG FAR *plBytesWritten) PURE ;
STDMETHOD(Delete) (THIS_ LONG lStart, LONG lSamples) PURE;
STDMETHOD(ReadData) (THIS_ DWORD fcc, LPVOID lp, LONG FAR *lpcb) PURE ;
STDMETHOD(WriteData) (THIS_ DWORD fcc, LPVOID lp, LONG cb) PURE ;
#ifdef _WIN32
STDMETHOD(SetInfo) (THIS_ AVISTREAMINFOW FAR * lpInfo,
LONG cbInfo) PURE;
#else
STDMETHOD(Reserved1) (THIS) PURE;
STDMETHOD(Reserved2) (THIS) PURE;
STDMETHOD(Reserved3) (THIS) PURE;
STDMETHOD(Reserved4) (THIS) PURE;
STDMETHOD(Reserved5) (THIS) PURE;
#endif
};
alias TypeDef!(IAVIStream FAR*) PAVISTREAM;
#undef INTERFACE
#define INTERFACE IAVIStreaming
DECLARE_INTERFACE_(IAVIStreaming, IUnknown)
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD(Begin) (THIS_
LONG lStart,
LONG lEnd,
LONG lRate) PURE;
STDMETHOD(End) (THIS) PURE;
};
alias TypeDef!(IAVIStreaming FAR*) PAVISTREAMING;
#undef INTERFACE
#define INTERFACE IAVIEditStream
DECLARE_INTERFACE_(IAVIEditStream, IUnknown)
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD(Cut) (THIS_ LONG FAR *plStart,
LONG FAR *plLength,
PAVISTREAM FAR * ppResult) PURE;
STDMETHOD(Copy) (THIS_ LONG FAR *plStart,
LONG FAR *plLength,
PAVISTREAM FAR * ppResult) PURE;
STDMETHOD(Paste) (THIS_ LONG FAR *plPos,
LONG FAR *plLength,
PAVISTREAM pstream,
LONG lStart,
LONG lEnd) PURE;
STDMETHOD(Clone) (THIS_ PAVISTREAM FAR *ppResult) PURE;
STDMETHOD(SetInfo) (THIS_ AVISTREAMINFOW FAR * lpInfo,
LONG cbInfo) PURE;
};
alias TypeDef!(IAVIEditStream FAR*) PAVIEDITSTREAM;
#undef INTERFACE
#define INTERFACE IAVIPersistFile
DECLARE_INTERFACE_(IAVIPersistFile, IPersistFile)
{
STDMETHOD(Reserved1)(THIS) PURE;
};
alias TypeDef!(IAVIPersistFile FAR*) PAVIPERSISTFILE;
#undef INTERFACE
#define INTERFACE IAVIFile
#define PAVIFILE IAVIFile FAR*
DECLARE_INTERFACE_(IAVIFile, IUnknown)
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD(Info) (THIS_
AVIFILEINFOW FAR * pfi,
LONG lSize) PURE;
STDMETHOD(GetStream) (THIS_
PAVISTREAM FAR * ppStream,
DWORD fccType,
LONG lParam) PURE;
STDMETHOD(CreateStream) (THIS_
PAVISTREAM FAR * ppStream,
AVISTREAMINFOW FAR * psi) PURE;
STDMETHOD(WriteData) (THIS_
DWORD ckid,
LPVOID lpData,
LONG cbData) PURE;
STDMETHOD(ReadData) (THIS_
DWORD ckid,
LPVOID lpData,
LONG FAR *lpcbData) PURE;
STDMETHOD(EndRecord) (THIS) PURE;
STDMETHOD(DeleteStream) (THIS_
DWORD fccType,
LONG lParam) PURE;
};
#undef PAVIFILE
alias TypeDef!(IAVIFile FAR*) PAVIFILE;
#undef INTERFACE
#define INTERFACE IGetFrame
#define PGETFRAME IGetFrame FAR*
DECLARE_INTERFACE_(IGetFrame, IUnknown)
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD_(LPVOID,GetFrame) (THIS_ LONG lPos) PURE;
STDMETHOD(Begin) (THIS_ LONG lStart, LONG lEnd, LONG lRate) PURE;
STDMETHOD(End) (THIS) PURE;
STDMETHOD(SetFormat) (THIS_ LPBITMAPINFOHEADER lpbi, LPVOID lpBits, int x, int y, int dx, int dy) PURE;
};
#undef PGETFRAME
alias TypeDef!(IGetFrame FAR*) PGETFRAME;
#define DEFINE_AVIGUID(name, l, w1, w2) DEFINE_GUID(name, l, w1, w2, 0xC0,0,0,0,0,0,0,0x46)
DEFINE_AVIGUID(IID_IAVIFile, 0x00020020, 0, 0);
DEFINE_AVIGUID(IID_IAVIStream, 0x00020021, 0, 0);
DEFINE_AVIGUID(IID_IAVIStreaming, 0x00020022, 0, 0);
DEFINE_AVIGUID(IID_IGetFrame, 0x00020023, 0, 0);
DEFINE_AVIGUID(IID_IAVIEditStream, 0x00020024, 0, 0);
DEFINE_AVIGUID(IID_IAVIPersistFile, 0x00020025, 0, 0);
#ifndef UNICODE
DEFINE_AVIGUID(CLSID_AVISimpleUnMarshal, 0x00020009, 0, 0);
#endif
DEFINE_AVIGUID(CLSID_AVIFile, 0x00020000, 0, 0);
#define AVIFILEHANDLER_CANREAD 0x0001
#define AVIFILEHANDLER_CANWRITE 0x0002
#define AVIFILEHANDLER_CANACCEPTNONRGB 0x0004
STDAPI_(void) AVIFileInit(void);
STDAPI_(void) AVIFileExit(void);
STDAPI_(ULONG) AVIFileAddRef (PAVIFILE pfile);
STDAPI_(ULONG) AVIFileRelease (PAVIFILE pfile);
#ifdef _WIN32
STDAPI AVIFileOpenA (PAVIFILE FAR * ppfile, LPCSTR szFile,
UINT uMode, LPCLSID lpHandler);
STDAPI AVIFileOpenW (PAVIFILE FAR * ppfile, LPCWSTR szFile,
UINT uMode, LPCLSID lpHandler);
#ifdef UNICODE
#define AVIFileOpen AVIFileOpenW
#else
#define AVIFileOpen AVIFileOpenA
#endif
#else
STDAPI AVIFileOpen (PAVIFILE FAR * ppfile, LPCSTR szFile,
UINT uMode, LPCLSID lpHandler);
#define AVIFileOpenW AVIFileOpen
#endif
#ifdef _WIN32
STDAPI AVIFileInfoW (PAVIFILE pfile, LPAVIFILEINFOW pfi, LONG lSize);
STDAPI AVIFileInfoA (PAVIFILE pfile, LPAVIFILEINFOA pfi, LONG lSize);
#ifdef UNICODE
#define AVIFileInfo AVIFileInfoW
#else
#define AVIFileInfo AVIFileInfoA
#endif
#else
STDAPI AVIFileInfo (PAVIFILE pfile, LPAVIFILEINFO pfi, LONG lSize);
#define AVIFileInfoW AVIFileInfo
#endif
STDAPI AVIFileGetStream (PAVIFILE pfile, PAVISTREAM FAR * ppavi, DWORD fccType, LONG lParam);
#ifdef _WIN32
STDAPI AVIFileCreateStreamW (PAVIFILE pfile, PAVISTREAM FAR *ppavi, AVISTREAMINFOW FAR * psi);
STDAPI AVIFileCreateStreamA (PAVIFILE pfile, PAVISTREAM FAR *ppavi, AVISTREAMINFOA FAR * psi);
#ifdef UNICODE
#define AVIFileCreateStream AVIFileCreateStreamW
#else
#define AVIFileCreateStream AVIFileCreateStreamA
#endif
#else
STDAPI AVIFileCreateStream(PAVIFILE pfile, PAVISTREAM FAR *ppavi, AVISTREAMINFO FAR * psi);
#define AVIFileCreateStreamW AVIFileCreateStream
#endif
STDAPI AVIFileWriteData (PAVIFILE pfile,
DWORD ckid,
LPVOID lpData,
LONG cbData);
STDAPI AVIFileReadData (PAVIFILE pfile,
DWORD ckid,
LPVOID lpData,
LONG FAR *lpcbData);
STDAPI AVIFileEndRecord (PAVIFILE pfile);
STDAPI_(ULONG) AVIStreamAddRef (PAVISTREAM pavi);
STDAPI_(ULONG) AVIStreamRelease (PAVISTREAM pavi);
STDAPI AVIStreamInfoW (PAVISTREAM pavi, LPAVISTREAMINFOW psi, LONG lSize);
STDAPI AVIStreamInfoA (PAVISTREAM pavi, LPAVISTREAMINFOA psi, LONG lSize);
#ifdef UNICODE
#define AVIStreamInfo AVIStreamInfoW
#else
#define AVIStreamInfo AVIStreamInfoA
#endif
STDAPI_(LONG) AVIStreamFindSample(PAVISTREAM pavi, LONG lPos, LONG lFlags);
STDAPI AVIStreamReadFormat (PAVISTREAM pavi, LONG lPos,LPVOID lpFormat,LONG FAR *lpcbFormat);
STDAPI AVIStreamSetFormat (PAVISTREAM pavi, LONG lPos,LPVOID lpFormat,LONG cbFormat);
STDAPI AVIStreamReadData (PAVISTREAM pavi, DWORD fcc, LPVOID lp, LONG FAR *lpcb);
STDAPI AVIStreamWriteData (PAVISTREAM pavi, DWORD fcc, LPVOID lp, LONG cb);
STDAPI AVIStreamRead (PAVISTREAM pavi,
LONG lStart,
LONG lSamples,
LPVOID lpBuffer,
LONG cbBuffer,
LONG FAR * plBytes,
LONG FAR * plSamples);
#define AVISTREAMREAD_CONVENIENT (-1L)
STDAPI AVIStreamWrite (PAVISTREAM pavi,
LONG lStart, LONG lSamples,
LPVOID lpBuffer, LONG cbBuffer, DWORD dwFlags,
LONG FAR *plSampWritten,
LONG FAR *plBytesWritten);
STDAPI_(LONG) AVIStreamStart (PAVISTREAM pavi);
STDAPI_(LONG) AVIStreamLength (PAVISTREAM pavi);
STDAPI_(LONG) AVIStreamTimeToSample (PAVISTREAM pavi, LONG lTime);
STDAPI_(LONG) AVIStreamSampleToTime (PAVISTREAM pavi, LONG lSample);
STDAPI AVIStreamBeginStreaming(PAVISTREAM pavi, LONG lStart, LONG lEnd, LONG lRate);
STDAPI AVIStreamEndStreaming(PAVISTREAM pavi);
STDAPI_(PGETFRAME) AVIStreamGetFrameOpen(PAVISTREAM pavi,
LPBITMAPINFOHEADER lpbiWanted);
STDAPI_(LPVOID) AVIStreamGetFrame(PGETFRAME pg, LONG lPos);
STDAPI AVIStreamGetFrameClose(PGETFRAME pg);
STDAPI AVIStreamOpenFromFileA(PAVISTREAM FAR *ppavi, LPCSTR szFile,
DWORD fccType, LONG lParam,
UINT mode, CLSID FAR *pclsidHandler);
STDAPI AVIStreamOpenFromFileW(PAVISTREAM FAR *ppavi, LPCWSTR szFile,
DWORD fccType, LONG lParam,
UINT mode, CLSID FAR *pclsidHandler);
#ifdef UNICODE
#define AVIStreamOpenFromFile AVIStreamOpenFromFileW
#else
#define AVIStreamOpenFromFile AVIStreamOpenFromFileA
#endif
STDAPI AVIStreamCreate(PAVISTREAM FAR *ppavi, LONG lParam1, LONG lParam2,
CLSID FAR *pclsidHandler);
#define FIND_DIR 0x0000000FL
#define FIND_NEXT 0x00000001L
#define FIND_PREV 0x00000004L
#define FIND_FROM_START 0x00000008L
#define FIND_TYPE 0x000000F0L
#define FIND_KEY 0x00000010L
#define FIND_ANY 0x00000020L
#define FIND_FORMAT 0x00000040L
#define FIND_RET 0x0000F000L
#define FIND_POS 0x00000000L
#define FIND_LENGTH 0x00001000L
#define FIND_OFFSET 0x00002000L
#define FIND_SIZE 0x00003000L
#define FIND_INDEX 0x00004000L
#define AVIStreamFindKeyFrame AVIStreamFindSample
#define FindKeyFrame FindSample
#define AVIStreamClose AVIStreamRelease
#define AVIFileClose AVIFileRelease
#define AVIStreamInit AVIFileInit
#define AVIStreamExit AVIFileExit
#define SEARCH_NEAREST FIND_PREV
#define SEARCH_BACKWARD FIND_PREV
#define SEARCH_FORWARD FIND_NEXT
#define SEARCH_KEY FIND_KEY
#define SEARCH_ANY FIND_ANY
#define AVIStreamSampleToSample(pavi1, pavi2, l) AVIStreamTimeToSample(pavi1,AVIStreamSampleToTime(pavi2, l))
#define AVIStreamNextSample(pavi, l) AVIStreamFindSample(pavi,l+1,FIND_NEXT|FIND_ANY)
#define AVIStreamPrevSample(pavi, l) AVIStreamFindSample(pavi,l-1,FIND_PREV|FIND_ANY)
#define AVIStreamNearestSample(pavi, l) AVIStreamFindSample(pavi,l,FIND_PREV|FIND_ANY)
#define AVIStreamNextKeyFrame(pavi,l) AVIStreamFindSample(pavi,l+1,FIND_NEXT|FIND_KEY)
#define AVIStreamPrevKeyFrame(pavi, l) AVIStreamFindSample(pavi,l-1,FIND_PREV|FIND_KEY)
#define AVIStreamNearestKeyFrame(pavi, l) AVIStreamFindSample(pavi,l,FIND_PREV|FIND_KEY)
#define AVIStreamIsKeyFrame(pavi, l) (AVIStreamNearestKeyFrame(pavi,l) == l)
#define AVIStreamPrevSampleTime(pavi, t) AVIStreamSampleToTime(pavi, AVIStreamPrevSample(pavi,AVIStreamTimeToSample(pavi,t)))
#define AVIStreamNextSampleTime(pavi, t) AVIStreamSampleToTime(pavi, AVIStreamNextSample(pavi,AVIStreamTimeToSample(pavi,t)))
#define AVIStreamNearestSampleTime(pavi, t) AVIStreamSampleToTime(pavi, AVIStreamNearestSample(pavi,AVIStreamTimeToSample(pavi,t)))
#define AVIStreamNextKeyFrameTime(pavi, t) AVIStreamSampleToTime(pavi, AVIStreamNextKeyFrame(pavi,AVIStreamTimeToSample(pavi, t)))
#define AVIStreamPrevKeyFrameTime(pavi, t) AVIStreamSampleToTime(pavi, AVIStreamPrevKeyFrame(pavi,AVIStreamTimeToSample(pavi, t)))
#define AVIStreamNearestKeyFrameTime(pavi, t) AVIStreamSampleToTime(pavi, AVIStreamNearestKeyFrame(pavi,AVIStreamTimeToSample(pavi, t)))
#define AVIStreamStartTime(pavi) AVIStreamSampleToTime(pavi, AVIStreamStart(pavi))
#define AVIStreamLengthTime(pavi) AVIStreamSampleToTime(pavi, AVIStreamLength(pavi))
#define AVIStreamEnd(pavi) (AVIStreamStart(pavi) + AVIStreamLength(pavi))
#define AVIStreamEndTime(pavi) AVIStreamSampleToTime(pavi, AVIStreamEnd(pavi))
#define AVIStreamSampleSize(pavi, lPos, plSize) AVIStreamRead(pavi,lPos,1,NULL,0,plSize,NULL)
#define AVIStreamFormatSize(pavi, lPos, plSize) AVIStreamReadFormat(pavi,lPos,NULL,plSize)
#define AVIStreamDataSize(pavi, fcc, plSize) AVIStreamReadData(pavi,fcc,NULL,plSize)
#ifndef comptypeDIB
#define comptypeDIB mmioFOURCC('D', 'I', 'B', ' ')
#endif
STDAPI AVIMakeCompressedStream(
PAVISTREAM FAR * ppsCompressed,
PAVISTREAM ppsSource,
AVICOMPRESSOPTIONS FAR * lpOptions,
CLSID FAR *pclsidHandler);
EXTERN_C HRESULT CDECL AVISaveA (LPCSTR szFile,
CLSID FAR *pclsidHandler,
AVISAVECALLBACK lpfnCallback,
int nStreams,
PAVISTREAM pfile,
LPAVICOMPRESSOPTIONS lpOptions,
...);
STDAPI AVISaveVA(LPCSTR szFile,
CLSID FAR *pclsidHandler,
AVISAVECALLBACK lpfnCallback,
int nStreams,
PAVISTREAM FAR * ppavi,
LPAVICOMPRESSOPTIONS FAR *plpOptions);
EXTERN_C HRESULT CDECL AVISaveW (LPCWSTR szFile,
CLSID FAR *pclsidHandler,
AVISAVECALLBACK lpfnCallback,
int nStreams,
PAVISTREAM pfile,
LPAVICOMPRESSOPTIONS lpOptions,
...);
STDAPI AVISaveVW(LPCWSTR szFile,
CLSID FAR *pclsidHandler,
AVISAVECALLBACK lpfnCallback,
int nStreams,
PAVISTREAM FAR * ppavi,
LPAVICOMPRESSOPTIONS FAR *plpOptions);
#ifdef UNICODE
#define AVISave AVISaveW
#define AVISaveV AVISaveVW
#else
#define AVISave AVISaveA
#define AVISaveV AVISaveVA
#endif
STDAPI_(INT_PTR) AVISaveOptions(HWND hwnd,
UINT uiFlags,
int nStreams,
PAVISTREAM FAR *ppavi,
LPAVICOMPRESSOPTIONS FAR *plpOptions);
STDAPI AVISaveOptionsFree(int nStreams,
LPAVICOMPRESSOPTIONS FAR *plpOptions);
STDAPI AVIBuildFilterW(LPWSTR lpszFilter, LONG cbFilter, BOOL fSaving);
STDAPI AVIBuildFilterA(LPSTR lpszFilter, LONG cbFilter, BOOL fSaving);
#ifdef UNICODE
#define AVIBuildFilter AVIBuildFilterW
#else
#define AVIBuildFilter AVIBuildFilterA
#endif
STDAPI AVIMakeFileFromStreams(PAVIFILE FAR * ppfile,
int nStreams,
PAVISTREAM FAR * papStreams);
STDAPI AVIMakeStreamFromClipboard(UINT cfFormat, HANDLE hGlobal, PAVISTREAM FAR *ppstream);
STDAPI AVIPutFileOnClipboard(PAVIFILE pf);
STDAPI AVIGetFromClipboard(PAVIFILE FAR * lppf);
STDAPI AVIClearClipboard(void);
STDAPI CreateEditableStream(
PAVISTREAM FAR * ppsEditable,
PAVISTREAM psSource);
STDAPI EditStreamCut(PAVISTREAM pavi, LONG FAR *plStart, LONG FAR *plLength, PAVISTREAM FAR * ppResult);
STDAPI EditStreamCopy(PAVISTREAM pavi, LONG FAR *plStart, LONG FAR *plLength, PAVISTREAM FAR * ppResult);
STDAPI EditStreamPaste(PAVISTREAM pavi, LONG FAR *plPos, LONG FAR *plLength, PAVISTREAM pstream, LONG lStart, LONG lEnd);
STDAPI EditStreamClone(PAVISTREAM pavi, PAVISTREAM FAR *ppResult);
STDAPI EditStreamSetNameA(PAVISTREAM pavi, LPCSTR lpszName);
STDAPI EditStreamSetNameW(PAVISTREAM pavi, LPCWSTR lpszName);
STDAPI EditStreamSetInfoW(PAVISTREAM pavi, LPAVISTREAMINFOW lpInfo, LONG cbInfo);
STDAPI EditStreamSetInfoA(PAVISTREAM pavi, LPAVISTREAMINFOA lpInfo, LONG cbInfo);
#ifdef UNICODE
#define EditStreamSetInfo EditStreamSetInfoW
#define EditStreamSetName EditStreamSetNameW
#else
#define EditStreamSetInfo EditStreamSetInfoA
#define EditStreamSetName EditStreamSetNameA
#endif
+/
enum AVIERR_OK = 0L;
SCODE MAKE_AVIERR(DWORD error) {
return MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x4000 + error);
}
enum AVIERR_UNSUPPORTED = MAKE_AVIERR(101);
enum AVIERR_BADFORMAT = MAKE_AVIERR(102);
enum AVIERR_MEMORY = MAKE_AVIERR(103);
enum AVIERR_INTERNAL = MAKE_AVIERR(104);
enum AVIERR_BADFLAGS = MAKE_AVIERR(105);
enum AVIERR_BADPARAM = MAKE_AVIERR(106);
enum AVIERR_BADSIZE = MAKE_AVIERR(107);
enum AVIERR_BADHANDLE = MAKE_AVIERR(108);
enum AVIERR_FILEREAD = MAKE_AVIERR(109);
enum AVIERR_FILEWRITE = MAKE_AVIERR(110);
enum AVIERR_FILEOPEN = MAKE_AVIERR(111);
enum AVIERR_COMPRESSOR = MAKE_AVIERR(112);
enum AVIERR_NOCOMPRESSOR = MAKE_AVIERR(113);
enum AVIERR_READONLY = MAKE_AVIERR(114);
enum AVIERR_NODATA = MAKE_AVIERR(115);
enum AVIERR_BUFFERTOOSMALL = MAKE_AVIERR(116);
enum AVIERR_CANTCOMPRESS = MAKE_AVIERR(117);
enum AVIERR_USERABORT = MAKE_AVIERR(198);
enum AVIERR_ERROR = MAKE_AVIERR(199);
const TCHAR[] MCIWND_WINDOW_CLASS = "MCIWndClass";
extern (Windows) {
HWND MCIWndCreateA(HWND hwndParent, HINSTANCE hInstance, DWORD dwStyle, LPCSTR szFile);
HWND MCIWndCreateW(HWND hwndParent, HINSTANCE hInstance, DWORD dwStyle, LPCWSTR szFile);
}
version (Unicode) {
alias MCIWndCreateW MCIWndCreate;
} else { // Unicode
alias MCIWndCreateA MCIWndCreate;
}
extern(Windows) {
BOOL MCIWndRegisterClass();
}
enum {
MCIWNDOPENF_NEW = 0x0001,
MCIWNDF_NOAUTOSIZEWINDOW = 0x0001,
MCIWNDF_NOPLAYBAR = 0x0002,
MCIWNDF_NOAUTOSIZEMOVIE = 0x0004,
MCIWNDF_NOMENU = 0x0008,
MCIWNDF_SHOWNAME = 0x0010,
MCIWNDF_SHOWPOS = 0x0020,
MCIWNDF_SHOWMODE = 0x0040,
MCIWNDF_SHOWALL = 0x0070,
MCIWNDF_NOTIFYMODE = 0x0100,
MCIWNDF_NOTIFYPOS = 0x0200,
MCIWNDF_NOTIFYSIZE = 0x0400,
MCIWNDF_NOTIFYERROR = 0x1000,
MCIWNDF_NOTIFYALL = 0x1F00,
MCIWNDF_NOTIFYANSI = 0x0080,
MCIWNDF_NOTIFYMEDIAA = 0x0880,
MCIWNDF_NOTIFYMEDIAW = 0x0800,
}
version (Unicode) {
alias MCIWNDF_NOTIFYMEDIAW MCIWNDF_NOTIFYMEDIA;
} else { // Unicode
alias MCIWNDF_NOTIFYMEDIAA MCIWNDF_NOTIFYMEDIA;
}
enum {
MCIWNDF_RECORD = 0x2000,
MCIWNDF_NOERRORDLG = 0x4000,
MCIWNDF_NOOPEN = 0x8000,
}
// can macros
BOOL MCIWndCanPlay(HWND hwnd)
{ return cast(BOOL)SendMessage(hwnd, MCIWNDM_CAN_PLAY, 0, 0); }
BOOL MCIWndCanRecord(HWND hwnd)
{ return cast(BOOL)SendMessage(hwnd, MCIWNDM_CAN_RECORD, 0, 0); }
BOOL MCIWndCanSave(HWND hwnd)
{ return cast(BOOL)SendMessage(hwnd, MCIWNDM_CAN_SAVE, 0, 0); }
BOOL MCIWndCanWindow(HWND hwnd)
{ return cast(BOOL)SendMessage(hwnd, MCIWNDM_CAN_WINDOW, 0, 0); }
BOOL MCIWndCanEject(HWND hwnd)
{ return cast(BOOL)SendMessage(hwnd, MCIWNDM_CAN_EJECT, 0, 0); }
BOOL MCIWndCanConfig(HWND hwnd)
{ return cast(BOOL)SendMessage(hwnd, MCIWNDM_CAN_CONFIG, 0, 0); }
BOOL MCIWndPaletteKick(HWND hwnd)
{ return cast(BOOL)SendMessage(hwnd, MCIWNDM_PALETTEKICK, 0, 0); }
LONG MCIWndSave(HWND hwnd, LPVOID szFile)
{ return cast(LONG)SendMessage(hwnd, MCI_SAVE, 0, cast(LPARAM)szFile); }
LONG MCIWndSaveDialog(HWND hwnd)
{ return MCIWndSave(hwnd, cast(LPVOID)-1); }
LONG MCIWndNew(HWND hwnd, LPVOID lp)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_NEW, 0, cast(LPARAM)lp); }
LONG MCIWndRecord(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCI_RECORD, 0, 0); }
LONG MCIWndOpen(HWND hwnd, LPVOID sz, UINT f)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_OPEN, cast(WPARAM)f, cast(LPARAM)sz); }
LONG MCIWndOpenDialog(HWND hwnd)
{ return MCIWndOpen(hwnd, cast(LPVOID)-1, 0); }
LONG MCIWndClose(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCI_CLOSE, 0, 0); }
LONG MCIWndPlay(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCI_PLAY, 0, 0); }
LONG MCIWndStop(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCI_STOP, 0, 0); }
LONG MCIWndPause(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCI_PAUSE, 0, 0); }
LONG MCIWndResume(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCI_RESUME, 0, 0); }
LONG MCIWndSeek(HWND hwnd, LONG lPos)
{ return cast(LONG)SendMessage(hwnd, MCI_SEEK, 0, cast(LPARAM)lPos); }
LONG MCIWndHome(HWND hwnd)
{ return MCIWndSeek(hwnd, MCIWND_START); }
LONG MCIWndEnd(HWND hwnd)
{ return MCIWndSeek(hwnd, MCIWND_END); }
LONG MCIWndEject(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_EJECT, 0, 0); }
LONG MCIWndGetSource(HWND hwnd, LPRECT prc)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GET_SOURCE, 0, cast(LPARAM)prc); }
LONG MCIWndPutSource(HWND hwnd, LPRECT prc)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_PUT_SOURCE, 0, cast(LPARAM)prc); }
LONG MCIWndGetDest(HWND hwnd, LPRECT prc)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GET_DEST, 0, cast(LPARAM)prc); }
LONG MCIWndPutDest(HWND hwnd, LPRECT prc)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_PUT_DEST, 0, cast(LPARAM)prc); }
LONG MCIWndPlayReverse(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_PLAYREVERSE, 0, 0); }
LONG MCIWndPlayFrom(HWND hwnd, LONG lPos)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_PLAYFROM, 0, cast(LPARAM)lPos); }
LONG MCIWndPlayTo(HWND hwnd, LONG lPos)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_PLAYTO, 0, cast(LPARAM)lPos); }
LONG MCIWndPlayFromTo(HWND hwnd, LONG lStart, LONG lEnd)
{ MCIWndSeek(hwnd, lStart); return MCIWndPlayTo(hwnd, lEnd); }
UINT MCIWndGetDeviceID(HWND hwnd)
{ return cast(UINT)SendMessage(hwnd, MCIWNDM_GETDEVICEID, 0, 0); }
UINT MCIWndGetAlias(HWND hwnd)
{ return cast(UINT)SendMessage(hwnd, MCIWNDM_GETALIAS, 0, 0); }
LONG MCIWndGetMode(HWND hwnd, LPTSTR lp, UINT len)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GETMODE, cast(WPARAM)len, cast(LPARAM)lp); }
LONG MCIWndGetPosition(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GETPOSITION, 0, 0); }
LONG MCIWndGetPositionString(HWND hwnd, LPTSTR lp, UINT len)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GETPOSITION, cast(WPARAM)len, cast(LPARAM)lp); }
LONG MCIWndGetStart(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GETSTART, 0, 0); }
LONG MCIWndGetLength(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GETLENGTH, 0, 0); }
LONG MCIWndGetEnd(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GETEND, 0, 0); }
LONG MCIWndStep(HWND hwnd, LONG n)
{ return cast(LONG)SendMessage(hwnd, MCI_STEP, 0, cast(LPARAM)n); }
void MCIWndDestroy(HWND hwnd)
{ SendMessage(hwnd, WM_CLOSE, 0, 0); }
void MCIWndSetZoom(HWND hwnd, UINT iZoom)
{ SendMessage(hwnd, MCIWNDM_SETZOOM, 0, cast(LPARAM)iZoom); }
UINT MCIWndGetZoom(HWND hwnd)
{ return cast(UINT)SendMessage(hwnd, MCIWNDM_GETZOOM, 0, 0); }
LONG MCIWndSetVolume(HWND hwnd, UINT iVol)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_SETVOLUME, 0, cast(LPARAM)iVol); }
LONG MCIWndGetVolume(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GETVOLUME, 0, 0); }
LONG MCIWndSetSpeed(HWND hwnd, UINT iSpeed)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_SETSPEED, 0, cast(LPARAM)iSpeed); }
LONG MCIWndGetSpeed(HWND hwnd)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GETSPEED, 0, 0); }
LONG MCIWndSetTimeFormat(HWND hwnd, LPTSTR lp)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_SETTIMEFORMAT, 0, cast(LPARAM)lp); }
LONG MCIWndUseFrames(HWND hwnd)
{ return MCIWndSetTimeFormat(hwnd, (cast(TCHAR[])"frames").ptr); }
LONG MCIWndUseTime(HWND hwnd)
{ return MCIWndSetTimeFormat(hwnd, (cast(TCHAR[])"ms").ptr); }
LONG MCIWndGetTimeFormat(HWND hwnd, LPTSTR lp, UINT len)
{ return cast(LONG)SendMessage(hwnd, MCIWNDM_GETTIMEFORMAT, cast(WPARAM)len, cast(LPARAM)lp); }
void MCIWndValidateMedia(HWND hwnd)
{ SendMessage(hwnd, MCIWNDM_VALIDATEMEDIA, 0, 0); }
void MCIWndSetRepeat(HWND hwnd, BOOL f)
{ SendMessage(hwnd, MCIWNDM_SETREPEAT, 0, cast(LPARAM)f); }
BOOL MCIWndGetRepeat(HWND hwnd)
{ return cast(BOOL)SendMessage(hwnd, MCIWNDM_GETREPEAT, 0, 0); }
void MCIWndSetActiveTimer(HWND hwnd, UINT active)
{ SendMessage(hwnd, MCIWNDM_SETACTIVETIMER, cast(WPARAM)active, 0); }
void MCIWndSetInactiveTimer(HWND hwnd, UINT inactive)
{ SendMessage(hwnd, MCIWNDM_SETINACTIVETIMER, cast(WPARAM)inactive, 0); }
void MCIWndSetTimers(HWND hwnd, UINT active, UINT inactive)
{ SendMessage(hwnd, MCIWNDM_SETTIMERS, cast(WPARAM)active, cast(LPARAM)inactive); }
UINT MCIWndGetActiveTimer(HWND hwnd)
{ return cast(UINT)SendMessage(hwnd, MCIWNDM_GETACTIVETIMER, 0, 0); }
UINT MCIWndGetInactiveTimer(HWND hwnd)
{ return cast(UINT)SendMessage(hwnd, MCIWNDM_GETINACTIVETIMER, 0, 0); }
LONG MCIWndRealize(HWND hwnd, BOOL fBkgnd)
{ return cast(LONG) SendMessage(hwnd, MCIWNDM_REALIZE, cast(WPARAM)fBkgnd, 0); }
LONG MCIWndSendString(HWND hwnd, LPTSTR sz)
{ return cast(LONG) SendMessage(hwnd, MCIWNDM_SENDSTRING, 0, cast(LPARAM)sz); }
LONG MCIWndReturnString(HWND hwnd, LPVOID lp, UINT len)
{ return cast(LONG) SendMessage(hwnd, MCIWNDM_RETURNSTRING, cast(WPARAM)len, cast(LPARAM)lp); }
LONG MCIWndGetError(HWND hwnd, LPVOID lp, UINT len)
{ return cast(LONG) SendMessage(hwnd, MCIWNDM_GETERROR, cast(WPARAM)len, cast(LPARAM)lp); }
HPALETTE MCIWndGetPalette(HWND hwnd)
{ return cast(HPALETTE)SendMessage(hwnd, MCIWNDM_GETPALETTE, 0, 0); }
LONG MCIWndSetPalette(HWND hwnd, HPALETTE hpal)
{ return cast(LONG) SendMessage(hwnd, MCIWNDM_SETPALETTE, cast(WPARAM)hpal, 0); }
LONG MCIWndGetFileName(HWND hwnd, LPVOID lp, UINT len)
{ return cast(LONG) SendMessage(hwnd, MCIWNDM_GETFILENAME, cast(WPARAM)len, cast(LPARAM)lp); }
LONG MCIWndGetDevice(HWND hwnd, LPVOID lp, UINT len)
{ return cast(LONG) SendMessage(hwnd, MCIWNDM_GETDEVICE, cast(WPARAM)len, cast(LPARAM)lp); }
UINT MCIWndGetStyles(HWND hwnd)
{ return cast(UINT) SendMessage(hwnd, MCIWNDM_GETSTYLES, 0, 0); }
LONG MCIWndChangeStyles(HWND hwnd, UINT mask, LONG value)
{ return cast(LONG) SendMessage(hwnd, MCIWNDM_CHANGESTYLES, cast(WPARAM)mask, cast(LPARAM)value); }
LONG MCIWndOpenInterface(HWND hwnd, LPUNKNOWN pUnk)
{ return cast(LONG) SendMessage(hwnd, MCIWNDM_OPENINTERFACE, 0, cast(LPARAM)cast(void*)pUnk); }
LONG MCIWndSetOwner(HWND hwnd, HWND hwndP)
{ return cast(LONG) SendMessage(hwnd, MCIWNDM_SETOWNER, cast(WPARAM)hwndP, 0); }
enum {
MCIWNDM_GETDEVICEID = WM_USER + 100,
MCIWNDM_SENDSTRINGA = WM_USER + 101,
MCIWNDM_GETPOSITIONA = WM_USER + 102,
MCIWNDM_GETSTART = WM_USER + 103,
MCIWNDM_GETLENGTH = WM_USER + 104,
MCIWNDM_GETEND = WM_USER + 105,
MCIWNDM_GETMODEA = WM_USER + 106,
MCIWNDM_EJECT = WM_USER + 107,
MCIWNDM_SETZOOM = WM_USER + 108,
MCIWNDM_GETZOOM = WM_USER + 109,
MCIWNDM_SETVOLUME = WM_USER + 110,
MCIWNDM_GETVOLUME = WM_USER + 111,
MCIWNDM_SETSPEED = WM_USER + 112,
MCIWNDM_GETSPEED = WM_USER + 113,
MCIWNDM_SETREPEAT = WM_USER + 114,
MCIWNDM_GETREPEAT = WM_USER + 115,
MCIWNDM_REALIZE = WM_USER + 118,
MCIWNDM_SETTIMEFORMATA = WM_USER + 119,
MCIWNDM_GETTIMEFORMATA = WM_USER + 120,
MCIWNDM_VALIDATEMEDIA = WM_USER + 121,
MCIWNDM_PLAYFROM = WM_USER + 122,
MCIWNDM_PLAYTO = WM_USER + 123,
MCIWNDM_GETFILENAMEA = WM_USER + 124,
MCIWNDM_GETDEVICEA = WM_USER + 125,
MCIWNDM_GETPALETTE = WM_USER + 126,
MCIWNDM_SETPALETTE = WM_USER + 127,
MCIWNDM_GETERRORA = WM_USER + 128,
MCIWNDM_SETTIMERS = WM_USER + 129,
MCIWNDM_SETACTIVETIMER = WM_USER + 130,
MCIWNDM_SETINACTIVETIMER = WM_USER + 131,
MCIWNDM_GETACTIVETIMER = WM_USER + 132,
MCIWNDM_GETINACTIVETIMER = WM_USER + 133,
MCIWNDM_NEWA = WM_USER + 134,
MCIWNDM_CHANGESTYLES = WM_USER + 135,
MCIWNDM_GETSTYLES = WM_USER + 136,
MCIWNDM_GETALIAS = WM_USER + 137,
MCIWNDM_RETURNSTRINGA = WM_USER + 138,
MCIWNDM_PLAYREVERSE = WM_USER + 139,
MCIWNDM_GET_SOURCE = WM_USER + 140,
MCIWNDM_PUT_SOURCE = WM_USER + 141,
MCIWNDM_GET_DEST = WM_USER + 142,
MCIWNDM_PUT_DEST = WM_USER + 143,
MCIWNDM_CAN_PLAY = WM_USER + 144,
MCIWNDM_CAN_WINDOW = WM_USER + 145,
MCIWNDM_CAN_RECORD = WM_USER + 146,
MCIWNDM_CAN_SAVE = WM_USER + 147,
MCIWNDM_CAN_EJECT = WM_USER + 148,
MCIWNDM_CAN_CONFIG = WM_USER + 149,
MCIWNDM_PALETTEKICK = WM_USER + 150,
MCIWNDM_OPENINTERFACE = WM_USER + 151,
MCIWNDM_SETOWNER = WM_USER + 152,
MCIWNDM_OPENA = WM_USER + 153,
MCIWNDM_SENDSTRINGW = WM_USER + 201,
MCIWNDM_GETPOSITIONW = WM_USER + 202,
MCIWNDM_GETMODEW = WM_USER + 206,
MCIWNDM_SETTIMEFORMATW = WM_USER + 219,
MCIWNDM_GETTIMEFORMATW = WM_USER + 220,
MCIWNDM_GETFILENAMEW = WM_USER + 224,
MCIWNDM_GETDEVICEW = WM_USER + 225,
MCIWNDM_GETERRORW = WM_USER + 228,
MCIWNDM_NEWW = WM_USER + 234,
MCIWNDM_RETURNSTRINGW = WM_USER + 238,
MCIWNDM_OPENW = WM_USER + 252,
}
version (Unicode) {
alias MCIWNDM_SENDSTRINGW MCIWNDM_SENDSTRING;
alias MCIWNDM_GETPOSITIONW MCIWNDM_GETPOSITION;
alias MCIWNDM_GETMODEW MCIWNDM_GETMODE;
alias MCIWNDM_SETTIMEFORMATW MCIWNDM_SETTIMEFORMAT;
alias MCIWNDM_GETTIMEFORMATW MCIWNDM_GETTIMEFORMAT;
alias MCIWNDM_GETFILENAMEW MCIWNDM_GETFILENAME;
alias MCIWNDM_GETDEVICEW MCIWNDM_GETDEVICE;
alias MCIWNDM_GETERRORW MCIWNDM_GETERROR;
alias MCIWNDM_NEWW MCIWNDM_NEW;
alias MCIWNDM_RETURNSTRINGW MCIWNDM_RETURNSTRING;
alias MCIWNDM_OPENW MCIWNDM_OPEN;
} else { // Unicode
alias MCIWNDM_SENDSTRINGA MCIWNDM_SENDSTRING;
alias MCIWNDM_GETPOSITIONA MCIWNDM_GETPOSITION;
alias MCIWNDM_GETMODEA MCIWNDM_GETMODE;
alias MCIWNDM_SETTIMEFORMATA MCIWNDM_SETTIMEFORMAT;
alias MCIWNDM_GETTIMEFORMATA MCIWNDM_GETTIMEFORMAT;
alias MCIWNDM_GETFILENAMEA MCIWNDM_GETFILENAME;
alias MCIWNDM_GETDEVICEA MCIWNDM_GETDEVICE;
alias MCIWNDM_GETERRORA MCIWNDM_GETERROR;
alias MCIWNDM_NEWA MCIWNDM_NEW;
alias MCIWNDM_RETURNSTRINGA MCIWNDM_RETURNSTRING;
alias MCIWNDM_OPENA MCIWNDM_OPEN;
}
enum {
MCIWNDM_NOTIFYMODE = WM_USER + 200,
MCIWNDM_NOTIFYPOS = WM_USER + 201,
MCIWNDM_NOTIFYSIZE = WM_USER + 202,
MCIWNDM_NOTIFYMEDIA = WM_USER + 203,
MCIWNDM_NOTIFYERROR = WM_USER + 205,
}
enum MCIWND_START = -1;
enum MCIWND_END = -2;
enum {
MCI_CLOSE = 0x0804,
MCI_PLAY = 0x0806,
MCI_SEEK = 0x0807,
MCI_STOP = 0x0808,
MCI_PAUSE = 0x0809,
MCI_STEP = 0x080E,
MCI_RECORD = 0x080F,
MCI_SAVE = 0x0813,
MCI_CUT = 0x0851,
MCI_COPY = 0x0852,
MCI_PASTE = 0x0853,
MCI_RESUME = 0x0855,
MCI_DELETE = 0x0856,
}
enum {
MCI_MODE_NOT_READY = 524,
MCI_MODE_STOP,
MCI_MODE_PLAY,
MCI_MODE_RECORD,
MCI_MODE_SEEK,
MCI_MODE_PAUSE,
MCI_MODE_OPEN,
}
alias TypeDef!(HANDLE) HVIDEO;
alias HVIDEO* LPHVIDEO;
// Error Return Values
enum {
DV_ERR_OK = 0,
DV_ERR_BASE = 1,
DV_ERR_NONSPECIFIC = DV_ERR_BASE,
DV_ERR_BADFORMAT = DV_ERR_BASE + 1,
DV_ERR_STILLPLAYING = DV_ERR_BASE + 2,
DV_ERR_UNPREPARED = DV_ERR_BASE + 3,
DV_ERR_SYNC = DV_ERR_BASE + 4,
DV_ERR_TOOMANYCHANNELS = DV_ERR_BASE + 5,
DV_ERR_NOTDETECTED = DV_ERR_BASE + 6,
DV_ERR_BADINSTALL = DV_ERR_BASE + 7,
DV_ERR_CREATEPALETTE = DV_ERR_BASE + 8,
DV_ERR_SIZEFIELD = DV_ERR_BASE + 9,
DV_ERR_PARAM1 = DV_ERR_BASE + 10,
DV_ERR_PARAM2 = DV_ERR_BASE + 11,
DV_ERR_CONFIG1 = DV_ERR_BASE + 12,
DV_ERR_CONFIG2 = DV_ERR_BASE + 13,
DV_ERR_FLAGS = DV_ERR_BASE + 14,
DV_ERR_13 = DV_ERR_BASE + 15,
DV_ERR_NOTSUPPORTED = DV_ERR_BASE + 16,
DV_ERR_NOMEM = DV_ERR_BASE + 17,
DV_ERR_ALLOCATED = DV_ERR_BASE + 18,
DV_ERR_BADDEVICEID = DV_ERR_BASE + 19,
DV_ERR_INVALHANDLE = DV_ERR_BASE + 20,
DV_ERR_BADERRNUM = DV_ERR_BASE + 21,
DV_ERR_NO_BUFFERS = DV_ERR_BASE + 22,
DV_ERR_MEM_CONFLICT = DV_ERR_BASE + 23,
DV_ERR_IO_CONFLICT = DV_ERR_BASE + 24,
DV_ERR_DMA_CONFLICT = DV_ERR_BASE + 25,
DV_ERR_INT_CONFLICT = DV_ERR_BASE + 26,
DV_ERR_PROTECT_ONLY = DV_ERR_BASE + 27,
DV_ERR_LASTERROR = DV_ERR_BASE + 27,
DV_ERR_USER_MSG = DV_ERR_BASE + 1000,
}
// Callback Messages
enum {
MM_DRVM_OPEN = 0x3D0,
MM_DRVM_CLOSE,
MM_DRVM_DATA,
MM_DRVM_ERROR,
}
enum {
DV_VM_OPEN = MM_DRVM_OPEN,
DV_VM_CLOSE = MM_DRVM_CLOSE,
DV_VM_DATA = MM_DRVM_DATA,
DV_VM_ERROR = MM_DRVM_ERROR,
}
/**
* Structures
*/
struct VIDEOHDR {
LPBYTE lpData;
DWORD dwBufferLength;
DWORD dwBytesUsed;
DWORD dwTimeCaptured;
DWORD_PTR dwUser;
DWORD dwFlags;
DWORD_PTR[4]dwReserved;
}
alias VIDEOHDR* PVIDEOHDR, LPVIDEOHDR;
enum {
VHDR_DONE = 0x00000001,
VHDR_PREPARED = 0x00000002,
VHDR_INQUEUE = 0x00000004,
VHDR_KEYFRAME = 0x00000008,
VHDR_VALID = 0x0000000F,
}
struct CHANNEL_CAPS {
DWORD dwFlags;
DWORD dwSrcRectXMod;
DWORD dwSrcRectYMod;
DWORD dwSrcRectWidthMod;
DWORD dwSrcRectHeightMod;
DWORD dwDstRectXMod;
DWORD dwDstRectYMod;
DWORD dwDstRectWidthMod;
DWORD dwDstRectHeightMod;
}
alias CHANNEL_CAPS* PCHANNEL_CAPS, LPCHANNEL_CAPS;
enum {
VCAPS_OVERLAY = 0x00000001,
VCAPS_SRC_CAN_CLIP = 0x00000002,
VCAPS_DST_CAN_CLIP = 0x00000004,
VCAPS_CAN_SCALE = 0x00000008,
}
/**
* API Flags
*/
enum {
VIDEO_EXTERNALIN = 0x0001,
VIDEO_EXTERNALOUT = 0x0002,
VIDEO_IN = 0x0004,
VIDEO_OUT = 0x0008,
VIDEO_DLG_QUERY = 0x0010,
}
enum {
VIDEO_CONFIGURE_QUERYSIZE = 0x0001,
VIDEO_CONFIGURE_CURRENT = 0x0010,
VIDEO_CONFIGURE_NOMINAL = 0x0020,
VIDEO_CONFIGURE_MIN = 0x0040,
VIDEO_CONFIGURE_MAX = 0x0080,
VIDEO_CONFIGURE_SET = 0x1000,
VIDEO_CONFIGURE_GET = 0x2000,
VIDEO_CONFIGURE_QUERY = 0x8000,
}
/**
* CONFIGURE MESSAGES
*/
enum {
DVM_USER = 0x4000,
DVM_CONFIGURE_START = 0x1000,
DVM_CONFIGURE_END = 0x1FFF,
DVM_PALETTE = DVM_CONFIGURE_START + 1,
DVM_FORMAT = DVM_CONFIGURE_START + 2,
DVM_PALETTERGB555 = DVM_CONFIGURE_START + 3,
DVM_SRC_RECT = DVM_CONFIGURE_START + 4,
DVM_DST_RECT = DVM_CONFIGURE_START + 5,
}
/**
* AVICap window class
*/
LRESULT AVICapSM(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
if (IsWindow(hWnd)) {
return SendMessage(hWnd, msg, wParam, lParam);
}
return 0;
}
enum {
WM_CAP_START = WM_USER,
WM_CAP_UNICODE_START = WM_USER + 100,
WM_CAP_GET_CAPSTREAMPTR = WM_CAP_START + 1,
WM_CAP_SET_CALLBACK_ERRORA = WM_CAP_START + 2,
WM_CAP_SET_CALLBACK_STATUSA = WM_CAP_START + 3,
WM_CAP_SET_CALLBACK_ERRORW = WM_CAP_UNICODE_START + 2,
WM_CAP_SET_CALLBACK_STATUSW = WM_CAP_UNICODE_START + 3,
}
version (Unicode) {
alias WM_CAP_SET_CALLBACK_ERRORW WM_CAP_SET_CALLBACK_ERROR;
alias WM_CAP_SET_CALLBACK_STATUSW WM_CAP_SET_CALLBACK_STATUS;
} else { // Unicode
alias WM_CAP_SET_CALLBACK_ERRORA WM_CAP_SET_CALLBACK_ERROR;
alias WM_CAP_SET_CALLBACK_STATUSA WM_CAP_SET_CALLBACK_STATUS;
}
enum {
WM_CAP_SET_CALLBACK_YIELD = WM_CAP_START + 4,
WM_CAP_SET_CALLBACK_FRAME = WM_CAP_START + 5,
WM_CAP_SET_CALLBACK_VIDEOSTREAM = WM_CAP_START + 6,
WM_CAP_SET_CALLBACK_WAVESTREAM = WM_CAP_START + 7,
WM_CAP_GET_USER_DATA = WM_CAP_START + 8,
WM_CAP_SET_USER_DATA = WM_CAP_START + 9,
WM_CAP_DRIVER_CONNECT = WM_CAP_START + 10,
WM_CAP_DRIVER_DISCONNECT = WM_CAP_START + 11,
WM_CAP_DRIVER_GET_NAMEA = WM_CAP_START + 12,
WM_CAP_DRIVER_GET_VERSIONA = WM_CAP_START + 13,
WM_CAP_DRIVER_GET_NAMEW = WM_CAP_UNICODE_START + 12,
WM_CAP_DRIVER_GET_VERSIONW = WM_CAP_UNICODE_START + 13,
}
version (Unicode) {
alias WM_CAP_DRIVER_GET_NAMEW WM_CAP_DRIVER_GET_NAME;
alias WM_CAP_DRIVER_GET_VERSIONW WM_CAP_DRIVER_GET_VERSION;
} else { // Unicode
alias WM_CAP_DRIVER_GET_NAMEA WM_CAP_DRIVER_GET_NAME;
alias WM_CAP_DRIVER_GET_VERSIONA WM_CAP_DRIVER_GET_VERSION;
}
enum {
WM_CAP_DRIVER_GET_CAPS = WM_CAP_START + 14,
WM_CAP_FILE_SET_CAPTURE_FILEA = WM_CAP_START + 20,
WM_CAP_FILE_GET_CAPTURE_FILEA = WM_CAP_START + 21,
WM_CAP_FILE_SAVEASA = WM_CAP_START + 23,
WM_CAP_FILE_SAVEDIBA = WM_CAP_START + 25,
WM_CAP_FILE_SET_CAPTURE_FILEW = WM_CAP_UNICODE_START + 20,
WM_CAP_FILE_GET_CAPTURE_FILEW = WM_CAP_UNICODE_START + 21,
WM_CAP_FILE_SAVEASW = WM_CAP_UNICODE_START + 23,
WM_CAP_FILE_SAVEDIBW = WM_CAP_UNICODE_START + 25,
}
version (Unicode) {
alias WM_CAP_FILE_SET_CAPTURE_FILEW WM_CAP_FILE_SET_CAPTURE_FILE;
alias WM_CAP_FILE_GET_CAPTURE_FILEW WM_CAP_FILE_GET_CAPTURE_FILE;
alias WM_CAP_FILE_SAVEASW WM_CAP_FILE_SAVEAS;
alias WM_CAP_FILE_SAVEDIBW WM_CAP_FILE_SAVEDIB;
} else { // Unicode
alias WM_CAP_FILE_SET_CAPTURE_FILEA WM_CAP_FILE_SET_CAPTURE_FILE;
alias WM_CAP_FILE_GET_CAPTURE_FILEA WM_CAP_FILE_GET_CAPTURE_FILE;
alias WM_CAP_FILE_SAVEASA WM_CAP_FILE_SAVEAS;
alias WM_CAP_FILE_SAVEDIBA WM_CAP_FILE_SAVEDIB;
}
enum {
WM_CAP_FILE_ALLOCATE = WM_CAP_START + 22,
WM_CAP_FILE_SET_INFOCHUNK = WM_CAP_START + 24,
WM_CAP_EDIT_COPY = WM_CAP_START + 30,
WM_CAP_SET_AUDIOFORMAT = WM_CAP_START + 35,
WM_CAP_GET_AUDIOFORMAT = WM_CAP_START + 36,
WM_CAP_DLG_VIDEOFORMAT = WM_CAP_START + 41,
WM_CAP_DLG_VIDEOSOURCE = WM_CAP_START + 42,
WM_CAP_DLG_VIDEODISPLAY = WM_CAP_START + 43,
WM_CAP_GET_VIDEOFORMAT = WM_CAP_START + 44,
WM_CAP_SET_VIDEOFORMAT = WM_CAP_START + 45,
WM_CAP_DLG_VIDEOCOMPRESSION = WM_CAP_START + 46,
WM_CAP_SET_PREVIEW = WM_CAP_START + 50,
WM_CAP_SET_OVERLAY = WM_CAP_START + 51,
WM_CAP_SET_PREVIEWRATE = WM_CAP_START + 52,
WM_CAP_SET_SCALE = WM_CAP_START + 53,
WM_CAP_GET_STATUS = WM_CAP_START + 54,
WM_CAP_SET_SCROLL = WM_CAP_START + 55,
WM_CAP_GRAB_FRAME = WM_CAP_START + 60,
WM_CAP_GRAB_FRAME_NOSTOP = WM_CAP_START + 61,
WM_CAP_SEQUENCE = WM_CAP_START + 62,
WM_CAP_SEQUENCE_NOFILE = WM_CAP_START + 63,
WM_CAP_SET_SEQUENCE_SETUP = WM_CAP_START + 64,
WM_CAP_GET_SEQUENCE_SETUP = WM_CAP_START + 65,
WM_CAP_SET_MCI_DEVICEA = WM_CAP_START + 66,
WM_CAP_GET_MCI_DEVICEA = WM_CAP_START + 67,
WM_CAP_SET_MCI_DEVICEW = WM_CAP_UNICODE_START + 66,
WM_CAP_GET_MCI_DEVICEW = WM_CAP_UNICODE_START + 67,
}
version (Unicode) {
alias WM_CAP_SET_MCI_DEVICEW WM_CAP_SET_MCI_DEVICE;
alias WM_CAP_GET_MCI_DEVICEW WM_CAP_GET_MCI_DEVICE;
} else { // Unicode
alias WM_CAP_SET_MCI_DEVICEA WM_CAP_SET_MCI_DEVICE;
alias WM_CAP_GET_MCI_DEVICEA WM_CAP_GET_MCI_DEVICE;
}
enum {
WM_CAP_STOP = WM_CAP_START + 68,
WM_CAP_ABORT = WM_CAP_START + 69,
WM_CAP_SINGLE_FRAME_OPEN = WM_CAP_START + 70,
WM_CAP_SINGLE_FRAME_CLOSE = WM_CAP_START + 71,
WM_CAP_SINGLE_FRAME = WM_CAP_START + 72,
WM_CAP_PAL_OPENA = WM_CAP_START + 80,
WM_CAP_PAL_SAVEA = WM_CAP_START + 81,
WM_CAP_PAL_OPENW = WM_CAP_UNICODE_START + 80,
WM_CAP_PAL_SAVEW = WM_CAP_UNICODE_START + 81,
}
version (Unicode) {
alias WM_CAP_PAL_OPENW WM_CAP_PAL_OPEN;
alias WM_CAP_PAL_SAVEW WM_CAP_PAL_SAVE;
} else { // Unicode
alias WM_CAP_PAL_OPENA WM_CAP_PAL_OPEN;
alias WM_CAP_PAL_SAVEA WM_CAP_PAL_SAVE;
}
enum {
WM_CAP_PAL_PASTE = WM_CAP_START + 82,
WM_CAP_PAL_AUTOCREATE = WM_CAP_START + 83,
WM_CAP_PAL_MANUALCREATE = WM_CAP_START + 84,
WM_CAP_SET_CALLBACK_CAPCONTROL = WM_CAP_START + 85,
WM_CAP_UNICODE_END = WM_CAP_PAL_SAVEW,
WM_CAP_END = WM_CAP_UNICODE_END,
}
/**
* message wrapper
*/
BOOL capSetCallbackOnError(HWND hWnd, LPVOID fpProc) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_CALLBACK_ERROR, 0, cast(LPARAM)fpProc); }
BOOL capSetCallbackOnStatus(HWND hWnd, LPVOID fpProc) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_CALLBACK_STATUS, 0, cast(LPARAM)fpProc); }
BOOL capSetCallbackOnYield(HWND hWnd, LPVOID fpProc) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_CALLBACK_YIELD, 0, cast(LPARAM)fpProc); }
BOOL capSetCallbackOnFrame(HWND hWnd, LPVOID fpProc) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_CALLBACK_FRAME, 0, cast(LPARAM)fpProc); }
BOOL capSetCallbackOnVideoStream(HWND hWnd, LPVOID fpProc) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, cast(LPARAM)fpProc); }
BOOL capSetCallbackOnWaveStream(HWND hWnd, LPVOID fpProc) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_CALLBACK_WAVESTREAM, 0, cast(LPARAM)fpProc); }
BOOL capSetCallbackOnCapControl(HWND hWnd, LPVOID fpProc) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_CALLBACK_CAPCONTROL, 0, cast(LPARAM)fpProc); }
BOOL capSetUserData(HWND hWnd, LPARAM lUser) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_USER_DATA, 0, lUser); }
BOOL capGetUserData(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_GET_USER_DATA, 0, 0); }
BOOL capDriverConnect(HWND hWnd, WPARAM i) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_DRIVER_CONNECT, i, 0); }
BOOL capDriverDisconnect(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_DRIVER_DISCONNECT, 0, 0); }
BOOL capDriverGetName(HWND hWnd, LPTSTR szName, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_DRIVER_GET_NAME, wSize, cast(LPARAM)szName); }
BOOL capDriverGetVersion(HWND hWnd, LPTSTR szVer, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_DRIVER_GET_VERSION, wSize, cast(LPARAM)szVer); }
BOOL capDriverGetCaps(HWND hWnd, LPCAPDRIVERCAPS s, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_DRIVER_GET_CAPS, wSize, cast(LPARAM)s); }
BOOL capFileSetCaptureFile(HWND hWnd, LPTSTR szName) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_FILE_SET_CAPTURE_FILE, 0, cast(LPARAM)szName); }
BOOL capFileGetCaptureFile(HWND hWnd, LPTSTR szName, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_FILE_GET_CAPTURE_FILE, wSize, cast(LPARAM)szName); }
BOOL capFileAlloc(HWND hWnd, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_FILE_ALLOCATE, wSize, 0); }
BOOL capFileSaveAs(HWND hWnd, LPTSTR szName) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_FILE_SAVEAS, 0, cast(LPARAM)szName); }
BOOL capFileSetInfoChunk(HWND hWnd, LPCAPINFOCHUNK lpInfoChunk) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_FILE_SET_INFOCHUNK, 0, cast(LPARAM)lpInfoChunk); }
BOOL capFileSaveDIB(HWND hWnd, LPTSTR szName) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_FILE_SAVEDIB, 0, cast(LPARAM)szName); }
BOOL capEditCopy(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_EDIT_COPY, 0, 0); }
BOOL capSetAudioFormat(HWND hWnd, LPWAVEFORMATEX s, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_AUDIOFORMAT, wSize, cast(LPARAM)s); }
DWORD capGetAudioFormat(HWND hWnd, LPWAVEFORMATEX s, WPARAM wSize) { return cast(DWORD)AVICapSM(hWnd, WM_CAP_GET_AUDIOFORMAT, wSize, cast(LPARAM)s); }
DWORD capGetAudioFormatSize(HWND hWnd) { return cast(DWORD)AVICapSM(hWnd, WM_CAP_GET_AUDIOFORMAT, 0, 0); }
BOOL capDlgVideoFormat(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_DLG_VIDEOFORMAT, 0, 0); }
BOOL capDlgVideoSource(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_DLG_VIDEOSOURCE, 0, 0); }
BOOL capDlgVideoDisplay(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_DLG_VIDEODISPLAY, 0, 0); }
BOOL capDlgVideoCompression(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_DLG_VIDEOCOMPRESSION, 0, 0); }
DWORD capGetVideoFormat(HWND hWnd, void* s, WPARAM wSize) { return cast(DWORD)AVICapSM(hWnd, WM_CAP_GET_VIDEOFORMAT, wSize, cast(LPARAM)s); }
DWORD capGetVideoFormatSize(HWND hWnd) { return cast(DWORD)AVICapSM(hWnd, WM_CAP_GET_VIDEOFORMAT, 0, 0); }
BOOL capSetVideoFormat(HWND hWnd, void* s, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_VIDEOFORMAT, wSize, cast(LPARAM)s); }
BOOL capPreview(HWND hWnd, BOOL f) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_PREVIEW, cast(WPARAM)f, 0); }
BOOL capPreviewRate(HWND hWnd, WPARAM wMS) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_PREVIEWRATE, wMS, 0); }
BOOL capOverlay(HWND hWnd, BOOL f) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_OVERLAY, cast(WPARAM)f, 0); }
BOOL capPreviewScale(HWND hWnd, BOOL f) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_SCALE, cast(WPARAM)f, 0); }
BOOL capGetStatus(HWND hWnd, LPCAPSTATUS s, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_GET_STATUS, wSize, cast(LPARAM)s); }
BOOL capSetScrollPos(HWND hWnd, LPPOINT lpP) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_SCROLL, 0, cast(LPARAM)lpP); }
BOOL capGrabFrame(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_GRAB_FRAME, 0, 0); }
BOOL capGrabFrameNoStop(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_GRAB_FRAME_NOSTOP, 0, 0); }
BOOL capCaptureSequence(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SEQUENCE, 0, 0); }
BOOL capCaptureSequenceNoFile(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SEQUENCE_NOFILE, 0, 0); }
BOOL capCaptureStop(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_STOP, 0, 0); }
BOOL capCaptureAbort(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_ABORT, 0, 0); }
BOOL capCaptureSingleFrameOpen(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SINGLE_FRAME_OPEN, 0, 0); }
BOOL capCaptureSingleFrameClose(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SINGLE_FRAME_CLOSE, 0, 0); }
BOOL capCaptureSingleFrame(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SINGLE_FRAME, 0, 0); }
BOOL capCaptureGetSetup(HWND hWnd, LPCAPTUREPARMS s, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_GET_SEQUENCE_SETUP, wSize, cast(LPARAM)s); }
BOOL capCaptureSetSetup(HWND hWnd, LPCAPTUREPARMS s, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_SEQUENCE_SETUP, wSize, cast(LPARAM)s); }
BOOL capSetMCIDeviceName(HWND hWnd, LPTSTR szName) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_SET_MCI_DEVICE, 0, cast(LPARAM)szName); }
BOOL capGetMCIDeviceName(HWND hWnd, LPTSTR szName, WPARAM wSize) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_GET_MCI_DEVICE, wSize, cast(LPARAM)szName); }
BOOL capPaletteOpen(HWND hWnd, LPTSTR szName) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_PAL_OPEN, 0, cast(LPARAM)szName); }
BOOL capPaletteSave(HWND hWnd, LPTSTR szName) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_PAL_SAVE, 0, cast(LPARAM)szName); }
BOOL capPalettePaste(HWND hWnd) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_PAL_PASTE, 0, 0); }
BOOL capPaletteAuto(HWND hWnd, WPARAM iFrames, LPARAM iColors) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_PAL_AUTOCREATE, iFrames, iColors); }
BOOL capPaletteManual(HWND hWnd, WPARAM fGrab, LPARAM iColors) { return cast(BOOL)AVICapSM(hWnd, WM_CAP_PAL_MANUALCREATE, fGrab, iColors); }
/**
* structs
*/
struct CAPDRIVERCAPS {
UINT wDeviceIndex;
BOOL fHasOverlay;
BOOL fHasDlgVideoSource;
BOOL fHasDlgVideoFormat;
BOOL fHasDlgVideoDisplay;
BOOL fCaptureInitialized;
BOOL fDriverSuppliesPalettes;
HANDLE hVideoIn;
HANDLE hVideoOut;
HANDLE hVideoExtIn;
HANDLE hVideoExtOut;
}
alias CAPDRIVERCAPS* PCAPDRIVERCAPS, LPCAPDRIVERCAPS;
struct CAPSTATUS {
UINT uiImageWidth;
UINT uiImageHeight;
BOOL fLiveWindow;
BOOL fOverlayWindow;
BOOL fScale;
POINT ptScroll;
BOOL fUsingDefaultPalette;
BOOL fAudioHardware;
BOOL fCapFileExists;
DWORD dwCurrentVideoFrame;
DWORD dwCurrentVideoFramesDropped;
DWORD dwCurrentWaveSamples;
DWORD dwCurrentTimeElapsedMS;
HPALETTE hPalCurrent;
BOOL fCapturingNow;
DWORD dwReturn;
UINT wNumVideoAllocated;
UINT wNumAudioAllocated;
}
alias CAPSTATUS* PCAPSTATUS, LPCAPSTATUS;
struct CAPTUREPARMS {
DWORD dwRequestMicroSecPerFrame;
BOOL fMakeUserHitOKToCapture;
UINT wPercentDropForError;
BOOL fYield;
DWORD dwIndexSize;
UINT wChunkGranularity;
BOOL fUsingDOSMemory;
UINT wNumVideoRequested;
BOOL fCaptureAudio;
UINT wNumAudioRequested;
UINT vKeyAbort;
BOOL fAbortLeftMouse;
BOOL fAbortRightMouse;
BOOL fLimitEnabled;
UINT wTimeLimit;
BOOL fMCIControl;
BOOL fStepMCIDevice;
DWORD dwMCIStartTime;
DWORD dwMCIStopTime;
BOOL fStepCaptureAt2x;
UINT wStepCaptureAverageFrames;
DWORD dwAudioBufferSize;
BOOL fDisableWriteCache;
UINT AVStreamMaster;
}
alias CAPTUREPARMS* PCAPTUREPARMS, LPCAPTUREPARMS;
enum AVSTREAMMASTER_AUDIO = 0;
enum AVSTREAMMASTER_NONE = 1;
struct CAPINFOCHUNK {
FOURCC fccInfoID;
LPVOID lpData;
LONG cbData;
}
alias CAPINFOCHUNK* PCAPINFOCHUNK, LPCAPINFOCHUNK;
// Callback Definitions
extern (Windows) {
alias LRESULT function(HWND hWnd) CAPYIELDCALLBACK;
alias LRESULT function(HWND hWnd, int nID, LPCWSTR lpsz) CAPSTATUSCALLBACKW;
alias LRESULT function(HWND hWnd, int nID, LPCWSTR lpsz) CAPERRORCALLBACKW;
alias LRESULT function(HWND hWnd, int nID, LPCSTR lpsz) CAPSTATUSCALLBACKA;
alias LRESULT function(HWND hWnd, int nID, LPCSTR lpsz) CAPERRORCALLBACKA;
}
version (Unicode) {
alias CAPSTATUSCALLBACKW CAPSTATUSCALLBACK;
alias CAPERRORCALLBACKW CAPERRORCALLBACK;
} else { // Unicode
alias CAPSTATUSCALLBACKA CAPSTATUSCALLBACK;
alias CAPERRORCALLBACKA CAPERRORCALLBACK;
}
extern (Windows) {
alias LRESULT function(HWND hWnd, LPVIDEOHDR lpVHdr) CAPVIDEOCALLBACK;
alias LRESULT function(HWND hWnd, LPWAVEHDR lpWHdr) CAPWAVECALLBACK;
alias LRESULT function(HWND hWnd, int nState) CAPCONTROLCALLBACK;
}
// CapControlCallback states
enum CONTROLCALLBACK_PREROLL = 1;
enum CONTROLCALLBACK_CAPTURING = 2;
extern (Windows) {
HWND capCreateCaptureWindowA(LPCSTR lpszWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, int nID);
BOOL capGetDriverDescriptionA(UINT wDriverIndex, LPSTR lpszName, int cbName, LPSTR lpszVer, int cbVer);
HWND capCreateCaptureWindowW(LPCWSTR lpszWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, int nID);
BOOL capGetDriverDescriptionW(UINT wDriverIndex, LPWSTR lpszName, int cbName, LPWSTR lpszVer, int cbVer);
}
version (Unicode) {
alias capCreateCaptureWindowW capCreateCaptureWindow;
alias capGetDriverDescriptionW capGetDriverDescription;
} else { // Unicode
alias capCreateCaptureWindowA capCreateCaptureWindow;
alias capGetDriverDescriptionA capGetDriverDescription;
}
// New Information chunk IDs
enum infotypeDIGITIZATION_TIME = mmioFOURCC!('I', 'D', 'I', 'T');
enum infotypeSMPTE_TIME = mmioFOURCC!('I', 'S', 'M', 'P');
// status and error callbacks
enum {
IDS_CAP_BEGIN = 300,
IDS_CAP_END = 301,
IDS_CAP_INFO = 401,
IDS_CAP_OUTOFMEM = 402,
IDS_CAP_FILEEXISTS = 403,
IDS_CAP_ERRORPALOPEN = 404,
IDS_CAP_ERRORPALSAVE = 405,
IDS_CAP_ERRORDIBSAVE = 406,
IDS_CAP_DEFAVIEXT = 407,
IDS_CAP_DEFPALEXT = 408,
IDS_CAP_CANTOPEN = 409,
IDS_CAP_SEQ_MSGSTART = 410,
IDS_CAP_SEQ_MSGSTOP = 411,
IDS_CAP_VIDEDITERR = 412,
IDS_CAP_READONLYFILE = 413,
IDS_CAP_WRITEERROR = 414,
IDS_CAP_NODISKSPACE = 415,
IDS_CAP_SETFILESIZE = 416,
IDS_CAP_SAVEASPERCENT = 417,
IDS_CAP_DRIVER_ERROR = 418,
IDS_CAP_WAVE_OPEN_ERROR = 419,
IDS_CAP_WAVE_ALLOC_ERROR = 420,
IDS_CAP_WAVE_PREPARE_ERROR = 421,
IDS_CAP_WAVE_ADD_ERROR = 422,
IDS_CAP_WAVE_SIZE_ERROR = 423,
IDS_CAP_VIDEO_OPEN_ERROR = 424,
IDS_CAP_VIDEO_ALLOC_ERROR = 425,
IDS_CAP_VIDEO_PREPARE_ERROR = 426,
IDS_CAP_VIDEO_ADD_ERROR = 427,
IDS_CAP_VIDEO_SIZE_ERROR = 428,
IDS_CAP_FILE_OPEN_ERROR = 429,
IDS_CAP_FILE_WRITE_ERROR = 430,
IDS_CAP_RECORDING_ERROR = 431,
IDS_CAP_RECORDING_ERROR2 = 432,
IDS_CAP_AVI_INIT_ERROR = 433,
IDS_CAP_NO_FRAME_CAP_ERROR = 434,
IDS_CAP_NO_PALETTE_WARN = 435,
IDS_CAP_MCI_CONTROL_ERROR = 436,
IDS_CAP_MCI_CANT_STEP_ERROR = 437,
IDS_CAP_NO_AUDIO_CAP_ERROR = 438,
IDS_CAP_AVI_DRAWDIB_ERROR = 439,
IDS_CAP_COMPRESSOR_ERROR = 440,
IDS_CAP_AUDIO_DROP_ERROR = 441,
IDS_CAP_AUDIO_DROP_COMPERROR = 442,
IDS_CAP_STAT_LIVE_MODE = 500,
IDS_CAP_STAT_OVERLAY_MODE = 501,
IDS_CAP_STAT_CAP_INIT = 502,
IDS_CAP_STAT_CAP_FINI = 503,
IDS_CAP_STAT_PALETTE_BUILD = 504,
IDS_CAP_STAT_OPTPAL_BUILD = 505,
IDS_CAP_STAT_I_FRAMES = 506,
IDS_CAP_STAT_L_FRAMES = 507,
IDS_CAP_STAT_CAP_L_FRAMES = 508,
IDS_CAP_STAT_CAP_AUDIO = 509,
IDS_CAP_STAT_VIDEOCURRENT = 510,
IDS_CAP_STAT_VIDEOAUDIO = 511,
IDS_CAP_STAT_VIDEOONLY = 512,
IDS_CAP_STAT_FRAMESDROPPED = 513,
}
/**
* FilePreview dialog.
*/
extern (Windows) {
BOOL GetOpenFileNamePreviewA(LPOPENFILENAMEA lpofn);
BOOL GetSaveFileNamePreviewA(LPOPENFILENAMEA lpofn);
BOOL GetOpenFileNamePreviewW(LPOPENFILENAMEW lpofn);
BOOL GetSaveFileNamePreviewW(LPOPENFILENAMEW lpofn);
}
version (Unicode) {
alias GetOpenFileNamePreviewW GetOpenFileNamePreview;
alias GetSaveFileNamePreviewW GetSaveFileNamePreview;
} else { // Unicode
alias GetOpenFileNamePreviewA GetOpenFileNamePreview;
alias GetSaveFileNamePreviewA GetSaveFileNamePreview;
}
|
D
|
causing intense interest, curiosity, or emotion
commanding attention
relating to or concerned in sensation
|
D
|
void main() {
auto ip = readAs!(int[]), N = ip[0], K = ip[1];
int[int] m;
auto A = readAs!(int[]);
auto kind = A.sort().uniq.array.length.to!long;
foreach(v; A) m[v]++;
auto arr = m.values.sort();
if(kind - K <= 0) writeln(0);
else arr[0..kind-K].sum.writeln;
}
// ===================================
import std.stdio;
import std.string;
import std.functional;
import std.algorithm;
import std.range;
import std.traits;
import std.math;
import std.container;
import std.bigint;
import std.numeric;
import std.conv;
import std.typecons;
import std.uni;
import std.ascii;
import std.bitmanip;
import core.bitop;
T readAs(T)() if (isBasicType!T) {
return readln.chomp.to!T;
}
T readAs(T)() if (isArray!T) {
return readln.split.to!T;
}
T[][] readMatrix(T)(uint height, uint width) if (!isSomeChar!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
res[i] = readAs!(T[]);
}
return res;
}
T[][] readMatrix(T)(uint height, uint width) if (isSomeChar!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
auto s = rs;
foreach(j; 0..width) res[i][j] = s[j].to!T;
}
return res;
}
int ri() {
return readAs!int;
}
double rd() {
return readAs!double;
}
string rs() {
return readln.chomp;
}
|
D
|
# FIXED
Startup/ccfg_appBLE.obj: C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SimpleBLEPeripheral/CC26xx/IAR/Config/ccfg_appBLE.c
Startup/ccfg_appBLE.obj: C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/startup_files/ccfg.c
Startup/ccfg_appBLE.obj: C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/stdint.h
Startup/ccfg_appBLE.obj: C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/inc/hw_types.h
Startup/ccfg_appBLE.obj: C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/stdbool.h
Startup/ccfg_appBLE.obj: C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/yvals.h
Startup/ccfg_appBLE.obj: C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/stdarg.h
Startup/ccfg_appBLE.obj: C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/linkage.h
Startup/ccfg_appBLE.obj: C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/_lock.h
Startup/ccfg_appBLE.obj: C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/inc/hw_chip_def.h
Startup/ccfg_appBLE.obj: C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/inc/hw_ccfg.h
Startup/ccfg_appBLE.obj: C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/inc/hw_ccfg_simple_struct.h
C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SimpleBLEPeripheral/CC26xx/IAR/Config/ccfg_appBLE.c:
C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/startup_files/ccfg.c:
C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/stdint.h:
C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/inc/hw_types.h:
C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/stdbool.h:
C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/yvals.h:
C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/stdarg.h:
C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/linkage.h:
C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/_lock.h:
C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/inc/hw_chip_def.h:
C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/inc/hw_ccfg.h:
C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/inc/hw_ccfg_simple_struct.h:
|
D
|
/Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Validation.build/Validators/OrValidator.swift.o : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validatable.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/ValidatorType.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/ValidationError.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/URLValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/AndValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/RangeValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/NilIgnoringValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/NilValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/EmailValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/InValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/OrValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/CharacterSetValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/CountValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/NotValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/EmptyValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validations.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Exports.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Validation.build/Validators/OrValidator~partial.swiftmodule : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validatable.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/ValidatorType.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/ValidationError.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/URLValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/AndValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/RangeValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/NilIgnoringValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/NilValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/EmailValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/InValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/OrValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/CharacterSetValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/CountValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/NotValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/EmptyValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validations.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Exports.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Validation.build/Validators/OrValidator~partial.swiftdoc : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validatable.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/ValidatorType.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/ValidationError.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/URLValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/AndValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/RangeValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/NilIgnoringValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/NilValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/EmailValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/InValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/OrValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/CharacterSetValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/CountValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/NotValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validators/EmptyValidator.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validations.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Exports.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
something that bulges out or is protuberant or projects from its surroundings
the condition of being protuberant
|
D
|
/Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/Build/Intermediates.noindex/ViniTestPod.build/Debug-iphonesimulator/ViniTestPod.build/Objects-normal/x86_64/ViewController.o : /Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/ViniTestPod/AppDelegate.swift /Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/ViniTestPod/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/Build/Intermediates.noindex/ViniTestPod.build/Debug-iphonesimulator/ViniTestPod.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/ViniTestPod/AppDelegate.swift /Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/ViniTestPod/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/Build/Intermediates.noindex/ViniTestPod.build/Debug-iphonesimulator/ViniTestPod.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/ViniTestPod/AppDelegate.swift /Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/ViniTestPod/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
|
D
|
/Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartUpload.o : /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/MultipartFormData.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/MultipartUpload.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AlamofireExtended.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Protected.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/HTTPMethod.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Combine.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/OperationQueue+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/StringEncoding+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Result+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLRequest+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Response.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/SessionDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ParameterEncoding.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Session.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Validation.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ServerTrustEvaluation.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ResponseSerialization.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RequestTaskMap.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLEncodedFormEncoder.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ParameterEncoder.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/CachedResponseHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RedirectHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AFError.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/EventMonitor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AuthenticationInterceptor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RequestInterceptor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Notifications.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/HTTPHeaders.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Request.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/Task/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartUpload~partial.swiftmodule : /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/MultipartFormData.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/MultipartUpload.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AlamofireExtended.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Protected.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/HTTPMethod.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Combine.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/OperationQueue+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/StringEncoding+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Result+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLRequest+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Response.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/SessionDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ParameterEncoding.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Session.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Validation.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ServerTrustEvaluation.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ResponseSerialization.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RequestTaskMap.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLEncodedFormEncoder.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ParameterEncoder.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/CachedResponseHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RedirectHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AFError.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/EventMonitor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AuthenticationInterceptor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RequestInterceptor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Notifications.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/HTTPHeaders.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Request.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/Task/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartUpload~partial.swiftdoc : /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/MultipartFormData.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/MultipartUpload.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AlamofireExtended.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Protected.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/HTTPMethod.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Combine.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/OperationQueue+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/StringEncoding+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Result+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLRequest+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Response.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/SessionDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ParameterEncoding.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Session.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Validation.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ServerTrustEvaluation.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ResponseSerialization.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RequestTaskMap.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLEncodedFormEncoder.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ParameterEncoder.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/CachedResponseHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RedirectHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AFError.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/EventMonitor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AuthenticationInterceptor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RequestInterceptor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Notifications.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/HTTPHeaders.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Request.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/Task/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartUpload~partial.swiftsourceinfo : /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/MultipartFormData.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/MultipartUpload.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AlamofireExtended.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Protected.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/HTTPMethod.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Combine.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/OperationQueue+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/StringEncoding+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Result+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLRequest+Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Alamofire.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Response.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/SessionDelegate.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ParameterEncoding.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Session.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Validation.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ServerTrustEvaluation.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ResponseSerialization.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RequestTaskMap.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/URLEncodedFormEncoder.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/ParameterEncoder.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/CachedResponseHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RedirectHandler.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AFError.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/EventMonitor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/AuthenticationInterceptor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RequestInterceptor.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Notifications.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/HTTPHeaders.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/Request.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/RetryPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/Task/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
func void ZS_MM_Rtn_Follow_Sheep()
{
Npc_SetPercTime(self,1);
Npc_PercEnable(self,PERC_ASSESSPLAYER,B_MM_AssessPlayer);
Npc_PercEnable(self,PERC_ASSESSTALK,B_AssessTalk);
Npc_PercEnable(self,PERC_ASSESSMAGIC,B_AssessMagic);
};
func int ZS_MM_Rtn_Follow_Sheep_Loop()
{
var int randomMove;
if(self.aivar[AIV_PARTYMEMBER] == TRUE)
{
if(Npc_GetDistToNpc(self,hero) > 500)
{
if(!C_BodyStateContains(self,BS_SWIM))
{
AI_SetWalkMode(self,NPC_RUN);
};
AI_GotoNpc(self,hero);
}
else
{
AI_TurnToNPC(self,hero);
self.wp = Npc_GetNearestWP(self);
};
}
else
{
randomMove = Hlp_Random(3);
if(randomMove == 0)
{
AI_PlayAni(self,"R_ROAM1");
};
if(randomMove == 1)
{
AI_PlayAni(self,"R_ROAM2");
};
if(randomMove == 2)
{
AI_PlayAni(self,"R_ROAM3");
};
};
return LOOP_CONTINUE;
};
func void ZS_MM_Rtn_Follow_Sheep_End()
{
};
func void ZS_MM_Rtn_Follow_Sheep_Balthasar()
{
Npc_SetPercTime(self,1);
Npc_PercEnable(self,PERC_ASSESSPLAYER,B_MM_AssessPlayer);
};
func int ZS_MM_Rtn_Follow_Sheep_Balthasar_Loop()
{
if(Npc_GetDistToWP(Balthasar,"NW_BIGMILL_FARM3_BALTHASAR") > 500)
{
if(Npc_GetDistToNpc(self,Balthasar) > 500)
{
if(!C_BodyStateContains(self,BS_SWIM))
{
AI_SetWalkMode(self,NPC_RUN);
};
AI_GotoNpc(self,Balthasar);
}
else
{
AI_TurnToNPC(self,Balthasar);
self.wp = Npc_GetNearestWP(self);
};
}
else
{
AI_StartState(self,ZS_MM_Rtn_Roam,1,"NW_BIGMILL_FARM3_BALTHASAR");
};
return LOOP_CONTINUE;
};
func void ZS_MM_Rtn_Follow_Sheep_Balthasar_End()
{
};
|
D
|
/home/ubuntu/code/rust/rust-programming/common-concepts/variables/target/debug/deps/variables-518b8a96b9781a40: src/main.rs
/home/ubuntu/code/rust/rust-programming/common-concepts/variables/target/debug/deps/variables-518b8a96b9781a40.d: src/main.rs
src/main.rs:
|
D
|
LED.d LED.p1: C:/Users/FMV/Dropbox/PIC-project/PIC_XC8/pic16f877a/LED/LED.c
|
D
|
module android.java.android.graphics.drawable.AnimatedVectorDrawable_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import13 = android.java.android.graphics.Rect_d_interface;
import import11 = android.java.android.content.res.Resources_Theme_d_interface;
import import2 = android.java.android.graphics.Canvas_d_interface;
import import5 = android.java.android.graphics.BlendMode_d_interface;
import import19 = android.java.android.util.TypedValue_d_interface;
import import9 = android.java.org.xmlpull.v1.XmlPullParser_d_interface;
import import8 = android.java.android.content.res.Resources_d_interface;
import import3 = android.java.android.graphics.ColorFilter_d_interface;
import import1 = android.java.android.graphics.drawable.Drawable_ConstantState_d_interface;
import import16 = android.java.android.graphics.PorterDuff_Mode_d_interface;
import import12 = android.java.android.graphics.drawable.Animatable2_AnimationCallback_d_interface;
import import4 = android.java.android.content.res.ColorStateList_d_interface;
import import7 = android.java.android.graphics.Insets_d_interface;
import import0 = android.java.android.graphics.drawable.Drawable_d_interface;
import import18 = android.java.java.io.InputStream_d_interface;
import import10 = android.java.android.util.AttributeSet_d_interface;
import import6 = android.java.android.graphics.Outline_d_interface;
import import20 = android.java.android.graphics.BitmapFactory_Options_d_interface;
import import21 = android.java.java.lang.Class_d_interface;
import import15 = android.java.java.lang.Runnable_d_interface;
import import14 = android.java.android.graphics.drawable.Drawable_Callback_d_interface;
import import17 = android.java.android.graphics.Region_d_interface;
final class AnimatedVectorDrawable : IJavaObject {
static immutable string[] _d_canCastTo = [
"android/graphics/drawable/Animatable2",
];
@Import this(arsd.jni.Default);
@Import import0.Drawable mutate();
@Import import1.Drawable_ConstantState getConstantState();
@Import int getChangingConfigurations();
@Import void draw(import2.Canvas);
@Import bool onLayoutDirectionChanged(int);
@Import int getAlpha();
@Import void setAlpha(int);
@Import void setColorFilter(import3.ColorFilter);
@Import import3.ColorFilter getColorFilter();
@Import void setTintList(import4.ColorStateList);
@Import void setHotspot(float, float);
@Import void setHotspotBounds(int, int, int, int);
@Import void setTintBlendMode(import5.BlendMode);
@Import bool setVisible(bool, bool);
@Import bool isStateful();
@Import int getOpacity();
@Import int getIntrinsicWidth();
@Import int getIntrinsicHeight();
@Import void getOutline(import6.Outline);
@Import import7.Insets getOpticalInsets();
@Import void inflate(import8.Resources, import9.XmlPullParser, import10.AttributeSet, import11.Resources_Theme);
@Import bool canApplyTheme();
@Import void applyTheme(import11.Resources_Theme);
@Import bool isRunning();
@Import void reset();
@Import void start();
@Import void stop();
@Import void registerAnimationCallback(import12.Animatable2_AnimationCallback);
@Import bool unregisterAnimationCallback(import12.Animatable2_AnimationCallback);
@Import void clearAnimationCallbacks();
@Import void setBounds(int, int, int, int);
@Import void setBounds(import13.Rect);
@Import void copyBounds(import13.Rect);
@Import import13.Rect copyBounds();
@Import import13.Rect getBounds();
@Import import13.Rect getDirtyBounds();
@Import void setChangingConfigurations(int);
@Import void setDither(bool);
@Import void setFilterBitmap(bool);
@Import bool isFilterBitmap();
@Import void setCallback(import14.Drawable_Callback);
@Import import14.Drawable_Callback getCallback();
@Import void invalidateSelf();
@Import void scheduleSelf(import15.Runnable, long);
@Import void unscheduleSelf(import15.Runnable);
@Import int getLayoutDirection();
@Import bool setLayoutDirection(int);
@Import void setColorFilter(int, import16.PorterDuff_Mode);
@Import void setTint(int);
@Import void setTintMode(import16.PorterDuff_Mode);
@Import void clearColorFilter();
@Import void getHotspotBounds(import13.Rect);
@Import bool isProjected();
@Import bool setState(int[]);
@Import int[] getState();
@Import void jumpToCurrentState();
@Import import0.Drawable getCurrent();
@Import bool setLevel(int);
@Import int getLevel();
@Import bool isVisible();
@Import void setAutoMirrored(bool);
@Import bool isAutoMirrored();
@Import static int resolveOpacity(int, int);
@Import import17.Region getTransparentRegion();
@Import int getMinimumWidth();
@Import int getMinimumHeight();
@Import bool getPadding(import13.Rect);
@Import static import0.Drawable createFromStream(import18.InputStream, string);
@Import static import0.Drawable createFromResourceStream(import8.Resources, import19.TypedValue, import18.InputStream, string);
@Import static import0.Drawable createFromResourceStream(import8.Resources, import19.TypedValue, import18.InputStream, string, import20.BitmapFactory_Options);
@Import static import0.Drawable createFromXml(import8.Resources, import9.XmlPullParser);
@Import static import0.Drawable createFromXml(import8.Resources, import9.XmlPullParser, import11.Resources_Theme);
@Import static import0.Drawable createFromXmlInner(import8.Resources, import9.XmlPullParser, import10.AttributeSet);
@Import static import0.Drawable createFromXmlInner(import8.Resources, import9.XmlPullParser, import10.AttributeSet, import11.Resources_Theme);
@Import static import0.Drawable createFromPath(string);
@Import void inflate(import8.Resources, import9.XmlPullParser, import10.AttributeSet);
@Import import21.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Landroid/graphics/drawable/AnimatedVectorDrawable;";
}
|
D
|
a lodge consisting of a frame covered with matting or brush
|
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, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/dmacro.d, _dmacro.d)
*/
module dmd.dmacro;
// Online documentation: https://dlang.org/phobos/dmd_dmacro.html
import core.stdc.ctype;
import core.stdc.string;
import dmd.doc;
import dmd.errors;
import dmd.globals;
import dmd.root.outbuffer;
import dmd.root.rmem;
struct Macro
{
private:
Macro* next; // next in list
const(char)[] name; // macro name
const(char)[] text; // macro replacement text
int inuse; // macro is in use (don't expand)
this(const(char)[] name, const(char)[] text)
{
this.name = name;
this.text = text;
}
Macro* search(const(char)[] name)
{
Macro* table;
//printf("Macro::search(%.*s)\n", name.length, name.ptr);
for (table = &this; table; table = table.next)
{
if (table.name == name)
{
//printf("\tfound %d\n", table.textlen);
break;
}
}
return table;
}
public:
static Macro* define(Macro** ptable, const(char)[] name, const(char)[] text)
{
//printf("Macro::define('%.*s' = '%.*s')\n", name.length, name.ptr, text.length, text.ptr);
Macro* table;
//assert(ptable);
for (table = *ptable; table; table = table.next)
{
if (table.name == name)
{
table.text = text;
return table;
}
}
table = new Macro(name, text);
table.next = *ptable;
*ptable = table;
return table;
}
/*****************************************************
* Expand macro in place in buf.
* Only look at the text in buf from start to end.
*/
void expand(OutBuffer* buf, size_t start, size_t* pend, const(char)[] arg)
{
version (none)
{
printf("Macro::expand(buf[%d..%d], arg = '%.*s')\n", start, *pend, cast(int)arg.length, arg.ptr);
printf("Buf is: '%.*s'\n", *pend - start, buf.data + start);
}
// limit recursive expansion
static __gshared int nest;
static __gshared const(int) nestLimit = 1000;
if (nest > nestLimit)
{
error(Loc(), "DDoc macro expansion limit exceeded; more than %d expansions.", nestLimit);
return;
}
nest++;
size_t end = *pend;
assert(start <= end);
assert(end <= buf.offset);
/* First pass - replace $0
*/
arg = memdup(arg);
for (size_t u = start; u + 1 < end;)
{
char* p = cast(char*)buf.data; // buf.data is not loop invariant
/* Look for $0, but not $$0, and replace it with arg.
*/
if (p[u] == '$' && (isdigit(p[u + 1]) || p[u + 1] == '+'))
{
if (u > start && p[u - 1] == '$')
{
// Don't expand $$0, but replace it with $0
buf.remove(u - 1, 1);
end--;
u += 1; // now u is one past the closing '1'
continue;
}
char c = p[u + 1];
int n = (c == '+') ? -1 : c - '0';
const(char)[] marg;
if (n == 0)
{
marg = arg;
}
else
extractArgN(arg, marg, n);
if (marg.length == 0)
{
// Just remove macro invocation
//printf("Replacing '$%c' with '%.*s'\n", p[u + 1], cast(int)marg.length, marg.ptr);
buf.remove(u, 2);
end -= 2;
}
else if (c == '+')
{
// Replace '$+' with 'arg'
//printf("Replacing '$%c' with '%.*s'\n", p[u + 1], cast(int)marg.length, marg.ptr);
buf.remove(u, 2);
buf.insert(u, marg);
end += marg.length - 2;
// Scan replaced text for further expansion
size_t mend = u + marg.length;
expand(buf, u, &mend, null);
end += mend - (u + marg.length);
u = mend;
}
else
{
// Replace '$1' with '\xFF{arg\xFF}'
//printf("Replacing '$%c' with '\xFF{%.*s\xFF}'\n", p[u + 1], cast(int)marg.length, marg.ptr);
buf.data[u] = 0xFF;
buf.data[u + 1] = '{';
buf.insert(u + 2, marg);
buf.insert(u + 2 + marg.length, "\xFF}");
end += -2 + 2 + marg.length + 2;
// Scan replaced text for further expansion
size_t mend = u + 2 + marg.length;
expand(buf, u + 2, &mend, null);
end += mend - (u + 2 + marg.length);
u = mend;
}
//printf("u = %d, end = %d\n", u, end);
//printf("#%.*s#\n", end, &buf.data[0]);
continue;
}
u++;
}
/* Second pass - replace other macros
*/
for (size_t u = start; u + 4 < end;)
{
char* p = cast(char*)buf.data; // buf.data is not loop invariant
/* A valid start of macro expansion is $(c, where c is
* an id start character, and not $$(c.
*/
if (p[u] == '$' && p[u + 1] == '(' && isIdStart(p + u + 2))
{
//printf("\tfound macro start '%c'\n", p[u + 2]);
char* name = p + u + 2;
size_t namelen = 0;
const(char)[] marg;
size_t v;
/* Scan forward to find end of macro name and
* beginning of macro argument (marg).
*/
for (v = u + 2; v < end; v += utfStride(p + v))
{
if (!isIdTail(p + v))
{
// We've gone past the end of the macro name.
namelen = v - (u + 2);
break;
}
}
v += extractArgN(p[v .. end], marg, 0);
assert(v <= end);
if (v < end)
{
// v is on the closing ')'
if (u > start && p[u - 1] == '$')
{
// Don't expand $$(NAME), but replace it with $(NAME)
buf.remove(u - 1, 1);
end--;
u = v; // now u is one past the closing ')'
continue;
}
Macro* m = search(name[0 .. namelen]);
if (!m)
{
immutable undef = "DDOC_UNDEFINED_MACRO";
m = search(undef);
if (m)
{
// Macro was not defined, so this is an expansion of
// DDOC_UNDEFINED_MACRO. Prepend macro name to args.
// marg = name[ ] ~ "," ~ marg[ ];
if (marg.length)
{
char* q = cast(char*)mem.xmalloc(namelen + 1 + marg.length);
assert(q);
memcpy(q, name, namelen);
q[namelen] = ',';
memcpy(q + namelen + 1, marg.ptr, marg.length);
marg = q[0 .. marg.length + namelen + 1];
}
else
{
marg = name[0 .. namelen];
}
}
}
if (m)
{
if (m.inuse && marg.length == 0)
{
// Remove macro invocation
buf.remove(u, v + 1 - u);
end -= v + 1 - u;
}
else if (m.inuse && ((arg.length == marg.length && memcmp(arg.ptr, marg.ptr, arg.length) == 0) ||
(arg.length + 4 == marg.length && marg[0] == 0xFF && marg[1] == '{' && memcmp(arg.ptr, marg.ptr + 2, arg.length) == 0 && marg[marg.length - 2] == 0xFF && marg[marg.length - 1] == '}')))
{
/* Recursive expansion:
* marg is same as arg (with blue paint added)
* Just leave in place.
*/
}
else
{
//printf("\tmacro '%.*s'(%.*s) = '%.*s'\n", cast(int)m.namelen, m.name, cast(int)marg.length, marg.ptr, cast(int)m.textlen, m.text);
marg = memdup(marg);
// Insert replacement text
buf.spread(v + 1, 2 + m.text.length + 2);
buf.data[v + 1] = 0xFF;
buf.data[v + 2] = '{';
buf.data[v + 3 .. v + 3 + m.text.length] = cast(ubyte[])m.text[];
buf.data[v + 3 + m.text.length] = 0xFF;
buf.data[v + 3 + m.text.length + 1] = '}';
end += 2 + m.text.length + 2;
// Scan replaced text for further expansion
m.inuse++;
size_t mend = v + 1 + 2 + m.text.length + 2;
expand(buf, v + 1, &mend, marg);
end += mend - (v + 1 + 2 + m.text.length + 2);
m.inuse--;
buf.remove(u, v + 1 - u);
end -= v + 1 - u;
u += mend - (v + 1);
mem.xfree(cast(char*)marg.ptr);
//printf("u = %d, end = %d\n", u, end);
//printf("#%.*s#\n", end - u, &buf.data[u]);
continue;
}
}
else
{
// Replace $(NAME) with nothing
buf.remove(u, v + 1 - u);
end -= (v + 1 - u);
continue;
}
}
}
u++;
}
mem.xfree(cast(char*)arg);
*pend = end;
nest--;
}
}
/************************
* Make mutable copy of slice p.
* Params:
* p = slice
* Returns:
* copy allocated with mem.xmalloc()
*/
private char[] memdup(const(char)[] p)
{
size_t len = p.length;
return (cast(char*)memcpy(mem.xmalloc(len), p.ptr, len))[0 .. len];
}
/**********************************************************
* Given buffer buf[], extract argument marg[].
* Params:
* buf = source string
* marg = set to slice of buf[]
* n = 0: get entire argument
* 1..9: get nth argument
* -1: get 2nd through end
*/
private size_t extractArgN(const(char)[] buf, out const(char)[] marg, int n)
{
/* Scan forward for matching right parenthesis.
* Nest parentheses.
* Skip over "..." and '...' strings inside HTML tags.
* Skip over <!-- ... --> comments.
* Skip over previous macro insertions
* Set marg.
*/
uint parens = 1;
ubyte instring = 0;
uint incomment = 0;
uint intag = 0;
uint inexp = 0;
uint argn = 0;
size_t v = 0;
const p = buf.ptr;
const end = buf.length;
Largstart:
// Skip first space, if any, to find the start of the macro argument
if (n != 1 && v < end && isspace(p[v]))
v++;
size_t vstart = v;
for (; v < end; v++)
{
char c = p[v];
switch (c)
{
case ',':
if (!inexp && !instring && !incomment && parens == 1)
{
argn++;
if (argn == 1 && n == -1)
{
v++;
goto Largstart;
}
if (argn == n)
break;
if (argn + 1 == n)
{
v++;
goto Largstart;
}
}
continue;
case '(':
if (!inexp && !instring && !incomment)
parens++;
continue;
case ')':
if (!inexp && !instring && !incomment && --parens == 0)
{
break;
}
continue;
case '"':
case '\'':
if (!inexp && !incomment && intag)
{
if (c == instring)
instring = 0;
else if (!instring)
instring = c;
}
continue;
case '<':
if (!inexp && !instring && !incomment)
{
if (v + 6 < end && p[v + 1] == '!' && p[v + 2] == '-' && p[v + 3] == '-')
{
incomment = 1;
v += 3;
}
else if (v + 2 < end && isalpha(p[v + 1]))
intag = 1;
}
continue;
case '>':
if (!inexp)
intag = 0;
continue;
case '-':
if (!inexp && !instring && incomment && v + 2 < end && p[v + 1] == '-' && p[v + 2] == '>')
{
incomment = 0;
v += 2;
}
continue;
case 0xFF:
if (v + 1 < end)
{
if (p[v + 1] == '{')
inexp++;
else if (p[v + 1] == '}')
inexp--;
}
continue;
default:
continue;
}
break;
}
if (argn == 0 && n == -1)
marg = p[v .. v];
else
marg = p[vstart .. v];
//printf("extractArg%d('%.*s') = '%.*s'\n", n, cast(int)end, p, cast(int)marg.length, marg.ptr);
return v;
}
|
D
|
/**
* db.sqlite3: SQLite3 wrapper
*/
module db.sqlite3;
|
D
|
incite to commit a crime or an evil deed
procure (false testimony or perjury)
induce to commit perjury or give false testimony
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/fail13756.d(11): Error: foreach: index must be type `const(int)`, not `int`
---
*/
void maiin()
{
int[int] aa = [1:2];
foreach (ref int k, v; aa)
{
}
}
|
D
|
var int Runemaking_KDW_CIRC1_RedOnce;
var int Runemaking_KDW_CIRC2_RedOnce;
var int Runemaking_KDW_CIRC3_RedOnce;
var int Runemaking_KDW_CIRC4_RedOnce;
var int Runemaking_KDW_CIRC5_RedOnce;
func void Use_Runemaking_KDW_CIRC1_S1()
{
var C_Npc her;
var int nDocID;
her = Hlp_GetNpc(PC_Hero);
if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(her)) || (self.id == 0) || Npc_IsPlayer(self))
{
nDocID = Doc_Create();
Doc_SetPages(nDocID,2);
Doc_SetPage(nDocID,0,"Book_Mage_L.tga",0);
Doc_SetPage(nDocID,1,"Book_Mage_R.tga",0);
Doc_SetFont(nDocID,-1,FONT_Book);
Doc_SetMargins(nDocID,0,275,20,30,20,1);
Doc_PrintLine(nDocID,0,"Круги Воды");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"Руны Воды и ингредиенты, необходимые для их создания.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Лечение легких ранений");
Doc_PrintLine(nDocID,0,"Лечебная трава");
Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Гейзер");
// Doc_PrintLine(nDocID,0,"Аквамарин");
// Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Буря");
// Doc_PrintLine(nDocID,0,"Ледяной кварц");
// Doc_PrintLine(nDocID,0,"Крылья кровавой мухи");
// Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Кулак воды");
// Doc_PrintLine(nDocID,0,"Аквамарин");
// Doc_PrintLine(nDocID,0,"Горный хрусталь");
Doc_PrintLine(nDocID,0,"");
Doc_SetMargins(nDocID,-1,30,20,275,20,1);
Doc_PrintLine(nDocID,1,"");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Чтобы создать руну, всегда необходим ОДИН из вышеперечисленных ингредиентов.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Маг должен знать формулу заклинания и должен иметь чистый рунный камень и свиток желаемого заклинания.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Только при выполнении этих условий он может приступить к работе за рунным столом.");
Doc_Show(nDocID);
/*Redleha: Отключено обучение от книг
if(Runemaking_KDW_CIRC1_RedOnce == false)
{
Runemaking_KDW_CIRC1_RedOnce = true;
//B_TeachPlayerTalentRunesBook(hero,SPL_Whirlwind);
//B_TeachPlayerTalentRunesBook(hero,SPL_IceLance);
//B_TeachPlayerTalentRunesBook(hero,SPL_Geyser);
//B_TeachPlayerTalentRunesBook(hero,SPL_Thunderstorm);
//B_TeachPlayerTalentRunesBook(hero,SPL_WaterFist);
B_TeachPlayerTalentRunesBook(hero,SPL_LightHeal);
};
*/
};
};
func void Use_Runemaking_KDW_CIRC2_S1()
{
// Use_Runemaking_KDW_CIRC1_S1();
var C_Npc her;
var int nDocID;
her = Hlp_GetNpc(PC_Hero);
if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(her)) || (self.id == 0) || Npc_IsPlayer(self))
{
nDocID = Doc_Create();
Doc_SetPages(nDocID,2);
Doc_SetPage(nDocID,0,"Book_Mage_L.tga",0);
Doc_SetPage(nDocID,1,"Book_Mage_R.tga",0);
Doc_SetFont(nDocID,-1,FONT_Book);
Doc_SetMargins(nDocID,0,275,20,30,20,1);
Doc_PrintLine(nDocID,0,"Круги Воды");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"Руны Воды и ингредиенты, необходимые для их создания.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Смерч");
Doc_PrintLine(nDocID,0,"Крылья кровавой мухи");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Ледяное копье");
Doc_PrintLine(nDocID,0,"Ледяной кварц");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Ледяная стрела");
Doc_PrintLine(nDocID,0,"Ледяной кварц");
Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Буря");
// Doc_PrintLine(nDocID,0,"Ледяной кварц");
// Doc_PrintLine(nDocID,0,"Крылья кровавой мухи");
Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Кулак воды");
// Doc_PrintLine(nDocID,0,"Аквамарин");
// Doc_PrintLine(nDocID,0,"Горный хрусталь");
Doc_PrintLine(nDocID,0,"");
Doc_SetMargins(nDocID,-1,30,20,275,20,1);
Doc_PrintLine(nDocID,1,"");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Чтобы создать руну, всегда необходим ОДИН из вышеперечисленных ингредиентов.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Маг должен знать формулу заклинания и должен иметь чистый рунный камень и свиток желаемого заклинания.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Только при выполнении этих условий он может приступить к работе за рунным столом.");
Doc_Show(nDocID);
/*Redleha: Отключено обучение от книг
if(Runemaking_KDW_CIRC2_RedOnce == false)
{
Runemaking_KDW_CIRC2_RedOnce = true;
B_TeachPlayerTalentRunesBook(hero,SPL_Whirlwind);
B_TeachPlayerTalentRunesBook(hero,SPL_IceLance);
//B_TeachPlayerTalentRunesBook(hero,SPL_Geyser);
//B_TeachPlayerTalentRunesBook(hero,SPL_Thunderstorm);
//B_TeachPlayerTalentRunesBook(hero,SPL_WaterFist);
B_TeachPlayerTalentRunesBook(hero,SPL_Icebolt);
};
*/
};
};
func void Use_Runemaking_KDW_CIRC3_S1()
{
// Use_Runemaking_KDW_CIRC1_S1();
var C_Npc her;
var int nDocID;
her = Hlp_GetNpc(PC_Hero);
if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(her)) || (self.id == 0) || Npc_IsPlayer(self))
{
nDocID = Doc_Create();
Doc_SetPages(nDocID,2);
Doc_SetPage(nDocID,0,"Book_Mage_L.tga",0);
Doc_SetPage(nDocID,1,"Book_Mage_R.tga",0);
Doc_SetFont(nDocID,-1,FONT_Book);
Doc_SetMargins(nDocID,0,275,20,30,20,1);
Doc_PrintLine(nDocID,0,"Круги Воды");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"Руны Воды и ингредиенты, необходимые для их создания.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Ледяной блок");
Doc_PrintLine(nDocID,0,"Ледяной кварц");
Doc_PrintLine(nDocID,0,"Аквамарин");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Лечение средних ранений");
Doc_PrintLine(nDocID,0,"Лечебное растение");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Гейзер");
Doc_PrintLine(nDocID,0,"Аквамарин");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Буря");
Doc_PrintLine(nDocID,0,"Ледяной кварц");
Doc_PrintLine(nDocID,0,"Крылья кровавой мухи");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_SetMargins(nDocID,-1,30,20,275,20,1);
Doc_PrintLine(nDocID,1,"");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Чтобы создать руну, всегда необходим ОДИН из вышеперечисленных ингредиентов.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Маг должен знать формулу заклинания и должен иметь чистый рунный камень и свиток желаемого заклинания.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Только при выполнении этих условий он может приступить к работе за рунным столом.");
Doc_Show(nDocID);
/*Redleha: Отключено обучение от книг
if(Runemaking_KDW_CIRC3_RedOnce == false)
{
Runemaking_KDW_CIRC3_RedOnce = true;
//B_TeachPlayerTalentRunesBook(hero,SPL_Whirlwind);
//B_TeachPlayerTalentRunesBook(hero,SPL_IceLance);
B_TeachPlayerTalentRunesBook(hero,SPL_Geyser);
B_TeachPlayerTalentRunesBook(hero,SPL_Thunderstorm);
//B_TeachPlayerTalentRunesBook(hero,SPL_WaterFist);
B_TeachPlayerTalentRunesBook(hero,SPL_IceCube);
B_TeachPlayerTalentRunesBook(hero,SPL_MediumHeal);
};
*/
};
};
func void Use_Runemaking_KDW_CIRC4_S1()
{
// Use_Runemaking_KDW_CIRC1_S1();
var C_Npc her;
var int nDocID;
her = Hlp_GetNpc(PC_Hero);
if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(her)) || (self.id == 0) || Npc_IsPlayer(self))
{
nDocID = Doc_Create();
Doc_SetPages(nDocID,2);
Doc_SetPage(nDocID,0,"Book_Mage_L.tga",0);
Doc_SetPage(nDocID,1,"Book_Mage_R.tga",0);
Doc_SetFont(nDocID,-1,FONT_Book);
Doc_SetMargins(nDocID,0,275,20,30,20,1);
Doc_PrintLine(nDocID,0,"Круги Воды");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"Руны Воды и ингредиенты, необходимые для их создания.");
Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Смерч");
// Doc_PrintLine(nDocID,0,"Крылья кровавой мухи");
Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Ледяное копье");
// Doc_PrintLine(nDocID,0,"Ледяной кварц");
// Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Гейзер");
// Doc_PrintLine(nDocID,0,"Аквамарин");
// Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Буря");
// Doc_PrintLine(nDocID,0,"Ледяной кварц");
// Doc_PrintLine(nDocID,0,"Крылья кровавой мухи");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Кулак воды");
Doc_PrintLine(nDocID,0,"Аквамарин");
Doc_PrintLine(nDocID,0,"Горный хрусталь");
Doc_PrintLine(nDocID,0,"");
Doc_SetMargins(nDocID,-1,30,20,275,20,1);
Doc_PrintLine(nDocID,1,"");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Чтобы создать руну, всегда необходим ОДИН из вышеперечисленных ингредиентов.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Маг должен знать формулу заклинания и должен иметь чистый рунный камень и свиток желаемого заклинания.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Только при выполнении этих условий он может приступить к работе за рунным столом.");
Doc_Show(nDocID);
/*Redleha: Отключено обучение от книг
if(Runemaking_KDW_CIRC4_RedOnce == false)
{
Runemaking_KDW_CIRC4_RedOnce = true;
//B_TeachPlayerTalentRunesBook(hero,SPL_Whirlwind);
//B_TeachPlayerTalentRunesBook(hero,SPL_IceLance);
//B_TeachPlayerTalentRunesBook(hero,SPL_Geyser);
//B_TeachPlayerTalentRunesBook(hero,SPL_Thunderstorm);
B_TeachPlayerTalentRunesBook(hero,SPL_WaterFist);
};
*/
};
};
func void Use_Runemaking_KDW_CIRC5_S1()
{
// Use_Runemaking_KDW_CIRC1_S1();
var C_Npc her;
var int nDocID;
her = Hlp_GetNpc(PC_Hero);
if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(her)) || (self.id == 0) || Npc_IsPlayer(self))
{
nDocID = Doc_Create();
Doc_SetPages(nDocID,2);
Doc_SetPage(nDocID,0,"Book_Mage_L.tga",0);
Doc_SetPage(nDocID,1,"Book_Mage_R.tga",0);
Doc_SetFont(nDocID,-1,FONT_Book);
Doc_SetMargins(nDocID,0,275,20,30,20,1);
Doc_PrintLine(nDocID,0,"Круги Воды");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"Руны Воды и ингредиенты, необходимые для их создания.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Ледяная волна");
Doc_PrintLine(nDocID,0,"Ледяной кварц");
Doc_PrintLine(nDocID,0,"Аквамарин");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Лечение тяжелых ранений");
Doc_PrintLine(nDocID,0,"Лечебный корень");
Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Гейзер");
// Doc_PrintLine(nDocID,0,"Аквамарин");
// Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Буря");
// Doc_PrintLine(nDocID,0,"Ледяной кварц");
// Doc_PrintLine(nDocID,0,"Крылья кровавой мухи");
// Doc_PrintLine(nDocID,0,"");
// Doc_PrintLine(nDocID,0,"Кулак воды");
// Doc_PrintLine(nDocID,0,"Аквамарин");
// Doc_PrintLine(nDocID,0,"Горный хрусталь");
Doc_PrintLine(nDocID,0,"");
Doc_SetMargins(nDocID,-1,30,20,275,20,1);
Doc_PrintLine(nDocID,1,"");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Чтобы создать руну, всегда необходим ОДИН из вышеперечисленных ингредиентов.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Маг должен знать формулу заклинания и должен иметь чистый рунный камень и свиток желаемого заклинания.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Только при выполнении этих условий он может приступить к работе за рунным столом.");
Doc_Show(nDocID);
/*Redleha: Отключено обучение от книг
if(Runemaking_KDW_CIRC5_RedOnce == false)
{
Runemaking_KDW_CIRC5_RedOnce = true;
//B_TeachPlayerTalentRunesBook(hero,SPL_Whirlwind);
//B_TeachPlayerTalentRunesBook(hero,SPL_IceLance);
//B_TeachPlayerTalentRunesBook(hero,SPL_Geyser);
//B_TeachPlayerTalentRunesBook(hero,SPL_Thunderstorm);
//B_TeachPlayerTalentRunesBook(hero,SPL_WaterFist);
B_TeachPlayerTalentRunesBook(hero,SPL_IceWave);
B_TeachPlayerTalentRunesBook(hero,SPL_FullHeal);
};
*/
};
};
func void Use_Runemaking_KDW_CIRC6_S1()
{
Use_Runemaking_KDW_CIRC1_S1();
};
|
D
|
import std.datetime : Duration, MonoTime;
import std.stdio : writeln;
import std.bigint;
struct BaseNumber
{
byte[] num;
int bits;
int base;
bool signed;
string toString()
{
string output;
foreach (digit; this.num)
output ~= digit + 48;
return output;
}
long toLong()
{
long output;
foreach (digit; this.num)
{
output += digit;
output *= 10;
}
return output;
}
BigInt toBigInt()
{
return BigInt(this.toString());
}
}
V[] insert(V)(V[] items, V newItem, ulong pos)
{
items.length += 1;
for (ulong i = items.length - 1; i > pos; i--)
items[i] = items[i - 1];
items[pos] = newItem;
return items;
}
unittest
{
import std.random : uniform;
writeln("insert test");
int[] arr;
foreach (i; 0 .. 10)
arr ~= uniform(0, 50);
int[] newArr = arr;
newArr.insert(uniform(0, 50), 0);
}
T[] revArray(T)(T[] arr)
{
T tmp;
ulong i;
ulong j = arr.length - 1;
while (i < arr.length / 2)
{
tmp = arr[i];
arr[i] = arr[j];
arr[j] = tmp;
i++;
j--;
}
return arr;
}
BaseNumber convToBase(T)(T num, byte base = 2)
{
static BaseNumber outNum;
if (num == 0)
{
outNum.bits--;
outNum.num = revArray(outNum.num);
BaseNumber tmp = outNum;
outNum.bits = 0;
outNum.num.length = 0;
return tmp;
}
ubyte b = cast(ubyte)(num % base);
outNum.num ~= b;
num /= base;
outNum.bits++;
return convToBase(num, base);
}
T power(T)(T x, T y)
{
T temp;
if( y == 0)
return 1;
temp = power(x, y/2);
if (y%2 == 0)
return temp*temp;
else
return x*temp*temp;
}
unittest
{
import std.math : pow;
writeln("Power func");
foreach (i; 0 .. 100)
{
float one = pow(2, i);
float two = power(2, i);
assert(one == two);
}
writeln("Power done");
}
V convToDecimal(V)(BaseNumber num, int base = 2)
{
static V outNum;
static i = 0;
if (i == num.num.length)
{
V tmp = outNum;
outNum = 0;
i = 0;
return tmp;
}
outNum += (num.num[i] * power(base, num.bits));
num.bits--;
i++;
return convToDecimal!V(num, base);
}
unittest
{
import std.random : uniform;
writeln("Convertion to decimal!");
assert(convToDecimal!ulong(BaseNumber([1, 0, 1, 0, 1, 0], 5, 101010)) == 42);
foreach (i; 0 .. 500)
{
int num = uniform(0, 1000000);
assert(convToDecimal!ulong(convToBase(num)) == num);
}
writeln("Done decimal");
}
V or(T, V = ulong)(T a, T b)
{
BaseNumber output;
BaseNumber num1;
BaseNumber num2;
static if (!is(a : BaseNumber))
{
num1 = convToBase(a);
num2 = convToBase(b);
}
while (num1.num.length != num2.num.length)
{
if (num1.num.length < num2.num.length)
num1.num = num1.num.insert(0, 0);
else
num2.num = num2.num.insert(0, 0);
}
foreach_reverse (i; 0 .. num1.num.length)
{
if (num1.num[i] || num2.num[i])
output.num ~= 1;
else
output.num ~= 0;
}
return convToDecimal!V(output);
}
unittest
{
import std.random : uniform;
writeln("Or test");
foreach (i; 0 .. 100)
{
auto num1 = uniform(0, 100);
auto num2 = uniform(0, 100);
assert(or(num1, num2) == (num1 | num2));
}
writeln("Or done");
}
V and(T, V = ulong)(T a, T b)
{
BaseNumber output;
BaseNumber num1;
BaseNumber num2;
static if (!is(a : BaseNumber))
{
num1 = convToBase(a);
num2 = convToBase(b);
}
while (num1.num.length != num2.num.length)
{
if (num1.num.length < num2.num.length)
num1.num = num1.num.insert(0, 0);
else
num2.num = num2.num.insert(0, 0);
}
foreach_reverse (i; 0 .. num1.num.length)
{
if (num1.num[i] && num2.num[i])
output.num ~= 1;
else
output.num ~= 0;
}
return convToDecimal!V(output);
}
unittest
{
import std.random : uniform;
writeln("and test");
foreach (i; 0 .. 100)
{
auto num1 = uniform(0, 100);
auto num2 = uniform(0, 100);
assert(and(num1, num2) == (num1 & num2));
}
writeln("and done");
}
V xor(T, V = ulong)(T a, T b)
{
BaseNumber output;
BaseNumber num1;
BaseNumber num2;
static if (!is(a : BaseNumber))
{
num1 = convToBase(a);
num2 = convToBase(b);
}
else
{
num1 = a;
num2 = b;
}
while (num1.num.length != num2.num.length)
{
if (num1.num.length < num2.num.length)
num1.num = num1.num.insert(0, 0);
else
num2.num = num2.num.insert(0, 0);
}
foreach_reverse (i; 0 .. num1.num.length)
{
if ((num1.num[i] && !num2.num[i]) ||
(num2.num[i] && !num1.num[i]))
output.num ~= 1;
else
output.num ~= 0;
}
return convToDecimal!V(output);
}
unittest
{
import std.random : uniform;
writeln("Xor test");
foreach (i; 0 .. 100)
{
auto num1 = uniform(0, 100);
auto num2 = uniform(0, 100);
assert(xor(num1, num2) == (num1 ^ num2));
}
writeln("Xor done");
}
BaseNumber not(T)(T a)
{
BaseNumber output;
static if (!is(typeof(a) : BaseNumber))
output = convToBase(a);
else
output = a;
foreach (i; 0 .. output.num.length)
output.num[i] = cast(int)!output.num[i];
return output;
}
unittest
{
import std.random : uniform;
writeln("Not test");
foreach (i; 0 .. 10)
{
uint num1 = uniform(1, 10);
assert(convToDecimal!ulong(not(not(num1))) == num1);
}
writeln("Not done");
}
V shift(T, V = ulong)(T a, int times, char dir)
{
BaseNumber output;
V tmp;
static if (!is(typeof(a) : BaseNumber))
output = convToBase(a);
else
output = a;
foreach (i; 0 .. times)
{
if (dir == 'l')
{
output.num ~= 0;
output.bits++;
}
else if (dir == 'r')
{
if (output.num.length > 1)
output.num.length--;
else
{
output.num[0] = 0;
break;
}
output.bits--;
}
}
return convToDecimal!V(output);
}
V leftshift(T, V = ulong)(T a, int times)
{
return shift!(T, V)(a, times, 'l');
}
V rightshift(T, V = ulong)(T a, int times)
{
return shift!(T, V)(a, times, 'r');
}
//Add unitests for shift
T add(T)(T x, T y)
{
T sum;
T carry;
sum = xor!(T, T)(x, y);
carry = and!(T, T)(x, y);
while (carry != 0)
{
carry = leftshift!(T, T)(carry, 1);
x = sum;
y = carry;
sum = xor!(T, T)(x, y);
carry = and!(T, T)(x, y);
}
return sum;
}
unittest
{
import std.random : uniform;
writeln("add test");
foreach (i; 0 .. 100)
{
int a = uniform(1, 1000000);
int b = uniform(1, 1000000);
assert(add(a, b) == (a + b));
}
writeln("add done");
}
|
D
|
// SDLang-D
// Written in the D programming language.
module sdlang.token;
import std.array;
import std.base64;
import std.conv;
import std.datetime;
import std.meta;
import std.range;
import std.string;
import std.traits;
import std.typetuple;
import std.variant;
import sdlang.exception;
import sdlang.symbol;
import sdlang.util;
/// DateTime doesn't support milliseconds, but SDLang's "Date Time" type does.
/// So this is needed for any SDL "Date Time" that doesn't include a time zone.
struct DateTimeFrac
{
DateTime dateTime;
Duration fracSecs;
deprecated("Use fracSecs instead.") {
@property FracSec fracSec() const { return FracSec.from!"hnsecs"(fracSecs.total!"hnsecs"); }
@property void fracSec(FracSec v) { fracSecs = v.hnsecs.hnsecs; }
}
}
/++
If a "Date Time" literal in the SDL file has a time zone that's not found in
your system, you get one of these instead of a SysTime. (Because it's
impossible to indicate "unknown time zone" with `std.datetime.TimeZone`.)
The difference between this and `DateTimeFrac` is that `DateTimeFrac`
indicates that no time zone was specified in the SDL at all, whereas
`DateTimeFracUnknownZone` indicates that a time zone was specified but
data for it could not be found on your system.
+/
struct DateTimeFracUnknownZone
{
DateTime dateTime;
Duration fracSecs;
deprecated("Use fracSecs instead.") {
@property FracSec fracSec() const { return FracSec.from!"hnsecs"(fracSecs.total!"hnsecs"); }
@property void fracSec(FracSec v) { fracSecs = v.hnsecs.hnsecs; }
}
string timeZone;
bool opEquals(const DateTimeFracUnknownZone b) const @safe pure
{
return opEquals(b);
}
bool opEquals(ref const DateTimeFracUnknownZone b) const @safe pure
{
return
this.dateTime == b.dateTime &&
this.fracSecs == b.fracSecs &&
this.timeZone == b.timeZone;
}
}
/++
SDLang's datatypes map to D's datatypes as described below.
Most are straightforward, but take special note of the date/time-related types.
---------------------------------------------------------------
Boolean: bool
Null: typeof(null)
Unicode Character: dchar
Double-Quote Unicode String: string
Raw Backtick Unicode String: string
Integer (32 bits signed): int
Long Integer (64 bits signed): long
Float (32 bits signed): float
Double Float (64 bits signed): double
Decimal (128+ bits signed): real
Binary (standard Base64): ubyte[]
Time Span: Duration
Date (with no time at all): Date
Date Time (no timezone): DateTimeFrac
Date Time (with a known timezone): SysTime
Date Time (with an unknown timezone): DateTimeFracUnknownZone
---------------------------------------------------------------
+/
alias ValueTypes = TypeTuple!(
bool,
string, dchar,
int, long,
float, double, real,
Date, DateTimeFrac, SysTime, DateTimeFracUnknownZone, Duration,
ubyte[],
typeof(null),
);
alias Value = Algebraic!( ValueTypes ); ///ditto
enum isValueType(T) = staticIndexOf!(T, ValueTypes) != -1;
enum isSink(T) =
isOutputRange!T &&
is(ElementType!(T)[] == string);
string toSDLString(T)(T value) @trusted
if(is(T==Value) || isValueType!T)
{
Appender!string sink;
toSDLString(value, sink);
return sink.data;
}
/// Throws SDLangException if value is infinity, -infinity or NaN, because
/// those are not currently supported by the SDLang spec.
void toSDLString(Sink)(Value value, ref Sink sink) @trusted
if(isOutputRange!(Sink,char))
{
foreach(T; ValueTypes)
{
if(value.type == typeid(T))
{
toSDLString( value.get!T(), sink );
return;
}
}
throw new Exception("Internal SDLang-D error: Unhandled type of Value. Contains: "~value.toString());
}
@("toSDLString on infinity and NaN")
unittest
{
import std.exception;
auto floatInf = float.infinity;
auto floatNegInf = -float.infinity;
auto floatNaN = float.nan;
auto doubleInf = double.infinity;
auto doubleNegInf = -double.infinity;
auto doubleNaN = double.nan;
auto realInf = real.infinity;
auto realNegInf = -real.infinity;
auto realNaN = real.nan;
assertNotThrown( toSDLString(0.0F) );
assertNotThrown( toSDLString(0.0) );
assertNotThrown( toSDLString(0.0L) );
assertThrown!ValidationException( toSDLString(floatInf) );
assertThrown!ValidationException( toSDLString(floatNegInf) );
assertThrown!ValidationException( toSDLString(floatNaN) );
assertThrown!ValidationException( toSDLString(doubleInf) );
assertThrown!ValidationException( toSDLString(doubleNegInf) );
assertThrown!ValidationException( toSDLString(doubleNaN) );
assertThrown!ValidationException( toSDLString(realInf) );
assertThrown!ValidationException( toSDLString(realNegInf) );
assertThrown!ValidationException( toSDLString(realNaN) );
assertThrown!ValidationException( toSDLString(Value(floatInf)) );
assertThrown!ValidationException( toSDLString(Value(floatNegInf)) );
assertThrown!ValidationException( toSDLString(Value(floatNaN)) );
assertThrown!ValidationException( toSDLString(Value(doubleInf)) );
assertThrown!ValidationException( toSDLString(Value(doubleNegInf)) );
assertThrown!ValidationException( toSDLString(Value(doubleNaN)) );
assertThrown!ValidationException( toSDLString(Value(realInf)) );
assertThrown!ValidationException( toSDLString(Value(realNegInf)) );
assertThrown!ValidationException( toSDLString(Value(realNaN)) );
}
void toSDLString(Sink)(typeof(null) value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
sink.put("null");
}
void toSDLString(Sink)(bool value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
sink.put(value? "true" : "false");
}
//TODO: Figure out how to properly handle strings/chars containing lineSep or paraSep
void toSDLString(Sink)(string value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
sink.put('"');
// This loop is UTF-safe
foreach(char ch; value)
{
if (ch == '\n') sink.put(`\n`);
else if(ch == '\r') sink.put(`\r`);
else if(ch == '\t') sink.put(`\t`);
else if(ch == '\"') sink.put(`\"`);
else if(ch == '\\') sink.put(`\\`);
else
sink.put(ch);
}
sink.put('"');
}
void toSDLString(Sink)(dchar value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
sink.put('\'');
if (value == '\n') sink.put(`\n`);
else if(value == '\r') sink.put(`\r`);
else if(value == '\t') sink.put(`\t`);
else if(value == '\'') sink.put(`\'`);
else if(value == '\\') sink.put(`\\`);
else
sink.put(value);
sink.put('\'');
}
void toSDLString(Sink)(int value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
sink.put( "%s".format(value) );
}
void toSDLString(Sink)(long value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
sink.put( "%sL".format(value) );
}
private void checkUnsupportedFloatingPoint(T)(T value) @safe pure
if(isFloatingPoint!T)
{
import std.exception;
import std.math;
enforce!ValidationException(
!isInfinity(value),
"SDLang does not currently support infinity for floating-point types"
);
enforce!ValidationException(
!isNaN(value),
"SDLang does not currently support NaN for floating-point types"
);
}
private string trimmedDecimal(string str) @safe pure
{
Appender!string sink;
trimmedDecimal(str, sink);
return sink.data;
}
private void trimmedDecimal(Sink)(string str, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
// Special case
if(str == ".")
{
sink.put("0");
return;
}
for(auto i=str.length-1; i>0; i--)
{
if(str[i] == '.')
{
// Trim up to here, PLUS trim trailing '.'
sink.put(str[0..i]);
return;
}
else if(str[i] != '0')
{
// Trim up to here
sink.put(str[0..i+1]);
return;
}
}
// Nothing to trim
sink.put(str);
}
@("trimmedDecimal")
unittest
{
assert(trimmedDecimal("123.456000") == "123.456");
assert(trimmedDecimal("123.456") == "123.456");
assert(trimmedDecimal("123.000") == "123");
assert(trimmedDecimal("123.0") == "123");
assert(trimmedDecimal("123.") == "123");
assert(trimmedDecimal("123") == "123");
assert(trimmedDecimal("1.") == "1");
assert(trimmedDecimal("1") == "1");
assert(trimmedDecimal("0") == "0");
assert(trimmedDecimal(".") == "0");
}
void toSDLString(Sink)(float value, ref Sink sink) @safe
if(isOutputRange!(Sink,char))
{
checkUnsupportedFloatingPoint(value);
"%.10f".format(value).trimmedDecimal(sink);
sink.put("F");
}
void toSDLString(Sink)(double value, ref Sink sink) @safe
if(isOutputRange!(Sink,char))
{
checkUnsupportedFloatingPoint(value);
"%.30f".format(value).trimmedDecimal(sink);
sink.put("D");
}
void toSDLString(Sink)(real value, ref Sink sink) @safe
if(isOutputRange!(Sink,char))
{
checkUnsupportedFloatingPoint(value);
"%.90f".format(value).trimmedDecimal(sink);
sink.put("BD");
}
// Regression test: Issue #50
@("toSDLString: No scientific notation")
unittest
{
import std.algorithm, sdlang.parser;
auto tag = parseSource(`
foo \
420000000000000000000f \
42000000000000000000000000000000000000d \
420000000000000000000000000000000000000000000000000000000000000bd \
`).getTag("foo");
import std.stdio;
writeln(tag.values[0].toSDLString);
writeln(tag.values[1].toSDLString);
writeln(tag.values[2].toSDLString);
assert(!tag.values[0].toSDLString.canFind("+"));
assert(!tag.values[0].toSDLString.canFind("-"));
assert(!tag.values[1].toSDLString.canFind("+"));
assert(!tag.values[1].toSDLString.canFind("-"));
assert(!tag.values[2].toSDLString.canFind("+"));
assert(!tag.values[2].toSDLString.canFind("-"));
}
void toSDLString(Sink)(Date value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
sink.put(to!string(value.year));
sink.put('/');
sink.put(to!string(cast(int)value.month));
sink.put('/');
sink.put(to!string(value.day));
}
void toSDLString(Sink)(DateTimeFrac value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
toSDLString(value.dateTime.date, sink);
sink.put(' ');
sink.put("%.2s".format(value.dateTime.hour));
sink.put(':');
sink.put("%.2s".format(value.dateTime.minute));
if(value.dateTime.second != 0)
{
sink.put(':');
sink.put("%.2s".format(value.dateTime.second));
}
if(value.fracSecs != 0.msecs)
{
sink.put('.');
sink.put("%.3s".format(value.fracSecs.total!"msecs"));
}
}
void toSDLString(Sink)(SysTime value, ref Sink sink) @safe
if(isOutputRange!(Sink,char))
{
auto dateTimeFrac = DateTimeFrac(cast(DateTime)value, value.fracSecs);
toSDLString(dateTimeFrac, sink);
sink.put("-");
auto tzString = value.timezone.name;
// If name didn't exist, try abbreviation.
// Note that according to std.datetime docs, on Windows the
// stdName/dstName may not be properly abbreviated.
version(Windows) {} else
if(tzString == "")
{
auto tz = value.timezone;
auto stdTime = value.stdTime;
if(tz.hasDST())
tzString = tz.dstInEffect(stdTime)? tz.dstName : tz.stdName;
else
tzString = tz.stdName;
}
if(tzString == "")
{
auto offset = value.timezone.utcOffsetAt(value.stdTime);
sink.put("GMT");
if(offset < seconds(0))
{
sink.put("-");
offset = -offset;
}
else
sink.put("+");
sink.put("%.2s".format(offset.split.hours));
sink.put(":");
sink.put("%.2s".format(offset.split.minutes));
}
else
sink.put(tzString);
}
void toSDLString(Sink)(DateTimeFracUnknownZone value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
auto dateTimeFrac = DateTimeFrac(value.dateTime, value.fracSecs);
toSDLString(dateTimeFrac, sink);
sink.put("-");
sink.put(value.timeZone);
}
void toSDLString(Sink)(Duration value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
if(value < seconds(0))
{
sink.put("-");
value = -value;
}
auto days = value.total!"days"();
if(days != 0)
{
sink.put("%s".format(days));
sink.put("d:");
}
sink.put("%.2s".format(value.split.hours));
sink.put(':');
sink.put("%.2s".format(value.split.minutes));
sink.put(':');
sink.put("%.2s".format(value.split.seconds));
if(value.split.msecs != 0)
{
sink.put('.');
sink.put("%.3s".format(value.split.msecs));
}
}
void toSDLString(Sink)(ubyte[] value, ref Sink sink) @safe pure
if(isOutputRange!(Sink,char))
{
sink.put('[');
sink.put( Base64.encode(value) );
sink.put(']');
}
/// This only represents terminals. Nonterminals aren't
/// constructed since the AST is directly built during parsing.
struct Token
{
Symbol symbol = sdlang.symbol.symbol!"Error"; /// The "type" of this token
Location location;
Value value; /// Only valid when `symbol` is `symbol!"Value"`, otherwise null
string data; /// Original text from source
@disable this();
this(Symbol symbol, Location location, Value value=Value(null), string data=null) @safe pure @nogc nothrow
{
this.symbol = symbol;
this.location = location;
this.value = value;
this.data = data;
}
/// Tokens with differing symbols are always unequal.
/// Tokens with differing values are always unequal.
/// Tokens with differing Value types are always unequal.
/// Member `location` is always ignored for comparison.
/// Member `data` is ignored for comparison *EXCEPT* when the symbol is Ident.
bool opEquals(Token b) @safe
{
return opEquals(b);
}
bool opEquals(ref Token b) @trusted ///ditto
{
if(
this.symbol != b.symbol ||
this.value.type != b.value.type ||
this.value != b.value
)
return false;
if(this.symbol == .symbol!"Ident")
return this.data == b.data;
return true;
}
bool matches(string symbolName)() @safe pure
{
return this.symbol == .symbol!symbolName;
}
//TODO: override opAssign to improve memory safety and purity
}
@("sdlang token")
unittest
{
auto loc = Location("", 0, 0, 0);
auto loc2 = Location("a", 1, 1, 1);
assert(Token(symbol!"EOL",loc) == Token(symbol!"EOL",loc ));
assert(Token(symbol!"EOL",loc) == Token(symbol!"EOL",loc2));
assert(Token(symbol!":", loc) == Token(symbol!":", loc ));
assert(Token(symbol!"EOL",loc) != Token(symbol!":", loc ));
assert(Token(symbol!"EOL",loc,Value(null),"\n") == Token(symbol!"EOL",loc,Value(null),"\n"));
assert(Token(symbol!"EOL",loc,Value(null),"\n") == Token(symbol!"EOL",loc,Value(null),";" ));
assert(Token(symbol!"EOL",loc,Value(null),"A" ) == Token(symbol!"EOL",loc,Value(null),"B" ));
assert(Token(symbol!":", loc,Value(null),"A" ) == Token(symbol!":", loc,Value(null),"BB"));
assert(Token(symbol!"EOL",loc,Value(null),"A" ) != Token(symbol!":", loc,Value(null),"A" ));
assert(Token(symbol!"Ident",loc,Value(null),"foo") == Token(symbol!"Ident",loc,Value(null),"foo"));
assert(Token(symbol!"Ident",loc,Value(null),"foo") != Token(symbol!"Ident",loc,Value(null),"BAR"));
assert(Token(symbol!"Value",loc,Value(null),"foo") == Token(symbol!"Value",loc, Value(null),"foo"));
assert(Token(symbol!"Value",loc,Value(null),"foo") == Token(symbol!"Value",loc2,Value(null),"foo"));
assert(Token(symbol!"Value",loc,Value(null),"foo") == Token(symbol!"Value",loc, Value(null),"BAR"));
assert(Token(symbol!"Value",loc,Value( 7),"foo") == Token(symbol!"Value",loc, Value( 7),"BAR"));
assert(Token(symbol!"Value",loc,Value( 7),"foo") != Token(symbol!"Value",loc, Value( "A"),"foo"));
assert(Token(symbol!"Value",loc,Value( 7),"foo") != Token(symbol!"Value",loc, Value( 2),"foo"));
assert(Token(symbol!"Value",loc,Value(cast(int)7)) != Token(symbol!"Value",loc, Value(cast(long)7)));
assert(Token(symbol!"Value",loc,Value(cast(float)1.2)) != Token(symbol!"Value",loc, Value(cast(double)1.2)));
}
@("sdlang Value.toSDLString()")
unittest
{
// Bool and null
assert(Value(null ).toSDLString() == "null");
assert(Value(true ).toSDLString() == "true");
assert(Value(false).toSDLString() == "false");
// Base64 Binary
assert(Value(cast(ubyte[])"hello world".dup).toSDLString() == "[aGVsbG8gd29ybGQ=]");
// Integer
assert(Value(cast( int) 7).toSDLString() == "7");
assert(Value(cast( int)-7).toSDLString() == "-7");
assert(Value(cast( int) 0).toSDLString() == "0");
assert(Value(cast(long) 7).toSDLString() == "7L");
assert(Value(cast(long)-7).toSDLString() == "-7L");
assert(Value(cast(long) 0).toSDLString() == "0L");
// Floating point
import std.stdio;
writeln(1.5f);
writeln(Value(cast(float) 1.5).toSDLString());
assert(Value(cast(float) 1.5).toSDLString() == "1.5F");
assert(Value(cast(float)-1.5).toSDLString() == "-1.5F");
assert(Value(cast(float) 0).toSDLString() == "0F");
assert(Value(cast(float)0.25).toSDLString() == "0.25F");
assert(Value(cast(double) 1.5).toSDLString() == "1.5D");
assert(Value(cast(double)-1.5).toSDLString() == "-1.5D");
assert(Value(cast(double) 0).toSDLString() == "0D");
assert(Value(cast(double)0.25).toSDLString() == "0.25D");
assert(Value(cast(real) 1.5).toSDLString() == "1.5BD");
assert(Value(cast(real)-1.5).toSDLString() == "-1.5BD");
assert(Value(cast(real) 0).toSDLString() == "0BD");
assert(Value(cast(real)0.25).toSDLString() == "0.25BD");
// String
assert(Value("hello" ).toSDLString() == `"hello"`);
assert(Value(" hello ").toSDLString() == `" hello "`);
assert(Value("" ).toSDLString() == `""`);
assert(Value("hello \r\n\t\"\\ world").toSDLString() == `"hello \r\n\t\"\\ world"`);
assert(Value("日本語").toSDLString() == `"日本語"`);
// Chars
assert(Value(cast(dchar) 'A').toSDLString() == `'A'`);
assert(Value(cast(dchar)'\r').toSDLString() == `'\r'`);
assert(Value(cast(dchar)'\n').toSDLString() == `'\n'`);
assert(Value(cast(dchar)'\t').toSDLString() == `'\t'`);
assert(Value(cast(dchar)'\'').toSDLString() == `'\''`);
assert(Value(cast(dchar)'\\').toSDLString() == `'\\'`);
assert(Value(cast(dchar) '月').toSDLString() == `'月'`);
// Date
assert(Value(Date( 2004,10,31)).toSDLString() == "2004/10/31");
assert(Value(Date(-2004,10,31)).toSDLString() == "-2004/10/31");
// DateTimeFrac w/o Frac
assert(Value(DateTimeFrac(DateTime(2004,10,31, 14,30,15))).toSDLString() == "2004/10/31 14:30:15");
assert(Value(DateTimeFrac(DateTime(2004,10,31, 1, 2, 3))).toSDLString() == "2004/10/31 01:02:03");
assert(Value(DateTimeFrac(DateTime(-2004,10,31, 14,30,15))).toSDLString() == "-2004/10/31 14:30:15");
// DateTimeFrac w/ Frac
assert(Value(DateTimeFrac(DateTime(2004,10,31, 14,30,15), 123.msecs)).toSDLString() == "2004/10/31 14:30:15.123");
assert(Value(DateTimeFrac(DateTime(2004,10,31, 14,30,15), 120.msecs)).toSDLString() == "2004/10/31 14:30:15.120");
assert(Value(DateTimeFrac(DateTime(2004,10,31, 14,30,15), 100.msecs)).toSDLString() == "2004/10/31 14:30:15.100");
assert(Value(DateTimeFrac(DateTime(2004,10,31, 14,30,15), 12.msecs)).toSDLString() == "2004/10/31 14:30:15.012");
assert(Value(DateTimeFrac(DateTime(2004,10,31, 14,30,15), 1.msecs)).toSDLString() == "2004/10/31 14:30:15.001");
assert(Value(DateTimeFrac(DateTime(-2004,10,31, 14,30,15), 123.msecs)).toSDLString() == "-2004/10/31 14:30:15.123");
// DateTimeFracUnknownZone
assert(Value(DateTimeFracUnknownZone(DateTime(2004,10,31, 14,30,15), 123.msecs, "Foo/Bar")).toSDLString() == "2004/10/31 14:30:15.123-Foo/Bar");
// SysTime
assert(Value(SysTime(DateTime(2004,10,31, 14,30,15), new immutable SimpleTimeZone( hours(0) ))).toSDLString() == "2004/10/31 14:30:15-GMT+00:00");
assert(Value(SysTime(DateTime(2004,10,31, 1, 2, 3), new immutable SimpleTimeZone( hours(0) ))).toSDLString() == "2004/10/31 01:02:03-GMT+00:00");
assert(Value(SysTime(DateTime(2004,10,31, 14,30,15), new immutable SimpleTimeZone( hours(2)+minutes(10) ))).toSDLString() == "2004/10/31 14:30:15-GMT+02:10");
assert(Value(SysTime(DateTime(2004,10,31, 14,30,15), new immutable SimpleTimeZone(-hours(5)-minutes(30) ))).toSDLString() == "2004/10/31 14:30:15-GMT-05:30");
assert(Value(SysTime(DateTime(2004,10,31, 14,30,15), new immutable SimpleTimeZone( hours(2)+minutes( 3) ))).toSDLString() == "2004/10/31 14:30:15-GMT+02:03");
assert(Value(SysTime(DateTime(2004,10,31, 14,30,15), 123.msecs, new immutable SimpleTimeZone( hours(0) ))).toSDLString() == "2004/10/31 14:30:15.123-GMT+00:00");
// Duration
assert( "12:14:42" == Value( days( 0)+hours(12)+minutes(14)+seconds(42)+msecs( 0)).toSDLString());
assert("-12:14:42" == Value(-days( 0)-hours(12)-minutes(14)-seconds(42)-msecs( 0)).toSDLString());
assert( "00:09:12" == Value( days( 0)+hours( 0)+minutes( 9)+seconds(12)+msecs( 0)).toSDLString());
assert( "00:00:01.023" == Value( days( 0)+hours( 0)+minutes( 0)+seconds( 1)+msecs( 23)).toSDLString());
assert( "23d:05:21:23.532" == Value( days(23)+hours( 5)+minutes(21)+seconds(23)+msecs(532)).toSDLString());
assert( "23d:05:21:23.530" == Value( days(23)+hours( 5)+minutes(21)+seconds(23)+msecs(530)).toSDLString());
assert( "23d:05:21:23.500" == Value( days(23)+hours( 5)+minutes(21)+seconds(23)+msecs(500)).toSDLString());
assert("-23d:05:21:23.532" == Value(-days(23)-hours( 5)-minutes(21)-seconds(23)-msecs(532)).toSDLString());
assert("-23d:05:21:23.500" == Value(-days(23)-hours( 5)-minutes(21)-seconds(23)-msecs(500)).toSDLString());
assert( "23d:05:21:23" == Value( days(23)+hours( 5)+minutes(21)+seconds(23)+msecs( 0)).toSDLString());
}
|
D
|
module fdb.future;
import
core.sync.semaphore,
core.thread;
import
std.algorithm,
std.array,
std.conv,
std.exception,
std.parallelism,
std.traits;
import
fdb.disposable,
fdb.error,
fdb.fdb_c,
fdb.range,
fdb.rangeinfo,
fdb.transaction;
alias CompletionCallback = void delegate(Exception ex);
private mixin template ExceptionCtorMixin()
{
this(string msg = null, Throwable next = null)
{
super(msg, next);
}
this(string msg, string file, size_t line, Throwable next = null)
{
super(msg, file, line, next);
}
}
class FutureException : Exception
{
mixin ExceptionCtorMixin;
}
shared class FutureBase(V)
{
static if (!is(V == void))
{
protected V value;
}
protected Exception exception;
abstract shared(V) await();
}
shared class FunctionFuture(alias fun, bool pool = true, Args...) :
FutureBase!(ReturnType!fun),
// dummy implementation to allow storage in KeyValueFuture
IDisposable
{
alias V = ReturnType!fun;
alias T = Task!(fun, ParameterTypeTuple!fun) *;
private T t;
this(Args args)
{
t = cast(shared)task!fun(args);
auto localTask = cast(T)t;
static if (pool)
taskPool.put(localTask);
else
localTask.executeInNewThread;
}
void dispose() {}
override shared(V) await()
{
try
{
auto localTask = cast(T)t;
static if (!is(V == void))
value = localtask.yieldForce;
else
localTask.yieldForce;
}
catch (Exception ex)
{
exception = cast(shared)ex;
}
enforce(exception is null, cast(Exception)exception);
static if (!is(V == void))
return value;
}
}
alias FutureCallback(V) = void delegate(Exception ex, V value);
shared class FDBFutureBase(C, V) : FutureBase!V, IDisposable
{
private alias SF = shared FDBFutureBase!(C, V);
private alias SFH = shared FutureHandle;
private alias SE = shared fdb_error_t;
private FutureHandle fh;
private Transaction tr;
private C callbackFunc;
this(FutureHandle fh, shared Transaction tr)
{
this.fh = cast(shared)fh;
this.tr = tr;
}
~this()
{
dispose;
}
void dispose()
{
if (!fh) return;
// NB : Also releases the memory returned by get functions
fdb_future_destroy(cast(FutureHandle)fh);
fh = null;
}
auto start(C callbackFunc)
{
this.callbackFunc = cast(shared)callbackFunc;
const auto err = fdb_future_set_callback(
cast(FutureHandle) fh,
cast(FDBCallback) &futureReady,
cast(void*) this);
enforceError(err);
return this;
}
shared(V) await(C callbackFunc)
{
if (callbackFunc)
start(callbackFunc);
shared err = fdb_future_block_until_ready(cast(FutureHandle)fh);
if (err != FDBError.SUCCESS)
{
exception = cast(shared)err.toException;
enforce(exception is null, cast(Exception)exception);
}
static if (!is(V == void))
value = cast(shared)extractValue(fh, err);
else
extractValue(fh, err);
exception = cast(shared)err.toException;
enforce(exception is null, cast(Exception)exception);
static if (!is(V == void))
return value;
}
override shared(V) await()
{
static if (!is(V == void))
return await(null);
else
await(null);
}
extern(C) static void futureReady(SFH f, SF thiz)
{
thread_attachThis;
auto futureTask = task!worker(f, thiz);
// or futureTask.executeInNewThread?
taskPool.put(futureTask);
}
static void worker(SFH f, SF thiz)
{
shared fdb_error_t err;
with (thiz)
{
static if (is(V == void))
{
extractValue(cast(shared)f, err);
if (callbackFunc)
(cast(C)callbackFunc)(err.toException);
}
else
{
auto value = extractValue(cast(shared)f, err);
if (callbackFunc)
(cast(C)callbackFunc)(err.toException, value);
}
}
}
abstract V extractValue(SFH fh, out SE err);
}
private mixin template FDBFutureCtor()
{
this(FutureHandle fh, shared Transaction tr = null)
{
super(fh, tr);
}
}
alias ValueFutureCallback = FutureCallback!Value;
shared class ValueFuture : FDBFutureBase!(ValueFutureCallback, Value)
{
mixin FDBFutureCtor;
private alias PValue = ubyte *;
override Value extractValue(SFH fh, out SE err)
{
PValue value;
int valueLength,
valuePresent;
err = fdb_future_get_value(
cast(FutureHandle)fh,
&valuePresent,
&value,
&valueLength);
if (err != FDBError.SUCCESS || !valuePresent)
return null;
return value[0..valueLength];
}
}
alias KeyFutureCallback = FutureCallback!Key;
shared class KeyFuture : FDBFutureBase!(KeyFutureCallback, Key)
{
mixin FDBFutureCtor;
private alias PKey = ubyte *;
override Key extractValue(SFH fh, out SE err)
{
PKey key;
int keyLength;
err = fdb_future_get_key(
cast(FutureHandle)fh,
&key,
&keyLength);
if (err != FDBError.SUCCESS)
return typeof(return).init;
return key[0..keyLength];
}
}
alias VoidFutureCallback = void delegate(Exception ex);
shared class VoidFuture : FDBFutureBase!(VoidFutureCallback, void)
{
mixin FDBFutureCtor;
override void extractValue(SFH fh, out SE err)
{
err = fdb_future_get_error(
cast(FutureHandle)fh);
}
}
alias KeyValueFutureCallback = FutureCallback!RecordRange;
alias ForEachCallback = void delegate(Record record);
alias BreakableForEachCallback = void delegate(
Record record,
out bool breakLoop);
shared class KeyValueFuture
: FDBFutureBase!(KeyValueFutureCallback, RecordRange)
{
const RangeInfo info;
private IDisposable[] futures;
this(FutureHandle fh, shared Transaction tr, RangeInfo info)
{
super(fh, tr);
this.info = cast(shared)info;
}
override RecordRange extractValue(SFH fh, out SE err)
{
FDBKeyValue * kvs;
int len;
// Receives true if there are more result, or false if all results have
// been transmitted
fdb_bool_t more;
err = fdb_future_get_keyvalue_array(
cast(FutureHandle)fh,
&kvs,
&len,
&more);
if (err != FDBError.SUCCESS)
return typeof(return).init;
auto records = minimallyInitializedArray!(Record[])(len);
foreach (i, kv; kvs[0..len])
{
records[i].key = (cast(Key) kv.key [0..kv.key_length ]).dup;
records[i].value = (cast(Value)kv.value[0..kv.value_length]).dup;
}
return RecordRange(
records,
cast(bool)more,
cast(RangeInfo)info,
tr);
}
auto forEach(FC)(FC fun, CompletionCallback cb)
{
auto future = createFuture!(foreachTask!FC)(this, fun, cb);
synchronized (this)
futures ~= future;
return future;
}
static void foreachTask(FC)(
shared KeyValueFuture future,
FC fun,
CompletionCallback cb)
{
try
{
// This will block until value is ready
auto range = cast(RecordRange)future.await;
foreach (kv; range)
{
static if (arity!fun == 2)
{
bool breakLoop;
fun(kv, breakLoop);
if (breakLoop) break;
}
else
fun(kv);
}
cb(null);
}
catch (Exception ex)
{
cb(ex);
}
}
}
alias VersionFutureCallback = FutureCallback!ulong;
shared class VersionFuture : FDBFutureBase!(VersionFutureCallback, ulong)
{
mixin FDBFutureCtor;
override ulong extractValue(SFH fh, out SE err)
{
long ver;
err = fdb_future_get_version(
cast(FutureHandle)fh,
&ver);
if (err != FDBError.SUCCESS)
return typeof(return).init;
return ver;
}
}
alias StringFutureCallback = FutureCallback!(string[]);
shared class StringFuture : FDBFutureBase!(StringFutureCallback, string[])
{
mixin FDBFutureCtor;
override string[] extractValue(SFH fh, out SE err)
{
char ** stringArr;
int count;
err = fdb_future_get_string_array(
cast(FutureHandle)fh,
&stringArr,
&count);
if (err != FDBError.SUCCESS)
return typeof(return).init;
auto strings = stringArr[0..count].map!(to!string).array;
return strings;
}
}
shared class WatchFuture : VoidFuture
{
mixin FDBFutureCtor;
~this()
{
cancel;
}
void cancel()
{
if (fh)
fdb_future_cancel(cast(FutureHandle)fh);
}
}
auto createFuture(F, Args...)(Args args)
{
auto future = new shared F(args);
return future;
}
auto createFuture(alias fun, bool pool = true, Args...)(Args args)
if (isSomeFunction!fun)
{
auto future = new shared FunctionFuture!(fun, pool, Args)(args);
return future;
}
auto startOrCreateFuture(F, C, Args...)(Args args, C callback)
{
auto future = createFuture!F(args);
if (callback)
future.start(callback);
return future;
}
void await(F...)(F futures)
{
foreach (f; futures)
f.await;
}
|
D
|
/Users/oslo/code/swift_vapor_server/.build/debug/TurnstileWeb.build/Protocols/OAuth/OAuthEcho.swift.o : /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/URLSession+Turnstile.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/WebMemoryRealm.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/LoginProviders/Digits.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/LoginProviders/Facebook.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/LoginProviders/Google.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth/OAuthDelegator.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth/OAuthEcho.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth/OAuthParameters.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/AuthorizationCode.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/OAuth2.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/OAuth2Error.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/OAuth2Token.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/Turnstile.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/TurnstileCrypto.swiftmodule
/Users/oslo/code/swift_vapor_server/.build/debug/TurnstileWeb.build/OAuthEcho~partial.swiftmodule : /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/URLSession+Turnstile.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/WebMemoryRealm.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/LoginProviders/Digits.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/LoginProviders/Facebook.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/LoginProviders/Google.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth/OAuthDelegator.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth/OAuthEcho.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth/OAuthParameters.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/AuthorizationCode.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/OAuth2.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/OAuth2Error.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/OAuth2Token.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/Turnstile.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/TurnstileCrypto.swiftmodule
/Users/oslo/code/swift_vapor_server/.build/debug/TurnstileWeb.build/OAuthEcho~partial.swiftdoc : /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/URLSession+Turnstile.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/WebMemoryRealm.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/LoginProviders/Digits.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/LoginProviders/Facebook.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/LoginProviders/Google.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth/OAuthDelegator.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth/OAuthEcho.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth/OAuthParameters.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/AuthorizationCode.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/OAuth2.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/OAuth2Error.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/Protocols/OAuth2/OAuth2Token.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/Turnstile.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/TurnstileCrypto.swiftmodule
|
D
|
/*
* Copyright 2015-2018 HuntLabs.cn
*
* 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 under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module hunt.sql.visitor.functions.Nil;
import hunt.sql.ast.expr.SQLMethodInvokeExpr;
import hunt.sql.visitor.SQLEvalVisitor;
import hunt.sql.visitor.functions.Function;
//import hunt.lang;
import hunt.String;
import hunt.String;
import hunt.collection;
import std.conv;
import std.uni;
import std.concurrency : initOnce;
public class Nil : Function {
static Nil instance() {
__gshared Nil inst;
return initOnce!inst(new Nil());
}
// public static Nil instance;
// static this()
// {
// instance = new Nil();
// }
override
public Object eval(SQLEvalVisitor visitor, SQLMethodInvokeExpr x) {
return null;
}
}
|
D
|
module android.java.java.security.KeyFactorySpi;
public import android.java.java.security.KeyFactorySpi_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!KeyFactorySpi;
import import0 = android.java.java.lang.Class;
|
D
|
# FIXED
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/src/evmomapl138_lcd_lidd.c
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdio.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/_ti_config.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/linkage.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdarg.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/_types.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/cdefs.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/machine/_types.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdint.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/_stdint40.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/stdint.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/machine/_stdint.h
evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/_stdint.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_sysconfig.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_psc.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_pll.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_timer.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_gpio.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_lcdc.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_lcd_lidd.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_i2c_gpio.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_i2c.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_emac.h
evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_cdce913.h
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/src/evmomapl138_lcd_lidd.c:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdio.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/_ti_config.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/linkage.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdarg.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/_types.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/cdefs.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/machine/_types.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdint.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/_stdint40.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/stdint.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/machine/_stdint.h:
C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/sys/_stdint.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_sysconfig.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_psc.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_pll.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_timer.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_gpio.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_lcdc.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_lcd_lidd.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_i2c_gpio.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_i2c.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_emac.h:
C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/inc/evmomapl138_cdce913.h:
|
D
|
instance MENU_STATUS(C_MENU_DEF)
{
items[0] = "MENU_ITEM_STATUS_HEADING";
dimx = 3072;
dimy = 4096;
flags = flags | MENU_SHOW_INFO | MENU_OVERTOP | MENU_NOANI;
backPic = "";
};
const int STAT_A_X1 = 500;
const int STAT_A_X2 = 2300;
const int STAT_A_X3 = 3000;
const int STAT_A_X4 = 3400;
const int STAT_B_X1 = 3800;
const int STAT_B_X2 = 6000;
const int STAT_B_X3 = 7200;
const int STAT_B_X4 = 7700;
const int STAT_PLYHEAD_Y = 1000;
const int STAT_PLY_Y = 1450;
const int STAT_ATRHEAD_Y = 3250;
const int STAT_ATR_Y = 3700;
const int STAT_ARMHEAD_Y = 5650;
const int STAT_ARM_Y = 6100;
const int STAT_TALHEAD_Y = 1000;
const int STAT_TAL_Y = 1450;
const int STAT_DY = 300;
instance MENU_ITEM_STATUS_HEADING(C_MENU_ITEM_DEF)
{
text[0] = "";
text[1] = "";
posx = STAT_A_X1;
posy = STAT_PLYHEAD_Y;
dimx = STAT_A_X4 - STAT_A_X1;
dimy = STAT_DY;
fontname = STAT_FONT_NEW;
flags = (flags & ~IT_SELECTABLE) | IT_TXT_CENTER;
};
|
D
|
module glib.gthreadpool;
import glib.gtypes;
import glib.gthread;
import glib.gerror;
struct GThreadPool
{
GFunc func;
gpointer user_data;
gboolean exclusive;
}
extern (C) {
GThreadPool * g_thread_pool_new (GFunc func,
gpointer user_data,
gint max_threads,
gboolean exclusive,
GError **error);
void g_thread_pool_free (GThreadPool *pool,
gboolean immediate,
gboolean wait_);
gboolean g_thread_pool_push (GThreadPool *pool,
gpointer data,
GError **error);
guint g_thread_pool_unprocessed (GThreadPool *pool);
void g_thread_pool_set_sort_function (GThreadPool *pool,
GCompareDataFunc func,
gpointer user_data);
gboolean g_thread_pool_set_max_threads (GThreadPool *pool,
gint max_threads,
GError **error);
gint g_thread_pool_get_max_threads (GThreadPool *pool);
guint g_thread_pool_get_num_threads (GThreadPool *pool);
void g_thread_pool_set_max_unused_threads (gint max_threads);
gint g_thread_pool_get_max_unused_threads ();
guint g_thread_pool_get_num_unused_threads ();
void g_thread_pool_stop_unused_threads ();
void g_thread_pool_set_max_idle_time (guint interval);
guint g_thread_pool_get_max_idle_time ();
}
|
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.
* ----------------------------------------------------------------------------- */
module SWIGTYPE_p_vtkDSPFilterDefinitionVectorDoubleSTLCloak;
static import vtkd_im;
class SWIGTYPE_p_vtkDSPFilterDefinitionVectorDoubleSTLCloak {
private void* swigCPtr;
public this(void* cObject, bool futureUse) {
swigCPtr = cObject;
}
protected this() {
swigCPtr = null;
}
public static void* swigGetCPtr(SWIGTYPE_p_vtkDSPFilterDefinitionVectorDoubleSTLCloak obj) {
return (obj is null) ? null : obj.swigCPtr;
}
mixin vtkd_im.SwigOperatorDefinitions;
}
|
D
|
module arrow.UInt64Array;
private import arrow.BooleanArray;
private import arrow.Buffer;
private import arrow.CompareOptions;
private import arrow.NumericArray;
private import arrow.c.functions;
public import arrow.c.types;
private import glib.ConstructionException;
private import glib.ErrorG;
private import glib.GException;
private import gobject.ObjectG;
/** */
public class UInt64Array : NumericArray
{
/** the main Gtk struct */
protected GArrowUInt64Array* gArrowUInt64Array;
/** Get the main Gtk struct */
public GArrowUInt64Array* getUInt64ArrayStruct(bool transferOwnership = false)
{
if (transferOwnership)
ownedRef = false;
return gArrowUInt64Array;
}
/** the main Gtk struct as a void* */
protected override void* getStruct()
{
return cast(void*)gArrowUInt64Array;
}
/**
* Sets our main struct and passes it to the parent class.
*/
public this (GArrowUInt64Array* gArrowUInt64Array, bool ownedRef = false)
{
this.gArrowUInt64Array = gArrowUInt64Array;
super(cast(GArrowNumericArray*)gArrowUInt64Array, ownedRef);
}
/** */
public static GType getType()
{
return garrow_uint64_array_get_type();
}
/**
*
* Params:
* length = The number of elements.
* data = The binary data in Arrow format of the array.
* nullBitmap = The bitmap that shows null elements. The
* N-th element is null when the N-th bit is 0, not null otherwise.
* If the array has no null elements, the bitmap must be %NULL and
* @n_nulls is 0.
* nNulls = The number of null elements. If -1 is specified, the
* number of nulls are computed from @null_bitmap.
* Returns: A newly created #GArrowUInt64Array.
*
* Since: 0.4.0
*
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this(long length, Buffer data, Buffer nullBitmap, long nNulls)
{
auto p = garrow_uint64_array_new(length, (data is null) ? null : data.getBufferStruct(), (nullBitmap is null) ? null : nullBitmap.getBufferStruct(), nNulls);
if(p is null)
{
throw new ConstructionException("null returned by new");
}
this(cast(GArrowUInt64Array*) p, true);
}
/**
*
* Params:
* value = The value to compare.
* options = A #GArrowCompareOptions.
* Returns: The #GArrowBooleanArray as
* the result compared a numeric array with a scalar on success,
* %NULL on error.
*
* Since: 0.14.0
*
* Throws: GException on failure.
*/
public BooleanArray compare(ulong value, CompareOptions options)
{
GError* err = null;
auto p = garrow_uint64_array_compare(gArrowUInt64Array, value, (options is null) ? null : options.getCompareOptionsStruct(), &err);
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
if(p is null)
{
return null;
}
return ObjectG.getDObject!(BooleanArray)(cast(GArrowBooleanArray*) p, true);
}
/**
*
* Params:
* i = The index of the target value.
* Returns: The @i-th value.
*/
public ulong getValue(long i)
{
return garrow_uint64_array_get_value(gArrowUInt64Array, i);
}
/**
* Returns: The raw values.
*/
public ulong[] getValues()
{
long length;
auto p = garrow_uint64_array_get_values(gArrowUInt64Array, &length);
return p[0 .. length];
}
/**
* Returns: The value of the computed sum on success,
* If an error is occurred, the returned value is untrustful value.
*
* Since: 0.13.0
*
* Throws: GException on failure.
*/
public ulong sum()
{
GError* err = null;
auto p = garrow_uint64_array_sum(gArrowUInt64Array, &err);
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
return p;
}
}
|
D
|
module dcompute.kernels;
/*Adjacent:
* adjacent!(R,alias e)(R r, R o) where e a is binary op to apply to adjacent elements of R
*Allocator:
*Search:
* upper_bound
* lower_bound
* equal
*/
|
D
|
instance NON_5044_WEGELAGERER(Npc_Default)
{
name[0] = "Povaleč";
npcType = Npctype_ROGUE;
guild = GIL_None;
level = 9;
voice = 9;
id = 5044;
attribute[ATR_STRENGTH] = 65;
attribute[ATR_DEXTERITY] = 55;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 205;
attribute[ATR_HITPOINTS] = 205;
Mdl_SetVisual(self,"HUMANS.MDS");
Mdl_SetVisualBody(self,"hum_body_Naked0",3,2,"Hum_Head_Psionic",12,2,-1);
B_Scale(self);
Mdl_SetModelFatness(self,0);
fight_tactic = FAI_HUMAN_Strong;
Npc_SetTalentSkill(self,NPC_TALENT_1H,1);
EquipItem(self,ItMw_1H_Nailmace_01);
CreateInvItem(self,ItAt_Meatbug_01);
CreateInvItem(self,ItAt_Teeth_01);
CreateInvItem(self,ItMi_Stuff_Cup_01);
daily_routine = rtn_start_5044;
};
func void rtn_start_5044()
{
Npc_SetPermAttitude(self,ATT_HOSTILE);
TA_SitAround(22,0,6,0,"OW_PATH_PLATEU_BDT_06");
TA_SitAround(6,0,22,0,"OW_PATH_PLATEU_BDT_06");
};
|
D
|
/Users/Marsh/Documents/GitHub/GoodVibes/hello/target/debug/deps/libslab-b04a73d1cb8057b4.rlib: /Users/Marsh/.cargo/registry/src/github.com-1ecc6299db9ec823/slab-0.3.0/src/lib.rs
/Users/Marsh/Documents/GitHub/GoodVibes/hello/target/debug/deps/slab-b04a73d1cb8057b4.d: /Users/Marsh/.cargo/registry/src/github.com-1ecc6299db9ec823/slab-0.3.0/src/lib.rs
/Users/Marsh/.cargo/registry/src/github.com-1ecc6299db9ec823/slab-0.3.0/src/lib.rs:
|
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-3791938851.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_2_BeT-3791938851.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/diag8770.d(6): Error: this.f is not mutable
---
*/
#line 1
class Foo
{
immutable f = 1;
this()
{
this.f = 1;
}
}
void main() {}
|
D
|
# FIXED
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/rom/agama_r1/rom_init.c
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/bcomdef.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/comdef.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/../_common/cc26xx/_hal_types.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/cdefs.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_types.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_types.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_stdint.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdbool.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/inc/hal_defs.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/inc/hw_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/inc/../inc/hw_chip_def.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/rom/rom_jt.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/rom/map_direct.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/common/cc26xx/onboard.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/sys_ctrl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_memmap.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_ints.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_sysctl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_prcm.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_nvic.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_aon_ioc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_ddi_0_osc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_rfc_pwr.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_adi_3_refsys.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_aon_pmctl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_aon_rtc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_fcfg1.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/interrupt.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/debug.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/cpu.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_cpu_scs.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../driverlib/rom.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/pwr_ctrl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_adi_2_refsys.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/osc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_ccfg.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_ddi.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/ddi.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_aux_smph.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/prcm.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/aon_ioc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/adi.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_uart.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_adi.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/vims.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_vims.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_mcu.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/inc/hw_gpio.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/systick.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/uart.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/gpio.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/flash.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_flash.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/ioc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_ioc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/icall/src/inc/icall.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdlib.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/linkage.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/inc/hal_assert.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/inc/hal_sleep.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/limits.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_memory.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_timers.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_pwrmgr.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_bufmgr.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_cbtimer.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/hci_tl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/hci.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/hci_data.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/hci_event.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/hci_tl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_trng_wrapper.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/trng.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_trng.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/cc26xx/mb.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/inc/hw_rfc_dbell.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/cc26xx/rf_hal.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_config.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_user_config.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/icall/inc/ble_user_config.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/icall/src/inc/icall_user_config.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdlib.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/cryptoutils/ecc/ECCParams.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/cryptoutils/cryptokey/CryptoKey.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/services/src/nv/nvintf.h
ROM/rom_init.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/std.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdarg.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stddef.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/select.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/arm/elf/std.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/arm/elf/M4F.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/std.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/rf/RF.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/dpl/ClockP.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/dpl/SemaphoreP.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/utils/List.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/DeviceFamily.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/rf_common_cmd.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/rf_mailbox.h
ROM/rom_init.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/string.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/rf_prop_cmd.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/rf_ble_cmd.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/icall/inc/ble_dispatch.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_common.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_scheduler.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/ecc_rom.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/linkdb.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/l2cap.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/att.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gatt.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gattservapp.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gatt_uuid.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/sm.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_ae.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ble.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_wl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_internal.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_list.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/linkdb_internal.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_advertiser_internal.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_advertiser.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_scanner_internal.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_scanner.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_initiator.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_enc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_timer_drift.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_rat.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/inc/hw_rfc_rat.h
ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_privacy.h
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/rom/agama_r1/rom_init.c:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/bcomdef.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/comdef.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/../_common/cc26xx/_hal_types.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/cdefs.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_types.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_types.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_stdint.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdbool.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/inc/hal_defs.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/inc/hw_types.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/inc/../inc/hw_chip_def.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/rom/rom_jt.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/rom/map_direct.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/common/cc26xx/onboard.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/sys_ctrl.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_memmap.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_ints.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_sysctl.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_prcm.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_nvic.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_aon_ioc.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_ddi_0_osc.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_rfc_pwr.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_adi_3_refsys.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_aon_pmctl.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_aon_rtc.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_fcfg1.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/interrupt.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/debug.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/cpu.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_cpu_scs.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../driverlib/rom.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/pwr_ctrl.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_adi_2_refsys.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/osc.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_ccfg.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_ddi.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/ddi.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_aux_smph.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/prcm.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/aon_ioc.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/adi.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_uart.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_adi.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/vims.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_vims.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_mcu.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/inc/hw_gpio.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/systick.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/uart.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/gpio.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/flash.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_flash.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/ioc.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_ioc.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/icall/src/inc/icall.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdlib.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/linkage.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/inc/hal_assert.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/inc/hal_sleep.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/limits.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_memory.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_timers.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_pwrmgr.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_bufmgr.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_cbtimer.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/hci_tl.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/hci.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/hci_data.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/hci_event.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/hci_tl.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_trng_wrapper.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/trng.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/../inc/hw_trng.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/cc26xx/mb.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/inc/hw_rfc_dbell.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/cc26xx/rf_hal.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_config.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_user_config.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/icall/inc/ble_user_config.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/icall/src/inc/icall_user_config.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdlib.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/cryptoutils/ecc/ECCParams.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/cryptoutils/cryptokey/CryptoKey.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/services/src/nv/nvintf.h:
C:/ti/xdctools_3_51_01_18_core/packages/xdc/std.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdarg.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stddef.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/select.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/arm/elf/std.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/arm/elf/M4F.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/std.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/rf/RF.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/dpl/ClockP.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/dpl/SemaphoreP.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/drivers/utils/List.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/DeviceFamily.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/rf_common_cmd.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/rf_mailbox.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/string.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/rf_prop_cmd.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/driverlib/rf_ble_cmd.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/icall/inc/ble_dispatch.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_common.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_scheduler.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/ecc_rom.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/linkdb.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/l2cap.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/att.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gatt.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gattservapp.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gatt_uuid.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/sm.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_ae.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ble.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_wl.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_internal.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/osal_list.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/linkdb_internal.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_advertiser_internal.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_advertiser.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_scanner_internal.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_scanner.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/gap_initiator.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_enc.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_timer_drift.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_rat.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/devices/cc13x2_cc26x2/inc/hw_rfc_rat.h:
C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/controller/cc26xx/inc/ll_privacy.h:
|
D
|
/**
OpenSSL based SSL/TLS stream implementation
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.stream.openssl;
version(Have_openssl):
import vibe.core.log;
import vibe.core.net;
import vibe.core.stream;
import vibe.core.sync;
import vibe.stream.tls;
import vibe.internal.interfaceproxy : InterfaceProxy;
import std.algorithm;
import std.array;
import std.conv;
import std.exception;
import std.socket;
import std.string;
import core.stdc.string : strlen;
import core.sync.mutex;
import core.thread;
/**************************************************************************************************/
/* Public types */
/**************************************************************************************************/
import deimos.openssl.bio;
import deimos.openssl.err;
import deimos.openssl.rand;
import deimos.openssl.ssl;
import deimos.openssl.x509v3;
version (VibePragmaLib) {
pragma(lib, "ssl");
version (Windows) pragma(lib, "eay");
}
version (VibeUseOldOpenSSL) private enum haveECDH = false;
else private enum haveECDH = OPENSSL_VERSION_NUMBER >= 0x10001000;
version(VibeForceALPN) enum alpn_forced = true;
else enum alpn_forced = false;
enum haveALPN = OPENSSL_VERSION_NUMBER >= 0x10200000 || alpn_forced;
/**
Creates an SSL/TLS tunnel within an existing stream.
Note: Be sure to call finalize before finalizing/closing the outer stream so that the SSL
tunnel is properly closed first.
*/
final class OpenSSLStream : TLSStream {
@safe:
private {
InterfaceProxy!Stream m_stream;
TLSContext m_tlsCtx;
TLSStreamState m_state;
SSLState m_tls;
BIO* m_bio;
ubyte[64] m_peekBuffer;
Exception[] m_exceptions;
TLSCertificateInformation m_peerCertificate;
}
this(InterfaceProxy!Stream underlying, OpenSSLContext ctx, TLSStreamState state, string peer_name = null, NetworkAddress peer_address = NetworkAddress.init, string[] alpn = null)
{
m_stream = underlying;
m_state = state;
m_tlsCtx = ctx;
m_tls = ctx.createClientCtx();
scope (failure) {
() @trusted { SSL_free(m_tls); } ();
m_tls = null;
}
m_bio = () @trusted { return BIO_new(&s_bio_methods); } ();
enforce(m_bio !is null, "SSL failed: failed to create BIO structure.");
m_bio.init_ = 1;
m_bio.ptr = () @trusted { return cast(void*)this; } (); // lifetime is shorter than this, so no GC.addRange needed.
m_bio.shutdown = 0;
() @trusted { SSL_set_bio(m_tls, m_bio, m_bio); } ();
if (state != TLSStreamState.connected) {
OpenSSLContext.VerifyData vdata;
vdata.verifyDepth = ctx.maxCertChainLength;
vdata.validationMode = ctx.peerValidationMode;
vdata.callback = ctx.peerValidationCallback;
vdata.peerName = peer_name;
vdata.peerAddress = peer_address;
() @trusted { SSL_set_ex_data(m_tls, gs_verifyDataIndex, &vdata); } ();
scope (exit) () @trusted { SSL_set_ex_data(m_tls, gs_verifyDataIndex, null); } ();
final switch (state) {
case TLSStreamState.accepting:
//SSL_set_accept_state(m_tls);
checkSSLRet(() @trusted { return SSL_accept(m_tls); } (), "Accepting SSL tunnel");
break;
case TLSStreamState.connecting:
// a client stream can override the default ALPN setting for this context
if (alpn.length) setClientALPN(alpn);
if (peer_name.length)
() @trusted { return SSL_ctrl(m_tls, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name, cast(void*)peer_name.toStringz); } ();
//SSL_set_connect_state(m_tls);
checkSSLRet(() @trusted { return SSL_connect(m_tls); } (), "Connecting TLS tunnel");
break;
case TLSStreamState.connected:
break;
}
// ensure that the SSL tunnel gets terminated when an error happens during verification
scope (failure) () @trusted { SSL_shutdown(m_tls); } ();
if (auto peer = () @trusted { return SSL_get_peer_certificate(m_tls); } ()) {
scope(exit) () @trusted { X509_free(peer); } ();
readPeerCertInfo(peer);
auto result = () @trusted { return SSL_get_verify_result(m_tls); } ();
if (result == X509_V_OK && (ctx.peerValidationMode & TLSPeerValidationMode.checkPeer)) {
if (!verifyCertName(peer, GENERAL_NAME.GEN_DNS, vdata.peerName)) {
version(Windows) import std.c.windows.winsock;
else import core.sys.posix.netinet.in_;
logDiagnostic("TLS peer name '%s' couldn't be verified, trying IP address.", vdata.peerName);
char* addr;
int addrlen;
switch (vdata.peerAddress.family) {
default: break;
case AF_INET:
addr = cast(char*)&vdata.peerAddress.sockAddrInet4.sin_addr;
addrlen = vdata.peerAddress.sockAddrInet4.sin_addr.sizeof;
break;
case AF_INET6:
addr = cast(char*)&vdata.peerAddress.sockAddrInet6.sin6_addr;
addrlen = vdata.peerAddress.sockAddrInet6.sin6_addr.sizeof;
break;
}
if (!verifyCertName(peer, GENERAL_NAME.GEN_IPADD, () @trusted { return addr[0 .. addrlen]; } ())) {
logDiagnostic("Error validating TLS peer address");
result = X509_V_ERR_APPLICATION_VERIFICATION;
}
}
}
enforce(result == X509_V_OK, "Peer failed the certificate validation: "~to!string(result));
} //else enforce(ctx.verifyMode < requireCert);
}
checkExceptions();
}
/** Read certificate info into the clientInformation field */
private void readPeerCertInfo(X509 *cert)
{
X509_NAME* name = () @trusted { return X509_get_subject_name(cert); } ();
int c = () @trusted { return X509_NAME_entry_count(name); } ();
foreach (i; 0 .. c) {
X509_NAME_ENTRY *e = () @trusted { return X509_NAME_get_entry(name, i); } ();
ASN1_OBJECT *obj = () @trusted { return X509_NAME_ENTRY_get_object(e); } ();
ASN1_STRING *val = () @trusted { return X509_NAME_ENTRY_get_data(e); } ();
auto longName = () @trusted { return OBJ_nid2ln(OBJ_obj2nid(obj)).to!string; } ();
auto valStr = () @trusted { return cast(string)val.data[0 .. val.length]; } (); // FIXME: .idup?
m_peerCertificate.subjectName.addField(longName, valStr);
}
}
~this()
{
if (m_tls) () @trusted { SSL_free(m_tls); } ();
}
@property bool empty()
{
return leastSize() == 0 && m_stream.empty;
}
@property ulong leastSize()
{
auto ret = () @trusted { return SSL_pending(m_tls); } ();
return ret > 0 ? ret : m_stream.empty ? 0 : 1;
}
@property bool dataAvailableForRead()
{
return () @trusted { return SSL_pending(m_tls); } () > 0 || m_stream.dataAvailableForRead;
}
const(ubyte)[] peek()
{
auto ret = () @trusted { return SSL_peek(m_tls, m_peekBuffer.ptr, m_peekBuffer.length); } ();
checkExceptions();
return ret > 0 ? m_peekBuffer[0 .. ret] : null;
}
size_t read(scope ubyte[] dst, IOMode mode)
{
size_t nbytes = 0;
while (dst.length > 0) {
int readlen = min(dst.length, int.max);
auto ret = checkSSLRet(() @trusted { return SSL_read(m_tls, dst.ptr, readlen); } (), "Reading from TLS stream");
//logTrace("SSL read %d/%d", ret, dst.length);
dst = dst[ret .. $];
nbytes += ret;
if (mode == IOMode.immediate || mode == IOMode.once)
break;
}
return nbytes;
}
alias read = Stream.read;
size_t write(in ubyte[] bytes_, IOMode mode)
{
const(ubyte)[] bytes = bytes_;
size_t nbytes = 0;
while (bytes.length > 0) {
int writelen = min(bytes.length, int.max);
auto ret = checkSSLRet(() @trusted { return SSL_write(m_tls, bytes.ptr, writelen); } (), "Writing to TLS stream");
//logTrace("SSL write %s", cast(string)bytes[0 .. ret]);
bytes = bytes[ret .. $];
nbytes += ret;
if (mode == IOMode.immediate || mode == IOMode.once)
break;
}
return nbytes;
}
alias write = Stream.write;
void flush()
{
m_stream.flush();
}
void finalize()
{
if( !m_tls ) return;
logTrace("OpenSSLStream finalize");
() @trusted {
SSL_shutdown(m_tls);
SSL_free(m_tls);
} ();
m_tls = null;
checkExceptions();
}
private int checkSSLRet(int ret, string what)
@safe {
checkExceptions();
if (ret > 0) return ret;
string desc;
auto err = () @trusted { return SSL_get_error(m_tls, ret); } ();
switch (err) {
default: desc = format("Unknown error (%s)", err); break;
case SSL_ERROR_NONE: desc = "No error"; break;
case SSL_ERROR_ZERO_RETURN: desc = "SSL/TLS tunnel closed"; break;
case SSL_ERROR_WANT_READ: desc = "Need to block for read"; break;
case SSL_ERROR_WANT_WRITE: desc = "Need to block for write"; break;
case SSL_ERROR_WANT_CONNECT: desc = "Need to block for connect"; break;
case SSL_ERROR_WANT_ACCEPT: desc = "Need to block for accept"; break;
case SSL_ERROR_WANT_X509_LOOKUP: desc = "Need to block for certificate lookup"; break;
case SSL_ERROR_SYSCALL:
case SSL_ERROR_SSL:
return enforceSSL(ret, what);
}
const(char)* file = null, data = null;
int line;
int flags;
c_ulong eret;
char[120] ebuf;
while( (eret = () @trusted { return ERR_get_error_line_data(&file, &line, &data, &flags); } ()) != 0 ){
() @trusted { ERR_error_string(eret, ebuf.ptr); } ();
logDiagnostic("%s error at %s:%d: %s (%s)", what,
() @trusted { return to!string(file); } (), line,
() @trusted { return to!string(ebuf.ptr); } (),
flags & ERR_TXT_STRING ? () @trusted { return to!string(data); } () : "-");
}
enforce(ret != 0, format("%s was unsuccessful with ret 0", what));
enforce(ret >= 0, format("%s returned an error: %s", what, desc));
return ret;
}
private int enforceSSL(int ret, string message)
@safe {
if (ret > 0) return ret;
c_ulong eret;
const(char)* file = null, data = null;
int line;
int flags;
string estr;
char[120] ebuf = 0;
while ((eret = () @trusted { return ERR_get_error_line_data(&file, &line, &data, &flags); } ()) != 0) {
() @trusted { ERR_error_string_n(eret, ebuf.ptr, ebuf.length); } ();
estr = () @trusted { return ebuf.ptr.to!string; } ();
// throw the last error code as an exception
if (!() @trusted { return ERR_peek_error(); } ()) break;
logDiagnostic("OpenSSL error at %s:%d: %s (%s)",
() @trusted { return file.to!string; } (), line, estr,
flags & ERR_TXT_STRING ? () @trusted { return to!string(data); } () : "-");
}
throw new Exception(format("%s: %s (%s)", message, estr, eret));
}
private void checkExceptions()
@safe {
if( m_exceptions.length > 0 ){
foreach( e; m_exceptions )
logDiagnostic("Exception occured on SSL source stream: %s", () @trusted { return e.toString(); } ());
throw m_exceptions[0];
}
}
@property TLSCertificateInformation peerCertificate()
{
return m_peerCertificate;
}
@property string alpn()
const {
static if (!haveALPN) assert(false, "OpenSSL support not compiled with ALPN enabled. Use VibeForceALPN.");
else {
char[32] data;
uint datalen;
() @trusted { SSL_get0_alpn_selected(m_ssl, cast(const char*) data.ptr, &datalen); } ();
logDebug("alpn selected: ", data.to!string);
if (datalen > 0)
return data[0..datalen].idup;
else return null;
}
}
/// Invoked by client to offer alpn
private void setClientALPN(string[] alpn_list)
{
logDebug("SetClientALPN: ", alpn_list);
import vibe.internal.allocator : dispose, makeArray, processAllocator;
ubyte[] alpn;
size_t len;
foreach (string alpn_val; alpn_list)
len += alpn_val.length + 1;
alpn = () @trusted { return processAllocator.makeArray!ubyte(len); } ();
size_t i;
foreach (string alpn_val; alpn_list)
{
alpn[i++] = cast(ubyte)alpn_val.length;
alpn[i .. i+alpn_val.length] = cast(immutable(ubyte)[])alpn_val;
i += alpn_val.length;
}
assert(i == len);
static if (haveALPN)
SSL_set_alpn_protos(m_ssl, cast(const char*) alpn.ptr, cast(uint) len);
() @trusted { processAllocator.dispose(alpn); } ();
}
}
/**
Encapsulates the configuration for an SSL tunnel.
Note that when creating an SSLContext with SSLContextKind.client, the
peerValidationMode will be set to SSLPeerValidationMode.trustedCert,
but no trusted certificate authorities are added by default. Use
useTrustedCertificateFile to add those.
*/
final class OpenSSLContext : TLSContext {
@safe:
private {
TLSContextKind m_kind;
ssl_ctx_st* m_ctx;
TLSPeerValidationCallback m_peerValidationCallback;
TLSPeerValidationMode m_validationMode;
int m_verifyDepth;
TLSServerNameCallback m_sniCallback;
TLSALPNCallback m_alpnCallback;
}
this(TLSContextKind kind, TLSVersion ver = TLSVersion.any)
{
m_kind = kind;
const(SSL_METHOD)* method;
c_long options = SSL_OP_NO_SSLv2|SSL_OP_NO_COMPRESSION|
SSL_OP_SINGLE_DH_USE|SSL_OP_SINGLE_ECDH_USE;
() @trusted {
final switch (kind) {
case TLSContextKind.client:
final switch (ver) {
case TLSVersion.any: method = SSLv23_client_method(); options |= SSL_OP_NO_SSLv3; break;
case TLSVersion.ssl3: method = SSLv23_client_method(); options |= SSL_OP_NO_SSLv2|SSL_OP_NO_TLSv1_1|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_2; break;
case TLSVersion.tls1: method = TLSv1_client_method(); break;
//case TLSVersion.tls1_1: method = TLSv1_1_client_method(); break;
//case TLSVersion.tls1_2: method = TLSv1_2_client_method(); break;
case TLSVersion.tls1_1: method = SSLv23_client_method(); options |= SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_2; break;
case TLSVersion.tls1_2: method = SSLv23_client_method(); options |= SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1; break;
case TLSVersion.dtls1: method = DTLSv1_client_method(); break;
}
break;
case TLSContextKind.server:
case TLSContextKind.serverSNI:
final switch (ver) {
case TLSVersion.any: method = SSLv23_server_method(); options |= SSL_OP_NO_SSLv3; break;
case TLSVersion.ssl3: method = SSLv23_server_method(); options |= SSL_OP_NO_SSLv2|SSL_OP_NO_TLSv1_1|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_2; break;
case TLSVersion.tls1: method = TLSv1_server_method(); break;
case TLSVersion.tls1_1: method = SSLv23_server_method(); options |= SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_2; break;
case TLSVersion.tls1_2: method = SSLv23_server_method(); options |= SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1; break;
//case TLSVersion.tls1_1: method = TLSv1_1_server_method(); break;
//case TLSVersion.tls1_2: method = TLSv1_2_server_method(); break;
case TLSVersion.dtls1: method = DTLSv1_server_method(); break;
}
options |= SSL_OP_CIPHER_SERVER_PREFERENCE;
break;
}
} ();
m_ctx = () @trusted { return SSL_CTX_new(method); } ();
() @trusted { SSL_CTX_set_options!()(m_ctx, options); }();
if (kind == TLSContextKind.server) {
setDHParams();
static if (haveECDH) setECDHCurve();
guessSessionIDContext();
}
setCipherList();
maxCertChainLength = 9;
if (kind == TLSContextKind.client) peerValidationMode = TLSPeerValidationMode.trustedCert;
else peerValidationMode = TLSPeerValidationMode.none;
// while it would be nice to use the system's certificate store, this
// seems to be difficult to get right across all systems. The most
// popular alternative is to use Mozilla's certificate store and
// distribute it along with the library (e.g. in source code form.
/*version (Posix) {
enforce(SSL_CTX_load_verify_locations(m_ctx, null, "/etc/ssl/certs"),
"Failed to load system certificate store.");
}
version (Windows) {
auto store = CertOpenSystemStore(null, "ROOT");
enforce(store !is null, "Failed to load system certificate store.");
scope (exit) CertCloseStore(store, 0);
PCCERT_CONTEXT ctx;
while((ctx = CertEnumCertificatesInStore(store, ctx)) !is null) {
X509* x509cert;
auto buffer = ctx.pbCertEncoded;
auto len = ctx.cbCertEncoded;
if (ctx.dwCertEncodingType & X509_ASN_ENCODING) {
x509cert = d2i_X509(null, &buffer, len);
X509_STORE_add_cert(SSL_CTX_get_cert_store(m_ctx), x509cert);
}
}
}*/
}
~this()
{
() @trusted { SSL_CTX_free(m_ctx); } ();
m_ctx = null;
}
/// The kind of SSL context (client/server)
@property TLSContextKind kind() const { return m_kind; }
/// Callback function invoked by server to choose alpn
@property void alpnCallback(TLSALPNCallback alpn_chooser)
{
logDebug("Choosing ALPN callback");
m_alpnCallback = alpn_chooser;
static if (haveALPN) {
logDebug("Call select cb");
SSL_CTX_set_alpn_select_cb(m_ctx, &chooser, cast(void*)this);
}
}
/// Get the current ALPN callback function
@property TLSALPNCallback alpnCallback() const { return m_alpnCallback; }
/// Invoked by client to offer alpn
void setClientALPN(string[] alpn_list)
{
static if (!haveALPN) assert(false, "OpenSSL support not compiled with ALPN enabled. Use VibeForceALPN.");
else {
import vibe.utils.memory : allocArray, freeArray, manualAllocator;
ubyte[] alpn;
size_t len;
foreach (string alpn_value; alpn_list)
len += alpn_value.length + 1;
alpn = allocArray!ubyte(manualAllocator(), len);
size_t i;
foreach (string alpn_value; alpn_list)
{
alpn[i++] = cast(ubyte)alpn_value.length;
alpn[i .. i+alpn_value.length] = cast(ubyte[])alpn_value;
i += alpn_value.length;
}
assert(i == len);
SSL_CTX_set_alpn_protos(m_ctx, cast(const char*) alpn.ptr, cast(uint) len);
freeArray(manualAllocator(), alpn);
}
}
/** Specifies the validation level of remote peers.
The default mode for TLSContextKind.client is
TLSPeerValidationMode.trustedCert and the default for
TLSContextKind.server is TLSPeerValidationMode.none.
*/
@property void peerValidationMode(TLSPeerValidationMode mode)
{
m_validationMode = mode;
int sslmode;
with (TLSPeerValidationMode) {
if (mode == none) sslmode = SSL_VERIFY_NONE;
else {
sslmode |= SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE;
if (mode & requireCert) sslmode |= SSL_VERIFY_FAIL_IF_NO_PEER_CERT;
}
}
() @trusted { SSL_CTX_set_verify(m_ctx, sslmode, &verify_callback); } ();
}
/// ditto
@property TLSPeerValidationMode peerValidationMode() const { return m_validationMode; }
/** The maximum length of an accepted certificate chain.
Any certificate chain longer than this will result in the SSL/TLS
negitiation failing.
The default value is 9.
*/
@property void maxCertChainLength(int val)
{
m_verifyDepth = val;
// + 1 to let the validation callback handle the error
() @trusted { SSL_CTX_set_verify_depth(m_ctx, val + 1); } ();
}
/// ditto
@property int maxCertChainLength() const { return m_verifyDepth; }
/** An optional user callback for peer validation.
This callback will be called for each peer and each certificate of
its certificate chain to allow overriding the validation decision
based on the selected peerValidationMode (e.g. to allow invalid
certificates or to reject valid ones). This is mainly useful for
presenting the user with a dialog in case of untrusted or mismatching
certificates.
*/
@property void peerValidationCallback(TLSPeerValidationCallback callback) { m_peerValidationCallback = callback; }
/// ditto
@property inout(TLSPeerValidationCallback) peerValidationCallback() inout { return m_peerValidationCallback; }
@property void sniCallback(TLSServerNameCallback callback)
{
m_sniCallback = callback;
if (m_kind == TLSContextKind.serverSNI) {
() @trusted {
SSL_CTX_callback_ctrl(m_ctx, SSL_CTRL_SET_TLSEXT_SERVERNAME_CB, cast(OSSLCallback)&onContextForServerName);
SSL_CTX_ctrl(m_ctx, SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG, 0, cast(void*)this);
} ();
}
}
@property inout(TLSServerNameCallback) sniCallback() inout { return m_sniCallback; }
private extern(C) alias OSSLCallback = void function();
private static extern(C) int onContextForServerName(SSL *s, int *ad, void *arg)
{
auto ctx = () @trusted { return cast(OpenSSLContext)arg; } ();
auto servername = () @trusted { return SSL_get_servername(s, TLSEXT_NAMETYPE_host_name); } ();
if (!servername) return SSL_TLSEXT_ERR_NOACK;
auto newctx = cast(OpenSSLContext)ctx.m_sniCallback(() @trusted { return servername.to!string; } ());
if (!newctx) return SSL_TLSEXT_ERR_NOACK;
() @trusted { SSL_set_SSL_CTX(s, newctx.m_ctx); } ();
return SSL_TLSEXT_ERR_OK;
}
OpenSSLStream createStream(InterfaceProxy!Stream underlying, TLSStreamState state, string peer_name = null, NetworkAddress peer_address = NetworkAddress.init)
{
return new OpenSSLStream(underlying, this, state, peer_name, peer_address);
}
/** Set the list of cipher specifications to use for SSL/TLS tunnels.
The list must be a colon separated list of cipher
specifications as accepted by OpenSSL. Calling this function
without argument will restore the default.
See_also: $(LINK https://www.openssl.org/docs/apps/ciphers.html#CIPHER_LIST_FORMAT)
*/
void setCipherList(string list = null)
@trusted
{
if (list is null)
SSL_CTX_set_cipher_list(m_ctx,
"ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:"
~ "RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS");
else
SSL_CTX_set_cipher_list(m_ctx, toStringz(list));
}
/** Make up a context ID to assign to the SSL context.
This is required when doing client cert authentication, otherwise many
connections will go aborted as the client tries to revive a session
that it used to have on another machine.
The session ID context should be unique within a pool of servers.
Currently, this is achieved by taking the hostname.
*/
private void guessSessionIDContext()
@trusted
{
string contextID = Socket.hostName;
SSL_CTX_set_session_id_context(m_ctx, cast(ubyte*)contextID.toStringz(), cast(uint)contextID.length);
}
/** Set params to use for DH cipher.
*
* By default the 2048-bit prime from RFC 3526 is used.
*
* Params:
* pem_file = Path to a PEM file containing the DH parameters. Calling
* this function without argument will restore the default.
*/
void setDHParams(string pem_file=null)
@trusted {
DH* dh;
scope(exit) DH_free(dh);
if (pem_file is null) {
dh = enforce(DH_new(), "Unable to create DH structure.");
dh.p = get_rfc3526_prime_2048(null);
ubyte dh_generator = 2;
dh.g = BN_bin2bn(&dh_generator, dh_generator.sizeof, null);
} else {
import core.stdc.stdio : fclose, fopen;
auto f = enforce(fopen(toStringz(pem_file), "r"), "Failed to load dhparams file "~pem_file);
scope(exit) fclose(f);
dh = enforce(PEM_read_DHparams(f, null, null, null), "Failed to read dhparams file "~pem_file);
}
SSL_CTX_set_tmp_dh(m_ctx, dh);
}
/** Set the elliptic curve to use for ECDH cipher.
*
* By default a curve is either chosen automatically or prime256v1 is used.
*
* Params:
* curve = The short name of the elliptic curve to use. Calling this
* function without argument will restore the default.
*
*/
void setECDHCurve(string curve = null)
@trusted {
static if (haveECDH) {
static if (OPENSSL_VERSION_NUMBER >= 0x10200000) {
// use automatic ecdh curve selection by default
if (curve is null) {
SSL_CTX_set_ecdh_auto(m_ctx, true);
return;
}
// but disable it when an explicit curve is given
SSL_CTX_set_ecdh_auto(m_ctx, false);
}
int nid;
if (curve is null)
nid = NID_X9_62_prime256v1;
else
nid = enforce(OBJ_sn2nid(toStringz(curve)), "Unknown ECDH curve '"~curve~"'.");
auto ecdh = enforce(EC_KEY_new_by_curve_name(nid), "Unable to create ECDH curve.");
SSL_CTX_set_tmp_ecdh(m_ctx, ecdh);
EC_KEY_free(ecdh);
} else assert(false, "ECDH curve selection not available for old versions of OpenSSL");
}
/// Sets a certificate file to use for authenticating to the remote peer
void useCertificateChainFile(string path)
{
enforce(() @trusted { return SSL_CTX_use_certificate_chain_file(m_ctx, toStringz(path)); } (), "Failed to load certificate file " ~ path);
}
/// Sets the private key to use for authenticating to the remote peer based
/// on the configured certificate chain file.
void usePrivateKeyFile(string path)
{
enforce(() @trusted { return SSL_CTX_use_PrivateKey_file(m_ctx, toStringz(path), SSL_FILETYPE_PEM); } (), "Failed to load private key file " ~ path);
}
/** Sets the list of trusted certificates for verifying peer certificates.
If this is a server context, this also entails that the given
certificates are advertised to connecting clients during handshake.
On Linux, the system's root certificate authority list is usually
found at "/etc/ssl/certs/ca-certificates.crt",
"/etc/pki/tls/certs/ca-bundle.crt", or "/etc/ssl/ca-bundle.pem".
*/
void useTrustedCertificateFile(string path)
@trusted {
immutable cPath = toStringz(path);
enforce(SSL_CTX_load_verify_locations(m_ctx, cPath, null),
"Failed to load trusted certificate file " ~ path);
if (m_kind == TLSContextKind.server) {
auto certNames = enforce(SSL_load_client_CA_file(cPath),
"Failed to load client CA name list from file " ~ path);
SSL_CTX_set_client_CA_list(m_ctx, certNames);
}
}
private SSLState createClientCtx()
{
return () @trusted { return SSL_new(m_ctx); } ();
}
private static struct VerifyData {
int verifyDepth;
TLSPeerValidationMode validationMode;
TLSPeerValidationCallback callback;
string peerName;
NetworkAddress peerAddress;
}
private static extern(C) nothrow
int verify_callback(int valid, X509_STORE_CTX* ctx)
@trusted {
X509* err_cert = X509_STORE_CTX_get_current_cert(ctx);
int err = X509_STORE_CTX_get_error(ctx);
int depth = X509_STORE_CTX_get_error_depth(ctx);
SSL* ssl = cast(SSL*)X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx());
VerifyData* vdata = cast(VerifyData*)SSL_get_ex_data(ssl, gs_verifyDataIndex);
char[1024] buf;
X509_NAME_oneline(X509_get_subject_name(err_cert), buf.ptr, 256);
buf[$-1] = 0;
try {
logDebug("validate callback for %s", buf.ptr.to!string);
if (depth > vdata.verifyDepth) {
logDiagnostic("SSL cert chain too long: %s vs. %s", depth, vdata.verifyDepth);
valid = false;
err = X509_V_ERR_CERT_CHAIN_TOO_LONG;
}
if (err != X509_V_OK)
logDebug("SSL cert initial error: %s", X509_verify_cert_error_string(err).to!string);
if (!valid) {
switch (err) {
default: break;
case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY:
case X509_V_ERR_CERT_UNTRUSTED:
assert(ctx.current_cert !is null);
X509_NAME_oneline(X509_get_issuer_name(ctx.current_cert), buf.ptr, buf.length);
buf[$-1] = 0;
logDebug("SSL cert not trusted or unknown issuer: %s", buf.ptr.to!string);
if (!(vdata.validationMode & TLSPeerValidationMode.checkTrust)) {
valid = true;
err = X509_V_OK;
}
break;
}
}
if (!(vdata.validationMode & TLSPeerValidationMode.checkCert)) {
valid = true;
err = X509_V_OK;
}
if (vdata.callback) {
TLSPeerValidationData pvdata;
// ...
if (!valid) {
if (vdata.callback(pvdata)) {
valid = true;
err = X509_V_OK;
}
} else {
if (!vdata.callback(pvdata)) {
logDebug("SSL application verification failed");
valid = false;
err = X509_V_ERR_APPLICATION_VERIFICATION;
}
}
}
} catch (Exception e) {
logWarn("SSL verification failed due to exception: %s", e.msg);
err = X509_V_ERR_APPLICATION_VERIFICATION;
valid = false;
}
X509_STORE_CTX_set_error(ctx, err);
logDebug("SSL validation result: %s (%s)", valid, err);
return valid;
}
}
alias SSLState = ssl_st*;
/**************************************************************************************************/
/* Private functions */
/**************************************************************************************************/
private {
__gshared InterruptibleTaskMutex[] g_cryptoMutexes;
__gshared int gs_verifyDataIndex;
}
shared static this()
{
logDebug("Initializing OpenSSL...");
SSL_load_error_strings();
SSL_library_init();
g_cryptoMutexes.length = CRYPTO_num_locks();
// TODO: investigate if a normal Mutex is enough - not sure if BIO is called in a locked state
foreach (i; 0 .. g_cryptoMutexes.length)
g_cryptoMutexes[i] = new InterruptibleTaskMutex;
foreach (ref m; g_cryptoMutexes) {
assert(m !is null);
}
CRYPTO_set_id_callback(&onCryptoGetThreadID);
CRYPTO_set_locking_callback(&onCryptoLock);
enforce(RAND_poll(), "Fatal: failed to initialize random number generator entropy (RAND_poll).");
logDebug("... done.");
gs_verifyDataIndex = SSL_get_ex_new_index(0, cast(void*)"VerifyData".ptr, null, null, null);
}
private bool verifyCertName(X509* cert, int field, in char[] value, bool allow_wildcards = true)
@trusted {
bool delegate(in char[]) @safe str_match;
bool check_value(ASN1_STRING* str, int type) {
if (!str.data || !str.length) return false;
if (type > 0) {
if (type != str.type) return 0;
auto strstr = cast(string)str.data[0 .. str.length];
return type == V_ASN1_IA5STRING ? str_match(strstr) : strstr == value;
}
char* utfstr;
auto utflen = ASN1_STRING_to_UTF8(&utfstr, str);
enforce (utflen >= 0, "Error converting ASN1 string to UTF-8.");
scope (exit) OPENSSL_free(utfstr);
return str_match(utfstr[0 .. utflen]);
}
int cnid;
int alt_type;
final switch (field) {
case GENERAL_NAME.GEN_DNS:
cnid = NID_commonName;
alt_type = V_ASN1_IA5STRING;
str_match = allow_wildcards ? s => matchWildcard(value, s) : s => s.icmp(value) == 0;
break;
case GENERAL_NAME.GEN_IPADD:
cnid = 0;
alt_type = V_ASN1_OCTET_STRING;
str_match = s => s == value;
break;
}
if (auto gens = cast(STACK_OF!GENERAL_NAME*)X509_get_ext_d2i(cert, NID_subject_alt_name, null, null)) {
scope(exit) GENERAL_NAMES_free(gens);
foreach (i; 0 .. sk_GENERAL_NAME_num(gens)) {
auto gen = sk_GENERAL_NAME_value(gens, i);
if (gen.type != field) continue;
ASN1_STRING *cstr = field == GENERAL_NAME.GEN_DNS ? gen.d.dNSName : gen.d.iPAddress;
if (check_value(cstr, alt_type)) return true;
}
if (!cnid) return false;
}
X509_NAME* name = X509_get_subject_name(cert);
int i;
while ((i = X509_NAME_get_index_by_NID(name, cnid, i)) >= 0) {
X509_NAME_ENTRY* ne = X509_NAME_get_entry(name, i);
ASN1_STRING* str = X509_NAME_ENTRY_get_data(ne);
if (check_value(str, -1)) return true;
}
return false;
}
private bool matchWildcard(const(char)[] str, const(char)[] pattern)
@safe {
auto strparts = str.split(".");
auto patternparts = pattern.split(".");
if (strparts.length != patternparts.length) return false;
bool isValidChar(dchar ch) {
if (ch >= '0' && ch <= '9') return true;
if (ch >= 'a' && ch <= 'z') return true;
if (ch >= 'A' && ch <= 'Z') return true;
if (ch == '-' || ch == '.') return true;
return false;
}
if (!pattern.all!(c => isValidChar(c) || c == '*') || !str.all!(c => isValidChar(c)))
return false;
foreach (i; 0 .. strparts.length) {
import std.regex;
auto p = patternparts[i];
auto s = strparts[i];
if (!p.length || !s.length) return false;
auto rex = "^" ~ std.array.replace(p, "*", "[^.]*") ~ "$";
if (!match(s, rex)) return false;
}
return true;
}
unittest {
assert(matchWildcard("www.example.org", "*.example.org"));
assert(matchWildcard("www.example.org", "*w.example.org"));
assert(matchWildcard("www.example.org", "w*w.example.org"));
assert(matchWildcard("www.example.org", "*w*.example.org"));
assert(matchWildcard("test.abc.example.org", "test.*.example.org"));
assert(!matchWildcard("test.abc.example.org", "abc.example.org"));
assert(!matchWildcard("test.abc.example.org", ".abc.example.org"));
assert(!matchWildcard("abc.example.org", "a.example.org"));
assert(!matchWildcard("abc.example.org", "bc.example.org"));
assert(!matchWildcard("abcdexample.org", "abc.example.org"));
}
private nothrow @safe extern(C)
{
import core.stdc.config;
int chooser(SSL* ssl, const(char)** output, ubyte* outlen, const(char) *input_, uint inlen, void* arg) {
const(char)[] input = () @trusted { return input_[0 .. inlen]; } ();
logDebug("Got chooser input: %s", input);
OpenSSLContext ctx = () @trusted { return cast(OpenSSLContext) arg; } ();
import vibe.utils.array : AllocAppender, AppenderResetMode;
size_t i;
size_t len;
Appender!(string[]) alpn_list;
while (i < inlen)
{
len = cast(size_t) input[i];
++i;
auto proto = input[i .. i+len];
i += len;
() @trusted { alpn_list ~= cast(string)proto; } ();
}
string alpn;
try { alpn = ctx.m_alpnCallback(alpn_list.data); } catch (Exception e) { }
if (alpn) {
i = 0;
while (i < inlen)
{
len = input[i];
++i;
auto proto = input[i .. i+len];
i += len;
if (proto == alpn) {
*output = &proto[0];
*outlen = cast(ubyte) proto.length;
}
}
}
if (!output) {
logError("None of the proposed ALPN were selected: %s / falling back on HTTP/1.1", input);
enum hdr = "http/1.1";
*output = &hdr[0];
*outlen = cast(ubyte)hdr.length;
}
return 0;
}
c_ulong onCryptoGetThreadID()
{
try {
return cast(c_ulong)(cast(size_t)() @trusted { return cast(void*)Thread.getThis(); } () * 0x35d2c57);
} catch (Exception e) {
logWarn("OpenSSL: failed to get current thread ID: %s", e.msg);
return 0;
}
}
void onCryptoLock(int mode, int n, const(char)* file, int line)
{
try {
enforce(n >= 0 && n < () @trusted { return g_cryptoMutexes; } ().length, "Mutex index out of range.");
auto mutex = () @trusted { return g_cryptoMutexes[n]; } ();
assert(mutex !is null);
if (mode & CRYPTO_LOCK) mutex.lock();
else mutex.unlock();
} catch (Exception e) {
logWarn("OpenSSL: failed to lock/unlock mutex: %s", e.msg);
}
}
int onBioNew(BIO *b) nothrow
{
b.init_ = 0;
b.num = -1;
b.ptr = null;
b.flags = 0;
return 1;
}
int onBioFree(BIO *b)
{
if( !b ) return 0;
if( b.shutdown ){
//if( b.init && b.ptr ) b.ptr.stream.free();
b.init_ = 0;
b.flags = 0;
b.ptr = null;
}
return 1;
}
int onBioRead(BIO *b, char *outb, int outlen)
{
auto stream = () @trusted { return cast(OpenSSLStream)b.ptr; } ();
try {
outlen = min(outlen, stream.m_stream.leastSize);
stream.m_stream.read(() @trusted { return cast(ubyte[])outb[0 .. outlen]; } ());
} catch(Exception e){
stream.m_exceptions ~= e;
return -1;
}
return outlen;
}
int onBioWrite(BIO *b, const(char) *inb, int inlen)
{
auto stream = () @trusted { return cast(OpenSSLStream)b.ptr; } ();
try {
stream.m_stream.write(() @trusted { return inb[0 .. inlen]; } ());
} catch(Exception e){
stream.m_exceptions ~= e;
return -1;
}
return inlen;
}
c_long onBioCtrl(BIO *b, int cmd, c_long num, void *ptr)
{
auto stream = () @trusted { return cast(OpenSSLStream)b.ptr; } ();
c_long ret = 1;
switch(cmd){
case BIO_CTRL_GET_CLOSE: ret = b.shutdown; break;
case BIO_CTRL_SET_CLOSE:
logTrace("SSL set close %d", num);
b.shutdown = cast(int)num;
break;
case BIO_CTRL_PENDING:
try {
auto sz = stream.m_stream.leastSize;
return sz <= c_long.max ? cast(c_long)sz : c_long.max;
} catch( Exception e ){
stream.m_exceptions ~= e;
return -1;
}
case BIO_CTRL_WPENDING: return 0;
case BIO_CTRL_DUP:
case BIO_CTRL_FLUSH:
ret = 1;
break;
default:
ret = 0;
break;
}
return ret;
}
int onBioPuts(BIO *b, const(char) *s)
{
return onBioWrite(b, s, cast(int)() @trusted { return strlen(s); } ());
}
}
private BIO_METHOD s_bio_methods = {
57, "SslStream",
&onBioWrite,
&onBioRead,
&onBioPuts,
null, // &onBioGets
&onBioCtrl,
&onBioNew,
&onBioFree,
null, // &onBioCallbackCtrl
};
private nothrow extern(C):
static if (haveALPN) {
alias ALPNCallback = int function(SSL *ssl, const(char) **output, ubyte* outlen, const(char) *input, uint inlen, void *arg);
void SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx, ALPNCallback cb, void *arg);
int SSL_set_alpn_protos(SSL *ssl, const char *data, uint len);
int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const char* protos, uint protos_len);
void SSL_get0_alpn_selected(const SSL *ssl, const char* data, uint *len);
}
const(ssl_method_st)* TLSv1_2_server_method();
|
D
|
/*
This file is part of BioD.
Copyright (C) 2013-2016 Artem Tarasov <lomereiter@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, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
module bio.core.bgzf.inputstream;
import bio.core.bgzf.block;
import bio.core.bgzf.virtualoffset;
import bio.core.bgzf.constants;
import bio.core.bgzf.chunk;
import bio.bam.constants;
import bio.core.utils.roundbuf;
import undead.stream;
import std.exception;
import std.conv;
import std.parallelism;
import std.array;
import std.algorithm : min, max;
/// Exception type, thrown in case of encountering corrupt BGZF blocks
class BgzfException : Exception {
this(string msg) { super(msg); }
}
bool fillBgzfBufferFromStream(Stream stream, bool is_seekable,
BgzfBlock* block, ubyte* buffer,
size_t *number_of_bytes_read=null)
{
if (stream.eof())
return false;
ulong start_offset;
void throwBgzfException(string msg) {
throw new BgzfException("Error reading BGZF block starting from offset " ~
to!string(start_offset) ~ ": " ~ msg);
}
if (is_seekable)
start_offset = stream.position;
try {
ubyte[4] bgzf_magic = void;
size_t bytes_read;
while (bytes_read < 4) {
auto buf = bgzf_magic.ptr + bytes_read;
auto read_ = stream.read(buf[0 .. 4 - bytes_read]);
if (read_ == 0)
return false;
bytes_read += read_;
}
if (bgzf_magic != BGZF_MAGIC) {
throwBgzfException("wrong BGZF magic");
}
ushort gzip_extra_length = void;
if (is_seekable) {
stream.seekCur(uint.sizeof + 2 * ubyte.sizeof);
} else {
uint gzip_mod_time = void;
ubyte gzip_extra_flags = void;
ubyte gzip_os = void;
stream.read(gzip_mod_time);
stream.read(gzip_extra_flags);
stream.read(gzip_os);
}
stream.read(gzip_extra_length);
ushort bsize = void; // total Block SIZE minus 1
bool found_block_size = false;
// read extra subfields
size_t len = 0;
while (len < gzip_extra_length) {
ubyte si1 = void; // Subfield Identifier1
ubyte si2 = void; // Subfield Identifier2
ushort slen = void; // Subfield LENgth
stream.read(si1);
stream.read(si2);
stream.read(slen);
if (si1 == BAM_SI1 && si2 == BAM_SI2) {
// found 'BC' as subfield identifier
if (slen != 2) {
throwBgzfException("wrong BC subfield length: " ~
to!string(slen) ~ "; expected 2");
}
if (found_block_size) {
throwBgzfException("duplicate field with block size");
}
// read block size
stream.read(bsize);
found_block_size = true;
// skip the rest
if (is_seekable) {
stream.seekCur(slen - bsize.sizeof);
} else {
stream.readString(slen - bsize.sizeof);
}
} else {
// this subfield has nothing to do with block size, just skip
if (is_seekable) {
stream.seekCur(slen);
} else {
stream.readString(slen);
}
}
auto nbytes = si1.sizeof + si2.sizeof + slen.sizeof + slen;
if (number_of_bytes_read !is null)
*number_of_bytes_read += nbytes;
len += nbytes;
}
if (len != gzip_extra_length) {
throwBgzfException("total length of subfields in bytes (" ~
to!string(len) ~
") is not equal to gzip_extra_length (" ~
to!string(gzip_extra_length) ~ ")");
}
if (!found_block_size) {
throwBgzfException("block size was not found in any subfield");
}
// read compressed data
auto cdata_size = bsize - gzip_extra_length - 19;
if (cdata_size > BGZF_MAX_BLOCK_SIZE) {
throwBgzfException("compressed data size is more than " ~
to!string(BGZF_MAX_BLOCK_SIZE) ~
" bytes, which is not allowed by " ~
"current BAM specification");
}
block.bsize = bsize;
block.cdata_size = cast(ushort)cdata_size;
version(extraVerbose) {
import std.stdio;
// stderr.writeln("[compressed] reading ", cdata_size, " bytes starting from ", start_offset);
}
stream.readExact(buffer, cdata_size);
version(extraVerbose) {
stderr.writeln("[ compressed] [write] range: ", buffer, " - ", buffer + cdata_size);
}
// version(extraVerbose) {stderr.writeln("[compressed] reading block crc32 and input size...");}
stream.read(block.crc32);
stream.read(block.input_size);
if (number_of_bytes_read !is null)
*number_of_bytes_read += 12 + cdata_size + block.crc32.sizeof + block.input_size.sizeof;
// version(extraVerbose) {stderr.writeln("[compressed] read block input size: ", block.input_size);}
block._buffer = buffer[0 .. max(block.input_size, cdata_size)];
block.start_offset = start_offset;
block.dirty = false;
} catch (ReadException e) {
throwBgzfException("stream error: " ~ e.msg);
}
return true;
}
///
interface BgzfBlockSupplier {
/// Fills $(D buffer) with compressed data and points $(D block) to it.
/// Return value is false if there is no next block.
///
/// The implementation may assume that there's enough space in the buffer.
bool getNextBgzfBlock(BgzfBlock* block, ubyte* buffer,
ushort* skip_start, ushort* skip_end);
/// Total compressed size of the supplied blocks in bytes.
/// If unknown, should return 0.
size_t totalCompressedSize() const;
}
///
class StreamSupplier : BgzfBlockSupplier {
private {
Stream _stream;
bool _seekable;
size_t _start_offset;
size_t _size;
ushort _skip_start;
}
///
this(Stream stream, ushort skip_start=0) {
_stream = stream;
_seekable = _stream.seekable;
_skip_start = skip_start;
if (_seekable)
_size = cast(size_t)(_stream.size);
}
///
bool getNextBgzfBlock(BgzfBlock* block, ubyte* buffer,
ushort* skip_start, ushort* skip_end) {
auto curr_start_offset = _start_offset;
// updates _start_offset
auto result = fillBgzfBufferFromStream(_stream, _seekable, block, buffer,
&_start_offset);
if (!_seekable)
block.start_offset = curr_start_offset;
*skip_start = _skip_start;
_skip_start = 0;
*skip_end = 0;
return result;
}
/// Stream size if available
size_t totalCompressedSize() const {
return _size;
}
}
class StreamChunksSupplier : BgzfBlockSupplier {
private {
Stream _stream;
Chunk[] _chunks;
void moveToNextChunk() {
if (_chunks.length == 0)
return;
size_t i = 1;
auto beg = _chunks[0].beg;
for ( ; i < _chunks.length; ++i)
if (_chunks[i].beg.coffset > _chunks[0].beg.coffset)
break;
_chunks = _chunks[i - 1 .. $];
_chunks[0].beg = beg;
_stream.seekSet(cast(size_t)_chunks[0].beg.coffset);
version(extraVerbose) {
import std.stdio; stderr.writeln("started processing chunk ", beg, " - ", _chunks[0].end);
}
}
}
this(Stream stream, bio.core.bgzf.chunk.Chunk[] chunks) {
_stream = stream;
assert(_stream.seekable);
_chunks = chunks;
moveToNextChunk();
}
///
bool getNextBgzfBlock(BgzfBlock* block, ubyte* buffer,
ushort* skip_start, ushort* skip_end)
{
if (_chunks.length == 0)
return false;
// Usually there can't be two or more chunks overlapping a
// single block -- in such cases they are merged during
// indexing in most implementations.
// If this is not the case, the algorithm should still work,
// but it might decompress the same block several times.
//
// On each call of this method, one of these things happen:
// 1) We remain in the current chunk, but read next block
// 2) We finish dealing with the current chunk, so we move to
// the next one. If this was the last one, false is returned.
//
// moveToNextChunk moves stream pointer to chunk.beg.coffset,
// in which case skip_start should be set to chunk.beg.uoffset
auto result = fillBgzfBufferFromStream(_stream, true, block, buffer);
auto offset = block.start_offset;
if (!result)
return false;
if (offset == _chunks[0].beg.coffset)
*skip_start = _chunks[0].beg.uoffset; // first block in a chunk
else
*skip_start = 0;
long _skip_end; // may be equal to 65536!
if (offset == _chunks[0].end.coffset) // last block in a chunk
_skip_end = block.input_size - _chunks[0].end.uoffset;
else
_skip_end = 0;
*skip_end = cast(ushort)_skip_end;
if (offset >= _chunks[0].end.coffset) {
_chunks = _chunks[1 .. $];
moveToNextChunk();
}
// special case: it's not actually the last block in a chunk,
// but rather that chunk ended on the edge of two blocks
if (block.input_size > 0 && _skip_end == block.input_size) {
version(extraVerbose) { import std.stdio; stderr.writeln("skip_end == input size"); }
return getNextBgzfBlock(block, buffer, skip_start, skip_end);
}
return true;
}
/// Always zero (unknown)
size_t totalCompressedSize() const {
return 0;
}
}
///
class BgzfInputStream : Stream {
private {
BgzfBlockSupplier _supplier;
ubyte[] _data;
BgzfBlockCache _cache;
ubyte[] _read_buffer;
VirtualOffset _current_vo;
VirtualOffset _end_vo;
size_t _compressed_size;
// for estimating compression ratio
size_t _compressed_read, _uncompressed_read;
TaskPool _pool;
enum _max_block_size = BGZF_MAX_BLOCK_SIZE * 2;
alias Task!(decompressBgzfBlock, BgzfBlock, BgzfBlockCache)
DecompressionTask;
DecompressionTask[] _task_buf;
static struct BlockAux {
BgzfBlock block;
ushort skip_start;
ushort skip_end;
DecompressionTask* task;
alias task this;
}
RoundBuf!BlockAux _tasks = void;
size_t _offset;
bool fillNextBlock() {
ubyte* p = _data.ptr + _offset;
BlockAux b = void;
if (_supplier.getNextBgzfBlock(&b.block, p,
&b.skip_start, &b.skip_end))
{
if (b.block.input_size == 0) // BGZF EOF block
return false;
_compressed_read += b.block.end_offset - b.block.start_offset;
_uncompressed_read += b.block.input_size;
version(extraVerbose) {
import std.stdio;
stderr.writeln("[creating task] ", b.block.start_offset, " / ", b.skip_start, " / ", b.skip_end);
}
DecompressionTask tmp = void;
tmp = scopedTask!decompressBgzfBlock(b.block, _cache);
auto t = _task_buf.ptr + _offset / _max_block_size;
import core.stdc.string : memcpy;
memcpy(t, &tmp, DecompressionTask.sizeof);
b.task = t;
_tasks.put(b);
_pool.put(b.task);
_offset += _max_block_size;
if (_offset == _data.length)
_offset = 0;
return true;
}
return false;
}
void setupReadBuffer() {
auto b = _tasks.front;
auto decompressed_block = b.task.yieldForce();
auto from = b.skip_start;
auto to = b.block.input_size - b.skip_end;
_read_buffer = b.block._buffer.ptr[from .. to];
if (from == to) {
assert(from == 0);
setEOF();
}
_current_vo = VirtualOffset(b.block.start_offset, from);
version(extraVerbose) {
import std.stdio; stderr.writeln("[setup read buffer] ", _current_vo);
}
if (b.skip_end > 0)
_end_vo = VirtualOffset(b.block.start_offset, cast(ushort)to);
else
_end_vo = VirtualOffset(b.block.end_offset, 0);
_tasks.popFront();
}
void setEOF() {
_current_vo = _end_vo;
readEOF = true;
}
}
this(BgzfBlockSupplier supplier,
TaskPool pool=taskPool,
BgzfBlockCache cache=null,
size_t buffer_size=0)
{
_supplier = supplier;
_compressed_size = _supplier.totalCompressedSize();
_pool = pool;
_cache = cache;
size_t n_tasks = max(pool.size, 1) * 2;
if (buffer_size > 0)
n_tasks = max(n_tasks, buffer_size / BGZF_MAX_BLOCK_SIZE);
_tasks = RoundBuf!BlockAux(n_tasks);
_task_buf = uninitializedArray!(DecompressionTask[])(n_tasks);
_data = uninitializedArray!(ubyte[])(n_tasks * _max_block_size);
for (size_t i = 0; i < n_tasks; ++i)
if (!fillNextBlock())
break;
if (!_tasks.empty) {
setupReadBuffer();
}
}
VirtualOffset virtualTell() const {
return _current_vo;
}
override ulong seek(long offset, SeekPos whence) {
throw new SeekException("Stream is not seekable");
}
override size_t writeBlock(const void* buf, size_t size) {
throw new WriteException("Stream is not writeable");
}
override size_t readBlock(void* buf, size_t size) {
version(extraVerbose) {
import std.stdio;
// stderr.writeln("[uncompressed] reading ", size, " bytes to address ", buf);
}
if (_read_buffer.length == 0) {
assert(_tasks.empty);
setEOF();
return 0;
}
auto buffer = cast(ubyte*)buf;
auto len = min(size, _read_buffer.length);
buffer[0 .. len] = _read_buffer[0 .. len];
version(extraVerbose) {
// stderr.writeln("[uncompressed] [read] range: ", _read_buffer.ptr, " - ", _read_buffer.ptr + len);
}
_read_buffer = _read_buffer[len .. $];
_current_vo = VirtualOffset(cast(ulong)_current_vo + len);
if (_read_buffer.length == 0) {
_current_vo = _end_vo;
if (!_tasks.empty) {
setupReadBuffer();
if (!readEOF)
fillNextBlock();
}
else
setEOF();
}
return len;
}
size_t total_compressed_size() @property const {
return _compressed_size;
}
float average_compression_ratio() @property const {
if (_compressed_read == 0)
return 0.0;
return cast(float)_uncompressed_read / _compressed_read;
}
}
|
D
|
module UnrealScript.TribesGame.GFxTrPage_GameMapSetup;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.TribesGame.GFxTrPage;
import UnrealScript.GFxUI.GFxObject;
extern(C++) interface GFxTrPage_GameMapSetup : GFxTrPage
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class TribesGame.GFxTrPage_GameMapSetup")); }
private static __gshared GFxTrPage_GameMapSetup mDefaultProperties;
@property final static GFxTrPage_GameMapSetup DefaultProperties() { mixin(MGDPC("GFxTrPage_GameMapSetup", "GFxTrPage_GameMapSetup TribesGame.Default__GFxTrPage_GameMapSetup")); }
static struct Functions
{
private static __gshared
{
ScriptFunction mInitialize;
ScriptFunction mFillData;
ScriptFunction mFillOption;
ScriptFunction mCheckDescription;
ScriptFunction mFillDescription;
}
public @property static final
{
ScriptFunction Initialize() { mixin(MGF("mInitialize", "Function TribesGame.GFxTrPage_GameMapSetup.Initialize")); }
ScriptFunction FillData() { mixin(MGF("mFillData", "Function TribesGame.GFxTrPage_GameMapSetup.FillData")); }
ScriptFunction FillOption() { mixin(MGF("mFillOption", "Function TribesGame.GFxTrPage_GameMapSetup.FillOption")); }
ScriptFunction CheckDescription() { mixin(MGF("mCheckDescription", "Function TribesGame.GFxTrPage_GameMapSetup.CheckDescription")); }
ScriptFunction FillDescription() { mixin(MGF("mFillDescription", "Function TribesGame.GFxTrPage_GameMapSetup.FillDescription")); }
}
}
final:
void Initialize()
{
(cast(ScriptObject)this).ProcessEvent(Functions.Initialize, cast(void*)0, cast(void*)0);
}
void FillData(GFxObject DataList)
{
ubyte params[4];
params[] = 0;
*cast(GFxObject*)params.ptr = DataList;
(cast(ScriptObject)this).ProcessEvent(Functions.FillData, params.ptr, cast(void*)0);
}
GFxObject FillOption(int ActionIndex)
{
ubyte params[8];
params[] = 0;
*cast(int*)params.ptr = ActionIndex;
(cast(ScriptObject)this).ProcessEvent(Functions.FillOption, params.ptr, cast(void*)0);
return *cast(GFxObject*)¶ms[4];
}
void CheckDescription(GFxObject DataList)
{
ubyte params[4];
params[] = 0;
*cast(GFxObject*)params.ptr = DataList;
(cast(ScriptObject)this).ProcessEvent(Functions.CheckDescription, params.ptr, cast(void*)0);
}
GFxObject FillDescription(GFxObject DataList)
{
ubyte params[8];
params[] = 0;
*cast(GFxObject*)params.ptr = DataList;
(cast(ScriptObject)this).ProcessEvent(Functions.FillDescription, params.ptr, cast(void*)0);
return *cast(GFxObject*)¶ms[4];
}
}
|
D
|
import std.stdio, std.conv, std.string;
void main() {
int a = to!int(chomp(readln()));
string[] input = split(readln());
int b = to!int(input[0]);
int c = to!int(input[1]);
string s = chomp(readln());
writefln("%d %s", a+b+c, s);
}
|
D
|
/**
* Main module
*
* Include it to use common functions.
*/
module dpq2;
import derelict.pq.pq;
debug import std.experimental.logger;
version(DerelictPQ_Static){}
else
{
static __gshared bool __initialized;
static this()
{
import std.concurrency : initOnce;
initOnce!__initialized({
debug
{
trace("DerelictPQ loading...");
}
DerelictPQ.load();
debug
{
trace("...DerelictPQ loading finished");
}
return true;
}());
}
}
public
{
import dpq2.connection;
import dpq2.query;
import dpq2.result;
import dpq2.oids;
}
|
D
|
void main() {
auto ip = readAs!(int[]), N = ip[0], X = ip[1];
auto x = readAs!(int[]).map!(i => i - X).map!(i => i.abs);
auto c = x[0];
foreach(i; x[1..$]) {
if(i%c != 0 && c%i != 0) c = gcd(i, c);
else if(i%c != 0) c = i;
//c.writeln;
}
c.writeln;
}
// ===================================
import std.stdio;
import std.string;
import std.functional;
import std.conv;
import std.algorithm;
import std.range;
import std.traits;
import std.math;
import std.container;
import std.bigint;
import std.numeric;
import std.conv;
import std.typecons;
import std.uni;
import std.ascii;
import std.bitmanip;
import core.bitop;
T readAs(T)() if (isBasicType!T) {
return readln.chomp.to!T;
}
T readAs(T)() if (isArray!T) {
return readln.split.to!T;
}
T[][] readMatrix(T)(uint height, uint width) if (!isSomeChar!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
res[i] = readAs!(T[]);
}
return res;
}
T[][] readMatrix(T)(uint height, uint width) if (isSomeChar!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
auto s = rs;
foreach(j; 0..width) res[i][j] = s[j].to!T;
}
return res;
}
int ri() {
return readAs!int;
}
double rd() {
return readAs!double;
}
string rs() {
return readln.chomp;
}
|
D
|
/*
* Create menu item from script instance name
* Source: https://github.com/szapp/Ninja/wiki/Inject-Changes
*/
func int OwnTeleports_CreateMenuItem(var string scriptName) { // Adjust name
const int zCMenuItem__Create_G1 = 5052784; //0x4D1970
const int zCMenuItem__Create_G2 = 5105600; //0x4DE7C0
var int strPtr; strPtr = _@s(scriptName);
const int call = 0;
if (CALL_Begin(call)) {
CALL_PtrParam(_@(strPtr));
CALL_PutRetValTo(_@(ret));
CALL__cdecl(MEMINT_SwitchG1G2(zCMenuItem__Create_G1,
zCMenuItem__Create_G2));
call = CALL_End();
};
var int ret;
return +ret;
};
/*
* Copy essential properties from one to another menu entry
* Source: https://github.com/szapp/Ninja/wiki/Inject-Changes
*/
func void OwnTeleports_CopyMenuItemProperties(var int dstPtr, var int srcPtr) {
if (!dstPtr) || (!srcPtr) {
return;
};
var zCMenuItem src; src = _^(srcPtr);
var zCMenuItem dst; dst = _^(dstPtr);
dst.m_parPosX = src.m_parPosX;
dst.m_parPosY = src.m_parPosY;
dst.m_parDimX = src.m_parDimX;
dst.m_parDimY = src.m_parDimY;
dst.m_pFont = src.m_pFont;
dst.m_pFontSel = src.m_pFontSel;
dst.m_parBackPic = src.m_parBackPic;
};
/*
* Get maximum menu item height
* Source: https://github.com/szapp/Ninja/wiki/Inject-Changes
*/
func int OwnTeleports_MenuItemGetHeight(var int itmPtr) { // Adjust name
if (!itmPtr) {
return 0;
};
var zCMenuItem itm; itm = _^(itmPtr);
var int fontPtr; fontPtr = itm.m_pFont;
const int zCFont__GetFontY_G1 = 7209472; //0x6E0200
const int zCFont__GetFontY_G2 = 7902432; //0x7894E0
var int fontHeight;
const int call = 0;
if (CALL_Begin(call)) {
CALL__thiscall(_@(fontPtr), MEMINT_SwitchG1G2(zCFont__GetFontY_G1,
zCFont__GetFontY_G2));
CALL_PutRetValTo(_@(fontHeight));
call = CALL_End();
};
// Transform to virtual pixels
MEM_InitGlobalInst();
var zCView screen; screen = _^(MEM_Game._zCSession_viewport);
fontHeight *= 8192 / screen.psizey;
if (fontHeight > itm.m_parDimY) {
return fontHeight;
} else {
return itm.m_parDimY;
};
};
/*
* Insert value into array at specific position
* Source: https://github.com/szapp/Ninja/wiki/Inject-Changes
*/
func void OwnTeleports_ArrayInsertAtPos(var int zCArray_ptr,
var int pos,
var int value) { // Adjust name
const int zCArray__InsertAtPos_G1 = 6267728; //0x5FA350
const int zCArray__InsertAtPos_G2 = 6458144; //0x628B20
var int valuePtr; valuePtr = _@(value);
const int call = 0;
if (CALL_Begin(call)) {
CALL_IntParam(_@(pos));
CALL_PtrParam(_@(valuePtr));
CALL__thiscall(_@(zCArray_ptr), MEMINT_SwitchG1G2(zCArray__InsertAtPos_G1,
zCArray__InsertAtPos_G2));
call = CALL_End();
};
};
|
D
|
a safe place
something or someone turned to for assistance or security
a shelter from danger or hardship
act of turning to for assistance
|
D
|
module renderer.cvars;
struct CVars {
double profile = 0; // 2 shows the recorded frames, 1 shows the profiler, 0 hides it
double r_info = 1; // 0 = no renderer information is shown, 1 = fps and sps are shown, 2 = position and query box are printed additionaly
double recordFrames = 0; // number of frames to record
}
|
D
|
/**
DMD compiler support.
Copyright: © 2013-2013 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.compilers.dmd;
import dub.compilers.compiler;
import dub.internal.utils;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.inet.path;
import dub.platform;
import std.algorithm;
import std.array;
import std.conv;
import std.exception;
import std.file;
import std.process;
import std.random;
import std.typecons;
class DmdCompiler : Compiler {
private static immutable s_options = [
tuple(BuildOptions.debugMode, ["-debug"]),
tuple(BuildOptions.releaseMode, ["-release"]),
tuple(BuildOptions.coverage, ["-cov"]),
tuple(BuildOptions.debugInfo, ["-g"]),
tuple(BuildOptions.debugInfoC, ["-gc"]),
tuple(BuildOptions.alwaysStackFrame, ["-gs"]),
tuple(BuildOptions.stackStomping, ["-gx"]),
tuple(BuildOptions.inline, ["-inline"]),
tuple(BuildOptions.noBoundsCheck, ["-noboundscheck"]),
tuple(BuildOptions.optimize, ["-O"]),
tuple(BuildOptions.profile, ["-profile"]),
tuple(BuildOptions.unittests, ["-unittest"]),
tuple(BuildOptions.verbose, ["-v"]),
tuple(BuildOptions.ignoreUnknownPragmas, ["-ignore"]),
tuple(BuildOptions.syntaxOnly, ["-o-"]),
tuple(BuildOptions.warnings, ["-wi"]),
tuple(BuildOptions.warningsAsErrors, ["-w"]),
tuple(BuildOptions.ignoreDeprecations, ["-d"]),
tuple(BuildOptions.deprecationWarnings, ["-dw"]),
tuple(BuildOptions.deprecationErrors, ["-de"]),
tuple(BuildOptions.property, ["-property"]),
];
@property string name() const { return "dmd"; }
BuildPlatform determinePlatform(ref BuildSettings settings, string compiler_binary, string arch_override)
{
import std.process;
import std.string;
auto fil = generatePlatformProbeFile();
string[] arch_flags;
switch (arch_override) {
default: throw new Exception("Unsupported architecture: "~arch_override);
case "": break;
case "x86": arch_flags = ["-m32"]; break;
case "x86_64": arch_flags = ["-m64"]; break;
}
settings.addDFlags(arch_flags);
auto result = execute(compiler_binary ~ arch_flags ~ ["-quiet", "-run", fil.toNativeString()]);
enforce(result.status == 0, format("Failed to invoke the compiler %s to determine the build platform: %s",
compiler_binary, result.output));
auto build_platform = readPlatformProbe(result.output);
build_platform.compilerBinary = compiler_binary;
if (build_platform.compiler != this.name) {
logWarn(`The determined compiler type "%s" doesn't match the expected type "%s". This will probably result in build errors.`,
build_platform.compiler, this.name);
}
if (arch_override.length && !build_platform.architecture.canFind(arch_override)) {
logWarn(`Failed to apply the selected architecture %s. Got %s.`,
arch_override, build_platform.architecture);
}
return build_platform;
}
void prepareBuildSettings(ref BuildSettings settings, BuildSetting fields = BuildSetting.all)
{
enforceBuildRequirements(settings);
if (!(fields & BuildSetting.options)) {
foreach (t; s_options)
if (settings.options & t[0])
settings.addDFlags(t[1]);
}
if (!(fields & BuildSetting.versions)) {
settings.addDFlags(settings.versions.map!(s => "-version="~s)().array());
settings.versions = null;
}
if (!(fields & BuildSetting.debugVersions)) {
settings.addDFlags(settings.debugVersions.map!(s => "-debug="~s)().array());
settings.debugVersions = null;
}
if (!(fields & BuildSetting.importPaths)) {
settings.addDFlags(settings.importPaths.map!(s => "-I"~s)().array());
settings.importPaths = null;
}
if (!(fields & BuildSetting.stringImportPaths)) {
settings.addDFlags(settings.stringImportPaths.map!(s => "-J"~s)().array());
settings.stringImportPaths = null;
}
if (!(fields & BuildSetting.sourceFiles)) {
settings.addDFlags(settings.sourceFiles);
settings.sourceFiles = null;
}
if (!(fields & BuildSetting.libs)) {
resolveLibs(settings);
version(Windows) settings.addSourceFiles(settings.libs.map!(l => l~".lib")().array());
else settings.addLFlags(settings.libs.map!(l => "-l"~l)().array());
}
if (!(fields & BuildSetting.lflags)) {
settings.addDFlags(settings.lflags.map!(f => "-L"~f)().array());
settings.lflags = null;
}
assert(fields & BuildSetting.dflags);
assert(fields & BuildSetting.copyFiles);
}
void extractBuildOptions(ref BuildSettings settings)
{
Appender!(string[]) newflags;
next_flag: foreach (f; settings.dflags) {
foreach (t; s_options)
if (t[1].canFind(f)) {
settings.options |= t[0];
continue next_flag;
}
if (f.startsWith("-version=")) settings.addVersions(f[9 .. $]);
else if (f.startsWith("-debug=")) settings.addDebugVersions(f[7 .. $]);
else newflags ~= f;
}
settings.dflags = newflags.data;
}
void setTarget(ref BuildSettings settings, in BuildPlatform platform)
{
final switch (settings.targetType) {
case TargetType.autodetect: assert(false, "Invalid target type: autodetect");
case TargetType.none: assert(false, "Invalid target type: none");
case TargetType.sourceLibrary: assert(false, "Invalid target type: sourceLibrary");
case TargetType.executable: break;
case TargetType.library:
case TargetType.staticLibrary:
settings.addDFlags("-lib");
break;
case TargetType.dynamicLibrary:
version (Windows) settings.addDFlags("-shared");
else settings.addDFlags("-shared", "-fPIC");
break;
}
auto tpath = Path(settings.targetPath) ~ getTargetFileName(settings, platform);
settings.addDFlags("-of"~tpath.toNativeString());
}
void invoke(in BuildSettings settings, in BuildPlatform platform, void delegate(int, string) output_callback)
{
auto res_file = getTempDir() ~ ("dub-build-"~uniform(0, uint.max).to!string~"-.rsp");
std.file.write(res_file.toNativeString(), join(settings.dflags.map!(s => s.canFind(' ') ? "\""~s~"\"" : s), "\n"));
scope (exit) remove(res_file.toNativeString());
logDiagnostic("%s %s", platform.compilerBinary, join(cast(string[])settings.dflags, " "));
invokeTool([platform.compilerBinary, "@"~res_file.toNativeString()], output_callback);
}
void invokeLinker(in BuildSettings settings, in BuildPlatform platform, string[] objects, void delegate(int, string) output_callback)
{
import std.string;
auto tpath = Path(settings.targetPath) ~ getTargetFileName(settings, platform);
auto args = [platform.compiler, "-of"~tpath.toNativeString()];
args ~= objects;
args ~= settings.sourceFiles;
version(linux) args ~= "-L--no-as-needed"; // avoids linker errors due to libraries being speficied in the wrong order by DMD
args ~= settings.lflags.map!(l => "-L"~l)().array;
args ~= settings.dflags.filter!(f => isLinkerDFlag(f)).array;
logDiagnostic("%s", args.join(" "));
invokeTool(args, output_callback);
}
private static bool isLinkerDFlag(string arg)
{
switch (arg) {
default:
if (arg.startsWith("-defaultlib=")) return true;
return false;
case "-g", "-gc", "-m32", "-m64", "-shared":
return true;
}
}
}
|
D
|
/**
* Performs inlining, which is an optimization pass enabled with the `-inline` flag.
*
* The AST is traversed, and every function call is considered for inlining using `inlinecost.d`.
* The function call is then inlined if this cost is below a threshold.
*
* 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.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/inline.d, _inline.d)
* Documentation: https://dlang.org/phobos/dmd_inline.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/inline.d
*/
module dmd.inline;
import core.stdc.stdio;
import core.stdc.string;
import dmd.aggregate;
import dmd.apply;
import dmd.arraytypes;
import dmd.attrib;
import dmd.declaration;
import dmd.dmodule;
import dmd.dscope;
import dmd.dstruct;
import dmd.dsymbol;
import dmd.dtemplate;
import dmd.expression;
import dmd.errors;
import dmd.func;
import dmd.globals;
import dmd.id;
import dmd.identifier;
import dmd.init;
import dmd.initsem;
import dmd.mtype;
import dmd.opover;
import dmd.statement;
import dmd.tokens;
import dmd.visitor;
import dmd.inlinecost;
/***********************************************************
* Scan function implementations in Module m looking for functions that can be inlined,
* and inline them in situ.
*
* Params:
* m = module to scan
*/
public void inlineScanModule(Module m)
{
if (m.semanticRun != PASS.semantic3done)
return;
m.semanticRun = PASS.inline;
// Note that modules get their own scope, from scratch.
// This is so regardless of where in the syntax a module
// gets imported, it is unaffected by context.
//printf("Module = %p\n", m.sc.scopesym);
foreach (i; 0 .. m.members.dim)
{
Dsymbol s = (*m.members)[i];
//if (global.params.verbose)
// message("inline scan symbol %s", s.toChars());
scope InlineScanVisitor v = new InlineScanVisitor();
s.accept(v);
}
m.semanticRun = PASS.inlinedone;
}
/***********************************************************
* Perform the "inline copying" of a default argument for a function parameter.
*
* Todo:
* The hack for bugzilla 4820 case is still questionable. Perhaps would have to
* handle a delegate expression with 'null' context properly in front-end.
*/
public Expression inlineCopy(Expression e, Scope* sc)
{
/* See https://issues.dlang.org/show_bug.cgi?id=2935
* for explanation of why just a copy() is broken
*/
//return e.copy();
if (auto de = e.isDelegateExp())
{
if (de.func.isNested())
{
/* https://issues.dlang.org/show_bug.cgi?id=4820
* Defer checking until later if we actually need the 'this' pointer
*/
return de.copy();
}
}
int cost = inlineCostExpression(e);
if (cost >= COST_MAX)
{
e.error("cannot inline default argument `%s`", e.toChars());
return ErrorExp.get();
}
scope ids = new InlineDoState(sc.parent, null);
return doInlineAs!Expression(e, ids);
}
private:
enum LOG = false;
enum CANINLINE_LOG = false;
enum EXPANDINLINE_LOG = false;
/***********************************************************
* Represent a context to inline statements and expressions.
*
* Todo:
* It would be better to make foundReturn an instance field of DoInlineAs visitor class,
* like as DoInlineAs!Result.result field, because it's one another result of inlining.
* The best would be to return a pair of result Expression and a bool value as foundReturn
* from doInlineAs function.
*/
private final class InlineDoState
{
// inline context
VarDeclaration vthis;
Dsymbols from; // old Dsymbols
Dsymbols to; // parallel array of new Dsymbols
Dsymbol parent; // new parent
FuncDeclaration fd; // function being inlined (old parent)
// inline result
bool foundReturn;
this(Dsymbol parent, FuncDeclaration fd)
{
this.parent = parent;
this.fd = fd;
}
}
/***********************************************************
* Perform the inlining from (Statement or Expression) to (Statement or Expression).
*
* Inlining is done by:
* - Converting to an Expression
* - Copying the trees of the function to be inlined
* - Renaming the variables
*/
private extern (C++) final class DoInlineAs(Result) : Visitor
if (is(Result == Statement) || is(Result == Expression))
{
alias visit = Visitor.visit;
public:
InlineDoState ids;
Result result;
enum asStatements = is(Result == Statement);
extern (D) this(InlineDoState ids)
{
this.ids = ids;
}
// Statement -> (Statement | Expression)
override void visit(Statement s)
{
printf("Statement.doInlineAs!%s()\n%s\n", Result.stringof.ptr, s.toChars());
fflush(stdout);
assert(0); // default is we can't inline it
}
override void visit(ExpStatement s)
{
static if (LOG)
{
if (s.exp)
printf("ExpStatement.doInlineAs!%s() '%s'\n", Result.stringof.ptr, s.exp.toChars());
}
auto exp = doInlineAs!Expression(s.exp, ids);
static if (asStatements)
result = new ExpStatement(s.loc, exp);
else
result = exp;
}
override void visit(CompoundStatement s)
{
//printf("CompoundStatement.doInlineAs!%s() %d\n", Result.stringof.ptr, s.statements.dim);
static if (asStatements)
{
auto as = new Statements();
as.reserve(s.statements.dim);
}
foreach (i, sx; *s.statements)
{
if (!sx)
continue;
static if (asStatements)
{
as.push(doInlineAs!Statement(sx, ids));
}
else
{
/* Specifically allow:
* if (condition)
* return exp1;
* return exp2;
*/
IfStatement ifs;
Statement s3;
if ((ifs = sx.isIfStatement()) !is null &&
ifs.ifbody &&
ifs.ifbody.endsWithReturnStatement() &&
!ifs.elsebody &&
i + 1 < s.statements.dim &&
(s3 = (*s.statements)[i + 1]) !is null &&
s3.endsWithReturnStatement()
)
{
/* Rewrite as ?:
*/
auto econd = doInlineAs!Expression(ifs.condition, ids);
assert(econd);
auto e1 = doInlineAs!Expression(ifs.ifbody, ids);
assert(ids.foundReturn);
auto e2 = doInlineAs!Expression(s3, ids);
Expression e = new CondExp(econd.loc, econd, e1, e2);
e.type = e1.type;
if (e.type.ty == Ttuple)
{
e1.type = Type.tvoid;
e2.type = Type.tvoid;
e.type = Type.tvoid;
}
result = Expression.combine(result, e);
}
else
{
auto e = doInlineAs!Expression(sx, ids);
result = Expression.combine(result, e);
}
}
if (ids.foundReturn)
break;
}
static if (asStatements)
result = new CompoundStatement(s.loc, as);
}
override void visit(UnrolledLoopStatement s)
{
//printf("UnrolledLoopStatement.doInlineAs!%s() %d\n", Result.stringof.ptr, s.statements.dim);
static if (asStatements)
{
auto as = new Statements();
as.reserve(s.statements.dim);
}
foreach (sx; *s.statements)
{
if (!sx)
continue;
auto r = doInlineAs!Result(sx, ids);
static if (asStatements)
as.push(r);
else
result = Expression.combine(result, r);
if (ids.foundReturn)
break;
}
static if (asStatements)
result = new UnrolledLoopStatement(s.loc, as);
}
override void visit(ScopeStatement s)
{
//printf("ScopeStatement.doInlineAs!%s() %d\n", Result.stringof.ptr, s.statement.dim);
auto r = doInlineAs!Result(s.statement, ids);
static if (asStatements)
result = new ScopeStatement(s.loc, r, s.endloc);
else
result = r;
}
override void visit(IfStatement s)
{
assert(!s.prm);
auto econd = doInlineAs!Expression(s.condition, ids);
assert(econd);
auto ifbody = doInlineAs!Result(s.ifbody, ids);
bool bodyReturn = ids.foundReturn;
ids.foundReturn = false;
auto elsebody = doInlineAs!Result(s.elsebody, ids);
static if (asStatements)
{
result = new IfStatement(s.loc, s.prm, econd, ifbody, elsebody, s.endloc);
}
else
{
alias e1 = ifbody;
alias e2 = elsebody;
if (e1 && e2)
{
result = new CondExp(econd.loc, econd, e1, e2);
result.type = e1.type;
if (result.type.ty == Ttuple)
{
e1.type = Type.tvoid;
e2.type = Type.tvoid;
result.type = Type.tvoid;
}
}
else if (e1)
{
result = new LogicalExp(econd.loc, TOK.andAnd, econd, e1);
result.type = Type.tvoid;
}
else if (e2)
{
result = new LogicalExp(econd.loc, TOK.orOr, econd, e2);
result.type = Type.tvoid;
}
else
{
result = econd;
}
}
ids.foundReturn = ids.foundReturn && bodyReturn;
}
override void visit(ReturnStatement s)
{
//printf("ReturnStatement.doInlineAs!%s() '%s'\n", Result.stringof.ptr, s.exp ? s.exp.toChars() : "");
ids.foundReturn = true;
auto exp = doInlineAs!Expression(s.exp, ids);
if (!exp) // https://issues.dlang.org/show_bug.cgi?id=14560
// 'return' must not leave in the expand result
return;
static if (asStatements)
{
/* Any return statement should be the last statement in the function being
* inlined, otherwise things shouldn't have gotten this far. Since the
* return value is being ignored (otherwise it wouldn't be inlined as a statement)
* we only need to evaluate `exp` for side effects.
* Already disallowed this if `exp` produces an object that needs destruction -
* an enhancement would be to do the destruction here.
*/
result = new ExpStatement(s.loc, exp);
}
else
result = exp;
}
override void visit(ImportStatement s)
{
}
override void visit(ForStatement s)
{
//printf("ForStatement.doInlineAs!%s()\n", Result.stringof.ptr);
static if (asStatements)
{
auto sinit = doInlineAs!Statement(s._init, ids);
auto scond = doInlineAs!Expression(s.condition, ids);
auto sincr = doInlineAs!Expression(s.increment, ids);
auto sbody = doInlineAs!Statement(s._body, ids);
result = new ForStatement(s.loc, sinit, scond, sincr, sbody, s.endloc);
}
else
result = null; // cannot be inlined as an Expression
}
override void visit(ThrowStatement s)
{
//printf("ThrowStatement.doInlineAs!%s() '%s'\n", Result.stringof.ptr, s.exp.toChars());
static if (asStatements)
result = new ThrowStatement(s.loc, doInlineAs!Expression(s.exp, ids));
else
result = null; // cannot be inlined as an Expression
}
// Expression -> (Statement | Expression)
static if (asStatements)
{
override void visit(Expression e)
{
result = new ExpStatement(e.loc, doInlineAs!Expression(e, ids));
}
}
else
{
/******************************
* Perform doInlineAs() on an array of Expressions.
*/
Expressions* arrayExpressionDoInline(Expressions* a)
{
if (!a)
return null;
auto newa = new Expressions(a.dim);
foreach (i; 0 .. a.dim)
{
(*newa)[i] = doInlineAs!Expression((*a)[i], ids);
}
return newa;
}
override void visit(Expression e)
{
//printf("Expression.doInlineAs!%s(%s): %s\n", Result.stringof.ptr, Token.toChars(e.op), e.toChars());
result = e.copy();
}
override void visit(SymOffExp e)
{
//printf("SymOffExp.doInlineAs!%s(%s)\n", Result.stringof.ptr, e.toChars());
foreach (i; 0 .. ids.from.dim)
{
if (e.var != ids.from[i])
continue;
auto se = e.copy().isSymOffExp();
se.var = ids.to[i].isDeclaration();
result = se;
return;
}
result = e;
}
override void visit(VarExp e)
{
//printf("VarExp.doInlineAs!%s(%s)\n", Result.stringof.ptr, e.toChars());
foreach (i; 0 .. ids.from.dim)
{
if (e.var != ids.from[i])
continue;
auto ve = e.copy().isVarExp();
ve.var = ids.to[i].isDeclaration();
result = ve;
return;
}
if (ids.fd && e.var == ids.fd.vthis)
{
result = new VarExp(e.loc, ids.vthis);
if (ids.fd.isThis2)
result = new AddrExp(e.loc, result);
result.type = e.type;
return;
}
/* Inlining context pointer access for nested referenced variables.
* For example:
* auto fun() {
* int i = 40;
* auto foo() {
* int g = 2;
* struct Result {
* auto bar() { return i + g; }
* }
* return Result();
* }
* return foo();
* }
* auto t = fun();
* 'i' and 'g' are nested referenced variables in Result.bar(), so:
* auto x = t.bar();
* should be inlined to:
* auto x = *(t.vthis.vthis + i.voffset) + *(t.vthis + g.voffset)
*/
auto v = e.var.isVarDeclaration();
if (v && v.nestedrefs.dim && ids.vthis)
{
Dsymbol s = ids.fd;
auto fdv = v.toParent().isFuncDeclaration();
assert(fdv);
result = new VarExp(e.loc, ids.vthis);
result.type = ids.vthis.type;
if (ids.fd.isThis2)
{
// &__this
result = new AddrExp(e.loc, result);
result.type = ids.vthis.type.pointerTo();
}
while (s != fdv)
{
auto f = s.isFuncDeclaration();
AggregateDeclaration ad;
if (f && f.isThis2)
{
if (f.hasNestedFrameRefs())
{
result = new DotVarExp(e.loc, result, f.vthis);
result.type = f.vthis.type;
}
// (*__this)[i]
uint i = f.followInstantiationContext(fdv);
if (i == 1 && f == ids.fd)
{
auto ve = e.copy().isVarExp();
ve.originalScope = ids.fd;
result = ve;
return;
}
result = new PtrExp(e.loc, result);
result.type = Type.tvoidptr.sarrayOf(2);
auto ie = new IndexExp(e.loc, result, new IntegerExp(i));
ie.indexIsInBounds = true; // no runtime bounds checking
result = ie;
result.type = Type.tvoidptr;
s = f.toParentP(fdv);
ad = s.isAggregateDeclaration();
if (ad)
goto Lad;
continue;
}
else if ((ad = s.isThis()) !is null)
{
Lad:
while (ad)
{
assert(ad.vthis);
bool i = ad.followInstantiationContext(fdv);
auto vthis = i ? ad.vthis2 : ad.vthis;
result = new DotVarExp(e.loc, result, vthis);
result.type = vthis.type;
s = ad.toParentP(fdv);
ad = s.isAggregateDeclaration();
}
}
else if (f && f.isNested())
{
assert(f.vthis);
if (f.hasNestedFrameRefs())
{
result = new DotVarExp(e.loc, result, f.vthis);
result.type = f.vthis.type;
}
s = f.toParent2();
}
else
assert(0);
assert(s);
}
result = new DotVarExp(e.loc, result, v);
result.type = v.type;
//printf("\t==> result = %s, type = %s\n", result.toChars(), result.type.toChars());
return;
}
else if (v && v.nestedrefs.dim)
{
auto ve = e.copy().isVarExp();
ve.originalScope = ids.fd;
result = ve;
return;
}
result = e;
}
override void visit(ThisExp e)
{
//if (!ids.vthis)
// e.error("no `this` when inlining `%s`", ids.parent.toChars());
if (!ids.vthis)
{
result = e;
return;
}
result = new VarExp(e.loc, ids.vthis);
if (ids.fd.isThis2)
{
// __this[0]
result.type = ids.vthis.type;
auto ie = new IndexExp(e.loc, result, IntegerExp.literal!0);
ie.indexIsInBounds = true; // no runtime bounds checking
result = ie;
if (e.type.ty == Tstruct)
{
result.type = e.type.pointerTo();
result = new PtrExp(e.loc, result);
}
}
result.type = e.type;
}
override void visit(SuperExp e)
{
assert(ids.vthis);
result = new VarExp(e.loc, ids.vthis);
if (ids.fd.isThis2)
{
// __this[0]
result.type = ids.vthis.type;
auto ie = new IndexExp(e.loc, result, IntegerExp.literal!0);
ie.indexIsInBounds = true; // no runtime bounds checking
result = ie;
}
result.type = e.type;
}
override void visit(DeclarationExp e)
{
//printf("DeclarationExp.doInlineAs!%s(%s)\n", Result.stringof.ptr, e.toChars());
if (auto vd = e.declaration.isVarDeclaration())
{
version (none)
{
// Need to figure this out before inlining can work for tuples
if (auto tup = vd.toAlias().isTupleDeclaration())
{
foreach (i; 0 .. tup.objects.dim)
{
DsymbolExp se = (*tup.objects)[i];
assert(se.op == TOK.dSymbol);
se.s;
}
result = st.objects.dim;
return;
}
}
if (vd.isStatic())
return;
if (ids.fd && vd == ids.fd.nrvo_var)
{
foreach (i; 0 .. ids.from.dim)
{
if (vd != ids.from[i])
continue;
if (vd._init && !vd._init.isVoidInitializer())
{
result = vd._init.initializerToExpression();
assert(result);
result = doInlineAs!Expression(result, ids);
}
else
result = IntegerExp.literal!0;
return;
}
}
auto vto = new VarDeclaration(vd.loc, vd.type, vd.ident, vd._init);
memcpy(cast(void*)vto, cast(void*)vd, __traits(classInstanceSize, VarDeclaration));
vto.parent = ids.parent;
vto.csym = null;
vto.isym = null;
ids.from.push(vd);
ids.to.push(vto);
if (vd._init)
{
if (vd._init.isVoidInitializer())
{
vto._init = new VoidInitializer(vd._init.loc);
}
else
{
auto ei = vd._init.initializerToExpression();
assert(ei);
vto._init = new ExpInitializer(ei.loc, doInlineAs!Expression(ei, ids));
}
}
if (vd.edtor)
{
vto.edtor = doInlineAs!Expression(vd.edtor, ids);
}
auto de = e.copy().isDeclarationExp();
de.declaration = vto;
result = de;
return;
}
// Prevent the copy of the aggregates allowed in inlineable funcs
if (isInlinableNestedAggregate(e))
return;
/* This needs work, like DeclarationExp.toElem(), if we are
* to handle TemplateMixin's. For now, we just don't inline them.
*/
visit(cast(Expression)e);
}
override void visit(TypeidExp e)
{
//printf("TypeidExp.doInlineAs!%s(): %s\n", Result.stringof.ptr, e.toChars());
auto te = e.copy().isTypeidExp();
if (auto ex = isExpression(te.obj))
{
te.obj = doInlineAs!Expression(ex, ids);
}
else
assert(isType(te.obj));
result = te;
}
override void visit(NewExp e)
{
//printf("NewExp.doInlineAs!%s(): %s\n", Result.stringof.ptr, e.toChars());
auto ne = e.copy().isNewExp();
ne.thisexp = doInlineAs!Expression(e.thisexp, ids);
ne.argprefix = doInlineAs!Expression(e.argprefix, ids);
ne.newargs = arrayExpressionDoInline(e.newargs);
ne.arguments = arrayExpressionDoInline(e.arguments);
result = ne;
semanticTypeInfo(null, e.type);
}
override void visit(DeleteExp e)
{
visit(cast(UnaExp)e);
Type tb = e.e1.type.toBasetype();
if (tb.ty == Tarray)
{
Type tv = tb.nextOf().baseElemOf();
if (auto ts = tv.isTypeStruct())
{
auto sd = ts.sym;
if (sd.dtor)
semanticTypeInfo(null, ts);
}
}
}
override void visit(UnaExp e)
{
auto ue = cast(UnaExp)e.copy();
ue.e1 = doInlineAs!Expression(e.e1, ids);
result = ue;
}
override void visit(AssertExp e)
{
auto ae = e.copy().isAssertExp();
ae.e1 = doInlineAs!Expression(e.e1, ids);
ae.msg = doInlineAs!Expression(e.msg, ids);
result = ae;
}
override void visit(BinExp e)
{
auto be = cast(BinExp)e.copy();
be.e1 = doInlineAs!Expression(e.e1, ids);
be.e2 = doInlineAs!Expression(e.e2, ids);
result = be;
}
override void visit(CallExp e)
{
auto ce = e.copy().isCallExp();
ce.e1 = doInlineAs!Expression(e.e1, ids);
ce.arguments = arrayExpressionDoInline(e.arguments);
result = ce;
}
override void visit(AssignExp e)
{
visit(cast(BinExp)e);
if (auto ale = e.e1.isArrayLengthExp())
{
Type tn = ale.e1.type.toBasetype().nextOf();
semanticTypeInfo(null, tn);
}
}
override void visit(EqualExp e)
{
visit(cast(BinExp)e);
Type t1 = e.e1.type.toBasetype();
if (t1.ty == Tarray || t1.ty == Tsarray)
{
Type t = t1.nextOf().toBasetype();
while (t.toBasetype().nextOf())
t = t.nextOf().toBasetype();
if (t.ty == Tstruct)
semanticTypeInfo(null, t);
}
else if (t1.ty == Taarray)
{
semanticTypeInfo(null, t1);
}
}
override void visit(IndexExp e)
{
auto are = e.copy().isIndexExp();
are.e1 = doInlineAs!Expression(e.e1, ids);
if (e.lengthVar)
{
//printf("lengthVar\n");
auto vd = e.lengthVar;
auto vto = new VarDeclaration(vd.loc, vd.type, vd.ident, vd._init);
memcpy(cast(void*)vto, cast(void*)vd, __traits(classInstanceSize, VarDeclaration));
vto.parent = ids.parent;
vto.csym = null;
vto.isym = null;
ids.from.push(vd);
ids.to.push(vto);
if (vd._init && !vd._init.isVoidInitializer())
{
auto ie = vd._init.isExpInitializer();
assert(ie);
vto._init = new ExpInitializer(ie.loc, doInlineAs!Expression(ie.exp, ids));
}
are.lengthVar = vto;
}
are.e2 = doInlineAs!Expression(e.e2, ids);
result = are;
}
override void visit(SliceExp e)
{
auto are = e.copy().isSliceExp();
are.e1 = doInlineAs!Expression(e.e1, ids);
if (e.lengthVar)
{
//printf("lengthVar\n");
auto vd = e.lengthVar;
auto vto = new VarDeclaration(vd.loc, vd.type, vd.ident, vd._init);
memcpy(cast(void*)vto, cast(void*)vd, __traits(classInstanceSize, VarDeclaration));
vto.parent = ids.parent;
vto.csym = null;
vto.isym = null;
ids.from.push(vd);
ids.to.push(vto);
if (vd._init && !vd._init.isVoidInitializer())
{
auto ie = vd._init.isExpInitializer();
assert(ie);
vto._init = new ExpInitializer(ie.loc, doInlineAs!Expression(ie.exp, ids));
}
are.lengthVar = vto;
}
are.lwr = doInlineAs!Expression(e.lwr, ids);
are.upr = doInlineAs!Expression(e.upr, ids);
result = are;
}
override void visit(TupleExp e)
{
auto ce = e.copy().isTupleExp();
ce.e0 = doInlineAs!Expression(e.e0, ids);
ce.exps = arrayExpressionDoInline(e.exps);
result = ce;
}
override void visit(ArrayLiteralExp e)
{
auto ce = e.copy().isArrayLiteralExp();
ce.basis = doInlineAs!Expression(e.basis, ids);
ce.elements = arrayExpressionDoInline(e.elements);
result = ce;
semanticTypeInfo(null, e.type);
}
override void visit(AssocArrayLiteralExp e)
{
auto ce = e.copy().isAssocArrayLiteralExp();
ce.keys = arrayExpressionDoInline(e.keys);
ce.values = arrayExpressionDoInline(e.values);
result = ce;
semanticTypeInfo(null, e.type);
}
override void visit(StructLiteralExp e)
{
if (e.inlinecopy)
{
result = e.inlinecopy;
return;
}
auto ce = e.copy().isStructLiteralExp();
e.inlinecopy = ce;
ce.elements = arrayExpressionDoInline(e.elements);
e.inlinecopy = null;
result = ce;
}
override void visit(ArrayExp e)
{
auto ce = e.copy().isArrayExp();
ce.e1 = doInlineAs!Expression(e.e1, ids);
ce.arguments = arrayExpressionDoInline(e.arguments);
result = ce;
}
override void visit(CondExp e)
{
auto ce = e.copy().isCondExp();
ce.econd = doInlineAs!Expression(e.econd, ids);
ce.e1 = doInlineAs!Expression(e.e1, ids);
ce.e2 = doInlineAs!Expression(e.e2, ids);
result = ce;
}
}
}
/// ditto
private Result doInlineAs(Result)(Statement s, InlineDoState ids)
{
if (!s)
return null;
scope DoInlineAs!Result v = new DoInlineAs!Result(ids);
s.accept(v);
return v.result;
}
/// ditto
private Result doInlineAs(Result)(Expression e, InlineDoState ids)
{
if (!e)
return null;
scope DoInlineAs!Result v = new DoInlineAs!Result(ids);
e.accept(v);
return v.result;
}
/***********************************************************
* Walk the trees, looking for functions to inline.
* Inline any that can be.
*/
private extern (C++) final class InlineScanVisitor : Visitor
{
alias visit = Visitor.visit;
public:
FuncDeclaration parent; // function being scanned
// As the visit method cannot return a value, these variables
// are used to pass the result from 'visit' back to 'inlineScan'
Statement sresult;
Expression eresult;
bool again;
extern (D) this()
{
}
override void visit(Statement s)
{
}
override void visit(ExpStatement s)
{
static if (LOG)
{
printf("ExpStatement.inlineScan(%s)\n", s.toChars());
}
if (!s.exp)
return;
Statement inlineScanExpAsStatement(ref Expression exp)
{
/* If there's a TOK.call at the top, then it may fail to inline
* as an Expression. Try to inline as a Statement instead.
*/
if (auto ce = exp.isCallExp())
{
visitCallExp(ce, null, true);
if (eresult)
exp = eresult;
auto s = sresult;
sresult = null;
eresult = null;
return s;
}
/* If there's a CondExp or CommaExp at the top, then its
* sub-expressions may be inlined as statements.
*/
if (auto e = exp.isCondExp())
{
inlineScan(e.econd);
auto s1 = inlineScanExpAsStatement(e.e1);
auto s2 = inlineScanExpAsStatement(e.e2);
if (!s1 && !s2)
return null;
auto ifbody = !s1 ? new ExpStatement(e.e1.loc, e.e1) : s1;
auto elsebody = !s2 ? new ExpStatement(e.e2.loc, e.e2) : s2;
return new IfStatement(exp.loc, null, e.econd, ifbody, elsebody, exp.loc);
}
if (auto e = exp.isCommaExp())
{
auto s1 = inlineScanExpAsStatement(e.e1);
auto s2 = inlineScanExpAsStatement(e.e2);
if (!s1 && !s2)
return null;
auto a = new Statements();
a.push(!s1 ? new ExpStatement(e.e1.loc, e.e1) : s1);
a.push(!s2 ? new ExpStatement(e.e2.loc, e.e2) : s2);
return new CompoundStatement(exp.loc, a);
}
// inline as an expression
inlineScan(exp);
return null;
}
sresult = inlineScanExpAsStatement(s.exp);
}
override void visit(CompoundStatement s)
{
foreach (i; 0 .. s.statements.dim)
{
inlineScan((*s.statements)[i]);
}
}
override void visit(UnrolledLoopStatement s)
{
foreach (i; 0 .. s.statements.dim)
{
inlineScan((*s.statements)[i]);
}
}
override void visit(ScopeStatement s)
{
inlineScan(s.statement);
}
override void visit(WhileStatement s)
{
inlineScan(s.condition);
inlineScan(s._body);
}
override void visit(DoStatement s)
{
inlineScan(s._body);
inlineScan(s.condition);
}
override void visit(ForStatement s)
{
inlineScan(s._init);
inlineScan(s.condition);
inlineScan(s.increment);
inlineScan(s._body);
}
override void visit(ForeachStatement s)
{
inlineScan(s.aggr);
inlineScan(s._body);
}
override void visit(ForeachRangeStatement s)
{
inlineScan(s.lwr);
inlineScan(s.upr);
inlineScan(s._body);
}
override void visit(IfStatement s)
{
inlineScan(s.condition);
inlineScan(s.ifbody);
inlineScan(s.elsebody);
}
override void visit(SwitchStatement s)
{
//printf("SwitchStatement.inlineScan()\n");
inlineScan(s.condition);
inlineScan(s._body);
Statement sdefault = s.sdefault;
inlineScan(sdefault);
s.sdefault = cast(DefaultStatement)sdefault;
if (s.cases)
{
foreach (i; 0 .. s.cases.dim)
{
Statement scase = (*s.cases)[i];
inlineScan(scase);
(*s.cases)[i] = cast(CaseStatement)scase;
}
}
}
override void visit(CaseStatement s)
{
//printf("CaseStatement.inlineScan()\n");
inlineScan(s.exp);
inlineScan(s.statement);
}
override void visit(DefaultStatement s)
{
inlineScan(s.statement);
}
override void visit(ReturnStatement s)
{
//printf("ReturnStatement.inlineScan()\n");
inlineScan(s.exp);
}
override void visit(SynchronizedStatement s)
{
inlineScan(s.exp);
inlineScan(s._body);
}
override void visit(WithStatement s)
{
inlineScan(s.exp);
inlineScan(s._body);
}
override void visit(TryCatchStatement s)
{
inlineScan(s._body);
if (s.catches)
{
foreach (c; *s.catches)
{
inlineScan(c.handler);
}
}
}
override void visit(TryFinallyStatement s)
{
inlineScan(s._body);
inlineScan(s.finalbody);
}
override void visit(ThrowStatement s)
{
inlineScan(s.exp);
}
override void visit(LabelStatement s)
{
inlineScan(s.statement);
}
/********************************
* Scan Statement s for inlining opportunities,
* and if found replace s with an inlined one.
* Params:
* s = Statement to be scanned and updated
*/
void inlineScan(ref Statement s)
{
if (!s)
return;
assert(sresult is null);
s.accept(this);
if (sresult)
{
s = sresult;
sresult = null;
}
}
/* -------------------------- */
void arrayInlineScan(Expressions* arguments)
{
if (arguments)
{
foreach (i; 0 .. arguments.dim)
{
inlineScan((*arguments)[i]);
}
}
}
override void visit(Expression e)
{
}
void scanVar(Dsymbol s)
{
//printf("scanVar(%s %s)\n", s.kind(), s.toPrettyChars());
VarDeclaration vd = s.isVarDeclaration();
if (vd)
{
TupleDeclaration td = vd.toAlias().isTupleDeclaration();
if (td)
{
foreach (i; 0 .. td.objects.dim)
{
DsymbolExp se = cast(DsymbolExp)(*td.objects)[i];
assert(se.op == TOK.dSymbol);
scanVar(se.s); // TODO
}
}
else if (vd._init)
{
if (ExpInitializer ie = vd._init.isExpInitializer())
{
inlineScan(ie.exp);
}
}
}
else
{
s.accept(this);
}
}
override void visit(DeclarationExp e)
{
//printf("DeclarationExp.inlineScan() %s\n", e.toChars());
scanVar(e.declaration);
}
override void visit(UnaExp e)
{
inlineScan(e.e1);
}
override void visit(AssertExp e)
{
inlineScan(e.e1);
inlineScan(e.msg);
}
override void visit(BinExp e)
{
inlineScan(e.e1);
inlineScan(e.e2);
}
override void visit(AssignExp e)
{
// Look for NRVO, as inlining NRVO function returns require special handling
if (e.op == TOK.construct && e.e2.op == TOK.call)
{
auto ce = e.e2.isCallExp();
if (ce.f && ce.f.nrvo_can && ce.f.nrvo_var) // NRVO
{
if (auto ve = e.e1.isVarExp())
{
/* Inlining:
* S s = foo(); // initializing by rvalue
* S s = S(1); // constructor call
*/
Declaration d = ve.var;
if (d.storage_class & (STC.out_ | STC.ref_)) // refinit
goto L1;
}
else
{
/* Inlining:
* this.field = foo(); // inside constructor
*/
inlineScan(e.e1);
}
visitCallExp(ce, e.e1, false);
if (eresult)
{
//printf("call with nrvo: %s ==> %s\n", e.toChars(), eresult.toChars());
return;
}
}
}
L1:
visit(cast(BinExp)e);
}
override void visit(CallExp e)
{
//printf("CallExp.inlineScan() %s\n", e.toChars());
visitCallExp(e, null, false);
}
/**************************************
* Check function call to see if can be inlined,
* and then inline it if it can.
* Params:
* e = the function call
* eret = if !null, then this is the lvalue of the nrvo function result
* asStatements = if inline as statements rather than as an Expression
* Returns:
* this.eresult if asStatements == false
* this.sresult if asStatements == true
*/
void visitCallExp(CallExp e, Expression eret, bool asStatements)
{
inlineScan(e.e1);
arrayInlineScan(e.arguments);
//printf("visitCallExp() %s\n", e.toChars());
FuncDeclaration fd;
void inlineFd()
{
if (!fd || fd == parent)
return;
/* If the arguments generate temporaries that need destruction, the destruction
* must be done after the function body is executed.
* The easiest way to accomplish that is to do the inlining as an Expression.
* https://issues.dlang.org/show_bug.cgi?id=16652
*/
bool asStates = asStatements;
if (asStates)
{
if (fd.inlineStatusExp == ILS.yes)
asStates = false; // inline as expressions
// so no need to recompute argumentsNeedDtors()
else if (argumentsNeedDtors(e.arguments))
asStates = false;
}
if (canInline(fd, false, false, asStates))
{
expandInline(e.loc, fd, parent, eret, null, e.arguments, asStates, e.vthis2, eresult, sresult, again);
if (asStatements && eresult)
{
sresult = new ExpStatement(eresult.loc, eresult);
eresult = null;
}
}
}
/* Pattern match various ASTs looking for indirect function calls, delegate calls,
* function literal calls, delegate literal calls, and dot member calls.
* If so, and that is only assigned its _init.
* If so, do 'copy propagation' of the _init value and try to inline it.
*/
if (auto ve = e.e1.isVarExp())
{
fd = ve.var.isFuncDeclaration();
if (fd)
// delegate call
inlineFd();
else
{
// delegate literal call
auto v = ve.var.isVarDeclaration();
if (v && v._init && v.type.ty == Tdelegate && onlyOneAssign(v, parent))
{
//printf("init: %s\n", v._init.toChars());
auto ei = v._init.isExpInitializer();
if (ei && ei.exp.op == TOK.blit)
{
Expression e2 = (cast(AssignExp)ei.exp).e2;
if (auto fe = e2.isFuncExp())
{
auto fld = fe.fd;
assert(fld.tok == TOK.delegate_);
fd = fld;
inlineFd();
}
else if (auto de = e2.isDelegateExp())
{
if (auto ve2 = de.e1.isVarExp())
{
fd = ve2.var.isFuncDeclaration();
inlineFd();
}
}
}
}
}
}
else if (auto dve = e.e1.isDotVarExp())
{
fd = dve.var.isFuncDeclaration();
if (fd && fd != parent && canInline(fd, true, false, asStatements))
{
if (dve.e1.op == TOK.call && dve.e1.type.toBasetype().ty == Tstruct)
{
/* To create ethis, we'll need to take the address
* of dve.e1, but this won't work if dve.e1 is
* a function call.
*/
}
else
{
expandInline(e.loc, fd, parent, eret, dve.e1, e.arguments, asStatements, e.vthis2, eresult, sresult, again);
}
}
}
else if (e.e1.op == TOK.star &&
(cast(PtrExp)e.e1).e1.op == TOK.variable)
{
auto ve = e.e1.isPtrExp().e1.isVarExp();
VarDeclaration v = ve.var.isVarDeclaration();
if (v && v._init && onlyOneAssign(v, parent))
{
//printf("init: %s\n", v._init.toChars());
auto ei = v._init.isExpInitializer();
if (ei && ei.exp.op == TOK.blit)
{
Expression e2 = (cast(AssignExp)ei.exp).e2;
// function pointer call
if (auto se = e2.isSymOffExp())
{
fd = se.var.isFuncDeclaration();
inlineFd();
}
// function literal call
else if (auto fe = e2.isFuncExp())
{
auto fld = fe.fd;
assert(fld.tok == TOK.function_);
fd = fld;
inlineFd();
}
}
}
}
else
return;
if (global.params.verbose && (eresult || sresult))
message("inlined %s =>\n %s", fd.toPrettyChars(), parent.toPrettyChars());
if (eresult && e.type.ty != Tvoid)
{
Expression ex = eresult;
while (ex.op == TOK.comma)
{
ex.type = e.type;
ex = ex.isCommaExp().e2;
}
ex.type = e.type;
}
}
override void visit(SliceExp e)
{
inlineScan(e.e1);
inlineScan(e.lwr);
inlineScan(e.upr);
}
override void visit(TupleExp e)
{
//printf("TupleExp.inlineScan()\n");
inlineScan(e.e0);
arrayInlineScan(e.exps);
}
override void visit(ArrayLiteralExp e)
{
//printf("ArrayLiteralExp.inlineScan()\n");
inlineScan(e.basis);
arrayInlineScan(e.elements);
}
override void visit(AssocArrayLiteralExp e)
{
//printf("AssocArrayLiteralExp.inlineScan()\n");
arrayInlineScan(e.keys);
arrayInlineScan(e.values);
}
override void visit(StructLiteralExp e)
{
//printf("StructLiteralExp.inlineScan()\n");
if (e.stageflags & stageInlineScan)
return;
int old = e.stageflags;
e.stageflags |= stageInlineScan;
arrayInlineScan(e.elements);
e.stageflags = old;
}
override void visit(ArrayExp e)
{
//printf("ArrayExp.inlineScan()\n");
inlineScan(e.e1);
arrayInlineScan(e.arguments);
}
override void visit(CondExp e)
{
inlineScan(e.econd);
inlineScan(e.e1);
inlineScan(e.e2);
}
/********************************
* Scan Expression e for inlining opportunities,
* and if found replace e with an inlined one.
* Params:
* e = Expression to be scanned and updated
*/
void inlineScan(ref Expression e)
{
if (!e)
return;
assert(eresult is null);
e.accept(this);
if (eresult)
{
e = eresult;
eresult = null;
}
}
/*************************************
* Look for function inlining possibilities.
*/
override void visit(Dsymbol d)
{
// Most Dsymbols aren't functions
}
override void visit(FuncDeclaration fd)
{
static if (LOG)
{
printf("FuncDeclaration.inlineScan('%s')\n", fd.toPrettyChars());
}
if (!(global.params.useInline || fd.hasAlwaysInlines))
return;
if (fd.isUnitTestDeclaration() && !global.params.useUnitTests ||
fd.flags & FUNCFLAG.inlineScanned)
return;
if (fd.fbody && !fd.naked)
{
auto againsave = again;
auto parentsave = parent;
parent = fd;
do
{
again = false;
fd.inlineNest++;
fd.flags |= FUNCFLAG.inlineScanned;
inlineScan(fd.fbody);
fd.inlineNest--;
}
while (again);
again = againsave;
parent = parentsave;
}
}
override void visit(AttribDeclaration d)
{
Dsymbols* decls = d.include(null);
if (decls)
{
foreach (i; 0 .. decls.dim)
{
Dsymbol s = (*decls)[i];
//printf("AttribDeclaration.inlineScan %s\n", s.toChars());
s.accept(this);
}
}
}
override void visit(AggregateDeclaration ad)
{
//printf("AggregateDeclaration.inlineScan(%s)\n", toChars());
if (ad.members)
{
foreach (i; 0 .. ad.members.dim)
{
Dsymbol s = (*ad.members)[i];
//printf("inline scan aggregate symbol '%s'\n", s.toChars());
s.accept(this);
}
}
}
override void visit(TemplateInstance ti)
{
static if (LOG)
{
printf("TemplateInstance.inlineScan('%s')\n", ti.toChars());
}
if (!ti.errors && ti.members)
{
foreach (i; 0 .. ti.members.dim)
{
Dsymbol s = (*ti.members)[i];
s.accept(this);
}
}
}
}
/***********************************************************
* Test that `fd` can be inlined.
*
* Params:
* hasthis = `true` if the function call has explicit 'this' expression.
* hdrscan = `true` if the inline scan is for 'D header' content.
* statementsToo = `true` if the function call is placed on ExpStatement.
* It means more code-block dependent statements in fd body - ForStatement,
* ThrowStatement, etc. can be inlined.
*
* Returns:
* true if the function body can be expanded.
*
* Todo:
* - Would be able to eliminate `hasthis` parameter, because semantic analysis
* no longer accepts calls of contextful function without valid 'this'.
* - Would be able to eliminate `hdrscan` parameter, because it's always false.
*/
private bool canInline(FuncDeclaration fd, bool hasthis, bool hdrscan, bool statementsToo)
{
int cost;
static if (CANINLINE_LOG)
{
printf("FuncDeclaration.canInline(hasthis = %d, statementsToo = %d, '%s')\n",
hasthis, statementsToo, fd.toPrettyChars());
}
if (fd.needThis() && !hasthis)
return false;
if (fd.inlineNest)
{
static if (CANINLINE_LOG)
{
printf("\t1: no, inlineNest = %d, semanticRun = %d\n", fd.inlineNest, fd.semanticRun);
}
return false;
}
if (fd.semanticRun < PASS.semantic3 && !hdrscan)
{
if (!fd.fbody)
return false;
if (!fd.functionSemantic3())
return false;
Module.runDeferredSemantic3();
if (global.errors)
return false;
assert(fd.semanticRun >= PASS.semantic3done);
}
final switch (statementsToo ? fd.inlineStatusStmt : fd.inlineStatusExp)
{
case ILS.yes:
static if (CANINLINE_LOG)
{
printf("\t1: yes %s\n", fd.toChars());
}
return true;
case ILS.no:
static if (CANINLINE_LOG)
{
printf("\t1: no %s\n", fd.toChars());
}
return false;
case ILS.uninitialized:
break;
}
final switch (fd.inlining)
{
case PINLINE.default_:
if (!global.params.useInline)
return false;
break;
case PINLINE.always:
break;
case PINLINE.never:
return false;
}
if (fd.type)
{
TypeFunction tf = fd.type.isTypeFunction();
// no variadic parameter lists
if (tf.parameterList.varargs == VarArg.variadic)
goto Lno;
/* No lazy parameters when inlining by statement, as the inliner tries to
* operate on the created delegate itself rather than the return value.
* Discussion: https://github.com/dlang/dmd/pull/6815
*/
if (statementsToo && fd.parameters)
{
foreach (param; *fd.parameters)
{
if (param.storage_class & STC.lazy_)
goto Lno;
}
}
static bool hasDtor(Type t)
{
auto tv = t.baseElemOf();
return tv.ty == Tstruct || tv.ty == Tclass; // for now assume these might have a destructor
}
/* Don't inline a function that returns non-void, but has
* no or multiple return expression.
* When inlining as a statement:
* 1. don't inline array operations, because the order the arguments
* get evaluated gets reversed. This is the same issue that e2ir.callfunc()
* has with them
* 2. don't inline when the return value has a destructor, as it doesn't
* get handled properly
*/
if (tf.next && tf.next.ty != Tvoid &&
(!(fd.hasReturnExp & 1) ||
statementsToo && hasDtor(tf.next)) &&
!hdrscan)
{
static if (CANINLINE_LOG)
{
printf("\t3: no %s\n", fd.toChars());
}
goto Lno;
}
/* https://issues.dlang.org/show_bug.cgi?id=14560
* If fd returns void, all explicit `return;`s
* must not appear in the expanded result.
* See also ReturnStatement.doInlineAs!Statement().
*/
}
// cannot inline constructor calls because we need to convert:
// return;
// to:
// return this;
// ensure() has magic properties the inliner loses
// require() has magic properties too
// see bug 7699
// no nested references to this frame
if (!fd.fbody ||
fd.ident == Id.ensure ||
(fd.ident == Id.require &&
fd.toParent().isFuncDeclaration() &&
fd.toParent().isFuncDeclaration().needThis()) ||
!hdrscan && (fd.isSynchronized() ||
fd.isImportedSymbol() ||
fd.hasNestedFrameRefs() ||
(fd.isVirtual() && !fd.isFinalFunc())))
{
static if (CANINLINE_LOG)
{
printf("\t4: no %s\n", fd.toChars());
}
goto Lno;
}
// cannot inline functions as statement if they have multiple
// return statements
if ((fd.hasReturnExp & 16) && statementsToo)
{
static if (CANINLINE_LOG)
{
printf("\t5: no %s\n", fd.toChars());
}
goto Lno;
}
{
cost = inlineCostFunction(fd, hasthis, hdrscan);
}
static if (CANINLINE_LOG)
{
printf("\tcost = %d for %s\n", cost, fd.toChars());
}
if (tooCostly(cost))
goto Lno;
if (!statementsToo && cost > COST_MAX)
goto Lno;
if (!hdrscan)
{
// Don't modify inlineStatus for header content scan
if (statementsToo)
fd.inlineStatusStmt = ILS.yes;
else
fd.inlineStatusExp = ILS.yes;
scope InlineScanVisitor v = new InlineScanVisitor();
fd.accept(v); // Don't scan recursively for header content scan
if (fd.inlineStatusExp == ILS.uninitialized)
{
// Need to redo cost computation, as some statements or expressions have been inlined
cost = inlineCostFunction(fd, hasthis, hdrscan);
static if (CANINLINE_LOG)
{
printf("recomputed cost = %d for %s\n", cost, fd.toChars());
}
if (tooCostly(cost))
goto Lno;
if (!statementsToo && cost > COST_MAX)
goto Lno;
if (statementsToo)
fd.inlineStatusStmt = ILS.yes;
else
fd.inlineStatusExp = ILS.yes;
}
}
static if (CANINLINE_LOG)
{
printf("\t2: yes %s\n", fd.toChars());
}
return true;
Lno:
if (fd.inlining == PINLINE.always && global.params.warnings == DiagnosticReporting.inform)
warning(fd.loc, "cannot inline function `%s`", fd.toPrettyChars());
if (!hdrscan) // Don't modify inlineStatus for header content scan
{
if (statementsToo)
fd.inlineStatusStmt = ILS.no;
else
fd.inlineStatusExp = ILS.no;
}
static if (CANINLINE_LOG)
{
printf("\t2: no %s\n", fd.toChars());
}
return false;
}
/***********************************************************
* Expand a function call inline,
* ethis.fd(arguments)
*
* Params:
* callLoc = location of CallExp
* fd = function to expand
* parent = function that the call to fd is being expanded into
* eret = if !null then the lvalue of where the nrvo return value goes
* ethis = 'this' reference
* arguments = arguments passed to fd
* asStatements = expand to Statements rather than Expressions
* eresult = if expanding to an expression, this is where the expression is written to
* sresult = if expanding to a statement, this is where the statement is written to
* again = if true, then fd can be inline scanned again because there may be
* more opportunities for inlining
*/
private void expandInline(Loc callLoc, FuncDeclaration fd, FuncDeclaration parent, Expression eret,
Expression ethis, Expressions* arguments, bool asStatements, VarDeclaration vthis2,
out Expression eresult, out Statement sresult, out bool again)
{
auto tf = fd.type.isTypeFunction();
static if (LOG || CANINLINE_LOG || EXPANDINLINE_LOG)
printf("FuncDeclaration.expandInline('%s', %d)\n", fd.toChars(), asStatements);
static if (EXPANDINLINE_LOG)
{
if (eret) printf("\teret = %s\n", eret.toChars());
if (ethis) printf("\tethis = %s\n", ethis.toChars());
}
scope ids = new InlineDoState(parent, fd);
if (fd.isNested())
{
if (!parent.inlinedNestedCallees)
parent.inlinedNestedCallees = new FuncDeclarations();
parent.inlinedNestedCallees.push(fd);
}
VarDeclaration vret; // will be set the function call result
if (eret)
{
if (auto ve = eret.isVarExp())
{
vret = ve.var.isVarDeclaration();
assert(!(vret.storage_class & (STC.out_ | STC.ref_)));
eret = null;
}
else
{
/* Inlining:
* this.field = foo(); // inside constructor
*/
auto ei = new ExpInitializer(callLoc, null);
auto tmp = Identifier.generateId("__retvar");
vret = new VarDeclaration(fd.loc, eret.type, tmp, ei);
vret.storage_class |= STC.temp | STC.ref_;
vret.linkage = LINK.d;
vret.parent = parent;
ei.exp = new ConstructExp(fd.loc, vret, eret);
ei.exp.type = vret.type;
auto de = new DeclarationExp(fd.loc, vret);
de.type = Type.tvoid;
eret = de;
}
if (!asStatements && fd.nrvo_var)
{
ids.from.push(fd.nrvo_var);
ids.to.push(vret);
}
}
else
{
if (!asStatements && fd.nrvo_var)
{
auto tmp = Identifier.generateId("__retvar");
vret = new VarDeclaration(fd.loc, fd.nrvo_var.type, tmp, new VoidInitializer(fd.loc));
assert(!tf.isref);
vret.storage_class = STC.temp | STC.rvalue;
vret.linkage = tf.linkage;
vret.parent = parent;
auto de = new DeclarationExp(fd.loc, vret);
de.type = Type.tvoid;
eret = de;
ids.from.push(fd.nrvo_var);
ids.to.push(vret);
}
}
// Set up vthis
VarDeclaration vthis;
if (ethis)
{
Expression e0;
ethis = Expression.extractLast(ethis, e0);
assert(vthis2 || !fd.isThis2);
if (vthis2)
{
// void*[2] __this = [ethis, this]
if (ethis.type.ty == Tstruct)
{
// ðis
Type t = ethis.type.pointerTo();
ethis = new AddrExp(ethis.loc, ethis);
ethis.type = t;
}
auto elements = new Expressions(2);
(*elements)[0] = ethis;
(*elements)[1] = new NullExp(Loc.initial, Type.tvoidptr);
Expression ae = new ArrayLiteralExp(vthis2.loc, vthis2.type, elements);
Expression ce = new ConstructExp(vthis2.loc, vthis2, ae);
ce.type = vthis2.type;
vthis2._init = new ExpInitializer(vthis2.loc, ce);
vthis = vthis2;
}
else if (auto ve = ethis.isVarExp())
{
vthis = ve.var.isVarDeclaration();
}
else
{
//assert(ethis.type.ty != Tpointer);
if (ethis.type.ty == Tpointer)
{
Type t = ethis.type.nextOf();
ethis = new PtrExp(ethis.loc, ethis);
ethis.type = t;
}
auto ei = new ExpInitializer(fd.loc, ethis);
vthis = new VarDeclaration(fd.loc, ethis.type, Id.This, ei);
if (ethis.type.ty != Tclass)
vthis.storage_class = STC.ref_;
else
vthis.storage_class = STC.in_;
vthis.linkage = LINK.d;
vthis.parent = parent;
ei.exp = new ConstructExp(fd.loc, vthis, ethis);
ei.exp.type = vthis.type;
auto de = new DeclarationExp(fd.loc, vthis);
de.type = Type.tvoid;
e0 = Expression.combine(e0, de);
}
ethis = e0;
ids.vthis = vthis;
}
// Set up parameters
Expression eparams;
if (arguments && arguments.dim)
{
assert(fd.parameters.dim == arguments.dim);
foreach (i; 0 .. arguments.dim)
{
auto vfrom = (*fd.parameters)[i];
auto arg = (*arguments)[i];
auto ei = new ExpInitializer(vfrom.loc, arg);
auto vto = new VarDeclaration(vfrom.loc, vfrom.type, vfrom.ident, ei);
vto.storage_class |= vfrom.storage_class & (STC.temp | STC.IOR | STC.lazy_);
vto.linkage = vfrom.linkage;
vto.parent = parent;
//printf("vto = '%s', vto.storage_class = x%x\n", vto.toChars(), vto.storage_class);
//printf("vto.parent = '%s'\n", parent.toChars());
// Even if vto is STC.lazy_, `vto = arg` is handled correctly in glue layer.
ei.exp = new BlitExp(vto.loc, vto, arg);
ei.exp.type = vto.type;
ids.from.push(vfrom);
ids.to.push(vto);
auto de = new DeclarationExp(vto.loc, vto);
de.type = Type.tvoid;
eparams = Expression.combine(eparams, de);
/* If function pointer or delegate parameters are present,
* inline scan again because if they are initialized to a symbol,
* any calls to the fp or dg can be inlined.
*/
if (vfrom.type.ty == Tdelegate ||
vfrom.type.ty == Tpointer && vfrom.type.nextOf().ty == Tfunction)
{
if (auto ve = arg.isVarExp())
{
if (ve.var.isFuncDeclaration())
again = true;
}
else if (auto se = arg.isSymOffExp())
{
if (se.var.isFuncDeclaration())
again = true;
}
else if (arg.op == TOK.function_ || arg.op == TOK.delegate_)
again = true;
}
}
}
if (asStatements)
{
/* Construct:
* { eret; ethis; eparams; fd.fbody; }
* or:
* { eret; ethis; try { eparams; fd.fbody; } finally { vthis.edtor; } }
*/
auto as = new Statements();
if (eret)
as.push(new ExpStatement(callLoc, eret));
if (ethis)
as.push(new ExpStatement(callLoc, ethis));
auto as2 = as;
if (vthis && !vthis.isDataseg())
{
if (vthis.needsScopeDtor())
{
// same with ExpStatement.scopeCode()
as2 = new Statements();
vthis.storage_class |= STC.nodtor;
}
}
if (eparams)
as2.push(new ExpStatement(callLoc, eparams));
fd.inlineNest++;
Statement s = doInlineAs!Statement(fd.fbody, ids);
fd.inlineNest--;
as2.push(s);
if (as2 != as)
{
as.push(new TryFinallyStatement(callLoc,
new CompoundStatement(callLoc, as2),
new DtorExpStatement(callLoc, vthis.edtor, vthis)));
}
sresult = new ScopeStatement(callLoc, new CompoundStatement(callLoc, as), callLoc);
static if (EXPANDINLINE_LOG)
printf("\n[%s] %s expandInline sresult =\n%s\n",
callLoc.toChars(), fd.toPrettyChars(), sresult.toChars());
}
else
{
/* Construct:
* (eret, ethis, eparams, fd.fbody)
*/
fd.inlineNest++;
auto e = doInlineAs!Expression(fd.fbody, ids);
fd.inlineNest--;
// https://issues.dlang.org/show_bug.cgi?id=11322
if (tf.isref)
e = e.toLvalue(null, null);
/* If the inlined function returns a copy of a struct,
* and then the return value is used subsequently as an
* lvalue, as in a struct return that is then used as a 'this'.
* Taking the address of the return value will be taking the address
* of the original, not the copy. Fix this by assigning the return value to
* a temporary, then returning the temporary. If the temporary is used as an
* lvalue, it will work.
* This only happens with struct returns.
* See https://issues.dlang.org/show_bug.cgi?id=2127 for an example.
*
* On constructor call making __inlineretval is merely redundant, because
* the returned reference is exactly same as vthis, and the 'this' variable
* already exists at the caller side.
*/
if (tf.next.ty == Tstruct && !fd.nrvo_var && !fd.isCtorDeclaration() &&
!isConstruction(e))
{
/* Generate a new variable to hold the result and initialize it with the
* inlined body of the function:
* tret __inlineretval = e;
*/
auto ei = new ExpInitializer(callLoc, e);
auto tmp = Identifier.generateId("__inlineretval");
auto vd = new VarDeclaration(callLoc, tf.next, tmp, ei);
vd.storage_class = STC.temp | (tf.isref ? STC.ref_ : STC.rvalue);
vd.linkage = tf.linkage;
vd.parent = parent;
ei.exp = new ConstructExp(callLoc, vd, e);
ei.exp.type = vd.type;
auto de = new DeclarationExp(callLoc, vd);
de.type = Type.tvoid;
// Chain the two together:
// ( typeof(return) __inlineretval = ( inlined body )) , __inlineretval
e = Expression.combine(de, new VarExp(callLoc, vd));
}
// https://issues.dlang.org/show_bug.cgi?id=15210
if (tf.next.ty == Tvoid && e && e.type.ty != Tvoid)
{
e = new CastExp(callLoc, e, Type.tvoid);
e.type = Type.tvoid;
}
eresult = Expression.combine(eresult, eret, ethis, eparams);
eresult = Expression.combine(eresult, e);
static if (EXPANDINLINE_LOG)
printf("\n[%s] %s expandInline eresult = %s\n",
callLoc.toChars(), fd.toPrettyChars(), eresult.toChars());
}
// Need to reevaluate whether parent can now be inlined
// in expressions, as we might have inlined statements
parent.inlineStatusExp = ILS.uninitialized;
}
/****************************************************
* Determine if the value of `e` is the result of construction.
*
* Params:
* e = expression to check
* Returns:
* true for value generated by a constructor or struct literal
*/
private bool isConstruction(Expression e)
{
e = lastComma(e);
if (e.op == TOK.structLiteral)
{
return true;
}
/* Detect:
* structliteral.ctor(args)
*/
else if (e.op == TOK.call)
{
auto ce = cast(CallExp)e;
if (ce.e1.op == TOK.dotVariable)
{
auto dve = cast(DotVarExp)ce.e1;
auto fd = dve.var.isFuncDeclaration();
if (fd && fd.isCtorDeclaration())
{
if (dve.e1.op == TOK.structLiteral)
{
return true;
}
}
}
}
return false;
}
/***********************************************************
* Determine if v is 'head const', meaning
* that once it is initialized it is not changed
* again.
*
* This is done using a primitive flow analysis.
*
* v is head const if v is const or immutable.
* Otherwise, v is assumed to be head const unless one of the
* following is true:
* 1. v is a `ref` or `out` variable
* 2. v is a parameter and fd is a variadic function
* 3. v is assigned to again
* 4. the address of v is taken
* 5. v is referred to by a function nested within fd
* 6. v is ever assigned to a `ref` or `out` variable
* 7. v is ever passed to another function as `ref` or `out`
*
* Params:
* v variable to check
* fd function that v is local to
* Returns:
* true if v's initializer is the only value assigned to v
*/
private bool onlyOneAssign(VarDeclaration v, FuncDeclaration fd)
{
if (!v.type.isMutable())
return true; // currently the only case handled atm
return false;
}
/************************************************************
* See if arguments to a function are creating temporaries that
* will need destruction after the function is executed.
* Params:
* arguments = arguments to function
* Returns:
* true if temporaries need destruction
*/
private bool argumentsNeedDtors(Expressions* arguments)
{
if (arguments)
{
foreach (arg; *arguments)
{
if (argNeedsDtor(arg))
return true;
}
}
return false;
}
/************************************************************
* See if argument to a function is creating temporaries that
* will need destruction after the function is executed.
* Params:
* arg = argument to function
* Returns:
* true if temporaries need destruction
*/
private bool argNeedsDtor(Expression arg)
{
extern (C++) final class NeedsDtor : StoppableVisitor
{
alias visit = typeof(super).visit;
Expression arg;
public:
extern (D) this(Expression arg)
{
this.arg = arg;
}
override void visit(Expression)
{
}
override void visit(DeclarationExp de)
{
if (de != arg)
Dsymbol_needsDtor(de.declaration);
}
void Dsymbol_needsDtor(Dsymbol s)
{
/* This mirrors logic of Dsymbol_toElem() in e2ir.d
* perhaps they can be combined.
*/
void symbolDg(Dsymbol s)
{
Dsymbol_needsDtor(s);
}
if (auto vd = s.isVarDeclaration())
{
s = s.toAlias();
if (s != vd)
return Dsymbol_needsDtor(s);
else if (vd.isStatic() || vd.storage_class & (STC.extern_ | STC.tls | STC.gshared | STC.manifest))
return;
if (vd.needsScopeDtor())
{
stop = true;
}
}
else if (auto tm = s.isTemplateMixin())
{
tm.members.foreachDsymbol(&symbolDg);
}
else if (auto ad = s.isAttribDeclaration())
{
ad.include(null).foreachDsymbol(&symbolDg);
}
else if (auto td = s.isTupleDeclaration())
{
foreach (o; *td.objects)
{
import dmd.root.rootobject;
if (o.dyncast() == DYNCAST.expression)
{
Expression eo = cast(Expression)o;
if (eo.op == TOK.dSymbol)
{
DsymbolExp se = cast(DsymbolExp)eo;
Dsymbol_needsDtor(se.s);
}
}
}
}
}
}
scope NeedsDtor ct = new NeedsDtor(arg);
return walkPostorder(arg, ct);
}
|
D
|
prototype Mst_Default_Shadowbeast_Addon_Fire(C_Npc)
{
name[0] = "Firebeast";
guild = GIL_Gargoyle;
aivar[AIV_MM_REAL_ID] = ID_Gargoyle;
level = 30;
attribute[ATR_STRENGTH] = 150;
attribute[ATR_DEXTERITY] = 150;
attribute[ATR_HITPOINTS_MAX] = 300;
attribute[ATR_HITPOINTS] = 300;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
protection[PROT_BLUNT] = 150;
protection[PROT_EDGE] = 150;
protection[PROT_POINT] = 200;
protection[PROT_FIRE] = 150;
protection[PROT_FLY] = 150;
protection[PROT_MAGIC] = 75;
damagetype = DAM_EDGE;
fight_tactic = FAI_Gargoyle;
senses = SENSE_HEAR | SENSE_SEE | SENSE_SMELL;
senses_range = PERC_DIST_MONSTER_ACTIVE_MAX;
aivar[AIV_MM_ThreatenBeforeAttack] = TRUE;
aivar[AIV_MM_FollowTime] = FOLLOWTIME_MEDIUM;
aivar[AIV_MM_FollowInWater] = FALSE;
start_aistate = ZS_MM_AllScheduler;
aivar[AIV_MM_SleepStart] = 6;
aivar[AIV_MM_SleepEnd] = 20;
aivar[AIV_MM_RoamStart] = 20;
aivar[AIV_MM_RoamEnd] = 6;
};
func void B_SetVisuals_Shadowbeast_Fire()
{
Mdl_SetVisual(self,"FireShadow.mds");
Mdl_SetVisualBody(self,"Shadowbeast_Skeleton_Body",DEFAULT,DEFAULT,"",DEFAULT,DEFAULT,-1);
};
instance Shadowbeast_Addon_Fire(Mst_Default_Shadowbeast_Addon_Fire)
{
B_SetVisuals_Shadowbeast_Fire();
Npc_SetToFistMode(self);
flags = NPC_FLAG_GHOST;
effect = "SPELLFX_FIREARMOR";
};
|
D
|
module example;
bool aTemplatedFunction(One)(One alpha) if (isNumeric!One) {
}
unittest {
{
bool anotherTemplatedFunction(One, Two, Three)(One alpha, Two bravo,
Three charlie, double delta)
if (isNumeric!One && isNumeric!Two && isNumeric!Three && echo
&& foxtrot && golf && hotel && india && juliet) {
}
}
}
|
D
|
module gtkD.pango.PgScript;
public import gtkD.gtkc.pangotypes;
private import gtkD.gtkc.pango;
private import gtkD.glib.ConstructionException;
private import gtkD.pango.PgLanguage;
/**
* Description
* The functions in this section are used to identify the writing
* system, or script of individual characters
* and of ranges within a larger text string.
*/
public class PgScript
{
/**
*/
/**
* Looks up the PangoScript for a particular character (as defined by
* Unicode Standard Annex 24). No check is made for ch being a
* valid Unicode character; if you pass in invalid character, the
* result is undefined.
* As of Pango 1.18, this function simply returns the return value of
* g_unichar_get_script().
* Since 1.4
* Params:
* ch = a Unicode character
* Returns: the PangoScript for the character.
*/
public static PangoScript scriptForUnichar(gunichar ch);
/**
* Given a script, finds a language tag that is reasonably
* representative of that script. This will usually be the
* Since 1.4
* Params:
* script = a PangoScript
* Returns: a PangoLanguage that is representativeof the script, or NULL if no such language exists.
*/
public static PgLanguage scriptGetSampleLanguage(PangoScript script);
}
|
D
|
/**
* Find out in what ways control flow can exit a statement block.
*
* Copyright: Copyright (C) 1999-2021 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, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/blockexit.d, _blockexit.d)
* Documentation: https://dlang.org/phobos/dmd_blockexit.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/blockexit.d
*/
module dmd.blockexit;
import core.stdc.stdio;
import dmd.arraytypes;
import dmd.astenums;
import dmd.canthrow;
import dmd.dclass;
import dmd.declaration;
import dmd.expression;
import dmd.func;
import dmd.globals;
import dmd.id;
import dmd.identifier;
import dmd.mtype;
import dmd.statement;
import dmd.tokens;
import dmd.typesem;
import dmd.visitor;
/**
* BE stands for BlockExit.
*
* It indicates if a statement does transfer control to another block.
* A block is a sequence of statements enclosed in { }
*/
enum BE : int
{
none = 0,
fallthru = 1,
throw_ = 2,
return_ = 4,
goto_ = 8,
halt = 0x10,
break_ = 0x20,
continue_ = 0x40,
errthrow = 0x80,
any = (fallthru | throw_ | return_ | goto_ | halt),
}
/*********************************************
* Determine mask of ways that a statement can exit.
*
* Only valid after semantic analysis.
* Params:
* s = statement to check for block exit status
* func = function that statement s is in
* mustNotThrow = generate an error if it throws
* Returns:
* BE.xxxx
*/
int blockExit(Statement s, FuncDeclaration func, bool mustNotThrow)
{
extern (C++) final class BlockExit : Visitor
{
alias visit = Visitor.visit;
public:
FuncDeclaration func;
bool mustNotThrow;
int result;
extern (D) this(FuncDeclaration func, bool mustNotThrow)
{
this.func = func;
this.mustNotThrow = mustNotThrow;
result = BE.none;
}
override void visit(Statement s)
{
printf("Statement::blockExit(%p)\n", s);
printf("%s\n", s.toChars());
assert(0);
}
override void visit(ErrorStatement s)
{
result = BE.none;
}
override void visit(ExpStatement s)
{
result = BE.fallthru;
if (s.exp)
{
if (s.exp.op == TOK.halt)
{
result = BE.halt;
return;
}
if (s.exp.op == TOK.assert_)
{
AssertExp a = cast(AssertExp)s.exp;
if (a.e1.isBool(false)) // if it's an assert(0)
{
result = BE.halt;
return;
}
}
if (s.exp.type.toBasetype().isTypeNoreturn())
result = BE.halt;
if (canThrow(s.exp, func, mustNotThrow))
result |= BE.throw_;
}
}
override void visit(CompileStatement s)
{
assert(global.errors);
result = BE.fallthru;
}
override void visit(CompoundStatement cs)
{
//printf("CompoundStatement.blockExit(%p) %d result = x%X\n", cs, cs.statements.dim, result);
result = BE.fallthru;
Statement slast = null;
foreach (s; *cs.statements)
{
if (s)
{
//printf("result = x%x\n", result);
//printf("s: %s\n", s.toChars());
if (result & BE.fallthru && slast)
{
slast = slast.last();
if (slast && (slast.isCaseStatement() || slast.isDefaultStatement()) && (s.isCaseStatement() || s.isDefaultStatement()))
{
// Allow if last case/default was empty
CaseStatement sc = slast.isCaseStatement();
DefaultStatement sd = slast.isDefaultStatement();
if (sc && (!sc.statement.hasCode() || sc.statement.isCaseStatement() || sc.statement.isErrorStatement()))
{
}
else if (sd && (!sd.statement.hasCode() || sd.statement.isCaseStatement() || sd.statement.isErrorStatement()))
{
}
else
{
const(char)* gototype = s.isCaseStatement() ? "case" : "default";
s.deprecation("switch case fallthrough - use 'goto %s;' if intended", gototype);
}
}
}
if (!(result & BE.fallthru) && !s.comeFrom())
{
if (blockExit(s, func, mustNotThrow) != BE.halt && s.hasCode() &&
s.loc != Loc.initial) // don't emit warning for generated code
s.warning("statement is not reachable");
}
else
{
result &= ~BE.fallthru;
result |= blockExit(s, func, mustNotThrow);
}
slast = s;
}
}
}
override void visit(UnrolledLoopStatement uls)
{
result = BE.fallthru;
foreach (s; *uls.statements)
{
if (s)
{
int r = blockExit(s, func, mustNotThrow);
result |= r & ~(BE.break_ | BE.continue_ | BE.fallthru);
if ((r & (BE.fallthru | BE.continue_ | BE.break_)) == 0)
result &= ~BE.fallthru;
}
}
}
override void visit(ScopeStatement s)
{
//printf("ScopeStatement::blockExit(%p)\n", s.statement);
result = blockExit(s.statement, func, mustNotThrow);
}
override void visit(WhileStatement s)
{
assert(global.errors);
result = BE.fallthru;
}
override void visit(DoStatement s)
{
if (s._body)
{
result = blockExit(s._body, func, mustNotThrow);
if (result == BE.break_)
{
result = BE.fallthru;
return;
}
if (result & BE.continue_)
result |= BE.fallthru;
}
else
result = BE.fallthru;
if (result & BE.fallthru)
{
if (canThrow(s.condition, func, mustNotThrow))
result |= BE.throw_;
if (!(result & BE.break_) && s.condition.isBool(true))
result &= ~BE.fallthru;
}
result &= ~(BE.break_ | BE.continue_);
}
override void visit(ForStatement s)
{
result = BE.fallthru;
if (s._init)
{
result = blockExit(s._init, func, mustNotThrow);
if (!(result & BE.fallthru))
return;
}
if (s.condition)
{
if (canThrow(s.condition, func, mustNotThrow))
result |= BE.throw_;
if (s.condition.isBool(true))
result &= ~BE.fallthru;
else if (s.condition.isBool(false))
return;
}
else
result &= ~BE.fallthru; // the body must do the exiting
if (s._body)
{
int r = blockExit(s._body, func, mustNotThrow);
if (r & (BE.break_ | BE.goto_))
result |= BE.fallthru;
result |= r & ~(BE.fallthru | BE.break_ | BE.continue_);
}
if (s.increment && canThrow(s.increment, func, mustNotThrow))
result |= BE.throw_;
}
override void visit(ForeachStatement s)
{
result = BE.fallthru;
if (canThrow(s.aggr, func, mustNotThrow))
result |= BE.throw_;
if (s._body)
result |= blockExit(s._body, func, mustNotThrow) & ~(BE.break_ | BE.continue_);
}
override void visit(ForeachRangeStatement s)
{
assert(global.errors);
result = BE.fallthru;
}
override void visit(IfStatement s)
{
//printf("IfStatement::blockExit(%p)\n", s);
result = BE.none;
if (canThrow(s.condition, func, mustNotThrow))
result |= BE.throw_;
if (s.condition.isBool(true))
{
result |= blockExit(s.ifbody, func, mustNotThrow);
}
else if (s.condition.isBool(false))
{
result |= blockExit(s.elsebody, func, mustNotThrow);
}
else
{
result |= blockExit(s.ifbody, func, mustNotThrow);
result |= blockExit(s.elsebody, func, mustNotThrow);
}
//printf("IfStatement::blockExit(%p) = x%x\n", s, result);
}
override void visit(ConditionalStatement s)
{
result = blockExit(s.ifbody, func, mustNotThrow);
if (s.elsebody)
result |= blockExit(s.elsebody, func, mustNotThrow);
}
override void visit(PragmaStatement s)
{
result = BE.fallthru;
}
override void visit(StaticAssertStatement s)
{
result = BE.fallthru;
}
override void visit(SwitchStatement s)
{
result = BE.none;
if (canThrow(s.condition, func, mustNotThrow))
result |= BE.throw_;
if (s._body)
{
result |= blockExit(s._body, func, mustNotThrow);
if (result & BE.break_)
{
result |= BE.fallthru;
result &= ~BE.break_;
}
}
else
result |= BE.fallthru;
}
override void visit(CaseStatement s)
{
result = blockExit(s.statement, func, mustNotThrow);
}
override void visit(DefaultStatement s)
{
result = blockExit(s.statement, func, mustNotThrow);
}
override void visit(GotoDefaultStatement s)
{
result = BE.goto_;
}
override void visit(GotoCaseStatement s)
{
result = BE.goto_;
}
override void visit(SwitchErrorStatement s)
{
// Switch errors are non-recoverable
result = BE.halt;
}
override void visit(ReturnStatement s)
{
result = BE.return_;
if (s.exp && canThrow(s.exp, func, mustNotThrow))
result |= BE.throw_;
}
override void visit(BreakStatement s)
{
//printf("BreakStatement::blockExit(%p) = x%x\n", s, s.ident ? BE.goto_ : BE.break_);
result = s.ident ? BE.goto_ : BE.break_;
}
override void visit(ContinueStatement s)
{
result = s.ident ? BE.continue_ | BE.goto_ : BE.continue_;
}
override void visit(SynchronizedStatement s)
{
result = blockExit(s._body, func, mustNotThrow);
}
override void visit(WithStatement s)
{
result = BE.none;
if (canThrow(s.exp, func, mustNotThrow))
result = BE.throw_;
result |= blockExit(s._body, func, mustNotThrow);
}
override void visit(TryCatchStatement s)
{
assert(s._body);
result = blockExit(s._body, func, false);
int catchresult = 0;
foreach (c; *s.catches)
{
if (c.type == Type.terror)
continue;
int cresult = blockExit(c.handler, func, mustNotThrow);
/* If we're catching Object, then there is no throwing
*/
Identifier id = c.type.toBasetype().isClassHandle().ident;
if (c.internalCatch && (cresult & BE.fallthru))
{
// https://issues.dlang.org/show_bug.cgi?id=11542
// leave blockExit flags of the body
cresult &= ~BE.fallthru;
}
else if (id == Id.Object || id == Id.Throwable)
{
result &= ~(BE.throw_ | BE.errthrow);
}
else if (id == Id.Exception)
{
result &= ~BE.throw_;
}
catchresult |= cresult;
}
if (mustNotThrow && (result & BE.throw_))
{
// now explain why this is nothrow
blockExit(s._body, func, mustNotThrow);
}
result |= catchresult;
}
override void visit(TryFinallyStatement s)
{
result = BE.fallthru;
if (s._body)
result = blockExit(s._body, func, false);
// check finally body as well, it may throw (bug #4082)
int finalresult = BE.fallthru;
if (s.finalbody)
finalresult = blockExit(s.finalbody, func, false);
// If either body or finalbody halts
if (result == BE.halt)
finalresult = BE.none;
if (finalresult == BE.halt)
result = BE.none;
if (mustNotThrow)
{
// now explain why this is nothrow
if (s._body && (result & BE.throw_))
blockExit(s._body, func, mustNotThrow);
if (s.finalbody && (finalresult & BE.throw_))
blockExit(s.finalbody, func, mustNotThrow);
}
version (none)
{
// https://issues.dlang.org/show_bug.cgi?id=13201
// Mask to prevent spurious warnings for
// destructor call, exit of synchronized statement, etc.
if (result == BE.halt && finalresult != BE.halt && s.finalbody && s.finalbody.hasCode())
{
s.finalbody.warning("statement is not reachable");
}
}
if (!(finalresult & BE.fallthru))
result &= ~BE.fallthru;
result |= finalresult & ~BE.fallthru;
}
override void visit(ScopeGuardStatement s)
{
// At this point, this statement is just an empty placeholder
result = BE.fallthru;
}
override void visit(ThrowStatement s)
{
if (s.internalThrow)
{
// https://issues.dlang.org/show_bug.cgi?id=8675
// Allow throwing 'Throwable' object even if mustNotThrow.
result = BE.fallthru;
return;
}
Type t = s.exp.type.toBasetype();
ClassDeclaration cd = t.isClassHandle();
assert(cd);
if (cd == ClassDeclaration.errorException || ClassDeclaration.errorException.isBaseOf(cd, null))
{
result = BE.errthrow;
return;
}
if (mustNotThrow)
s.error("`%s` is thrown but not caught", s.exp.type.toChars());
result = BE.throw_;
}
override void visit(GotoStatement s)
{
//printf("GotoStatement::blockExit(%p)\n", s);
result = BE.goto_;
}
override void visit(LabelStatement s)
{
//printf("LabelStatement::blockExit(%p)\n", s);
result = blockExit(s.statement, func, mustNotThrow);
if (s.breaks)
result |= BE.fallthru;
}
override void visit(CompoundAsmStatement s)
{
// Assume the worst
result = BE.fallthru | BE.return_ | BE.goto_ | BE.halt;
if (!(s.stc & STC.nothrow_))
{
if (mustNotThrow && !(s.stc & STC.nothrow_))
s.deprecation("`asm` statement is assumed to throw - mark it with `nothrow` if it does not");
else
result |= BE.throw_;
}
}
override void visit(ImportStatement s)
{
result = BE.fallthru;
}
}
if (!s)
return BE.fallthru;
scope BlockExit be = new BlockExit(func, mustNotThrow);
s.accept(be);
return be.result;
}
|
D
|
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Command.build/Group/CommandGroup.swift.o : /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Command/Command.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Base/CommandRunnable.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/Output+Autocomplete.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Config/CommandConfig.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Base/CommandOption.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/Console+Run.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/Output+Help.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Group/CommandGroup.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Group/BasicCommandGroup.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Utilities/CommandError.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Config/Commands.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Utilities/Utilities.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Command/CommandArgument.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/CommandInput.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/CommandContext.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Command.build/CommandGroup~partial.swiftmodule : /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Command/Command.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Base/CommandRunnable.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/Output+Autocomplete.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Config/CommandConfig.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Base/CommandOption.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/Console+Run.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/Output+Help.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Group/CommandGroup.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Group/BasicCommandGroup.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Utilities/CommandError.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Config/Commands.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Utilities/Utilities.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Command/CommandArgument.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/CommandInput.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/CommandContext.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Command.build/CommandGroup~partial.swiftdoc : /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Command/Command.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Base/CommandRunnable.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/Output+Autocomplete.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Config/CommandConfig.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Base/CommandOption.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/Console+Run.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/Output+Help.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Group/CommandGroup.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Group/BasicCommandGroup.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Utilities/CommandError.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Config/Commands.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Utilities/Utilities.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Command/CommandArgument.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/CommandInput.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Run/CommandContext.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/Tag/Contains.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSource.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Uppercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Lowercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Capitalize.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateTag.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConditional.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateCustom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Var.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/ViewRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/TemplateError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIterator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Contains.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/DateFormat.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConstant.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Comment.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Print.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Count.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Raw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateRaw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntax.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/Tag/Contains~partial.swiftmodule : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSource.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Uppercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Lowercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Capitalize.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateTag.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConditional.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateCustom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Var.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/ViewRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/TemplateError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIterator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Contains.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/DateFormat.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConstant.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Comment.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Print.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Count.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Raw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateRaw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntax.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/Tag/Contains~partial.swiftdoc : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSource.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Uppercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Lowercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Capitalize.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateTag.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConditional.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateCustom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Var.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/ViewRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/TemplateError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIterator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Contains.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/DateFormat.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConstant.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Comment.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Print.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Count.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Raw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateRaw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntax.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/Tag/Contains~partial.swiftsourceinfo : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSource.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Uppercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Lowercase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Capitalize.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateTag.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConditional.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateCustom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateExpression.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Var.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/ViewRenderer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/TemplateError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateIterator.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Contains.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/DateFormat.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateConstant.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Comment.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Print.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Count.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/TagContext.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Tag/Raw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateRaw.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/AST/TemplateSyntax.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
instance Mod_7608_STT_Schatten_NW (Npc_Default)
{
//-------- primary data --------
name = NAME_Schatten;
npctype = NPCTYPE_mt_schatten;
guild = GIL_STRF;
level = 5;
voice = 0;
id = 7608;
//-------- abilities --------
B_SetAttributesToChapter (self, 3);
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Relaxed.mds");
// body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung
Mdl_SetVisualBody (self,"hum_body_Naked0", 0, 0,"Hum_Head_Bald", 10, 0, STT_ARMOR_M);
Mdl_SetModelFatness(self,0);
fight_tactic = FAI_HUMAN_COWARD;
//-------- Talente --------
B_SetFightSkills (self, 40);
//-------- inventory --------
B_CreateAmbientInv (self);
//------------- Daily Routine -------------
daily_routine = Rtn_start_7608;
};
FUNC VOID Rtn_start_7608 () //Arenaplatz
{
TA_Roast_Scavenger (11,00,17,30,"WP_JAEGERLAGER_03");
TA_Roast_Scavenger (17,30,11,00,"WP_JAEGERLAGER_03");
};
FUNC VOID Rtn_Zuris_7608 ()
{
TA_Stand_ArmsCrossed (08,00,19,00,"NW_TAVERN_TO_FOREST_04");
TA_Stand_ArmsCrossed (19,00,08,00,"NW_TAVERN_TO_FOREST_04");
};
|
D
|
module arrow.TimestampArrayBuilder;
private import arrow.ArrayBuilder;
private import arrow.TimestampDataType;
private import arrow.c.functions;
public import arrow.c.types;
private import glib.ConstructionException;
private import glib.ErrorG;
private import glib.GException;
private import gobject.ObjectG;
/** */
public class TimestampArrayBuilder : ArrayBuilder
{
/** the main Gtk struct */
protected GArrowTimestampArrayBuilder* gArrowTimestampArrayBuilder;
/** Get the main Gtk struct */
public GArrowTimestampArrayBuilder* getTimestampArrayBuilderStruct(bool transferOwnership = false)
{
if (transferOwnership)
ownedRef = false;
return gArrowTimestampArrayBuilder;
}
/** the main Gtk struct as a void* */
protected override void* getStruct()
{
return cast(void*)gArrowTimestampArrayBuilder;
}
/**
* Sets our main struct and passes it to the parent class.
*/
public this (GArrowTimestampArrayBuilder* gArrowTimestampArrayBuilder, bool ownedRef = false)
{
this.gArrowTimestampArrayBuilder = gArrowTimestampArrayBuilder;
super(cast(GArrowArrayBuilder*)gArrowTimestampArrayBuilder, ownedRef);
}
/** */
public static GType getType()
{
return garrow_timestamp_array_builder_get_type();
}
/**
*
* Params:
* dataType = A #GArrowTimestampDataType.
* Returns: A newly created #GArrowTimestampArrayBuilder.
*
* Since: 0.7.0
*
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this(TimestampDataType dataType)
{
auto p = garrow_timestamp_array_builder_new((dataType is null) ? null : dataType.getTimestampDataTypeStruct());
if(p is null)
{
throw new ConstructionException("null returned by new");
}
this(cast(GArrowTimestampArrayBuilder*) p, true);
}
/**
*
*
* Deprecated: Use garrow_timestamp_array_builder_append_value() instead.
*
* Params:
* value = The number of milliseconds since UNIX epoch in signed 64bit integer.
*
* Returns: %TRUE on success, %FALSE if there was an error.
*
* Since: 0.7.0
*
* Throws: GException on failure.
*/
public bool append(long value)
{
GError* err = null;
auto p = garrow_timestamp_array_builder_append(gArrowTimestampArrayBuilder, value, &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
return p;
}
/**
* Returns: %TRUE on success, %FALSE if there was an error.
*
* Since: 0.7.0
*
* Throws: GException on failure.
*/
public bool appendNull()
{
GError* err = null;
auto p = garrow_timestamp_array_builder_append_null(gArrowTimestampArrayBuilder, &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
return p;
}
/**
* Append multiple nulls at once. It's more efficient than multiple
* `append_null()` calls.
*
* Params:
* n = The number of null values to be appended.
*
* Returns: %TRUE on success, %FALSE if there was an error.
*
* Since: 0.8.0
*
* Throws: GException on failure.
*/
public bool appendNulls(long n)
{
GError* err = null;
auto p = garrow_timestamp_array_builder_append_nulls(gArrowTimestampArrayBuilder, n, &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
return p;
}
/**
*
* Params:
* value = The number of milliseconds since UNIX epoch in signed 64bit integer.
* Returns: %TRUE on success, %FALSE if there was an error.
*
* Since: 0.12.0
*
* Throws: GException on failure.
*/
public bool appendValue(long value)
{
GError* err = null;
auto p = garrow_timestamp_array_builder_append_value(gArrowTimestampArrayBuilder, value, &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
return p;
}
/**
* Append multiple values at once. It's more efficient than multiple
* `append()` and `append_null()` calls.
*
* Params:
* values = The array of
* the number of milliseconds since UNIX epoch in signed 64bit integer.
* isValids = The array of
* boolean that shows whether the Nth value is valid or not. If the
* Nth `is_valids` is %TRUE, the Nth `values` is valid value. Otherwise
* the Nth value is null value.
*
* Returns: %TRUE on success, %FALSE if there was an error.
*
* Since: 0.8.0
*
* Throws: GException on failure.
*/
public bool appendValues(long[] values, bool[] isValids)
{
int[] isValidsArray = new int[isValids.length];
for ( int i = 0; i < isValids.length; i++ )
{
isValidsArray[i] = isValids[i] ? 1 : 0;
}
GError* err = null;
auto p = garrow_timestamp_array_builder_append_values(gArrowTimestampArrayBuilder, values.ptr, cast(long)values.length, isValidsArray.ptr, cast(long)isValids.length, &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
return p;
}
}
|
D
|
/**
Cyclic Redundancy Check (32-bit) implementation.
$(SCRIPT inhibitQuickIndex = 1;)
$(DIVC quickindex,
$(BOOKTABLE ,
$(TR $(TH Category) $(TH Functions)
)
$(TR $(TDNW Template API) $(TD $(MYREF CRC) $(MYREF CRC32) $(MYREF CRC64ECMA) $(MYREF CRC64ISO)
)
)
$(TR $(TDNW OOP API) $(TD $(MYREF CRC32Digest) $(MYREF CRC64ECMADigest) $(MYREF CRC64ISODigest))
)
$(TR $(TDNW Helpers) $(TD $(MYREF crcHexString) $(MYREF crc32Of) $(MYREF crc64ECMAOf) $(MYREF crc64ISOOf))
)
)
)
*
* This module conforms to the APIs defined in $(D std.digest). To understand the
* differences between the template and the OOP API, see $(MREF std, digest).
*
* This module publicly imports $(MREF std, digest) and can be used as a stand-alone
* module.
*
* Note:
* CRCs are usually printed with the MSB first. When using
* $(REF toHexString, std,digest) the result will be in an unexpected
* order. Use $(REF toHexString, std,digest)'s optional order parameter
* to specify decreasing order for the correct result. The $(LREF crcHexString)
* alias can also be used for this purpose.
*
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
*
* Authors: Pavel "EvilOne" Minayev, Alex Rønne Petersen, Johannes Pfau
*
* References:
* $(LINK2 http://en.wikipedia.org/wiki/Cyclic_redundancy_check, Wikipedia on CRC)
*
* Source: $(PHOBOSSRC std/digest/_crc.d)
*
* Standards:
* Implements the 'common' IEEE CRC32 variant
* (LSB-first order, Initial value uint.max, complement result)
*
* CTFE:
* Digests do not work in CTFE
*/
/*
* Copyright (c) 2001 - 2002
* Pavel "EvilOne" Minayev
* Copyright (c) 2012
* Alex Rønne Petersen
* 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 std.digest.crc;
public import std.digest;
version(StdUnittest) import std.exception;
///
@safe unittest
{
//Template API
import std.digest.crc;
ubyte[4] hash = crc32Of("The quick brown fox jumps over the lazy dog");
assert(crcHexString(hash) == "414FA339");
//Feeding data
ubyte[1024] data;
CRC32 crc;
crc.put(data[]);
crc.start(); //Start again
crc.put(data[]);
hash = crc.finish();
}
///
@safe unittest
{
//OOP API
import std.digest.crc;
auto crc = new CRC32Digest();
ubyte[] hash = crc.digest("The quick brown fox jumps over the lazy dog");
assert(crcHexString(hash) == "414FA339"); //352441c2
//Feeding data
ubyte[1024] data;
crc.put(data[]);
crc.reset(); //Start again
crc.put(data[]);
hash = crc.finish();
}
private T[256][8] genTables(T)(T polynomial)
{
T[256][8] res = void;
foreach (i; 0 .. 0x100)
{
T crc = i;
foreach (_; 0 .. 8)
crc = (crc >> 1) ^ (-int(crc & 1) & polynomial);
res[0][i] = crc;
}
foreach (i; 0 .. 0x100)
{
res[1][i] = (res[0][i] >> 8) ^ res[0][res[0][i] & 0xFF];
res[2][i] = (res[1][i] >> 8) ^ res[0][res[1][i] & 0xFF];
res[3][i] = (res[2][i] >> 8) ^ res[0][res[2][i] & 0xFF];
res[4][i] = (res[3][i] >> 8) ^ res[0][res[3][i] & 0xFF];
res[5][i] = (res[4][i] >> 8) ^ res[0][res[4][i] & 0xFF];
res[6][i] = (res[5][i] >> 8) ^ res[0][res[5][i] & 0xFF];
res[7][i] = (res[6][i] >> 8) ^ res[0][res[6][i] & 0xFF];
}
return res;
}
@system unittest
{
auto tables = genTables(0xEDB88320);
assert(tables[0][0] == 0x00000000 && tables[0][$ - 1] == 0x2d02ef8d && tables[7][$ - 1] == 0x264b06e6);
}
/**
* Template API CRC32 implementation.
* See $(D std.digest) for differences between template and OOP API.
*/
alias CRC32 = CRC!(32, 0xEDB88320);
/**
* Template API CRC64-ECMA implementation.
* See $(D std.digest.digest) for differences between template and OOP API.
*/
alias CRC64ECMA = CRC!(64, 0xC96C5795D7870F42);
/**
* Template API CRC64-ISO implementation.
* See $(D std.digest.digest) for differences between template and OOP API.
*/
alias CRC64ISO = CRC!(64, 0xD800000000000000);
/**
* Generic Template API used for CRC32 and CRC64 implementations.
*
* The N parameter indicate the size of the hash in bits.
* The parameter P specify the polynomial to be used for reduction.
*
* You may want to use the CRC32, CRC65ECMA and CRC64ISO aliases
* for convenience.
*
* See $(D std.digest.digest) for differences between template and OOP API.
*/
struct CRC(uint N, ulong P) if (N == 32 || N == 64)
{
private:
static if (N == 32)
{
alias T = uint;
}
else
{
alias T = ulong;
}
static immutable T[256][8] tables = genTables!T(P);
/**
* Type of the finished CRC hash.
* ubyte[4] if N is 32, ubyte[8] if N is 64.
*/
alias R = ubyte[T.sizeof];
// magic initialization constants
T _state = T.max;
public:
/**
* Use this to feed the digest with data.
* Also implements the $(REF isOutputRange, std,range,primitives)
* interface for $(D ubyte) and $(D const(ubyte)[]).
*/
void put(scope const(ubyte)[] data...) @trusted pure nothrow @nogc
{
T crc = _state;
// process eight bytes at once
while (data.length >= 8)
{
// Use byte-wise reads to support architectures without HW support
// for unaligned reads. This can be optimized by compilers to a single
// 32-bit read if unaligned reads are supported.
// DMD is not able to do this optimization though, so explicitly
// do unaligned reads for DMD's architectures.
version (X86)
enum hasLittleEndianUnalignedReads = true;
else version (X86_64)
enum hasLittleEndianUnalignedReads = true;
else
enum hasLittleEndianUnalignedReads = false; // leave decision to optimizer
static if (hasLittleEndianUnalignedReads)
{
uint one = (cast(uint*) data.ptr)[0];
uint two = (cast(uint*) data.ptr)[1];
}
else
{
uint one = (data.ptr[3] << 24 | data.ptr[2] << 16 | data.ptr[1] << 8 | data.ptr[0]);
uint two = (data.ptr[7] << 24 | data.ptr[6] << 16 | data.ptr[5] << 8 | data.ptr[4]);
}
static if (N == 32)
{
one ^= crc;
}
else
{
one ^= (crc & 0xffffffff);
two ^= (crc >> 32);
}
crc =
tables[0][two >> 24] ^
tables[1][(two >> 16) & 0xFF] ^
tables[2][(two >> 8) & 0xFF] ^
tables[3][two & 0xFF] ^
tables[4][one >> 24] ^
tables[5][(one >> 16) & 0xFF] ^
tables[6][(one >> 8) & 0xFF] ^
tables[7][one & 0xFF];
data = data[8 .. $];
}
// remaining 1 to 7 bytes
foreach (d; data)
crc = (crc >> 8) ^ tables[0][(crc & 0xFF) ^ d];
_state = crc;
}
/**
* Used to initialize the CRC32 digest.
*
* Note:
* For this CRC32 Digest implementation calling start after default construction
* is not necessary. Calling start is only necessary to reset the Digest.
*
* Generic code which deals with different Digest types should always call start though.
*/
void start() @safe pure nothrow @nogc
{
this = CRC.init;
}
/**
* Returns the finished CRC hash. This also calls $(LREF start) to
* reset the internal state.
*/
R finish() @safe pure nothrow @nogc
{
auto tmp = peek();
start();
return tmp;
}
/**
* Works like $(D finish) but does not reset the internal state, so it's possible
* to continue putting data into this CRC after a call to peek.
*/
R peek() const @safe pure nothrow @nogc
{
import std.bitmanip : nativeToLittleEndian;
//Complement, LSB first / Little Endian, see http://rosettacode.org/wiki/CRC-32
return nativeToLittleEndian(~_state);
}
}
///
@safe unittest
{
//Simple example, hashing a string using crc32Of helper function
ubyte[4] hash32 = crc32Of("abc");
//Let's get a hash string
assert(crcHexString(hash32) == "352441C2");
// Repeat for CRC64
ubyte[8] hash64ecma = crc64ECMAOf("abc");
assert(crcHexString(hash64ecma) == "2CD8094A1A277627");
ubyte[8] hash64iso = crc64ISOOf("abc");
assert(crcHexString(hash64iso) == "3776C42000000000");
}
///
@safe unittest
{
ubyte[1024] data;
//Using the basic API
CRC32 hash32;
CRC64ECMA hash64ecma;
CRC64ISO hash64iso;
//Initialize data here...
hash32.put(data);
ubyte[4] result32 = hash32.finish();
hash64ecma.put(data);
ubyte[8] result64ecma = hash64ecma.finish();
hash64iso.put(data);
ubyte[8] result64iso = hash64iso.finish();
}
///
@safe unittest
{
//Let's use the template features:
//Note: When passing a CRC32 to a function, it must be passed by reference!
void doSomething(T)(ref T hash)
if (isDigest!T)
{
hash.put(cast(ubyte) 0);
}
CRC32 crc32;
crc32.start();
doSomething(crc32);
assert(crcHexString(crc32.finish()) == "D202EF8D");
// repeat for CRC64
CRC64ECMA crc64ecma;
crc64ecma.start();
doSomething(crc64ecma);
assert(crcHexString(crc64ecma.finish()) == "1FADA17364673F59");
CRC64ISO crc64iso;
crc64iso.start();
doSomething(crc64iso);
assert(crcHexString(crc64iso.finish()) == "6F90000000000000");
}
@safe unittest
{
assert(isDigest!CRC32);
assert(isDigest!CRC64ECMA);
assert(isDigest!CRC64ISO);
}
@system unittest
{
import std.conv : hexString;
ubyte[4] digest;
CRC32 crc;
crc.put(cast(ubyte[])"abcdefghijklmnopqrstuvwxyz");
assert(crc.peek() == cast(ubyte[]) hexString!"bd50274c");
crc.start();
crc.put(cast(ubyte[])"");
assert(crc.finish() == cast(ubyte[]) hexString!"00000000");
digest = crc32Of("");
assert(digest == cast(ubyte[]) hexString!"00000000");
//Test vector from http://rosettacode.org/wiki/CRC-32
assert(crcHexString(crc32Of("The quick brown fox jumps over the lazy dog")) == "414FA339");
digest = crc32Of("a");
assert(digest == cast(ubyte[]) hexString!"43beb7e8");
digest = crc32Of("abc");
assert(digest == cast(ubyte[]) hexString!"c2412435");
digest = crc32Of("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq");
assert(digest == cast(ubyte[]) hexString!"5f3f1a17");
digest = crc32Of("message digest");
assert(digest == cast(ubyte[]) hexString!"7f9d1520");
digest = crc32Of("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
assert(digest == cast(ubyte[]) hexString!"d2e6c21f");
digest = crc32Of("1234567890123456789012345678901234567890"~
"1234567890123456789012345678901234567890");
assert(digest == cast(ubyte[]) hexString!"724aa97c");
enum ubyte[4] input = hexString!"c3fcd3d7";
assert(crcHexString(input) == "D7D3FCC3");
}
@system unittest
{
import std.conv : hexString;
ubyte[8] digest;
CRC64ECMA crc;
crc.put(cast(ubyte[])"abcdefghijklmnopqrstuvwxyz");
assert(crc.peek() == cast(ubyte[]) hexString!"2f121b7575789626");
crc.start();
crc.put(cast(ubyte[])"");
assert(crc.finish() == cast(ubyte[]) hexString!"0000000000000000");
digest = crc64ECMAOf("");
assert(digest == cast(ubyte[]) hexString!"0000000000000000");
//Test vector from http://rosettacode.org/wiki/CRC-32
assert(crcHexString(crc64ECMAOf("The quick brown fox jumps over the lazy dog")) == "5B5EB8C2E54AA1C4");
digest = crc64ECMAOf("a");
assert(digest == cast(ubyte[]) hexString!"052b652e77840233");
digest = crc64ECMAOf("abc");
assert(digest == cast(ubyte[]) hexString!"2776271a4a09d82c");
digest = crc64ECMAOf("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq");
assert(digest == cast(ubyte[]) hexString!"4b7cdce3746c449f");
digest = crc64ECMAOf("message digest");
assert(digest == cast(ubyte[]) hexString!"6f9b8a3156c9bc5d");
digest = crc64ECMAOf("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
assert(digest == cast(ubyte[]) hexString!"2656b716e1bf0503");
digest = crc64ECMAOf("1234567890123456789012345678901234567890"~
"1234567890123456789012345678901234567890");
assert(digest == cast(ubyte[]) hexString!"bd3eb7765d0a22ae");
enum ubyte[8] input = hexString!"c3fcd3d7efbeadde";
assert(crcHexString(input) == "DEADBEEFD7D3FCC3");
}
@system unittest
{
import std.conv : hexString;
ubyte[8] digest;
CRC64ISO crc;
crc.put(cast(ubyte[])"abcdefghijklmnopqrstuvwxyz");
assert(crc.peek() == cast(ubyte[]) hexString!"f0494ab780989b42");
crc.start();
crc.put(cast(ubyte[])"");
assert(crc.finish() == cast(ubyte[]) hexString!"0000000000000000");
digest = crc64ISOOf("");
assert(digest == cast(ubyte[]) hexString!"0000000000000000");
//Test vector from http://rosettacode.org/wiki/CRC-32
assert(crcHexString(crc64ISOOf("The quick brown fox jumps over the lazy dog")) == "4EF14E19F4C6E28E");
digest = crc64ISOOf("a");
assert(digest == cast(ubyte[]) hexString!"0000000000002034");
digest = crc64ISOOf("abc");
assert(digest == cast(ubyte[]) hexString!"0000000020c47637");
digest = crc64ISOOf("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq");
assert(digest == cast(ubyte[]) hexString!"5173f717971365e5");
digest = crc64ISOOf("message digest");
assert(digest == cast(ubyte[]) hexString!"a2c355bbc0b93f86");
digest = crc64ISOOf("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
assert(digest == cast(ubyte[]) hexString!"598B258292E40084");
digest = crc64ISOOf("1234567890123456789012345678901234567890"~
"1234567890123456789012345678901234567890");
assert(digest == cast(ubyte[]) hexString!"760cd2d3588bf809");
enum ubyte[8] input = hexString!"c3fcd3d7efbeadde";
assert(crcHexString(input) == "DEADBEEFD7D3FCC3");
}
/**
* This is a convenience alias for $(REF digest, std,digest) using the
* CRC32 implementation.
*
* Params:
* data = $(D InputRange) of $(D ElementType) implicitly convertible to
* $(D ubyte), $(D ubyte[]) or $(D ubyte[num]) or one or more arrays
* of any type.
*
* Returns:
* CRC32 of data
*/
//simple alias doesn't work here, hope this gets inlined...
ubyte[4] crc32Of(T...)(T data)
{
return digest!(CRC32, T)(data);
}
///
@system unittest
{
ubyte[] data = [4,5,7,25];
assert(data.crc32Of == [167, 180, 199, 131]);
import std.utf : byChar;
assert("hello"d.byChar.crc32Of == [134, 166, 16, 54]);
ubyte[4] hash = "abc".crc32Of();
assert(hash == digest!CRC32("ab", "c"));
import std.range : iota;
enum ubyte S = 5, F = 66;
assert(iota(S, F).crc32Of == [59, 140, 234, 154]);
}
/**
* This is a convenience alias for $(REF digest, std,digest) using the
* CRC64-ECMA implementation.
*
* Params:
* data = $(D InputRange) of $(D ElementType) implicitly convertible to
* $(D ubyte), $(D ubyte[]) or $(D ubyte[num]) or one or more arrays
* of any type.
*
* Returns:
* CRC64-ECMA of data
*/
//simple alias doesn't work here, hope this gets inlined...
ubyte[8] crc64ECMAOf(T...)(T data)
{
return digest!(CRC64ECMA, T)(data);
}
///
@system unittest
{
ubyte[] data = [4,5,7,25];
assert(data.crc64ECMAOf == [58, 142, 220, 214, 118, 98, 105, 69]);
import std.utf : byChar;
assert("hello"d.byChar.crc64ECMAOf == [177, 55, 185, 219, 229, 218, 30, 155]);
ubyte[8] hash = "abc".crc64ECMAOf();
assert("abc".crc64ECMAOf == [39, 118, 39, 26, 74, 9, 216, 44]);
assert(hash == digest!CRC64ECMA("ab", "c"));
import std.range : iota;
enum ubyte S = 5, F = 66;
assert(iota(S, F).crc64ECMAOf == [6, 184, 91, 238, 46, 213, 127, 188]);
}
/**
* This is a convenience alias for $(REF digest, std,digest,digest) using the
* CRC64-ISO implementation.
*
* Params:
* data = $(D InputRange) of $(D ElementType) implicitly convertible to
* $(D ubyte), $(D ubyte[]) or $(D ubyte[num]) or one or more arrays
* of any type.
*
* Returns:
* CRC64-ISO of data
*/
//simple alias doesn't work here, hope this gets inlined...
ubyte[8] crc64ISOOf(T...)(T data)
{
return digest!(CRC64ISO, T)(data);
}
///
@system unittest
{
ubyte[] data = [4,5,7,25];
assert(data.crc64ISOOf == [0, 0, 0, 80, 137, 232, 203, 120]);
import std.utf : byChar;
assert("hello"d.byChar.crc64ISOOf == [0, 0, 16, 216, 226, 238, 62, 60]);
ubyte[8] hash = "abc".crc64ISOOf();
assert("abc".crc64ISOOf == [0, 0, 0, 0, 32, 196, 118, 55]);
assert(hash == digest!CRC64ISO("ab", "c"));
import std.range : iota;
enum ubyte S = 5, F = 66;
assert(iota(S, F).crc64ISOOf == [21, 185, 116, 95, 219, 11, 54, 7]);
}
/**
* producing the usual CRC32 string output.
*/
public alias crcHexString = toHexString!(Order.decreasing);
///ditto
public alias crcHexString = toHexString!(Order.decreasing, 16);
/**
* OOP API CRC32 implementation.
* See $(D std.digest) for differences between template and OOP API.
*
* This is an alias for $(D $(REF WrapperDigest, std,digest)!CRC32), see
* there for more information.
*/
alias CRC32Digest = WrapperDigest!CRC32;
/**
* OOP API CRC64-ECMA implementation.
* See $(D std.digest.digest) for differences between template and OOP API.
*
* This is an alias for $(D $(REF WrapperDigest, std,digest,digest)!CRC64ECMA),
* see there for more information.
*/
alias CRC64ECMADigest = WrapperDigest!CRC64ECMA;
/**
* OOP API CRC64-ISO implementation.
* See $(D std.digest.digest) for differences between template and OOP API.
*
* This is an alias for $(D $(REF WrapperDigest, std,digest,digest)!CRC64ISO),
* see there for more information.
*/
alias CRC64ISODigest = WrapperDigest!CRC64ISO;
///
@safe unittest
{
//Simple example, hashing a string using Digest.digest helper function
auto crc = new CRC32Digest();
ubyte[] hash = crc.digest("abc");
//Let's get a hash string
assert(crcHexString(hash) == "352441C2");
}
///
@system unittest
{
//Let's use the OOP features:
void test(Digest dig)
{
dig.put(cast(ubyte) 0);
}
auto crc = new CRC32Digest();
test(crc);
//Let's use a custom buffer:
ubyte[4] buf;
ubyte[] result = crc.finish(buf[]);
assert(crcHexString(result) == "D202EF8D");
}
///
@safe unittest
{
//Simple example
auto hash = new CRC32Digest();
hash.put(cast(ubyte) 0);
ubyte[] result = hash.finish();
}
///
@system unittest
{
//using a supplied buffer
ubyte[4] buf;
auto hash = new CRC32Digest();
hash.put(cast(ubyte) 0);
ubyte[] result = hash.finish(buf[]);
//The result is now in result (and in buf. If you pass a buffer which is bigger than
//necessary, result will have the correct length, but buf will still have it's original
//length)
}
@system unittest
{
import std.conv : hexString;
import std.range;
auto crc = new CRC32Digest();
crc.put(cast(ubyte[])"abcdefghijklmnopqrstuvwxyz");
assert(crc.peek() == cast(ubyte[]) hexString!"bd50274c");
crc.reset();
crc.put(cast(ubyte[])"");
assert(crc.finish() == cast(ubyte[]) hexString!"00000000");
crc.put(cast(ubyte[])"abcdefghijklmnopqrstuvwxyz");
ubyte[20] result;
auto result2 = crc.finish(result[]);
assert(result[0 .. 4] == result2 && result2 == cast(ubyte[]) hexString!"bd50274c");
debug
assertThrown!Error(crc.finish(result[0 .. 3]));
assert(crc.length == 4);
assert(crc.digest("") == cast(ubyte[]) hexString!"00000000");
assert(crc.digest("a") == cast(ubyte[]) hexString!"43beb7e8");
assert(crc.digest("abc") == cast(ubyte[]) hexString!"c2412435");
assert(crc.digest("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq")
== cast(ubyte[]) hexString!"5f3f1a17");
assert(crc.digest("message digest") == cast(ubyte[]) hexString!"7f9d1520");
assert(crc.digest("abcdefghijklmnopqrstuvwxyz")
== cast(ubyte[]) hexString!"bd50274c");
assert(crc.digest("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")
== cast(ubyte[]) hexString!"d2e6c21f");
assert(crc.digest("1234567890123456789012345678901234567890",
"1234567890123456789012345678901234567890")
== cast(ubyte[]) hexString!"724aa97c");
ubyte[] onemilliona = new ubyte[1000000];
onemilliona[] = 'a';
auto digest = crc32Of(onemilliona);
assert(digest == cast(ubyte[]) hexString!"BCBF25DC");
auto oneMillionRange = repeat!ubyte(cast(ubyte)'a', 1000000);
digest = crc32Of(oneMillionRange);
assert(digest == cast(ubyte[]) hexString!"BCBF25DC");
}
|
D
|
#!/usr/bin/env rdmd
module five_one;
import std.stdio;
import std.range;
import std.algorithm;
void main() {
bool[dchar[]] disallowed_strings = ["ab" : true, "cd" : true, "pq" : true, "xy" : true];
auto input = File("5.input");
auto data = input.byLine;
bool isNice(in char[] line) {
auto vowels = 0;
auto has_double = false;
foreach (i, c1, c2; lockstep(line.chunks(2), line[1..$].chunks(2))) {
auto chunk1 = c1.array();
auto chunk2 = c2.array();
has_double = ((chunk1.length > 1 && chunk1[0] == chunk1[1]) ||
chunk2.length > 1 && chunk2[0] == chunk2[1]) || has_double;
if (chunk1 in disallowed_strings || chunk2 in disallowed_strings) {
return false;
}
foreach (c; chunk1) {
switch (c) {
case 'a','e','i','o','u':
vowels += 1;
break;
default: break;
}
}
}
return vowels >= 3 && has_double;
} //isNice
auto nice_words = data.filter!isNice().walkLength;
writefln("Day 5: Nice Words: %d", nice_words);
}
|
D
|
module org.eclipse.swt.internal.mozilla.nsIDOMNodeList;
import java.lang.all;
import org.eclipse.swt.internal.mozilla.Common;
import org.eclipse.swt.internal.mozilla.nsID;
import org.eclipse.swt.internal.mozilla.nsISupports;
import org.eclipse.swt.internal.mozilla.nsIDOMNode;
alias PRUint64 DOMTimeStamp;
const char[] NS_IDOMNODELIST_IID_STR = "a6cf907d-15b3-11d2-932e-00805f8add32";
const nsIID NS_IDOMNODELIST_IID=
{0xa6cf907d, 0x15b3, 0x11d2,
[ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 ]};
//extern(System)
interface nsIDOMNodeList : nsISupports {
static const char[] IID_STR = NS_IDOMNODELIST_IID_STR;
static const nsIID IID = NS_IDOMNODELIST_IID;
extern(System):
nsresult Item(PRUint32 index, nsIDOMNode *_retval);
nsresult GetLength(PRUint32 *aLength);
}
|
D
|
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/Basic/BasicAuthenticationMiddleware.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/AuthenticationCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Authenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Basic/BasicAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Password/PasswordAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Token/TokenAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/SessionAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Bearer/BearerAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Utilities/GuardMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Basic/BasicAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Token/TokenAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Bearer/BearerAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/AuthenticationSessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/RedirectMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/AuthenticationProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Password/PasswordVerifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Utilities/AuthenticationError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/Basic/BasicAuthenticationMiddleware~partial.swiftmodule : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/AuthenticationCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Authenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Basic/BasicAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Password/PasswordAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Token/TokenAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/SessionAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Bearer/BearerAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Utilities/GuardMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Basic/BasicAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Token/TokenAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Bearer/BearerAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/AuthenticationSessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/RedirectMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/AuthenticationProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Password/PasswordVerifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Utilities/AuthenticationError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/Basic/BasicAuthenticationMiddleware~partial.swiftdoc : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/AuthenticationCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Authenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Basic/BasicAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Password/PasswordAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Token/TokenAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/SessionAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Bearer/BearerAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Utilities/GuardMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Basic/BasicAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Token/TokenAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Bearer/BearerAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/AuthenticationSessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/RedirectMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/AuthenticationProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Password/PasswordVerifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Utilities/AuthenticationError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/Basic/BasicAuthenticationMiddleware~partial.swiftsourceinfo : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/AuthenticationCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Authenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Basic/BasicAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Password/PasswordAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Token/TokenAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/SessionAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Bearer/BearerAuthenticatable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Utilities/GuardMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Basic/BasicAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Token/TokenAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Bearer/BearerAuthenticationMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/AuthenticationSessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Persist/RedirectMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/AuthenticationProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Password/PasswordVerifier.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Utilities/AuthenticationError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
// https://issues.dlang.org/show_bug.cgi?id=20025
struct B
{
static int value = 77;
alias value this;
this(ref return scope inout B rhs) inout { }
}
void test(int x)
{
assert(x == 77);
}
int main()
{
B b;
test(b);
return 0;
}
|
D
|
/Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/PetriKit.build/PetriNet+Dot.swift.o : /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/Marking.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/Random.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/Group.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/PTNet.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/PetriKit.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/PetriNet+Dot.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/PetriKit.build/PetriNet+Dot~partial.swiftmodule : /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/Marking.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/Random.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/Group.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/PTNet.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/PetriKit.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/PetriNet+Dot.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/PetriKit.build/PetriNet+Dot~partial.swiftdoc : /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/Marking.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/Random.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/Group.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/PTNet.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/PetriKit.swift /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/PetriNet+Dot.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
/home/steboss/projects/learning_rust/2_guessing_game/guessing_game/target/debug/deps/guessing_game-9b23b849c290cc91: src/main.rs
/home/steboss/projects/learning_rust/2_guessing_game/guessing_game/target/debug/deps/guessing_game-9b23b849c290cc91.d: src/main.rs
src/main.rs:
|
D
|
//
//----------------------------------------------------------------------
// Copyright 2007-2011 Mentor Graphics Corporation
// Copyright 2007-2010 Cadence Design Systems, Inc.
// Copyright 2010 Synopsys, Inc.
// Copyright 2014 Coverify Systems Technology
// All Rights Reserved Worldwide
//
// 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 under the License is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See
// the License for the specific language governing
// permissions and limitations under the License.
//----------------------------------------------------------------------
//------------------------------------------------------------------------------
//
// Class: uvm_topdown_phase
//
//------------------------------------------------------------------------------
// Virtual base class for function phases that operate top-down.
// The pure virtual function execute() is called for each component.
//
// A top-down function phase completes when the <execute()> method
// has been called and returned on all applicable components
// in the hierarchy.
module uvm.base.uvm_topdown_phase;
import uvm.base.uvm_phase;
import uvm.base.uvm_component;
import uvm.base.uvm_object_globals;
import uvm.base.uvm_message_defines;
import uvm.base.uvm_domain;
import uvm.base.uvm_misc;
import esdl.base.core: Process;
import std.string: format;
abstract class uvm_topdown_phase: uvm_phase
{
// Function: new
//
// Create a new instance of a top-down phase
//
public this(string name) {
super(name,UVM_PHASE_IMP);
}
// Function: traverse
//
// Traverses the component tree in top-down order, calling <execute> for
// each component.
//
override public void traverse(uvm_component comp,
uvm_phase phase,
uvm_phase_state state) {
uvm_domain phase_domain = phase.get_domain();
uvm_domain comp_domain = comp.get_domain();
synchronized(this) {
if (m_phase_trace) {
uvm_info("PH_TRACE", format("topdown-phase phase=%s state=%s comp=%s "
"comp.domain=%s phase.domain=%s",
phase.get_name(), state,
comp.get_full_name(), comp_domain.get_name(),
phase_domain.get_name()),
UVM_DEBUG);
}
if (phase_domain is uvm_domain.get_common_domain() ||
phase_domain is comp_domain) {
switch (state) {
case UVM_PHASE_STARTED:
comp.m_current_phase = phase;
comp.m_apply_verbosity_settings(phase);
comp.phase_started(phase);
break;
case UVM_PHASE_EXECUTING:
if (!(phase.get_name() == "build" && comp.m_build_done)) {
uvm_phase ph = this;
comp.inc_phasing_active();
if (this in comp.m_phase_imps) {
ph = comp.m_phase_imps[this];
}
ph.execute(comp, phase);
comp.dec_phasing_active();
}
break;
case UVM_PHASE_READY_TO_END:
comp.phase_ready_to_end(phase);
break;
case UVM_PHASE_ENDED:
comp.phase_ended(phase);
comp.m_current_phase = null;
break;
default:
uvm_fatal("PH_BADEXEC","topdown phase traverse internal error");
}
}
}
foreach(child; comp.get_children) {
traverse(child, phase, state);
}
}
// Function: execute
//
// Executes the top-down phase ~phase~ for the component ~comp~.
//
override public void execute(uvm_component comp,
uvm_phase phase) {
// reseed this process for random stability
auto proc = Process.self;
proc.srandom(uvm_create_random_seed(phase.get_type_name(),
comp.get_full_name()));
comp.m_current_phase = phase;
exec_func(comp, phase);
}
}
|
D
|
#!/usr/bin/env dub
/+ dub.sdl:
name "composition"
dependency "matplotd" version="0.0.1"
dependency "mir" version="0.16.0-alpha6"
+/
// composition/mixture sampling
S sample(S, RNG, Sampler)(ref RNG gen, Sampler[] samplers, S[] probs)
{
import mir.random.discrete : discrete;
// pick a sampler with prob_i
auto ds = discrete(probs);
return samplers[ds(gen)](gen);
}
void main()
{
import std.math : abs, PI, sin;
import std.random: Mt19937, uniform;
alias S = double;
auto gen = Mt19937(42);
alias Sampler = S delegate(ref typeof(gen) gen);
S[] probs = [0.3, 0.7];
Sampler[] samplers = new Sampler[probs.length];
samplers[0] = (ref typeof (gen) gen) {
import std.math : log;
auto finv = (S x) => -log(S(1) - x);
S u = uniform!("[)", S)(0, 0.8);
return finv(u);
};
samplers[1] = (ref typeof (gen) gen) {
return uniform!("[]", S)(2, 3, gen);
};
S[] samples = new S[1_000_000];
foreach(i; 0..samples.length)
samples[i] = sample!S(gen, samplers, probs);
string plotDir = "plots";
import std.file : exists, mkdir;
import std.path : buildPath;
if (!plotDir.exists)
plotDir.mkdir;
import matplotd.hist;
HistogramConfig hc = {histType: "step", color:"red"};
histogram(samples, plotDir.buildPath("composition.pdf"), hc);
hc.cumulative = true;
histogram(samples, plotDir.buildPath("composition_cum.pdf"), hc);
}
|
D
|
module index;
import std.file;
import std.stdio : File;
import io.dstream;
import io.ioutil;
import concord;
import content.defs;
import content.repos;
import indexfields;
import util.prime;
import util.dhash64;
class Index
{
public:
this() {
_concord = new Concordance;
_repos = Repository.instance();
}
void insert(string term, ulong anchor) {
_concord.insert(term, anchor);
}
public static ulong hash(string term, ulong size) {
return (DoubleHash64.hash(term) & 0x7FFFFFFFFFFFFFFFL) % size;
}
void write(string db, string[] fields) {
// merge concordance blocks
File concordFile = _concord.merge();
auto outfile = _repos.getIndexPath(db);
DataStream dis = new DataStream(concordFile.name, "rb");
DataStream dos = new DataStream(outfile, "wb+");
// write file magic number
dos.writeInt(INDEX_MAGIC_NO);
// write the number of index fields
dos.writeInt(cast(int) fields.length);
// write index fields
foreach(field; fields) {
dos.writeUTF(field);
}
// write the total number of terms
ulong term_count_offset = dos.tell();
dos.writeInt(0); // not yet known
// write the size of the hash table
ulong hash_table_size_offset = dos.tell();
dos.writeLong(0); // not yet known
// write the offset to the hash table
ulong hash_table_offset = dos.tell();
dos.writeLong(0); // not yet known
// concordance offset
ulong concord_offset = dos.tell();
// write terms & anchors
uint n, nterms;
string term;
for (n = 0; !dis.eof(); ++nterms) {
term = dis.readUTF();
// read the anchor list size
n = dis.readInt();
// write the term
dos.writeUTF(term);
// write the anchor list size
dos.writeInt(n);
// transfer the anchor list
IOUtil.transfer(dis, dos, n * cast(uint)ulong.sizeof);
}
dis.close();
// generate the hash table
// hash table location
ulong hash_table_area = dos.tell();
// write the total term count
dos.seek(term_count_offset);
dos.writeInt(nterms);
// compute the size of the hash table and store it
ulong tableSize = Prime.prime(nterms);
dos.seek(hash_table_size_offset);
dos.writeLong(tableSize);
// write the offset to the hash table
dos.seek(hash_table_offset);
dos.writeLong(hash_table_area);
dos.seek(hash_table_area); // jump back
// need to ensure the hash table is empty
IOUtil.fill(dos, tableSize * ulong.sizeof, 0);
// we need two file pointers to the output file
// in order to generate the hash table
dis = new DataStream(outfile, "rb");
// seek to the concordance
dis.seek(concord_offset);
ulong h, offset, term_offset = concord_offset;
uint vsize;
for (uint i = 0; i < nterms; i++) {
term = dis.readUTF();
h = hash(term, tableSize);
// collisions are resolved via linear-probing
for (; ; ) {
offset = hash_table_area + (h * ulong.sizeof);
dos.seek(offset);
if (dos.readLong() == 0UL) {
break;
}
h = (h + 1) % tableSize;
}
dos.seek(offset);
dos.writeLong(term_offset);
// anchor list size
vsize = cast(uint)(dis.readInt() * ulong.sizeof);
dis.skipBytes(vsize);
// next term offset
term_offset = dis.tell();
}
dis.close();
dos.close();
}
private:
Repository _repos; // content repository
Concordance _concord; // term concordance
}
|
D
|
/mnt/c/Users/zeliwang/hello_world/digital_signature/target/debug/build/bitflags-1866ef3508b64dde/build_script_build-1866ef3508b64dde: /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bitflags-1.1.0/build.rs
/mnt/c/Users/zeliwang/hello_world/digital_signature/target/debug/build/bitflags-1866ef3508b64dde/build_script_build-1866ef3508b64dde.d: /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bitflags-1.1.0/build.rs
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bitflags-1.1.0/build.rs:
|
D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.