text stringlengths 4 6.14k |
|---|
//
// LTPasswordKeyboard.h
// testAPP
//
// Created by huanyu.li on 2017/9/11.
// Copyright © 2017年 huanyu.li. All rights reserved.
//
#import "LTBaseKeyboard.h"
@interface LTPasswordKeyboard : LTBaseKeyboard
@end
|
#define DDCL_CORE
#include "ddclstorage.h"
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
typedef struct tag_Block{
char used;
ddcl_Handle h;
struct tag_Block * next;
struct tag_Block * last;
}Block;
typedef struct tag_Slot {
char * buf;
dduint32 size;
struct tag_Slot * next... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPStructuredGridConnectivity.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
T... |
#import "MOBProjection.h"
@interface MOBProjectionEPSG5117 : MOBProjection
@end
|
//
// ViewController.h
// SMTKeyboardManager
//
// Created by Steffi Tan on 30/03/2016.
// Copyright © 2016 Steffi Tan. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
#include "unity.h"
#include "unity_fixture.h"
TEST_GROUP_RUNNER(Camera)
{
RUN_TEST_CASE(Camera, testCamera_Abrir_Invalido);
RUN_TEST_CASE(Camera, testCamera_Abrir_Valido);
RUN_TEST_CASE(Camera, testImagem_Obter_Frame);
}
|
//
// XScrollDataSourceAccess.h
// XScrollExample
//
// Created by Agus Soedibjo on 07/10/2014.
// Copyright (c) 2014 Agus Soedibjo. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to dea... |
#ifndef INC_NMEA_GPRMC_H
#define INC_NMEA_GPRMC_H
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <time.h>
#include <nmea.h>
typedef struct {
nmea_s base;
struct tm date_time;
nmea_position longitude;
nmea_position latitude;
double gndspd_knots;
double track_deg;
double magvar_deg;
nmea_... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
@interface PULayoutSectioning : NSObject
{
_Bool _invalidatingSampling;
_Bool _invalidatingSections;
PULayoutSectioning *_baseSectioning;
id... |
/*
* cli.h (header file for the Command line handler)
*
* AUTHOR: Muthucumaru Maheswaran
* DATE: December 25, 2004
*
* The CLI is used as a configuration file parser
* as well. Right now the CLI module is only capable
* of parsing a very simple format and limited command set...
* Future development should ma... |
//
// HaidoraServices.h
// Pods
//
// Created by Dailingchi on 15/4/6.
//
//
#ifndef Pods_HaidoraServices_h
#define Pods_HaidoraServices_h
#import "HDService.h"
#import "HDServiceProvider.h"
#endif
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef __cplusplus
# error This header can only be compiled as C++.
#endif
#ifnd... |
#ifndef __REC_UTIL_THREAD_CALLBACK0__
#define __REC_UTIL_THREAD_CALLBACK0__
#include "rec/util/thread/Callback.h"
namespace rec {
namespace util {
namespace thread {
namespace callback {
template <typename Type, typename Method>
class Callback0 : public Callback {
public:
Callback0(Type* o, Method m) : object_(o)... |
/***
* Inferno Engine v4 2015-2017
* Written by Tomasz "Rex Dex" Jonarski
*
* [# filter: driver\transient #]
***/
#pragma once
#include "base/containers/include/inplaceArray.h"
#include "rendering/driver/include/renderingTransientBuffer.h"
#include "rendering/driver/include/renderingImageView.h"
#include "rendering/d... |
// Copyright (c) 2011-2015 The KoreCore developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_SENDCOINSENTRY_H
#define BITCOIN_QT_SENDCOINSENTRY_H
#include "walletmodel.h"
#include <QStackedWidget>
cla... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_INIT_H
#define BITCO... |
/************************************************************************/
/*
CLASS : BossFirst
Author : ±è¿¬¿ì
¿ªÇÒ : ù¹øÂ° º¸½º class
ÃÖÁ¾ ¼öÁ¤ÀÏÀÚ : 2014-12-19
ÃÖÁ¾ ¼öÁ¤ÀÚ :
ÃÖÁ¾ ¼öÁ¤»çÀ¯ :
Comment : ºù±Ûºù±Û µ¹¾Æ°¡¸ç ÃãÀ»Ãä½Ã´Ù.
*/
/**********************************************************************... |
//
// JHDanmakuProtocol.h
// Pods
//
// Created by JimHuang on 2020/2/3.
//
#import "JHDanmakuDefinition.h"
#ifndef JHDanmakuProtocol_h
#define JHDanmakuProtocol_h
@class JHDanmakuEngine, JHDanmakuContainer, JHDanmakuContext;
@protocol JHDanmakuProtocol <NSObject>
typedef NS_ENUM(NSUInteger, JHDanmakuEffectStyl... |
#pragma once
#include <functional>
#include <map>
#include <queue>
namespace MX
{
#ifdef _DEBUG
template <class T, typename T2, typename T3>
class reservable_priority_queue : public std::priority_queue<T, T2, T3>
{
public:
typedef typename std::priority_queue<T>::size_type size_type;
reservable_priority_queue(... |
#include <errno.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
typedef struct Node * pNode;
typedef struct Queue * pQueue;
typedef struct ElementType
{
int num;
}ElementType;
typedef struct Node
{
ElementType element;
pNode next;
}Node;
typedef struct Queue
{
pNode fron... |
//
// main.c
// MasteringAlgorithms
// Illustrates using a heap (see Chapter 10).
//
// Created by YourtionGuo on 05/05/2017.
// Copyright © 2017 Yourtion. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include "heap.h"
static void print_heap(Heap *heap)
{
int i;
/// 打印堆结构
fprintf... |
//
// AppDelegate.h
// RACDemo
//
// Created by Eli on 15/12/21.
// Copyright © 2015年 Ely. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_console_execlp_52b.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-52b.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the consol... |
//
// CDSyncRecord.h
// TO-DO
//
// Created by Siegrain on 16/6/4.
// Copyright © 2016年 com.siegrain. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class CDUser;
@class LCSyncRecord;
NS_ASSUME_NONNULL_BEGIN
@interface CDSyncRecord : NSManagedObject
/**
* 将LCSyncRecor... |
#include "ray.h"
/** getint **/
int getint(FILE *fp, int *result) {
char buf[256];
int code;
while ((code=fscanf(fp, "%d", result)) != 1) {
if (fgets(buf, sizeof(buf), fp) == NULL) {
return(-1);
}
if (buf[0] != '#') {
fprintf(stderr, "getint[%d]: Error in input: \... |
//
// QFPushTool.h
// runtime基础
//
// Created by 赵大红 on 16/5/8.
// Copyright © 2016年 赵大红. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface QFPushTool : NSObject
+ (void)push:(NSDictionary *)dic;
@end
|
//
// HBSRootNavigationController.h
// FetchedTableViewController
//
// Created by Anokhov Pavel on 28.02.16.
// Copyright © 2016 Pavel Anokhov. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "HBSDataController.h"
@interface HBSRootNavigationController : UINavigationController <HBSDataControllerUser>
- ... |
//
// NSDictionary+VZUtil.h
// VZKit
//
// Created by VonZen on 2017/8/4.
//
#import <Foundation/Foundation.h>
@interface NSDictionary (VZUtil)
+ (instancetype)dictionaryInURL:(NSString *)url;
+ (instancetype)dictionaryFromJsonString:(NSString *)JSONString;
@end
|
//
// PubNubTesting.h
// Pods
//
// Created by Jordan Zucker on 5/16/16.
//
//
#ifndef PubNubTesting_h
#define PubNubTesting_h
// Constants
#import "PNTTestConstants.h"
// Utilities
#import "XCTestCase+PNTAdditions.h"
#import "NSString+PNTAdditions.h"
// Matchers
#import "PNTDeviceIndependentMatcher.h"
// Test ... |
//
// FLMotivatorVideo.h
// Fuel
//
// Created by Timothy Chong on 2/9/14.
// Copyright (c) 2014 Fuel. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "FLMotivator.h"
@interface FLMotivatorVideo : FLMotivator
@property (nonatomic, retain) NSString * path;
@end
|
/******************************************************************************\
* gloperate
*
* Copyright (C) 2014 Computer Graphics Systems Group at the
* Hasso-Plattner-Institut (HPI), Potsdam, Germany.
\******************************************************************************/
// Restore warnings
#ifde... |
#include <windows.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
/* This file creates the local getbuildinfo.c file, by
invoking subwcrev.exe (if found). This replaces tokens
int the file with information about the build.
If this isn't a subversion checkout, or subwcrev isn't
... |
//
// AFBNewAddressModel.h
// LoveFreshBeeSuper
//
// Created by drfgh on 16/11/24.
// Copyright © 2016年 gao2015. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface AFBNewAddressModel : NSObject
//联系人
@property (nonatomic,copy) NSString *name;
//手机号码
@property (nonatomic,copy) NSString *phone;
/... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "WXPBGeneratedMessage.h"
@interface SKBuiltinUint16_t : WXPBGeneratedMessage
{
}
+ (void)initialize;
// Remaining properties
@property(nonatomic) unsigned int uiVal; // @... |
/*
The MIT License
Copyright (c) 2008 jacob berkman <jacob@ilovegom.org>
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,... |
#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 Pods_ThoughtlessVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_ThoughtlessVersionString[... |
//
// GroupInstancesModel.h
// ARIS
//
// Created by Phil Dougherty on 2/13/13.
//
//
#import <Foundation/Foundation.h>
#import "ARISModel.h"
#import "Item.h"
#import "Instance.h"
@interface GroupInstancesModel : ARISModel
{
long currentWeight;
}
@property(nonatomic, assign) long currentWeight;
- (void) touc... |
// RUN: %clang_cc1 -g -emit-llvm < %s | FileCheck %s
// Check that, just because we emitted a function from a different file doesn't
// mean we insert a file-change inside the next function.
// CHECK: ret void, !dbg [[F1_LINE:![0-9]*]]
// CHECK: ret void, !dbg [[F2_LINE:![0-9]*]]
// CHECK: [[F1:![0-9]*]] = {{.*}} ; [... |
/* brushlib - The MyPaint Brush Library (demonstration project)
* Copyright (C) 2013 POINTCARRE SARL / Sebastien Leon email: sleon at pointcarre.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright noti... |
#include "rust.h"
int main () {
// as you can see we can call this function as
// if it was a C function
rust_print("hehe");
return 0;
}
|
//
// TBScrollDirectionDetector.h
// iOSToolbelt
//
// Created by Ben Ford on 6/6/14.
// Copyright (c) 2014 Ben Ford. All rights reserved.
//
// 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 ... |
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this ... |
// Copyright (c) 2016 Intel Corporation. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
#ifndef _OCCUPANCY_TILE_H_
#define _OCCUPANCY_TILE_H_
#include <node.h>
#include <v8.h>
#include <string>
#include "gen/array_helper.h"
#include "gen/... |
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
#include <poll.h>
#include <unistd.h>
#include <arpa/inet.h>
#define MAXLINE 1024
#define IPADDRESS "127.0.0.1"
#define SERV_PORT 8787
static void handle_connection(int sockfd);
int main(int argc, char *argv[]) {
int sockfd;
struct sockad... |
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double BXProgressHUDVersionNumber;
FOUNDATION_EXPORT const unsigned char BXProgressHUDVersionString[];
|
// Copyright 2010 Google Inc. All Rights Reserved.
// Author: rays@google.com (Ray Smith)
///////////////////////////////////////////////////////////////////////
// File: intfeaturespace.h
// Description: Indexed feature space based on INT_FEATURE_STRUCT.
// Created: Wed Mar 24 10:55:30 PDT 2010
//
// Licens... |
//
// CJATabBarController.h
// CJADataSource
//
// Created by Bogdan Iusco on 7/1/14.
// Copyright (c) 2014 Carl Jahn. All rights reserved.
//
@import UIKit;
@interface CJATabBarController : UITabBarController
@end
|
#include "socket.h"
#include <string.h>
int muggle_socket_lib_init()
{
#if MUGGLE_PLATFORM_WINDOWS
WSADATA wsaData;
return WSAStartup(MAKEWORD(2, 2), &wsaData);
#else
return 0;
#endif
}
muggle_socket_t muggle_socket_create(int family, int type, int protocol)
{
return socket(family, type, protocol);
}
int muggle_... |
#pragma once
/*
·Î±×¿¡ ´ëÇØ ȸé°ú ÆÄÀÏÀúÀå
ÆÄÀÏ´ç ¿ë·®Àº ÃÖ´ë 10MB -> ³Ñ¾î°¡¸é ÆÄÀÏ¸í¿¡ %N% Áõ°¡
log Æú´õ¿¡ ÃÖ´ë ¿ë·®Àº 100MB -> ³Ñ¾î°¡¸é LRU·Î »èÁ¦
*/
#include <boost/log/trivial.hpp>
class LogSetting
{
public:
LogSetting()
: max_storage_size_(1024 * 1024 * 100) // 100MB
, max_file_size_(1024 * 1024 * ... |
#import <Foundation/Foundation.h>
#import "BBValidator.h"
@interface BBValidatorComposite : BBValidator {
@private
NSMutableArray *_validators;
}
@property (strong, nonatomic) NSMutableArray *validators;
- (id)initWithValidators:(NSArray *)validators;
- (void)addValidator:(id<BBValidatorProtocol>)validator;
... |
/**
* Copyright (c) 2021 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#pragma once
#include "saiga/opengl/assets/asset.h"
#include "saiga/opengl/texture/Texture.h"
namespace Saiga
{
class SAIGA_OPENGL_API ColoredAsset : public BasicAsset< MVPColorShader>
{
publ... |
// Copyright (c) 2009 DotNetAnywhere
//
// 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... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "CDStructures.h"
#import <IDEKit/IDEViewController.h>
@class NSPopUpButton;
@interface IDEGeneralPrefsPaneController : IDEViewController
{
NSPopUpButton *_issueNavigat... |
// Rashmi Sehgal June 2016
// gfunc.h
// gfunc header file
// outlines black box gui functions
#ifndef GFUNC_H
#define GFUNC_H
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <set>
#include "qattr.h"
// returnable project root
extern qaTree* proj_root;
// ... |
/*************************************************************************/
/* joints_2d.h */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* sys-clock.c
*
* Copyright(c) 2007-2022 Jianjun Jiang <8192542@qq.com>
* Official site: http://xboot.org
* Mobile phone: +86-18665388956
* QQ: 8192542
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... |
#pragma once
#include "serializabledataunit.h"
namespace Engine {
namespace Serialize {
#define SERIALIZABLEUNIT_MEMBERS() \
READONLY_PROPERTY(Synced, isSynced)
struct META_EXPORT SerializableUnitBase : SerializableDataUnit {
protected:
SerializableUnitBase();
SerializableUnitBase(const ... |
#pragma once
class AActor;
class UParticleSystem;
class UParticleSystemComponent;
class TempActorManager
{
public:
static void Initialise();
static void Tick(float DeltaTime);
static void Shutdown();
static void AddActor(AActor* Actor, float Duration);
static UParticleSystemComponent* AddParticle(AActor* Acto... |
#include <map>
#include <stack>
#include <set>
#include <vector>
#include <algorithm>
#include <string>
#include <stdlib.h>
#include <fstream>
using namespace std;
struct Node {
/*
Node struct for our k-NN Graph
*/
int index;
int rank;
Node * parent;
set <Node * > children;
Node(int idx... |
#ifndef PITCH_ROLL_LIMITER_H
#define PITCH_ROLL_LIMITER_H
// Must install GLPK before this will work
#include <glpk.h>
// Needed to get the number of iterations
#include "GLPK_Headers/prob.h"
class PitchRollLimiter {
protected:
// Optimization Problem object
glp_prob *lp;
// Keeps track of wheth... |
/*Copyright (C) 2013 Doubango Telecom <http://www.doubango.org>
*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO 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 3 of ... |
//
// DisplayScreen.h
// ColorAtom
//
// Created by 杨萧玉 on 14-4-19.
// Copyright (c) 2014年 杨萧玉. All rights reserved.
//
#import <SpriteKit/SpriteKit.h>
@interface DisplayScreen : SKSpriteNode
@property (nonatomic, assign) NSInteger atomCount;
@property (nonatomic, assign) NSInteger score;
@property (nonatomic, a... |
/*
* rtmodel.h:
*
* Code generation for model "rtwdemo_slcustcode".
*
* Model version : 1.243
* Simulink Coder version : 8.12 (R2017a) 16-Feb-2017
* C source code generated on : Mon Jul 10 18:52:43 2017
*
* Target selection: grt.tlc
* Note: GRT includes extra infrastructure and instrumentation f... |
/*
* File: CCoef4d.h
* Author: lixun
*
* Created on 2015年3月16日, 上午12:21
*/
#ifndef CCOEF4D_H
#define CCOEF4D_H
#include "CCoef4.h"
class CCoef4d : public CCoef4 {
public:
CCoef4d();
CCoef4d(int Length);
virtual ~CCoef4d();
void CoefComp(void);
void CoefCompI(void);
... |
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Copyright (c) 2015-2018 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_TRANSACTIONRECORD_H
#define BITCOIN_QT_TRANSAC... |
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QGraphicsScene>
#include <QLabel>
#include <QLineEdit>
#include <QMainWindow>
#include <QPushButton>
#include <QSlider>
#include <QToolButton>
#include "iRoomba.h"
#include "mapQGraphicsView.h"
#include "uiUtils.h"
class FleetManager;
class QVBoxLayout;
class QTabWi... |
#ifndef NODETYPE_H
#define NODETYPE_H
typedef enum __NodeType
{
UsecaseType = 0x55,
ActorType,
SubFlowType,
AltFlowType,
SecFlowType,
GeomSquareType = 0x344,
GeomRectangleType,
GeomCircleType,
GeomTriangleType
} NodeType;
#endif // NODETYPE_H
|
#include "math2.h"
/**
* Calculates the base 2 log of \a n.
* @param n Number who's base 2 logarithm is calculated.
* @return Base 2 logarithm.
*/
double log2( double n )
{
return log( n ) / log( 2 );
}
size_t math_bits_in_n( size_t n )
{
size_t num_bits = 0;
while( ( n >> num_bits ) > 0 )
num_bits... |
//
// DirectXPage.xaml.h
// Declaration of the DirectXPage class.
//
#pragma once
#include "DirectXPage.g.h"
#include "Common\DeviceResources.h"
#include "AngleAppMain.h"
namespace ReymentaController
{
/// <summary>
/// A page that hosts a DirectX SwapChainPanel.
/// </summary>
public ref class DirectXPage sea... |
#include "Python.h"
#define GET_WEAKREFS_LISTPTR(o) \
((PyWeakReference **) PyObject_GET_WEAKREFS_LISTPTR(o))
/*[clinic input]
module _weakref
[clinic start generated code]*/
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=ffec73b85846596d]*/
#include "clinic/_weakref.c.h"
/*[clinic input]
_we... |
#ifndef CREATE_CMD_HANDLERS_H
#define CREATE_CMD_HANDLERS_H
#include "icmdhandler.h"
#include <QString>
#include <QMap>
void create_cmd_handlers(QMap<QString, ICmdHandler *> &pHandlers);
#endif // CREATE_CMD_HANDLERS_H
|
#include <ruby.h>
#include "../compat/ruby.h"
#include "extconf.h"
#include "crc16_dnp.h"
VALUE Digest_CRC16DNP_update(VALUE self, VALUE data)
{
VALUE crc_ivar_name = rb_intern("@crc");
VALUE crc_ivar = rb_ivar_get(self, crc_ivar_name);
crc16_t crc = NUM2USHORT(crc_ivar);
const char *data_ptr = StringValuePtr(da... |
/*
函数:
声明: [返回值类型(默认int)] 函数名([类型名/形式参数],...); // 旧时声明为: [返回值类型(默认int)] 函数名()
定义: [返回值类型(默认int)] 函数名(形式参数,...){ 函数体(语句); }
使用: [变量 =] 函数名(实参...);
类型名语法:
类型名:
说明符限定符表 抽象声明符 opt
抽象声明符:
指针
指针opt 直接抽象声明符
直接抽象声明符:
(抽象声明符)
直接抽象声明符opt [ 常量表达式opt ]
直接抽象声明符opt [ 形式参数类... |
// Copyright (c) 2013 The Polcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef Polcoin_NOUI_H
#define Polcoin_NOUI_H
extern void noui_connect();
#endif // Polcoin_NOUI_H
|
/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2014 Klaus Post
Copyright (C) 2014 Pedro Côrte-Real
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
versi... |
//
// JTSettingsEditorDelegate.h
// JTSettingsKit
//
// Created by Joris Timmerman on 25/06/14.
// Copyright (c) 2014 Joris Timmerman. All rights reserved.
//
@protocol JTSettingsEditorDelegate<NSObject>
@required
- (void)settingsEditorViewController:(UIViewController *)viewController
selectedValueChangedT... |
#pragma once
#include "game.h"
#include <wchar.h>
void OS_Init();
long long OS_GetMsTime();
char* OS_GetFontPath(char* fontName,char* backupFontName);
BOOL OS_PathExist(char* path);
BOOL OS_UTF8ToANSI_DO(char* utf8Text,wchar_t* destAnsiText,size_t maxLength); |
/***
* Inferno Engine v4 2015-2017
* Written by Tomasz "Rex Dex" Jonarski
*
* [# filter: launcher #]
***/
#pragma once
// NOTE: this header must NOT leak into public namespace
#ifdef PLATFORM_WINDOWS
#include <Windows.h>
#endif
#ifdef PLATFORM_WINDOWS
#ifdef CONSOLE
#define LAUNCHER_MAIN() int wmain(int argc, wch... |
/*
RFC - KCommonDialogBox.h
Copyright (C) 2013-2019 CrownSoft
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... |
// SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2019-2022 Authors of Cilium */
//
// @ArthurChiao 202201123: borrowed some code from the Cilium Project
#include <linux/bpf.h> // struct __sk_buff
#include <linux/pkt_cls.h> // TC_ACT_*
#include <linux/ip.h> // struct iphdr
#include <linux/tcp.h> // str... |
/*
* License: MIT
*
* Copyright (c) 2012-2018 James Bensley.
*
* 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, c... |
#ifndef SNAKE_SRC_FOOD_H_
#define SNAKE_SRC_FOOD_H_
struct Point;
struct Food *food_init();
void food_delete(struct Food *food);
void food_set_pos(struct Food *food, struct Point pos);
const struct Point *food_get_pos(const struct Food *food);
void food_paint(const struct Food *food);
#endif // SNAKE_SRC_FOOD_H_
|
//
// JCAppDelegate.h
// JCToolKit
//
// Created by 贾淼 on 12/14/2016.
// Copyright (c) 2016 贾淼. All rights reserved.
//
@import UIKit;
@interface JCAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
//
// TDTestScaffold.h
// TDTemplateEngineTests
//
// Created by Todd Ditchendorf on 3/28/14.
// Copyright (c) 2014 Todd Ditchendorf. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>
#import <PEGKit/PEGKit.h>
//#import <OCMock/OCMock.h>
#import <TDTemplateEngine/TDTemplateEngine.... |
#ifndef MONOTIDE_FONTLIST_H
#define MONOTIDE_FONTLIST_H
#include <tchar.h>
#include <windows.h>
#define WC_FONTLIST _T("dejbug.de/FontList")
#define WS_FONTLIST_DOUBLEBUFFER (0x0001)
#define WM_FONTLIST_BASE (WM_USER+2)
extern "C" {
void WINAPI RegisterFontList(void);
void WINAPI UnregisterFontLi... |
//
// UUChart.h
// Version 0.1
// UUChart
//
// Created by shake on 14-7-24.
// Copyright (c) 2014年 uyiuyao. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UUChart.h"
#import "UUColor.h"
#import "UULineChart.h"
#import "UUBarChart.h"
//类型
typedef enum {
UUChartLineStyle,
UUChartBarStyle
} UUChartStyle;... |
#pragma once
#include <windows.h>
#include <concrt.h>
#include "Statement.h"
namespace SQLiteWinRT
{
using Windows::Foundation::Uri;
using Windows::Foundation::IAsyncOperation;
using Windows::Foundation::IAsyncAction;
using Platform::String;
using namespace Windows::Storage;
public enum class SqliteOpenMo... |
//
// ELGEditAlarmViewController.h
// GeoAlert
//
// Created by Nikolay Evstigneev on 29.10.15.
// Copyright © 2015 iOSTechnopark. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ELGAlarm.h"
#import "ELGBaseTableViewController.h"
@class ELGEditAlarmViewController;
@protocol ELGEditAlarmViewControllerDel... |
// Copyright & License details are available under JXCORE_LICENSE file
#ifndef SRC_JX_JXP_COMPRESS_H_
#define SRC_JX_JXP_COMPRESS_H_
#include "node_buffer.h"
namespace jxcore {
typedef unsigned char mz_uint8;
node::Buffer* CompressString(node::commons* com, const char* str,
const long le... |
// SENSOR TEMPERATURE
#ifndef LM75A_H
#define LM75A_H
#include "../../../common/sensor/temperature/temperature.h"
#include "../../../common/i2c/i2cCommon.h"
#define LM75A_READ_SENSOR_REGISTER 0x00
#define LM75A_CONFIGURATION_SENSOR_REGISTER 0x01
#define LM75A_HYSTERESIS_SENSOR_REGISTER ... |
//
// RBValidatingTextField.h
// Pods
//
// Created by Aaron Signorelli on 07/02/2014.
//
//
#import <UIKit/UIKit.h>
@protocol RBValidatingTextFieldDelegate <NSObject>
-(void) textField:(UITextField *) textField validationStateDidChange:(BOOL) isValid;
@optional
/*
Called when the user has finished editing and ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE476_NULL_Pointer_Dereference__long_06.c
Label Definition File: CWE476_NULL_Pointer_Dereference.label.xml
Template File: sources-sinks-06.tmpl.c
*/
/*
* @description
* CWE: 476 NULL Pointer Dereference
* BadSource: Set data to NULL
* GoodSource: Initialize d... |
//
// RWTSearchResultsItemViewModel.h
// RWTFlickrSearch
//
// Created by Hanguang on 11/9/15.
// Copyright © 2015 Colin Eberhardt. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RWTFlickrPhoto.h"
#import "RWTViewModelServices.h"
@interface RWTSearchResultsItemViewModel : NSObject
@property (... |
//
// GLTopCell.h
// PublicSharing
//
// Created by 龚磊 on 2017/3/23.
// Copyright © 2017年 三君科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol GLTopCellDelegate <NSObject>
- (void)kindOfButtonClick:(NSInteger )index;
@end
@interface GLTopCell : UITableViewCell
@property (weak, nonatomic) IBOutl... |
//
// KYMasterVc.h
// KuaiYiSuper
//
// Created by WZZ on 16/4/24.
// Copyright © 2016年 WZZ. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface KYMasterVc : UIViewController
@end
|
#ifndef BITOPS_H
#define BITOPS_H
static inline unsigned long __ffs(unsigned long word)
{
int num = 0;
if ((word & 0xffff) == 0) {
num += 16;
word >>= 16;
}
if ((word & 0xff) == 0) {
num += 8;
word >>= 8;
}
... |
// working.c
// author: madoodia@gmail.com
#include <stdio.h>
#define ONE 1
const int iOne = 1;
int main(int argc, char **argv)
{
int *ip = &iOne;
printf("The constant is %d\n", ONE);
printf("The constant is %d\n", iOne);
printf("The constant is %d\n", *ip);
return 0;
}
|
#ifndef Relay_h
#define Relay_h
class Relay
{
private:
bool run; // remember if we're running or not
int pin; // what pin is the heater relay on
unsigned long last_changed;
void on(); // private, use setOnWithPattern() instead
void off(); // private, use clearPattern() instead
unsigned cha... |
#ifndef STRSORT_H_
#define STRSORT_H_ 1
char * str_sort(char[]);
#endif /** ! STRSORT_H_ */
|
//
// RegistViewController.h
// RongChatRoomDemo
//
// Created by 弘鼎 on 2017/9/1.
// Copyright © 2017年 rongcloud. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UIButton+Countdown.h"
@interface RegistViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIButton *backBtn;
@property (we... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.