text stringlengths 4 6.14k |
|---|
#ifndef _XFUNCTIONS_H
#define _XFUNCTIONS_H
#include <stdio.h>
#include <strings.h>
#include <stdlib.h>
#include <errno.h>
#include <setjmp.h>
#ifdef __GNUC__
#define no_return __attribute__ ((noreturn))
#else
#define no_return
#endif
void * xmalloc(size_t size);
void * xcalloc(size_t nelem, size_t elsize);
char * ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#define WIDTH 1000
#define HEIGHT 1000
typedef struct {
bool on;
int brightness;
} state;
enum action {
INVALID,
TOGGLE,
ON,
OFF
};
int max(int a, int b) {
return a > b ? a : b;
}
int min(int a, int b) {
return a < b ? a : b;
}... |
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "parse.h"
#include "common.h"
#include "colormap.h"
int *load_array (char *list);
/* Load configuration */
void load_config (FILE * infile)
{
if (infile == NULL)
{
fprintf (stderr, "%s: failed to read config file - %s\n",
progname... |
#import "UIKBTree.h"
@interface UIKBKeyplaneView : UIView
- (NSInteger)stateForKey:(UIKBTree *)key;
- (UIView *)viewForKey:(UIKBTree *)key;
- (NSString *)cacheIdentifierForKey:(UIKBTree *)key withState:(NSInteger)state;
@end
|
#include<stdio.h>
#define print(exp) printf(#exp /* # */ "=%7.0f\n",exp)
main()
{
float x=22,y=7;
print(x/y);
} |
/*-
* Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
* 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 is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copy... |
#ifndef E_POLICY_H
# define E_POLICY_H
void e_policy_init(void);
void e_policy_shutdown(void);
void e_policy_kbd_override_set(Eina_Bool override);
const Eina_List *e_policy_clients_get(void);
const E_Client *e_policy_client_active_get(void);
#endif
|
//
// BXMultipleChoicePredicateEditorRowTemplateFactory.h
// BaseTen
//
// Copyright 2010 Marko Karppinen & Co. LLC.
//
// 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... |
//
// AppDelegate.h
// adb-ios
//
// Created by Li Zonghai on 9/28/15.
// Copyright (c) 2015 Li Zonghai. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* jmemnobs.c
*
* Copyright (C) 1992-1996, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file provides a really simple implementation of the system-
* dependent portion of the JPEG memory manag... |
//
// ViewController.h
// TestGit
//
// Created by ws on 17/4/17.
// Copyright © 2017年 ws. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* ... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#ifndef GB_STDIO_H
#define GB_STDIO_H
/*this file, if included instead of <stdio.h> has the following functionality:
1) if GB_STDIO_INTERCEPT is defined then
... |
// This file is automagically generated by mphtogen, do not edit
//0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
-1, -1, -1, -1, -1, -1, -1, 3, -1, -1, 4, -1, -1, 1, 5, -1, -1, -1, -1, 6,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 2, -1, -1,
-1, -1, 7, ... |
/* Test regular cases
*/
result = ${library_name}_${type_name}_copy_from_byte_stream(
${type_name},
${library_name_suffix}_test_${type_name}_data1,
${test_data_size},
${library_name_upper_case}_CODEPAGE_WINDOWS_1252,
&error );
${library_name_suffix_upper_case... |
//
// AudioStreamer.h
// StreamingAudioPlayer
//
// Created by Matt Gallagher on 27/09/08.
// Copyright 2008 Matt Gallagher. All rights reserved.
//
// Permission is given to use this source code file, free of charge, in any
// project, commercial or otherwise, entirely at your risk, with the condition
// that a... |
//
// HomeSearchDetialViewController.h
// ChangChunTax
//
// Created by XIU-Developer on 16/5/5.
// Copyright © 2016年 XIU. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HomeSearchListDetialNewsVC : UIViewController
@property (nonatomic, strong) NSString *ids;
@end
|
int a[2] = {2, 2}, b[3] = {3, 3, 3}, c = 4, d = 5;
int i = 0, j = 1;
void main()
{
++b[i];
assert(b[0] == 4, "b[0] must be 4");
++c;
assert(c == 5, "c must be 5");
d = ++b[j];
assert(d == 4, "d must be 4");
d = ++c;
assert(d == 6, "d must be 6");
--b[1];
assert(b[1] == ... |
// Copyright ©2017 Black Sphere Studios
#ifndef __ZLIBSTREAM_H__UPATCH__
#define __ZLIBSTREAM_H__UPATCH__
#include "bss-util/stream.h"
#include "zlib.h"
#include <istream>
#include <ostream>
namespace upatch {
struct InstallPayload;
class ZLibStream : public bss::StreamBufFunction
{
inline ZLibStream(cons... |
/****************************************************************************
*
* Copyright 2016 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... |
#include <endian.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
int
main(int argc, char *argv[])
{
union {
uint32_t u32;
uint8_t arr[4];
} x;
x.arr[0] = 0x11; /* Lowest-address byte */
x.arr[1] = 0x22;
x.arr[2] = 0x33;
x.arr[3] = 0x44; /* Highest-address... |
// Copyright 2009 Todd Ditchendorf
//
// 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... |
// Copyright 2019 The MediaPipe Authors.
//
// 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 a... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
int vec[50], i,aux,suma,promedio,mayor,menor;
mayor=-999;
menor=999;
srand(time(0));
for(i=0;i<50;i++)
{
vec[i]=rand()%90+10;
}
for(i=0;i<50;i++)
{
aux=vec[i];
vec[i]=vec[i+1];
vec[i+1]=aux;
suma=suma+vec... |
#import "ViewController.h"
@protocol MWMSearchDownloadProtocol <NSObject>
- (void)selectMapsAction;
@end
@interface MWMSearchDownloadViewController : ViewController
- (nonnull instancetype)init __attribute__((unavailable("init is not available")));
- (nonnull instancetype)initWithDelegate:(nonnull id<MWMSearchDown... |
/*
* Copyright 2014 Facebook, Inc.
*
* 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... |
//
// OldStuff.h
// MacNagios
//
// Created by Kiko Albiol on 21/11/15.
// Copyright © 2015 BGP. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* @brief Old stuff
*/
@interface AppDelegateOld : NSObject <NSApplicationDelegate, NSUserNotificationCenterDelegate>
@property (assign) IBOutlet NSWi... |
/* GObject - GLib Type, Object, Parameter and Signal Library
* Copyright (C) 2000-2001 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the Lice... |
//
// ViewController.h
// adfadsf
//
// Created by lisongfa on 16/6/16.
// Copyright © 2016年 lisongfa. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
/*
Copyright 2010-2013 SourceGear, LLC
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, softwar... |
/**
* @author ${kekkaishivn} - dattl@ifi.uio.no
*
* ${tags}
*/
#ifndef SGX_SYSSTAT_UTIL_H
#define SGX_SYSSTAT_UTIL_H
#include <sgx/sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
extern int sgx_wrapper_stat(const char *path, struct stat *buf);
extern int sgx_wrapper_fstat(int fd, struct stat *buf);
extern i... |
//
// IntroScene.h
// HelloCocos2d
//
// Created by Patrick Lo on 12/16/14.
// Copyright Patrick Lo 2014. All rights reserved.
//
// -----------------------------------------------------------------------
// Importing cocos2d.h and cocos2d-ui.h, will import anything you need to start using cocos2d-v3
#import "coco... |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#ifndef TITITANIUMOBJECT_H_
#define TITITANIUMOBJECT_H_
#include "TiProxy.h"
cl... |
//
// FlyClip.h
// FlyClipSDK
//
// Created by wanghexiang on 2017/7/11.
// Copyright © 2017年 Eric. All rights reserved.
//
#import "FCMedia.h"
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface FlyClip : NSObject
/*
* 设置当前应用的URLSchema
*/
+(void)setURLSchema:(NSString *)urlSchema; // 此处设置为当前App... |
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <aboutdialog.h>
#include <robot.h>
#include <QTimer>
#include "scenario.h"
#include "bayesmap.h"
#include "himmmap.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(... |
//
// NBSendStatusParam.h
// weibo
//
// Created by yoga on 15/8/31.
// Copyright (c) 2015年 ioslearning. All rights reserved.
//
#import "NBBaseParam.h"
@interface NBSendStatusParam : NBBaseParam
/** true string 要发布的微博文本内容,必须做URLencode,内容不超过140个汉字。*/
@property (nonatomic, copy) NSString *status;
@end
|
//
// SignInViewController.h
// ContentBox
//
// Created by Igor Sapyanik on 22.01.14.
/**
* Copyright (c) 2014 Kinvey Inc. *
* 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... |
/*******************************************************************************
*
* Copyright (c) 2011, 2012, 2013, 2014, 2015 Olaf Bergmann (TZI) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Di... |
#include "common.h"
#include "control.h"
#include "error.h"
#include "params.h"
static eeprom_params eeprom;
void params_init()
{
// Read the parameters in the EEPROM into local memory
EEPROM_read_block(0, (uint8_t*)&eeprom, sizeof(eeprom));
}
int params_set_gain(uint8_t gain)
{
uint16_t amppot_set = 0, amppot_... |
/** @file
* Copyright (c) 2016, ARM Limited or its affiliates. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
/*
* Copyright 2016 Utkin Dmitry <loentar@gmail.com>
*
* 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 a... |
#ifndef ParticlesObjectH
#define ParticlesObjectH
#include "../PS_instance.h"
extern const Fvector zero_vel;
class CParticlesObject : public CPS_Instance
{
typedef CPS_Instance inherited;
u32 dwLastTime;
void Init (LPCSTR p_name, IRender_Sector* S, BOOL bAutoRemove);
void UpdateSpatial ();
protec... |
/*
Copyright 2018 Google Inc.
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, softwar... |
// Copyright 2016 InnerFunction Ltd.
//
// 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 ... |
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class org_apache_hadoop_io_compress_zlib_ZlibCompressor_CompressionLevel */
#ifndef _Included_org_apache_hadoop_io_compress_zlib_ZlibCompressor_CompressionLevel
#define _Included_org_apache_hadoop_io_compress_zlib_ZlibCompressor_... |
//
// AppDelegate.h
// MoMo
//
// Created by Monster on 15/7/12.
// Copyright (c) 2015年 aib. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/******************************************************************************
* Copyright 2011 Kitware Inc.
*
* 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.... |
#ifndef GETOPT_H
#define GETOPT_H
/* include files needed by this include file */
/* macros defined by this include file */
#define no_argument 0
#define REQUIRED_ARG 1
#define OPTIONAL_ARG 2
/* types defined by this include file */
/* GETOPT_LONG_OPTION_T: The type of long option */
typedef struct GETOPT... |
//
// NSMutableArray+LoggingAddObject.h
// MethodSwizzling
//
// Created by tarena on 16/5/19.
// Copyright © 2016年 tarena. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
@interface NSMutableArray (LoggingAddObject)
-(void)logAddObject:(id)object;
@end
|
/*
* This file is part of FFmpeg.
*
* FFmpeg 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
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
#ifndef DOBBY_SYMBOL_RESOLVER_H
#define DOBBY_SYMBOL_RESOLVER_H
#ifdef __cplusplus
extern "C" {
#endif
void *DobbySymbolResolver(const char *image_name, const char *symbol_name);
#ifdef __cplusplus
}
#endif
#endif |
#ifndef Alchemy_ElePanda
#define Alchemy_ElePanda
#include "Common.h"
#include "../Monster.h"
class ElePanda : public Monster {
public:
ElePanda();
~ElePanda();
static Monster* create(void);
static PE_s_monster param_ElePanda;
private:
};
#endif |
//
// BindingPlatesViewController.h
// sgSalerReport
//
// Created by YaoHuiQiu on 16/5/4.
// Copyright © 2016年 dwolf. All rights reserved.
//
#import "BaseViewController.h"
//解除绑定or绑定
@interface BindingPlatesViewController : BaseViewController
@end
|
//
// MeeRefreshFooter.h
// MeeBS
//
// Created by 扬帆起航 on 15/12/19.
// Copyright © 2015年 Lee. All rights reserved.
//
#import <MJRefresh/MJRefresh.h>
@interface MeeRefreshFooter : MJRefreshAutoNormalFooter
@end
|
/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
//
// ZKShop.h
// ZKWaterflow(瀑布流)
//
// Created by 闫振奎 on 16/6/22.
// Copyright © 2016年 TowMen. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface ZKShop : NSObject
@property (nonatomic, assign) CGFloat w;
@property (nonatomic, assign) CGFloat h;
@property (nonatomic, co... |
#include "sympl_utils.h"
void sympl_calculateDelta(DVector *delta, Matrix *A, DVector *C, IVector *basis) {
for (int j = 0; j < A->w; j++) {
delta->data[j] = 0;
for (int i = 0; i < A->h; i++) {
delta->data[j] += A->data[i][j] * C->data[basis->data[i]];
}
delta->data[j] -= C->data[j];
}
}
int... |
//
// SecondIntroductionView.h
// Inneract
//
// Created by Jim Liu on 3/5/15.
// Copyright (c) 2015 Emmanuel Texier. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SecondIntroductionView : UIView
@end
|
//#include "stdafx.h"
#ifndef __DXTRILIST_INCLUDED__
#define __DXTRILIST_INCLUDED__
#include "ode/include/ode/common.h"
struct dcVector3 {
float x, y, z;
dcVector3() {}
dcVector3(dReal x, dReal y, dReal z) {
this->x = (float)x;
this->y = (float)y;
this->z = (float)z;
}
... |
/* Copyright 2015-2016 Samsung Electronics Co., Ltd.
* Copyright 2016 University of Szeged.
*
* 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/LICEN... |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// ProgramOptions.h
// Created by Caner Korkmaz on 20/5/2017.
// Copyright 2017 Caner Korkmaz
//
#ifndef SOCKETPLAY_PROGRAMOPTIONSPARSER_H
#define SOCKETPLAY_PROGRAMOPTIONSPARSER_H
#include <vector>
#include <string>
#include <memory>
#include <tuple>
#include <boost/program_options.hpp>
#include "Prog... |
//
// main.c
// 3-【了解】printf函数的介绍和使用
//
// Created by 高明辉 on 15/12/24.
// Copyright © 2015年 itcast. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char * argv[]) {
/*
使用printf函数,需要引入头文件stdio.h ,但是对于printf函数也可以不引入。
printf函数的一般使用形式:
1、输出一段字符:
... |
/*
Copyright (c) 2021, Craig Barnes.
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... |
/*
Copyright 2010-2013 SourceGear, LLC
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, softwar... |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
//
// ViewController.h
// Demo02_GitServer
//
// Created by tarena on 15/10/8.
// Copyright (c) 2015年 tarena. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
//---------------------------------------------------------------------------
// E L E N A P r o j e c t: ELENA Engine
//
// This file contains the Debugger class and its helpers header
// (C)2005-2015, by Alexei Rakov
//-------------------------------------------------... |
#pragma once
#include "Holder.h"
#include "CircularBuffer.h"
|
//
// UIViewController+Common.h
// HappyWeekDayer
//
// Created by scjy on 16/1/6.
// Copyright © 2016年 李志鹏. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIViewController (Common)
- (void)showBackButtonWithImage:(NSString *)imageName;
- (void)showRightButtonWithTitle:(NSString *)Title;
@end
|
#include <RefCounted.h>
#include <Lockable.h>
// DataSet.h
class DataSet : public RefCounted, public Lockable
{
public:
DataSet();
off_t open(const char *fileName, int npoleGuess, float sampRate);
int getNPoles() const { return _nPoles; }
off_t getFrameCount() const { return _frameCount; }
int getFrame(float fra... |
//
// HotKey.h
//
// Created by chao on 7/12/16.
// Copyright © 2016 eschao. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Carbon/Carbon.h>
@interface HotKey : NSObject
@property (readonly) NSUInteger keyCode;
@property (readonly) NSUInteger keyMod;
@property (readonly) BOOL enabled;
- (instancetype)init... |
/*-------------------------------------------------------------------------
*
* execBitmapHeapScan.c
* Support routines for scanning Heap tables using bitmaps.
*
* Portions Copyright (c) 2014-Present Pivotal Software, Inc.
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyr... |
//
// FNNewsKeyButton.h
// FourNews
//
// Created by xmg on 16/4/4.
// Copyright © 2016年 天涯海北. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FNNewsKeyButton : UIButton
@end
|
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#define DATASETSIZE 10
void heap_sort(double* srcdata, int len);
void main(void){
double srcdata[DATASETSIZE];
int idx, jdx;
srand(time(NULL));
for( idx=0; idx<DATASETSIZE; idx++ ){
srcdata[idx] = rand()*1.0/RAND_MAX;
... |
// dominators
// another problem with gcc
void cprop_test6(int *data) {
int j = 5;
if (data[0])
data[1] = 10*j;
else
data[2] = 15*j;
data[3] = 21*j;
}
|
/*Copyright 2014-2015 George Karagoulis
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, so... |
/* $NetBSD: log.c,v 1.1.1.2 2004/07/12 23:27:15 wiz Exp $ */
/* Log file output.
Copyright (C) 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published
by the Free Software Foundation;... |
//
// UIView+JHFrameConvenince.h
// 百思不得姐
//
// Created by 李建華 on 16/3/24.
// Copyright © 2016年 lijianhua. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (JHFrameConvenince)
@property(nonatomic, assign)CGFloat width;
@property(nonatomic, assign)CGFloat height;
@property(nonatomic, assign)CGFloa... |
//
// AnnotationXMLParser.h
// Annotation
//
// Created by Adam Fouse on 6/22/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class Annotation;
@class AnnotationDocument;
@interface AnnotationXMLParser : NSObject {
NSXMLDocument *xmlDoc;
NSXMLNode *annotationsRoot;
... |
/*
* ENSICAEN
* 6 Boulevard Maréchal Juin
* F-14050 Caen Cedex
*
* Unix System Programming Examples / Exemplier de programmation système Unix
* Chapter "Interprocess communication" / Chapitre "Communication interprocessus"
*
* Copyright (C) 1995-2016 Alain Lebret (alain.lebret@ensicaen.fr)
*
* Licensed under ... |
/*D************************************************************
* Modul: GRAPHIC gbook.c
*
* Booking operations: book many DLTs, book one DLT
*
*
*
* Copyright: yafra.org, Basel, Switzerland
**************************************************************
*/
#include <uinclude.h>
#include <ginclude.h... |
/**
* HomeworkAssignmentTwo APSHTTPClient Library
* Copyright (c) 2009-2015 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*
* WARNING: This is generated code. Modify at your own risk and wit... |
/*
* Copyright 2016 The Cartographer Authors
*
* 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... |
//
// YWMessageFriendsAddViewController.h
// YuWa
//
// Created by 蒋威 on 16/9/29.
// Copyright © 2016年 蒋威. All rights reserved.
//
#import "JWBasicViewController.h"
@interface YWMessageFriendsAddViewController : JWBasicViewController
@end
|
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#ifndef vnsw_agent_uve_base_h
#define vnsw_agent_uve_base_h
#include <sandesh/sandesh_types.h>
#include <sandesh/sandesh.h>
#include "nodeinfo_types.h"
#include <base/connection_info.h>
#include <uve/vn_uve_table_base.h>
#include <uve/vm_uve_tab... |
/*
* author: Thomas Yao
*/
#ifndef _WCHAR_LIST_H_
#define _WCHAR_LIST_H_
#include <wchar.h>
struct _wchar_list_node
{
struct _wchar_list_node* next;
struct _wchar_list_node* prev;
wchar_t* data;
int index;
};
struct _wchar_list
{
struct _wchar_list_node* curr;
int size;
};
stru... |
#ifndef __SDHASH_THREADS_H
#define __SDHASH_THREADS_H
void *thread_sdbf_hashfile( void *task_param) ;
void sdbf_hash_files( char **filenames, uint32_t file_count, int32_t thread_cnt, sdbf_set *addto);
sdbf_set *sdbf_hash_stdin( );
void sdbf_hash_files_dd( char **filenames, uint32_t file_count, uint32_t dd_block_size,... |
//
// PayTool.h
// DingYouMing
//
// Created by ceyu on 2017/3/8.
// Copyright © 2017年 吴宏佳. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PayParamObj.h"
@protocol PayToolDelegate <NSObject>
@optional
-(void)payResultWithErrorCode:(NSInteger)errorCode withErrorInfo:(NSString *)errorInfo withObject:(id)o... |
/*
* Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* 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 a... |
/*=========================================================================
Program: Bender
Copyright (c) Kitware Inc.
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.a... |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2011 by IndiaMap, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*
* WARNING: This is generated code. Modify at your own risk and without support.
*/
#... |
/*
* Copyright 2018 OpenCensus Authors
*
* 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 agr... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/kinesisanalyticsv2/KinesisAnalyticsV2_EXPORTS.h>
#include <aws/kinesisanalyticsv2/model/S3ContentBaseLocationUpdate.h>
#include <utility>
namespace Aws
{
namespace Utils
{
... |
/**
* Copyright 2015-2016 Kakao Corp.
*
* 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 agree... |
/* mbed Microcontroller Library
* Copyright (c) 2014, STMicroelectronics
* 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 copyrigh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.