text stringlengths 4 6.14k |
|---|
#pragma once
/*////////////////////////////////////////////////////////////////////////////
GmshWriter.h
Writes a gmsh .msh file.
Copyright 2017 HJA Bird
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 S... |
//
// EsaKit.h
// EsaKit
//
// Created by pixyzehn on 2016/11/17.
// Copyright © 2016 pixyzehn. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for EsaKit.
FOUNDATION_EXPORT double EsaKitVersionNumber;
//! Project version string for EsaKit.
FOUNDATION_EXPORT const unsigned ch... |
/////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
// Distributable under the terms of either the Apache License (Version 2.0)
// or the GNU Lesser General Public License.
////////////////////////////////////////////////////////////... |
#ifndef ESPASYNCUDP_H
#define ESPASYNCUDP_H
#include "IPAddress.h"
#include "Print.h"
#include <functional>
class AsyncUDP;
class AsyncUDPPacket;
class AsyncUDPMessage;
struct udp_pcb;
struct pbuf;
struct ip_addr;
typedef struct ip_addr ip_addr_t;
class AsyncUDPMessage : public Print
{
protected:
uint8_t *_buffe... |
// Generated by : ImageConverter BW Online
// Generated from : oshw_logo.png
// Time generated : Thu, 11 Aug 11 20:28:44 +0200 (Server timezone: CET)
// Image Size : 56x48 pixels
// Memory usage : 336 bytes
#include <avr/pgmspace.h>
uint8_t oshw_logo[] PROGMEM={
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00... |
/*
* WinDrawLib
* Copyright (c) 2016 Martin Mitas
*
* 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,... |
/************************************************************************************
Filename : Util_DataLogger.h
Content : General purpose data logging to Matlab
Created : Oct 3, 2014
Authors : Neil Konzen
Copyright : Copyright 2014 Oculus VR, Inc. All Rights reserved.
Licensed under the... |
//
// ViewController.h
// HCSCarousel
//
// Created by Sahil Kapoor on 26/02/15.
// Copyright (c) 2015 Hot Cocoa Software. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
//
// LoggingAPI.h
// libloggingapi
//
// Created by Andreoletti David on 26/09/2012.
// Copyright 2012 IO Stark. All rights reserved.
//
#ifndef INCLUDE_LOGGINGAPI_LOGGINGAPI_H_
#define INCLUDE_LOGGINGAPI_LOGGINGAPI_H_
#include <string>
#include <vector>
#include "loggingapi/LoggingAPIInterface.h"
#include "logg... |
/**
Bit operation macros
@author Natesh Narain
*/
#ifndef BITUTIL_H
#define BITUTIL_H
//! Bit value
template<typename T>
inline T bv(T b)
{
return 1 << b;
}
//! set mask y in x
template<typename Tx, typename Ty>
inline void setMask(Tx& x, Ty y) noexcept
{
x |= (Tx)y;
}
//! clear mask y in x
template<ty... |
//
// AxcUserInteractionControlVC.h
// AxcUIKit
//
// Created by Axc on 2017/7/25.
// Copyright © 2017年 Axc_5324. All rights reserved.
//
#import "SampleBaseVC.h"
@interface AxcUserInteractionControlVC : SampleBaseVC
@end
|
/* See LICENSE for license details. */
/*
Module: snck_list.h
Description:
Generic linked list to be used for all lists in snck project.
Comments:
The list is a circular doubly linked list. A fake element is used
to point to first and last elements. The same structure is used for
each element in... |
/* --------------------------------------------------------------------------
*
* File MainScene.h
* Description
* Ported By Young-Hwan Mun
* Created By giginet - 11/05/27
* Contact xmsoft77@gmail.com
*
* ---------------------------------------------... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import <iWorkImport/TSKAVPlayerController.h>
@class NSArray;
// Not exported
@interface TSKAVQueuePlayerController : TSKAVPlayerController
{
NSArray *mAssets;
}
- (void)p... |
#include "input.h"
#include <unistd.h>
typedef enum KEY_CODE {
ASCII_NULL = 0x00,
ASCII_LOWER_Q = 0x71,
ASCII_LOWER_P = 0x70,
ASCII_LOWER_R = 0x72,
ASCII_LOWER_G = 0x67,
ASCII_UPPER_A = 0x41,
ASCII_UPPER_B ... |
// This file was generated based on 'C:\ProgramData\Uno\Packages\Outracks.Simulator.Protocol.Uno\0.1.0\Common\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#ifndef __APP_OUTRACKS_SIMULATOR_I_EQUATABLE__OUTRACKS_SIMULATOR_BYTECODE_OPTI_68E3A32D_H__
#define __APP_OUTRACKS_SIMULATOR_I_EQUATABL... |
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "GADBannerViewDelegate.h"
#import "GADInterstitialDelegate.h"
#import "GADBannerView.h"
#import "GADInterstitial.h"
#import "GADAdMobExtras.h"
#import "GADAdSize.h"
#define OPT_BANNER_ID @"bannerId"
#define OPT_... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 1. Redistributions of source c... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Templates 2 module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
** Licensees holding... |
//
// CCJsonBodyEncoder.h
// CCURLConnection
//
// Created by Kondratyev, Pavel on 3/19/14.
//
//
#import <Foundation/Foundation.h>
#import "CCBodyEncoder.h"
@interface CCJsonBodyEncoder : NSObject <CCBodyEncoder>
+ (instancetype)sharedEncoder;
@end
|
//
// UIColor+HexString.h
// seanYang
//
// Created by yang on 16/5/26.
// Copyright © 2016年 yangshiyu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIColor (HexString)
+(UIColor *)colorWithHexString:(NSString *) hexString;
@end
|
/* nobleNote, a note taking application
* Copyright (C) 2012 Christian Metscher <hakaishi@web.de>,
Fabian Deuchler <Taiko000@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... |
#ifndef ILLA_TYPES_H
#define ILLA_TYPES_H
#include "orz/exception.h"
#include <cstdint>
namespace Err {
struct CodecError:public std::runtime_error {
CodecError(const std::string& msg):std::runtime_error("Codec error: " + msg) {}
};
struct InvalidHeader:public CodecError {
InvalidHeader(const std::string& msg... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SYSCOIN_UTIL_TIME_H
#define SYSCOIN_UTIL_TIME_H
#include <stdint.h>
#inc... |
//
// eBayAPIHandler.h
// QRPrice
//
// Created by Alec Kretch on 2/12/16.
// Copyright © 2016 Alec Kretch. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Constants.h"
@class EBayAPIHandler;
@protocol EBayAPIHandlerDelegate <NSObject>
- (void)getEbayCategoryId:(NSString *)categoryId;
- (void... |
/*
* contract.h
*
* Created on: Apr 12, 2014
* Author: wilfeli
*/
#ifndef CONTRACT_H_
#define CONTRACT_H_
#include "Asset.h"
#include "PaymentSystem.h"
class IBuyerL;
class ISellerL;
class IPSAgent;
//template<typename Ti, typename Th> class Contract: public Asset<Th>{
//// auto holder;
//// auto issu... |
#ifndef RESOURCE_H
#define RESOURCE_H
#include <stdint.h>
#pragma pack(push, 1)
struct ArtResourceSettings {
uint32_t flags; /* 0 */
union {
struct {
uint32_t width; /* fixed */
uint32_t height; /* fixed */
int16_t frames;
} image;
struct {
int32_t scale; /* fixed */
uin... |
/*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... |
// PLForm
//
// Created by Ash Thwaites on 11/12/2015.
// Copyright (c) 2015 Pitch Labs. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PLValidator.h"
#pragma mark - Validator interface
@interface PLValidatorAlphabetic : PLValidatorSingleCondition
{
}
@property (nonatomic) BOOL allowWhitespa... |
// RUN: %clang_pgogen -O2 -o %t.0 %s
// RUN: %clang_pgogen=%t.d1 -O2 -o %t.1 %s
// RUN: %clang_pgogen=%t.d1/%t.d2 -O2 -o %t.2 %s
//
// RUN: %run %t.0 ""
// RUN: env LLVM_PROFILE_FILE=%t.d1/default.profraw %run %t.0 %t.d1/
// RUN: env LLVM_PROFILE_FILE=%t.d1/%t.d2/default.profraw %run %t.0 %t.d1/%t.d2/
// RUN: %run %t... |
//
// MGWatchdogPlatformIOS.h
// Pods
//
// Created by Max Gordeev on 31/05/15.
//
//
#include <TargetConditionals.h>
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
@import Foundation;
#import "MGWatchdogPlatform.h"
@interface MGWatchdogPlatformIOS : NSObject <MGWatchdogPlatform>
@end
#endif |
/*
** syscall.c for ftrace in /home/kureuil/Work/PSU_2015_ftrace
**
** Made by Arch Kureuil
** Login <kureuil@epitech.net>
**
** Started on Tue Apr 12 11:47:22 2016 Arch Kureuil
** Last update Sun Apr 17 11:19:06 2016 Arch Kureuil
*/
#include <sys/ptrace.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <as... |
/*******************************************************************************
* File Name: scps.c
*
* Version: 1.30
*
* Description:
* This file contains SCPS callback handler function.
*
* Hardware Dependency:
* CY8CKIT-042 BLE
*
********************************************************************************
* ... |
/**
******************************************************************************
* @file usb_conf.h
* @author MCD Application Team
* @version V4.0.0
* @date 21-January-2013
* @brief Virtual COM Port Demo configuration header
*********************************************************************... |
//
// NSAttributedString+MUSExtraMethods.h
// MuseApp
//
// Created by Leo Kwan on 9/18/15.
// Copyright © 2015 Leo Kwan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSAttributedString (MUSExtraMethods)
+(NSAttributedString *)returnMarkDownStringFromString:(NSStri... |
// -*- C++ -*-
// $Id: Signature.h 80826 2008-03-04 14:51:23Z wotte $
// File: Signature.h
// Author: Phil Mesnier
#ifndef _SIGNATURE_H_
#define _SIGNATURE_H_
// Signature class encapsulates a single line of nm output. This line may be
// either an "undefined" name to be resolved, or text or data which resolves
... |
double aligndistance (double * dists, double * distsA, double * distsB,
double * x, double * y, int ats) {
int i,j, k, dind = 0;
for (i = 0; i < ats; i++) {
for (j = 0; j < ats; j++) {
dists[dind] = (x[3 * i] - y[3 * j]) * (x[3 * i] - y[3 * j])
+ (x[3 * i ... |
/**
******************************************************************************
* @file stm32f7xx_hal_dma_ex.h
* @author MCD Application Team
* @version V1.0.3
* @date 13-November-2015
* @brief Header file of DMA HAL extension module.
***********************************************************... |
#pragma once
#include "IMessageLoop.h"
#include "MessageHandlerRegister.h"
#include "QueueConnector.h"
class MessageLoop : public IMessageLoop
{
private:
std::atomic_bool m_running;
ConnectorPtr m_inQueue;
MessageHandlerRegisterPtr m_handlers;
bool CallHandlerForMessage(const MessagePtr& pMsg);
public:
M... |
#ifndef CLIENTMODEL_H
#define CLIENTMODEL_H
#include <QObject>
class OptionsModel;
class AddressTableModel;
class TransactionTableModel;
class CWallet;
QT_BEGIN_NAMESPACE
class QDateTime;
class QTimer;
QT_END_NAMESPACE
/** Model for Bitcoin network client. */
class ClientModel : public QObject
{
Q_OBJECT
public... |
#include <string.h>
#include "basic.h"
#include "files.h"
#include "fills.h"
#include "list.h"
#include "minunit.h"
#include "traverse.h"
#include "util.h"
#include "yama.h"
int tests_run;
int verbose;
#define RECORDS 4
static char *test_history() {
YAMA *yama = yama_new();
yama_item *items[RECORDS];
fill_updat... |
#ifndef GITSUBMODULE_H
#define GITSUBMODULE_H
// generated from class_header.h
#include <nan.h>
#include <string>
extern "C" {
#include <git2.h>
}
#include "../include/submodule.h"
#include "../include/repository.h"
#include "../include/oid.h"
#include "../include/buf.h"
#include "../include/submodule_update_options.... |
//
// MasterViewController.h
// WeatherWorld
//
// Created by Pol Quintana on 4/11/14.
// Copyright (c) 2014 Pol Quintana. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CoreDataPoweredTableViewController.h"
@interface MasterViewController : CoreDataPoweredTableViewController
@end
|
/* -*- Mode: C++; indent-tabs-mode: nil -*- */
#ifndef SCHWA_LEARN_FEATURES_H_
#define SCHWA_LEARN_FEATURES_H_
#include <iosfwd>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <schwa/_base.h>
#include <schwa/learn/feature_transformers.h>
namespace schwa {
namespace learn {
void du... |
#ifndef GLOBAL_H
#define GLOBAL_H
#include "head.h"
// open file and store the content to a string
string
textToString(string file);
// judge if it is a blank character
bool
isWhite(const char &c);
// show error message
void
error(string msg);
// string = ""
void
clear(string &s);
// int = 0... |
/**
* @file src/Modules/imageProc/DistToOrigin.h
* @date Aug 2018
* @author PhRG - opticalp.fr
*/
/*
Copyright (c) 2018 Ph. Renaud-Goud / Opticalp
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 S... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64a.c
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-64a.tmpl.c
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: realloc Allocate data using realloc()
* GoodSource: All... |
#ifndef CSVREADER_H
#define CSVREADER_H
#include <iostream>
#include <fstream>
#include BOSS_OPENCV_V_opencv2__core__core_hpp //original-code:<opencv2/core/core.hpp>
#include "Utils.h"
using namespace std;
using namespace cv;
class CsvReader {
public:
/**
* The default constructor of the CSV reader Class.
* Th... |
#pragma once
#include "engine/lumix.h"
namespace Lumix
{
struct LUMIX_ENGINE_API PathInfo
{
explicit PathInfo(const char* path);
char m_extension[10];
char m_basename[MAX_PATH_LENGTH];
char m_dir[MAX_PATH_LENGTH];
};
struct PathInternal
{
char m_path[MAX_PATH_LENGTH];
u32 m_id;
volatile i32 m_ref_count;
};... |
#ifndef RTC_H_
#define RTC_H_
#include <stdint.h>
#include <stdbool.h>
typedef struct {
uint16_t year; /* 1..4095 */
uint8_t month; /* 1..12 */
uint8_t mday; /* 1..31 */
uint8_t wday; /* 0..6, Sunday = 0*/
uint8_t hour; /* 0..23 */
uint8_t min; /* 0..59 */
uint8_t sec; /* 0..59 */
uint8_t dst; /* 0 Win... |
#pragma once
#include "Application.h"
#include "FBXFile.h"
#include <glm/glm.hpp>
struct Buffers
{
unsigned int vao, vbo;
};
struct OGL_FBXRenderData
{
unsigned int VBO; // vertex buffer object
unsigned int IBO; // index buffer object
unsigned int VAO; // vertex array object
};
// derived application class that... |
/* Copyright (c) 2010-2015 Vanderbilt University
*
* 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, m... |
/*
* Author: MinusKelvin <minuskelvin.carlson@gmail.com>
*/
#ifndef _COMPILER_BASE_H_
#define _COMPILER_BASE_H_
// base.h
typedef struct Location Location;
typedef struct ASTNode ASTNode;
typedef struct ASTProgram ASTProgram;
typedef struct ASTQualifiedName ASTQualifiedName;
typedef struct ASTType ASTType;
// prog... |
/**
* SFALogLevel NS_OPTIONS with NSUInteger values.
*/
typedef NS_OPTIONS (NSUInteger, SFALogLevel) {
/**
* Option value for log level None.
*/
SFALogLevelNone = 0x0,
/**
* Option value for log level Trace.
*/
SFALogLevelTrace = 0x1,
/**
* Option value for log level Debug... |
//
// MDMainViewController.h
// iOS Library
//
// Created by Andrew Kopanev on 2/3/14.
// Copyright (c) 2014 Moqod. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MAMainViewController : UIViewController
@end
|
//
// MessageModel.h
// HuLaQuan
//
// Created by liyan on 16/1/18.
// Copyright © 2016年 yuwubao. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MessageModel : NSObject
@property (nonatomic, readonly) NSString *messageTitle;
@property (nonatomic, readonly) NSString *messageTime... |
//
// ZZPostlyExclusive.h
// ZZOperationExtension
//
// Created by sablib on 15/12/2.
// Copyright © 2015年 sablib. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ZZMutuallyExclusive.h"
@interface ZZPostlyExclusive : ZZMutuallyExclusive
@end
|
#import <UIKit/UIKit.h>
@interface SampleViewController : UIViewController
@end |
#include "GuidoComponent.h"
#include "openFrameworksDevice.h"
/*
* Simple wrapper for Guido engine library
* http://guidolib.sourceforge.net/
*/
class ofxGuido
{
public:
ofxGuido(GuidoLayoutSettings& layoutSettings);
~ofxGuido() {}
bool compile_string(const string& gstr);
void getPageFormat(GuidoPageFormat& f... |
//----------------------------------------------------------------------------------
// File: NV/NvShaderMappings.h
// SDK Version: v3.00
// Email: gameworks@nvidia.com
// Site: http://developer.nvidia.com/
//
// Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
//
// Redistribution... |
#ifndef ERROR_H
#define ERROR_H
#include <stdio.h>
#include <stdlib.h>
void throw_error(const char *error_msg);
#endif // ERROR_H
|
#ifndef SFC_COLORBUFFER_H
#define SFC_COLORBUFFER_H
#include <algorithm>
#include "../color/colorArray.h"
template <typename Display, typename Frontend, size_t Size, size_t ChunkSize, bool EqualColors>
class ColorBufferT;
/** \brief ColorBufferT specialized for equal color types in backend and frontend
* \tparam ... |
/*
* ui.c - Common UI routines.
*
* Written by
* Andreas Boose <viceteam@t-online.de>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public L... |
// RUN: %check --only -e %s -Wno-unused-label -Wno-dead-code
int f(void);
_Noreturn void noreturn(void);
int main()
{
switch(f()){
case 1:
f();
__attribute((fallthrough));
case 2:
__attribute((fallthrough));
case 3:
case 4:
;
__attribute((fallthrough)); // CHECK: error: fallthrough statement... |
/**
* @file VertexArrayObject.h
*
* @author Jan Duek <xdusek17@stud.fit.vutbr.cz>
* @date 2013
*/
#ifndef VERTEX_ARRAY_OBJECT_H
#define VERTEX_ARRAY_OBJECT_H
#include <GL/glew.h>
namespace gl {
/// Wrapper around OpenGL vao. Movable noncopyable
class VertexArrayObject
{
public:
VertexArrayObject() {
glGenV... |
//
// HTextInputProtocals.h
// Hodor
//
// Created by zhangchutian on 15/5/29.
// Copyright (c) 2015年 zhangchutian. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@protocol HTextInputRecver <UITextInput>
- (void)setInputAccessoryView:(UIView *)inputAccessoryView;
- (void)setInpu... |
#include "Function.h"
#include "xc.h"
#include "pps.h"
#include <libpic30.h>
void Setup(void)
{
// setup internal clock for 72MHz/36MIPS
// 12/2=6*24=132/2=72
CLKDIVbits.PLLPRE=0; // PLLPRE (N2) 0=/2
PLLFBD=22; // pll multiplier (M) = +2
CLKDIVbits.PLLPOST=0; // PLLPOST (N1) 0=... |
//
// ZHModel.h
// UIFengzhuang
//
// Created by Aaron on 15/12/26.
// Copyright (c) 2015年 叶无道. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* 保存每一次对阵
*/
@class ZHSmallVideo;
@interface ZHMatchVS : NSObject
@property (nonatomic ,copy) NSString *team_A_id;
@property (nonatomic ,copy) NSString *t... |
// Copyright (c) 2011-2013 The CoinsBazar developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SIGNVERIFYMESSAGEDIALOG_H
#define SIGNVERIFYMESSAGEDIALOG_H
#include <QDialog>
class WalletModel;
namespace Ui {... |
//
// FSTPoultryDuckBreastSousVideRecipe.h
// FirstBuild
//
// Created by Myles Caley on 12/17/15.
// Copyright © 2015 FirstBuild. All rights reserved.
//
#import "FSTPoultryDuckSousVideRecipe.h"
@interface FSTPoultryDuckBreastSousVideRecipe : FSTPoultryDuckSousVideRecipe
@end
|
#ifndef CRAY_BOX_H
#define CRAY_BOX_H
#include <CRayShape.h>
#include <CBox3D.h>
class CRayBox : public CRayShape, public CBox3D {
public:
CRayBox(double rx, double ry, double rz) :
CRayShape(), CBox3D(rx, ry, rz) {
}
CBBox3D getBBox() const {
return CBox3D::getBBox();
}
bool hit(const CRay &ray, ... |
//
// ThirdMacros.h
// MiAiApp
//
// Created by 徐阳 on 2017/5/18.
// Copyright © 2017年 徐阳. All rights reserved.
//
#ifndef ThirdMacros_h
#define ThirdMacros_h
#endif /* ThirdMacros_h */
|
#include "../mk.h"
static void mk_open_db_on_scandir(uv_fs_t *req)
{
if (req->result < 0) {
fprintf(stderr, "error scanning dir: %s\n", uv_strerror((int)req->result));
return;
}
uv_dirent_t *dent = malloc(sizeof(dent));
mk_open_db_context *context = (mk_open_db_context*) req->data;
... |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double TKSubmitTransitionSwift3VersionNumber;
FOUNDATION_EXPORT const unsigned char TKSubmitTransitionSwif... |
#include <stdlib.h>
#include <string.h>
#include "io.h"
int *IOcontext_lookupArgFlags(int argc, char* argv[]){
int i;
int *pFlags = malloc(255 * sizeof(int));
if (pFlags == NULL){
fprintf(stderr, "Error, could not allocate memory for flags\n");
return NULL;
}
memset(pFlags, -1, 25... |
// Copyright (c) 2011-2013 The Bitcredit Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCREDIT_QT_WALLETVIEW_H
#define BITCREDIT_QT_WALLETVIEW_H
#include "amount.h"
#include <QStackedWidget>
class ... |
#pragma once
#include "onmt/nn/Module.h"
namespace onmt
{
namespace nn
{
template <typename MatFwd, typename MatIn, typename MatEmb, typename ModelT>
class SoftMax: public Module<MatFwd, MatIn, MatEmb, ModelT>
{
public:
SoftMax()
: Module<MatFwd, MatIn, MatEmb, ModelT>("nn.SoftMax")... |
//
// InterfaceViewController.h
// autoCoding
//
// Created by 李玉峰 on 15/6/25.
// Copyright (c) 2015年 liyufeng. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface InterfaceViewController : UIViewController
@end
|
/*
* Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
/*
* compact c compiler
*
**/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdarg.h>
#include <string.h>
#define BUFLEN 256
FILE *fp;
enum {
AST_INT,
AST_STR,
};
typedef struct Ast {
int type;
union {
int ival;
char *sval;
struct {
struct Ast *left;
struct ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22b.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml
Template File: sources-sink-22b.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate memory... |
/* Last Changed Time-stamp: <2001-09-07 10:17:47 ivo> */
/* This program converts the bracket notation for RNA secondary structures
produced by RNAfold to .ct files used by Michael Zukers Program.
To compile enter:
cc -o b2ct b2ct.c
And use as
b2ct < structure_file > ct_... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__int_malloc_51a.c
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-51a.tmpl.c
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: malloc Allocate data using malloc()
* GoodSource: Allocate data on the st... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_loop_09.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml
Template File: sources-sink-09.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Set data... |
/*************************************************************************/
/* rasterizer_canvas_gles3.h */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* Copyright (C) 1996-2009 Michael R. Elkins <me@mutt.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any la... |
/*++
/* NAME
/* mylseek 3
/* SUMMARY
/* seek beyond the 32-bit barrier
/* SYNOPSIS
/* #include "fs_tools.h"
/*
/* OFF_T mylseek(int fd, OFF_T offset, int whence)
/* DESCRIPTION
/* mylseek() jumps whatever hoops are needed to seek files
/* with larger than 32-bit offsets.
/* LICENSE
/* This software is distributed under... |
/*************************************************************************
*** FORTE Library Element
***
*** This file was generated using the 4DIAC FORTE Export Filter V1.0.x!
***
*** Name: F_USINT_TO_STRING
*** Description: convert USINT to STRING
*** Version:
*** 0.0: 2012-01-18/4DIAC-IDE - 4DIA... |
/*
* RetroDeLuxe Engine for MSX
*
* Copyright (C) 2020 Enric Martin Geijo (retrodeluxemsx@gmail.com)
*
* RDLEngine is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation, version 2.
*
* This program is distri... |
#ifndef __SERVER_SHARE_RS2GS_REGISTER_H__
#define __SERVER_SHARE_RS2GS_REGISTER_H__
#include "NDServerShare.h"
#include "protocol/NDCmdProtocolS2S.h"
class NDRS2GS_Register_Req : public NDProtocol
{
public:
NDUint16 m_nRoomServerID;
NDSocketAddress m_netAddress;
public:
NDRS2GS_Register_Req() : NDProtocol( CMDP_... |
/*
* I/O -- I/O handling for multiple fds
*
* Copyright (C) 2009 Martin Wolters et al.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your... |
/* qv4l2: a control panel controlling v4l2 devices.
*
* Copyright (C) 2006 Hans Verkuil <hverkuil@xs4all.nl>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the Li... |
/*
* The filenames of the animation pictures. Also see anim.h
*
* Copyright (c) 2000 Michael Pearson <alcaron@senet.com.au>
*
* This file is licensed under the GNU General Public License. See the file
* "COPYING" for more details.
*/
/*
* Every image is in .png format, and is suffixed by .frameno.png
* eg, "f... |
/*
* Minimal debug/trace/assert driver definitions for
* Broadcom 802.11 Networking Adapter.
*
* Copyright (C) 1999-2011, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the... |
/*
* Copyright (c) 2008 Marco Merli <yohji@marcomerli.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*... |
/*
* java-gnome, a UI library for writing GTK and GNOME programs from Java!
*
* Copyright © 2006-2011 Operational Dynamics Consulting, Pty Ltd and Others
*
* The code in this file, and the program it is a part of, is made available
* to you by its authors as open source software: you can redistribute it
* and/or... |
/***************************************************************************
* Copyright (C) 2006 by Peter Komar *
* markus_sksoft@mail.ru *
* *
* This pr... |
/*******************************************************************************
Header File to describe the DMA descriptors.
Enhanced descriptors have been in case of DWMAC1000 Cores.
This program is free software; you can redistribute it and/or modify it
under the terms and conditions of the GNU General... |
#include <linux/module.h>
#include <linux/kernel.h>
//#include <linux/proc_fs.h>
#include <linux/sched.h>
#include <linux/printk.h>
#include <asm/uaccess.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#define EMERGDATA_NAME "emerg_data"
... |
/*
* linux/arch/alpha/kernel/sys_eb64p.c
*
* Copyright (C) 1995 David A Rusling
* Copyright (C) 1996 Jay A Estabrook
* Copyright (C) 1998, 1999 Richard Henderson
*
* Code supporting the EB64+ and EB66.
*/
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/sche... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.