max_stars_repo_path stringlengths 3 173 | max_stars_repo_name stringlengths 5 75 | max_stars_count float64 0 191k | id stringlengths 5 7 | text stringlengths 19 518k | lang stringclasses 1
value |
|---|---|---|---|---|---|
ntos/ntos-2.24/my_malloc.h | jleexp/NT6 | 9 | 6544451 | #ifndef MY_MALLOC_H
#define MY_MALLOC_H
/*
* to use sysmalloc or malloc replacements
*/
#if defined(SYSMALLOC) || \
(defined(SMALLOC) && defined(SBRK_OK))
#define MALLOC(x) malloc(x)
#define FREE(x) free(x)
#define REALLOC(x,y) realloc(x,y)
#define CALLOC(x,y) calloc(x,y)
#endif
#ifdef MM... | c |
src/apps/testapps/testH3UniEdge.c | mehrdad-shokri/h3 | 0 | 7602888 | /*
* Copyright 2017-2018 Uber Technologies, 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 applica... | c |
export/windows/cpp/obj/include/flixel/tile/FlxTileblock.h | TinyPlanetStudios/Project-Crash-Land | 0 | 6620671 | // Generated by Haxe 3.3.0
#ifndef INCLUDED_flixel_tile_FlxTileblock
#define INCLUDED_flixel_tile_FlxTileblock
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#ifndef INCLUDED_flixel_FlxSprite
#include <flixel/FlxSprite.h>
#endif
HX_DECLARE_CLASS1(flixel,FlxBasic)
HX_DECLARE_CLASS1(flixel,FlxObject)
HX_DECLARE_CLASS1(flixe... | c |
fogefoge.h | edersonlrf/c-003-a-foge-foge | 1 | 2518677 | // "if" em tempo de compilacao, assim evita incluir novamente um header.
#ifndef _FOGEFOGE_H_
#define _FOGEFOGE_H_
// Constantes.
#define CIMA 'w'
#define BAIXO 's'
#define DIREITA 'd'
#define ESQUERDA 'a'
#define BOMBA 'b'
int acabou();
void move(char direcao);
int praondefantasmavai(int xatual, int yatu... | c |
Engine/Source/layouts.h | bugsbycarlin/Honey | 0 | 2860052 | /*!
@Honey
@author <NAME>
Copyright 2018
*/
#pragma once
// Standard libraries
#include <stdio.h>
#include <cstdlib>
#include <string>
#include <unordered_map>
// Honey includes
#include "primitives.h"
using namespace std;
namespace Honey {
/*!
The LayoutSettings struct holds configuration parameters f... | c |
PrivateFrameworks/CoreParsec/_CPEndNetworkSearchFeedback-Protocol.h | phatblat/macOSPrivateFrameworks | 17 | 3828340 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class NSData, NSDictionary, NSString, _CPNetworkTimingData;
@protocol _CPEndNetworkSearchFeedback <NSObject>
@property(readonly, nonatomic) NSData *jsonData;
@prop... | c |
Tek1/PSU/42sh/src/my_strcat.c | PhilippeDeSousa/EpitechBundle | 1 | 3693066 | /*
** my_strcat.c for in /home/WASSEX/Semestre2/PSU/PSU_2016_42sh
**
** Made by <NAME>
** Login <<EMAIL>>
**
** Started on Sat Sep 30 15:47:53 2017 <NAME>
** Last update Sat Sep 30 15:48:00 2017 <NAME>
*/
#include "mysh.h"
char *my_strcat(char *s1, char *s2)
{
char *final;
int i;
int j;
i = 0;
j = 0;... | c |
Source/YodoAds/Private/YodoAdsLog.h | NinevaStudios/yodo-mas-unreal | 6 | 7201858 | // Copyright (c) 2022 <NAME>
#pragma once
#include "CoreMinimal.h"
DECLARE_LOG_CATEGORY_EXTERN(LogYodoAds, Verbose, All); | c |
src/game/systems/InputSystem.h | BOOtak/rouge_test | 2 | 6905242 | //
// Created by kirill on 02.06.18.
//
#ifndef ROUGETEST_INPUTSYSTEM_H
#define ROUGETEST_INPUTSYSTEM_H
#include <System.h>
#include <curses.h>
#include "../events/InputEvent.h"
#include "../events/PlayerMoveEvent.h"
class InputSystem : public System, public EventListener {
protected:
public:
protected:
public:
... | c |
include/IRReader/index.h | YiraSan/llvm-bindings | 155 | 6069480 | #pragma once
#include <napi.h>
#include "IRReader/IRReader.h"
void InitIRReader(Napi::Env env, Napi::Object &exports); | c |
xlat/bsg_subprotocol.h | pixeldustproject-o/android_external_strace | 3 | 2555997 | /* Generated by ./xlat/gen.sh from ./xlat/bsg_subprotocol.in; do not edit. */
#ifdef IN_MPERS
# error static const struct xlat bsg_subprotocol in mpers mode
#else
static
const struct xlat bsg_subprotocol[] = {
#if defined(BSG_SUB_PROTOCOL_SCSI_CMD) || (defined(HAVE_DECL_BSG_SUB_PROTOCOL_SCSI_CMD) && HAVE_DECL_BSG_S... | c |
3.15/src/libCom/cppStd/epicsMemory.h | A2-Collaboration/epics | 0 | 6842487 | /*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.... | c |
usr/libexec/cloudphotod/CPLPrequeliteScopeFilter.h | lechium/tvOS145Headers | 5 | 1773042 | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <CloudPhotoLibrary/CPLScopeFilter.h>
@class NSIndexSet;
@protocol PQLInjecting;
@interface CPLPrequeliteScopeFilter : CPLScopeFilter
{
id <... | c |
include/Level.c | dm554/2dgame | 0 | 4143592 | #include "simple_logger.h"
#include "gf2d_draw.h"
#include "level.h"
#include "Grunt.h"
static Level *THE_LEVEL = NULL;
Level *level_get_active()
{
return THE_LEVEL;
}
Uint8 level_bounds_test_circle(Level *level, Vector2D center, float radius, Vector2D *normal)
{
Uint8 hit = 0;
if (!level)
{
slog("no level pr... | c |
include/CwAPI3D/ICwAPI3DBimController.h | CadworkMontreal/AxisImporter | 0 | 4946432 | /** @file
* Copyright (C) 2019 cadwork informatik AG
*
* This file is part of the CwAPI3D module for cadwork 3d.
*
* @ingroup CwAPI3D
* @since 26.0
* @author Paquet
* @date 2019-03-04
*/
#pragma once
#include "ICwAPI3DString.h"
#include "ICwAPI3DElementIDList.h"
#include "ICwAPI3DIfc2x3E... | c |
ext/digest/stringbuffer/init.c | ksss/digest-stringbuffer | 1 | 5363483 | #include "ruby.h"
/*
* digest module from https://github.com/ruby/ruby/blob/trunk/ext/digest/digest.c
* Copyright (C) 1995-2001 <NAME>
* Copyright (C) 2001-2006 <NAME>
*/
#define BUFFER_INIT 64
typedef struct {
char* buffer;
char* p;
size_t memsize;
} buffer_t;
static void
buffer_init(buffer_t* ptr)
{
p... | c |
mysql-server/storage/ndb/plugin/ndb_log.h | silenc3502/MYSQL-Arch-Doc-Summary | 0 | 5523596 | /*
Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with cer... | c |
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.h | jainsakshi2395/linux | 44 | 2806840 | /*
* Copyright 2019 Advanced Micro Devices, Inc.
*
* 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... | c |
CDDDemo/CDDDemoView.h | AdobesTeam/CDD | 237 | 7647574 | //
// CDDDemoView.h
// CDDDemo
//
// Created by <NAME> on 16/2/4.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CDDDemoView : UIView
- (void)buildDemoView;
@end | c |
src/plugins/render/datatypes/setup.h | martin-pr/possumwood | 232 | 103468 | #pragma once
#include <iostream>
#include <GL/glew.h>
#include <actions/traits.h>
namespace possumwood {
class GLSetup {
public:
enum Culling { kNone, kCCW, kCW };
GLSetup();
void setFaceCulling(Culling culling);
Culling faceCulling() const;
class ScopedGLSetup {
public:
~ScopedGLSetup();
privat... | c |
Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/Direct2D printing images and effects sample/C++/D2DPageRenderer.h | zzgchina888/msdn-code-gallery-microsoft | 2 | 5345998 | //// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
#pragma once
#i... | c |
fboss/agent/hw/bcm/BcmConfig.h | nathanawmk/fboss | 834 | 647339 | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pra... | c |
lib/my/my_strings/my_index.c | math974/my_lollib | 5 | 1076685 | /*
** EPITECH PROJECT, 2021
** my_index.h
** File description:
** returns a pointer to the first occurrence of the character in the string
*/
#include <stddef.h>
char *my_index(const char *str, int c)
{
do {
if (*str == c)
return ((char *)str);
} while(*str++);
return (NULL);
} | c |
src/gclk.h | gberthou/talabardine | 0 | 2733822 | #ifndef GCLK_H
#define GCLK_H
#include <stdint.h>
enum gclk_dst_e
{
GCLK_DST_DFLL48M_REF = 0,
GCLK_DST_DPLL,
GCLK_DST_DPLL_32K,
GCLK_DST_WDT,
GCLK_DST_RTC,
GCLK_DST_EIC,
GCLK_DST_USB,
GCLK_DST_EVSYS_CHANNEL_0,
GCLK_DST_EVSYS_CHANNEL_1,
GCLK_DST_EVSYS_CHANNEL_2,
GCLK_DST_EVS... | c |
CodeFrame_OC/CodeFrame_OC/Tool/TQCommon.h | snail21/iOS_CodeFrame_OC | 0 | 2722469 | //
// TQCommon.h
// CodeFrame_OC
//
// Created by 何太强 on 2019/8/6.
// Copyright © 2019 何太强. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface TQCommon : NSObject
@end
NS_ASSUME_NONNULL_END | c |
ED1 2019-2/HashTableFinal/mainHash.c | ualaci/ED1 | 1 | 7941739 | #include "hashtable.h"
int main() {
int op = 0;
hash* hashTable = createHash();
info info;
key* auxKey = NULL;
char word[60];
info.word = (char*) calloc(60,sizeof(char));
puts("-----------------------MENU----------------------------------");
puts("1-Inserir\n2-Remover\n3-Imprimir Tabela\n4-Imprimir posicao \n5... | c |
libs/grampc/include/grampc_setparam.h | grampc-d/grampc-d | 6 | 5011285 | /* This file is part of GRAMPC - (https://sourceforge.net/projects/grampc/)
*
* GRAMPC -- A software framework for embedded nonlinear model predictive
* control using a gradient-based augmented Lagrangian approach
*
* Copyright 2014-2019 by <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>, <NAME> (<v2.0), <NAME> (<v2.0).... | c |
Backbonebits/Backbonebits/BBContants.h | Intuz-production/Backbone-bits-iOS | 0 | 8162166 | /*
The MIT License (MIT)
Copyright (c) 2018 Intuz
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, ... | c |
net/base/upload_bytes_element_reader.h | quisquous/chromium | 2 | 2486973 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_BASE_UPLOAD_BYTES_ELEMENT_READER_H_
#define NET_BASE_UPLOAD_BYTES_ELEMENT_READER_H_
#include "base/compiler_specific.h"
#include "net/bas... | c |
dataset/source/SARD/SARD-3/103238/CWE427_Uncontrolled_Search_Path_Element__wchar_t_environment_83.h | kppw99/enVAS | 28 | 5489903 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE427_Uncontrolled_Search_Path_Element__wchar_t_environment_83.h
Label Definition File: CWE427_Uncontrolled_Search_Path_Element.label.xml
Template File: sources-sink-83.tmpl.h
*/
/*
* @description
* CWE: 427 Uncontrolled Search Path Element
* BadSource: environment Read... | c |
source/twc_design/selection.h | radzikpwnz/twc | 0 | 1079251 | #ifndef SELECTION_H
#define SELECTION_H
#include "object.h"
RECT *GetSelectionFrameRect();
DLIST_PTWC_OBJECT *GetSelectedObjects();
int ClearSelection();
int AddObjectToSelection( TWC_OBJECT *obj);
int DeleteObjectFromSelection( TWC_OBJECT *obj);
TWC_BOOL IsSelectionActive();
int StartSelection( TWC_OBJECT *parent... | c |
c_plus_plus/multiround/viewmodels/getopponentplanespositionsviewmodel.h | temp-byte/planes | 18 | 5961346 | #ifndef __GIVE_OPPONENTS_PLANES_POSITIONS__
#define __GIVE_OPPONENTS_PLANES_POSITIONS__
#include <QJsonObject>
struct GetOpponentsPlanesPositionsViewModel {
long int m_GameId;
long int m_RoundId;
long int m_OwnUserId;
long int m_OpponentUserId;
QJsonObject toJson() {
QJsonObject ... | c |
src/blueview/catkin_ws/src/sonar_2d_node/bvtsdk/include/bvt_c/bvt_sdk.h | vboesch3/Fall2021_EcolymerROV | 0 | 1124563 | /*
This file has been generated by bvtidl.pl. DO NOT MODIFY!
*/
#ifndef __BVTSDK_H__
#define __BVTSDK_H__
#include <bvt_c/bvt_retval.h>
#ifndef DOXY_IGNORE
#ifdef _WIN32
# ifdef BUILDING_BVTSDK
# define BVTSDK_EXPORT __declspec(dllexport)
# else
# define BVTSDK_EXPORT __declspec(dllimport)
# endif
#else
# defin... | c |
ZQImageEdit/ZQImageEdit.h | ChangFeng1994/ZQImageC | 0 | 8212044 | //
// ZQImageEdit.h
// ZQPodsDemo
//
// Created by 肖兆强 on 2017/12/16.
// Copyright © 2017年 ZQDemo. All rights reserved.
//
#ifndef ZQImageEdit_h
#define ZQImageEdit_h
#import "ZQFilterController.h"
#import "ZQImageRotationController.h"
#import "ZQImageCropController.h"
#import "ZQImageMosaicController.h"
#import ... | c |
re/src/sipsess/ack.c | soramimi/qSIP | 22 | 1951305 | /**
* @file ack.c SIP Session ACK
*
* Copyright (C) 2010 Creytiv.com
*/
#include <re_types.h>
#include <re_mem.h>
#include <re_mbuf.h>
#include <re_sa.h>
#include <re_list.h>
#include <re_hash.h>
#include <re_fmt.h>
#include <re_uri.h>
#include <re_tmr.h>
#include <re_sip.h>
#include <re_sipsess.h>
#include "sipse... | c |
src/header/Menu.h | Alexip912/IrregularVerbs | 1 | 7441298 | #ifndef MENU
#define MENU
#define FILE_VERBS "res/verbs.txt"
#define FILE_ABOUT "res/about.txt"
#define FILE_RULES "res/rules.txt"
#include <string>
int join();
bool is_valid_choice(const std::string& choice);
void start();
bool is_valid_number(const std::string& number_of_verbs);
int string_to_number(const std::str... | c |
libcmt/openlog.c | bocke/amissl | 63 | 3554595 | #include "libcmt.h"
void openlog(const char *ident UNUSED, int option UNUSED, int facility UNUSED)
{
// do nothing
} | c |
twitter.c | joiellantero/offline-twitter | 1 | 7622462 | /*
* Command Line Twitter
* Version: 1.0.0
* Author: <NAME>
* Author URL: https://joiellantero.codes
* Github: https://github.com/joiellantero/command-line-twitter
* Command Line Twitter Copyright (c) 2020 <NAME>
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct tweet_{
char **conte... | c |
System/Library/PrivateFrameworks/HomeKitDaemon.framework/HMDUserDataZoneControllerShareLogEvent.h | zhangkn/iOS14Header | 1 | 5363809 | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:51:57 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon
* classdump-dyld is licensed under GPLv3, Copyright © 2013-201... | c |
mcucpp/string_util.h | evugar/Mcucpp | 87 | 3024238 | //*****************************************************************************
//
// Author : <NAME>
// Date : 2013
// 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 sou... | c |
content/common/service_manager/child_connection.h | google-ar/chromium | 777 | 4236219 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_
#define CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_
#include <memory>
#include <string>... | c |
include/pngdec/pngdec.h | esc0rtd3w/PSL1GHT | 59 | 7925972 | #pragma once
#include <psl1ght/types.h>
EXTERN_BEGIN
#define PNGDEC_DISABLE 0
#define PNGDEC_ENABLE 1
#define PNGDEC_TOP_TO_BOTTOM 0
#define PNGDEC_BOTTOM_TO_TOP 1
typedef enum {
PNGDEC_FILE = 0,
PNGDEC_BUFFER = 1
} PngStreamSel;
typedef enum {
PNGDEC_GRAYSCALE = 1,
PNGDEC... | c |
src/fuzz/fuzz_grammar_por_double.c | mikmart/ReadStat | 207 | 4371681 | #include <stdlib.h>
#include "../readstat.h"
#include "../spss/readstat_por_parse.h"
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
readstat_por_parse_double((const char *)Data, Size, NULL, NULL, NULL);
return 0;
} | c |
tests/entropy_tests/compare_hashes_one_char.c | jonkanderson/BitBalancedTableHash | 0 | 6229648 | /* This takes two hash methods and calculates the entropy for each bit
* position separately. This version is similar to compare_hashes.c
* except that the input is a sequence of only one character.
*/
#include "comparison_stats.h"
/* Jenkin's hash. This list of 20 numbers was randomly chosen using R. */
const u... | c |
src/engine/external/libwebsockets/lws-plat-unix.c | ddnet/zcatch | 1 | 6530768 | #include "private-libwebsockets.h"
/*
* included from libwebsockets.c for unix builds
*/
unsigned long long time_in_microseconds(void)
{
struct timeval tv;
gettimeofday(&tv, NULL);
return (tv.tv_sec * 1000000) + tv.tv_usec;
}
LWS_VISIBLE int libwebsockets_get_random(struct libwebsocket_context *context,
... | c |
Chap09/EmptyService/DoSomething.h | KLM-GIT/Professional-NT-Services | 0 | 4480250 | // DoSomething.h : Declaration of the CDoSomething
#ifndef __DOSOMETHING_H_
#define __DOSOMETHING_H_
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CDoSomething
class ATL_NO_VTABLE CDoSomething :
public CComObjectRootEx<CComSingleThreadM... | c |
DIR819_v1.06/src/driver/hwnat/hwnat_reg.h | Sirherobrine23/Dir819gpl_code | 1 | 2830601 | /*
** $Id: //BBN_Linux/Branch/Branch_for_Kernel_Upgrade_20120517/tclinux_phoenix/modules/private/hwnat/hwnat_reg.h#1 $
*/
/************************************************************************
*
* Copyright (C) 2010 Trendchip Technologies, Corp.
* All Rights Reserved.
*
* Trendchip Confidential; Need to Know on... | c |
benchmarks/ptaben/ptaben-updated/mem_leak/malloc21.c | taquangtrung/discover | 122 | 5641835 | /*
* Never free
*
* Author: <NAME>
* Date: 02/04/2014
*/
#include "aliascheck.h"
typedef struct{
int* f1;
int* f2;
int* f3;
}FOO;
void getfree(FOO* net){
free(net->f1);
free(net->f2);
free(net->f3);
}
void readmin(){
FOO net1;
net1.f1 = (int*)NFRMALLOC(sizeof(int));
net1.f2 = (int*)NFRMALLOC(2)... | c |
include/support/atomic_static.h | Impact2585/wpilib-cpp | 22 | 7950585 | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2015. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | c |
src/main.c | johanengstrand/TTT | 10 | 735758 | #include "ui.h"
#include <unistd.h>
void print_help() {
printf("usage ttt [-h] [-r]\n\n");
printf("TTT - Terminal Text TV\n");
printf("A terminal interface to Text TV written in C\n\n");
printf("optional arguments:\n");
printf("-h show this help message\n");
printf("-r restore... | c |
usr/minix/badapp.c | matsud224/tinyos | 49 | 7622035 | #include "syscall.h"
#include <stdio.h>
int main() {
int n;
printf("input number: ");
fflush(stdout);
scanf("%d", &n);
switch(n) {
case 0:
do_cli();
break;
case 1:
*(int *)(0xc0000000) = 0x12345678;
break;
case 2:
printf("%x\n", *(int *)(0xc0000000));
break;
... | c |
client/version.h | tristanseifert/lichtenstein-lib | 0 | 671794 | //
// Created by <NAME> on 2019-08-15.
//
#ifndef LIBLICHTENSTEIN_VERSION_H
#define LIBLICHTENSTEIN_VERSION_H
/**
* Returns the library version.
*/
unsigned int lichtenstein_client_get_version(void);
// Global version strings
extern const char *gVERSION;
extern const char *gVERSION_SHORT;
extern const char *gVERSI... | c |
tests/unit/mongo/wire/reply_packet_get_header.c | bigmaliang/libmongo-client | 3 | 8238968 | #include "test.h"
#include "tap.h"
#include "mongo-wire.h"
#include <string.h>
void
test_mongo_wire_reply_packet_get_header (void)
{
mongo_packet *p;
mongo_packet_header h;
mongo_reply_packet_header rh;
p = mongo_wire_packet_new ();
memset (&h, 0, sizeof (mongo_packet_header));
h.opcode = 1;
h.length =... | c |
bsp/lpc54114-lite/Libraries/devices/LPC54114/LPC54114_cm0plus_features.h | Davidfind/rt-thread | 7,482 | 219787 | /*
** ###################################################################
** Version: rev. 1.0, 2016-05-09
** Build: b180327
**
** Abstract:
** Chip specific module features.
**
** The Clear BSD License
** Copyright 2016 Freescale Semiconductor, Inc.
** Copyrigh... | c |
Fingerpaint/SIDPointSequence.h | STABILOdigital/TouchRecognizerDemoApp | 1 | 309869 | //
// SIDPointSequence.h
// Fingerpaint
//
// Created by <NAME> on 24.04.14.
// Copyright (c) 2014 STABILO digital. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SIDPointSequence : NSArray
@property (assign, nonatomic) CGPoint point0;
@property (assign, nonatomic) CGPoint point1;
@property ... | c |
SpotifyMetadata.framework/Headers/SPTSearch.h | Goodoose/spotify-ios-streaming-sdk | 3 | 8081761 | /*
Copyright 2017 Spotify AB
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... | c |
include/c_dataset.h | ashao/SmartRedis | 0 | 8228140 | /*
* BSD 2-Clause License
*
* Copyright (c) 2021-2022, <NAME>
* 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,... | c |
src/interpreter/interpreter_cctl_define.c | mhcoma/sabr | 5 | 7792263 | #include "interpreter_cctl_define.h"
deque_imp_c(value);
deque_imp_c(size_t);
deque_imp_c(cctl_ptr(rbt));
vector_imp_c(uint64_t);
vector_imp_c(cctl_ptr(vector(uint64_t))); | c |
remoting/host/ui_strings.h | Scopetta197/chromium | 212 | 2568510 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_HOST_UI_STRINGS_H_
#define REMOTING_HOST_UI_STRINGS_H_
#include "base/string16.h"
// This struct contains localized strings to be d... | c |
HomeKitDaemon.framework/HMDHelperExternalProtocolImpl.h | reels-research/iOS-Private-Frameworks | 4 | 878637 | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon
*/
@interface HMDHelperExternalProtocolImpl : NSObject <HMDHelperExternalProtocol>
- (id)createAFSecurityConnection;
- (id)init;
@end | c |
mptrack/Ctrl_ins.h | ford442/openmpt | 335 | 5346062 | /*
* Ctrl_ins.h
* ----------
* Purpose: Instrument tab, upper panel.
* Notes : (currently none)
* Authors: <NAME>
* OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#pragma once
#include "openmpt/all/BuildSettings.hpp"
#include "CDecimalSu... | c |
src/t_buf.c | tobbik/lua-t | 6 | 2066955 | /* vim: ts=3 sw=3 sts=3 tw=80 sta noet list
*/
/**
* \file t_buf.c
* \brief t_buf_* functions shared between all modules
* \author tkieslich
* \copyright See Copyright notice at the end of t.h
*/
#include "t_buf.h"
#include "t.h" // t_typeerror
#ifdef DEBUG
#include "t_dbg.h"
#endif
/**---... | c |
include/sys/vga.h | franciscozdo/mimiker | 0 | 4252166 | #ifndef _SYS_VGA_H_
#define _SYS_VGA_H_
#include <sys/cdefs.h>
#include <sys/uio.h>
typedef struct vga_device vga_device_t;
typedef int (*vga_palette_write_t)(vga_device_t *vga, uio_t *uio);
typedef int (*vga_fb_write_t)(vga_device_t *vga, uio_t *uio);
typedef int (*vga_get_videomode_t)(vga_device_t *vga, unsigned *... | c |
components/lvgl/binding/luat_lvgl.h | zhangyinpeng/LuatOS | 1 | 1433115 | #ifndef LUAT_LVGL
#define LUAT_LVGL
#include "luat_base.h"
#include "lvgl.h"
#include "luat_lv_enum.h"
#include "luat_lv_gen.h"
#include "rotable.h"
#define LUAT_LOG_TAG "lvgl"
#include "luat_log.h"
#ifndef LUAT_LV_DEBUG
#define LUAT_LV_DEBUG 1
#endif
#if (LUAT_LV_DEBUG == 1)
#define LV_DEBUG LLOGD
#else
#define L... | c |
battletip.h | Mount256/PVZ_Qt | 1 | 1224293 | #ifndef BATTLETIP_H
#define BATTLETIP_H
#include <QWidget>
#include <QPainter>
#include <QDebug>
#include <QMouseEvent>
class BattleTip : public QWidget
{
Q_OBJECT
public:
explicit BattleTip(QWidget *parent = 0);
~BattleTip();
void paintEvent(QPaintEvent *);
void mousePressEvent(QMouseEvent *);
... | c |
Chapter14/18_EnumeratedTypes/main.c | leeyunhome/TBC-workbook | 1 | 647097 | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
/** Motivation
int c = 0; // red:0, orange:1, yellow:2, green:3, ...
if (c == 0)
printf("red");
else if(c == 1)
printf("orange");
else if (c == 2)
printf("yellow");
... ...
*/
/**
#define RED 1
#define ORANGE 2
#define YELLOW 3
int c = YELLOW;
if (c == YELLOW)... | c |
LJWTextChecker/LJWTextChecker/Vendors/LJWHUD/UIView+LJWHUD.h | chinaljw/LJWTextChecker | 3 | 8100150 | //
// UIView+LJWMessageView.h
// LJWHUD
//
// Created by ljw on 15/5/26.
// Copyright (c) 2015年 ljw. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "LJWWaitingView.h"
#import "LJWMessageView.h"
typedef void (^LJWHUDCompletionBlock)();
@interface UIView (LJWHUD)
@property (nonatomic, strong, readonly) U... | c |
AAChartKitDemo/ChartsDemo/AADateUTCTool.h | AAChartModel/EEChartKit | 2 | 7826345 | //
// AADateUTCTool.h
// AAChartKitDemo
//
// Created by AnAn on 2018/7/20.
// Copyright © 2018年 Danny boy. All rights reserved.
//
#import <Foundation/Foundation.h>
#define AADateUTC(yyyy,mm,dd) [AADateUTCTool getDateUTCWithYear:yyyy month:mm day:dd]
@interface AADateUTCTool : NSObject
+ (NSNumber *)getDateU... | c |
src/xentu/graphics/lua/LuaFont.h | xentu/xentu-engine | 4 | 1008435 | #ifndef XEN_LUA_FONT
#define XEN_LUA_FONT
namespace xen
{
/** A type used to describe info sent from lua */
struct LuaFont {
int texture_id;
int spritemap_id;
int letter_spacing;
int line_height;
static LuaFont Default()
{
LuaFont f;
f.texture_id = -1;
f.spritemap_id = -1;
f.lett... | c |
src/Rtc.h | IHA114/gpstracker-firmware | 13 | 6059763 | #pragma once
#include <Arduino.h>
#include "Time2.h"
namespace rtc {
void setup();
int16_t getTemperature();
bool isAccurate();
timestamp_t getTime();
void getTime(tmElements_t &time);
void setTime(const tmElements_t &time);
void setAlarm(uint16_t seconds);
void setAlarm(const tmElements_t &time);
} | c |
FSGDEngine-Student/FSGDGame/PointLightBehavior.h | Cabrra/Engine-Development | 2 | 623540 | #pragma once
#include "../EDGOCA/BehaviorT.h"
#include "../EDRendererD3D/PointLightWithShadow.h"
namespace Behaviors
{
class PointLightBehavior : public EDGOCA::BehaviorT<PointLightBehavior>
{
public:
PointLightBehavior(void);
~PointLightBehavior(void);
void OnAdd(void);
const EDGOCA::AttributeNameKey* G... | c |
cmake_targets/lte_build_oai/build/CMakeFiles/Rel14/CarrierFreqUTRA-FDD-Ext-r12.h | davidraditya/OAI-Powder | 1 | 5445022 | /*
* Generated by asn1c-0.9.24 (http://lionet.info/asn1c)
* From ASN.1 module "EUTRA-RRC-Definitions"
* found in "fixed_grammar.asn"
* `asn1c -gen-PER`
*/
#ifndef _CarrierFreqUTRA_FDD_Ext_r12_H_
#define _CarrierFreqUTRA_FDD_Ext_r12_H_
#include <asn_application.h>
/* Including external dependencies */
#includ... | c |
Library/Mail/MailPOP3/buffer.h | steakknife/pcgeos | 504 | 3589383 | /***********************************************************************
*
* Copyright (c) GlobalPC 1998. All rights reserved.
* GLOBALPC CONFIDENTIAL
*
* PROJECT: Mail
* MODULE: MailPOP3
* FILE: buffer.h
*
* AUTHOR: : Nov 25, 1998
*
* REVISION HISTORY:
* Name Date Description
* ---- ... | c |
IOS/Methods/Methods/mathexpr.h | klinkert0728/practicaAnalisis | 0 | 4660980 | /*
mathexpr.h version 2.0
Copyright <NAME> 1997-2000
This software may be freely distributed as is, including this whole notice.
It may be modified, but any modification should include this whole
notice as is and a description of the changes made.
This software may not be sold.
This software or any m... | c |
UIKit/Classes/UITextField.h | dmgctrl/Chameleon | 0 | 3693165 | /*
* Copyright (c) 2011, The Iconfactory. 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 condi... | c |
UDP/client.h | Eresia/Test_Socket | 0 | 6997009 | #ifndef CLIENT
#define CLIENT
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "network.h"
typedef struct Informations Informations;
struct Informations{
int socket;
SOCKADDR_IN to;
int tosize;
};
int connectToUDPServer(char* ip, int port);
void* receiveMsg(void* info);
#... | c |
src/modules/fs/methods/close_sync.c | mininode/mininode | 43 | 4348880 | #include "duktape.h"
duk_ret_t
mn_bi_fs_close_sync(duk_context *ctx) {
return 0;
} | c |
src/vmod_esicookies.c | peak-dev/libvmod-esicookies | 0 | 7488473 | /*-
* Copyright (c) 2013-2014 UPLEX <NAME> Systemoptimierung
* All rights reserved
*
* Author: <NAME> <<EMAIL>>
*
* Portions Copyright (c) 2014 Varnish Software AS
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... | c |
FullTreeCheck.c | aadilmughal786/c-programs | 0 | 5244178 | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
typedef struct Node{
int data;
struct Node *left,*right;
}Node;
Node* createNode(int data){
Node* temp = (Node*)malloc(sizeof(Node));
temp->data = data;
temp->left = NULL;
temp->right = NULL;
return temp;
}
void linker(Node* left,Node* parent,Node* r... | c |
inetsrv/iis/svcs/cmp/webdav/inc/mem.h | npocmaka/Windows-Server-2003 | 17 | 2000092 | /*
* M E M . H
*
* DAV basic memory allocators. Implementation of this class is
* owned by the individual implementations
*
* Copyright 1986-1997 Microsoft Corporation, All Rights Reserved
*/
#ifndef _MEM_H_
#define _MEM_H_
#ifdef _DAVCDATA_
#error "mem.h defines throwing allocators"
#endif
// Global heap "c... | c |
clang/test/Analysis/infeasible-sink.c | ornata/llvm-project | 0 | 7180958 | // RUN: %clang_analyze_cc1 %s \
// RUN: -analyzer-checker=core \
// RUN: -analyzer-checker=debug.ExprInspection \
// RUN: -analyzer-config eagerly-assume=false \
// RUN: -verify
// Here we test that if it turns out that the parent state is infeasible then
// both children States (more precisely the ExplodedNod... | c |
CoreSpeech.framework/CSVTUITrainingSession.h | reels-research/iOS-Private-Frameworks | 4 | 4753566 | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/CoreSpeech.framework/CoreSpeech
*/
@interface CSVTUITrainingSession : NSObject <CSVTUIAudioSessionDelegate, CSVTUIEndPointDelegate, SFSpeechRecognitionTaskDelegate> {
bool _ASRErrorOccured;
<CSVTUIAudioSession> * _audioSession;
CS... | c |
src/Manager/ofxAppGlobals.h | danoli3/ofxMultiplatform | 0 | 3067931 | // ofxAppGlobals
// ofxMultiPlatform - https://www.github.com/danoli3/ofxMultiPlatform
// Created by <NAME> on 25/05/2014.
//--------------------------------------------------------------
#pragma once
//----------------------
// Place all Project Global Static Variables here. | c |
Pod/Classes/BBPodBundle.h | jfl913/HBRefreshCollectionView | 0 | 513027 | //
// BBPodBundle.h
// Pods
//
// Created by LiJunfeng on 16/1/27.
//
//
#import <Foundation/Foundation.h>
@interface BBPodBundle : NSObject
+ (NSString *)pathForResource:(NSString *)name ofType:(NSString *)ext;
/**
* 在pod内部获取图片
*
* @param nameString 要获取图片的名字
*
* @return 返回[UIImage imageNamed:(NSString *... | c |
libc/winsup/testsuite/winsup.api/ltp/lseek09.c | The0x539/wasp | 7 | 1069566 | /*
*
* Copyright (c) International Business Machines Corp., 2001
*
* 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 l... | c |
data-plane/http1/include/ESHttpCommandSocket.h | duderino/everscale | 0 | 6072552 | #ifndef ES_HTTP_COMMAND_SOCKET_H
#define ES_HTTP_COMMAND_SOCKET_H
#ifndef ESB_MULTIPLEXED_SOCKET_H
#include <ESBMultiplexedSocket.h>
#endif
#ifndef ESB_EVENT_SOCKET_H
#include <ESBEventSocket.h>
#endif
#ifndef ESB_EMBEDDED_LIST_H
#include <ESBEmbeddedList.h>
#endif
#ifndef ESB_MUTEX_H
#include <ESBMutex.h>
#endif
... | c |
IniFile.h | phitsc/farrwms | 0 | 6004654 | #pragma once
///////////////////////////////////////////////////////////////////////////////
#include "Util.h"
#include <fstream>
#include <map>
#include <set>
#include <string>
#include <sstream>
#include <stdexcept>
///////////////////////////////////////////////////////////////////////////////
struct IniParamet... | c |
include/dukpp-03-irrklang/jsstopcallback.h | mamontov-cpp/saddy | 58 | 4327286 | /*! \file jsstopcallback.h
A stop callback to be called with JS
*/
#pragma once
#include "../dukpp-03/context.h"
#include "../irrklang/sound.h"
namespace sad
{
namespace dukpp03irrklang
{
class JSStopCallback: public sad::util::PointerCallback<sad::irrklang::Sound>
{
public:
/*! Makes new callback
... | c |
cameraV2/cameraV2/firmware/src/flir.c | MattAtHazmat/flirry | 0 | 8020588 | // <editor-fold defaultstate="collapsed" desc="...">
/******************************************************************************/
/*MPLAB Harmony Application Source File */
/* */
/*Company: ... | c |
components/data_reduction_proxy/content/browser/content_lofi_decider.h | metux/chromium-deb | 0 | 6191544 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECIDER_H_
#define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECID... | c |
problems/ransom_note/solution.c | yogeshsingh01/LeetCode | 0 | 623477 | bool canConstruct(char * ransomNote, char * magazine){
int len = strlen(ransomNote);
int count = 0;
char * maga = NULL;
while(*ransomNote != '\0')
{
maga = magazine;
while(*maga != '\0')
{
if(*ransomNote == *maga)
{
count++;
... | c |
scr/Libs/loadFiles.h | thiagofigcosta/LostInDitaduraC-64 | 2 | 5180282 | #ifndef LOADFILES_H
#define LOADFILES_H
#include "Globals.h"
#include "../Classes/Util.hpp"
#include "../Classes/AL.hpp"
#include "../Classes/GL.hpp"
typedef struct settings{
bool sound=true,music=true;
bool fog,light,shader,particles,fs;
}SETTINGS;
bool loadTextures();
bool loadStrings();
bool loadSounds();
bool... | c |
include/utils.h | orchardpark/cpp-tetris | 0 | 6850255 | #ifndef CPP_TETRIS_UTILS_H
#define CPP_TETRIS_UTILS_H
#include <type_traits>
template <typename E>
constexpr auto to_underlying(E e) noexcept
{
return static_cast<std::underlying_type_t<E>>(e);
}
#endif //CPP_TETRIS_UTILS_H | c |
apps/myApps/idolHackerthon/src/Components/DropCandy.h | marble-seijin/idolHackerthon | 0 | 6617343 | //
// DropCandy.h
// idolHackerthon
//
// Created by <NAME> on 2015/09/12.
//
//
#ifndef __idolHackerthon__DropCandy__
#define __idolHackerthon__DropCandy__
#include "ofMain.h"
class DropCandy {
ofVec2f vel;
ofVec2f pos;
float alpha;
float r;
ofColor color;
public:
DropCandy();
vo... | c |
boot/bootauth.c | 0intro/9hist | 90 | 1048962 | #include <u.h>
#include <libc.h>
#include <auth.h>
#include <fcall.h>
#include "../boot/boot.h"
char *authaddr;
static void glenda(void);
void
authentication(int cpuflag)
{
char *argv[16], **av;
int ac;
if(access("/boot/factotum", AEXEC) < 0){
glenda();
return;
}
/* start agent */
ac = 0;
av = argv;
av[... | c |
src/config.c | eftales/cwebserver | 0 | 8176284 | #include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <limits.h>
#include "stringutils.h"
#include "config.h"
config* config_init() {
config *conf;
//申请内存并初始化
conf = malloc(sizeof(*conf));
memset(conf, 0, sizeof(*conf));
return conf;
}
void ... | c |
ultra96/ROOT_FS/app/fad/src/fad/StateEstimator/ParticleFilter/ParticleFilter.h | rits-drsl/ZybotR2-96-fpt19 | 14 | 39288 | /**
* ParticleFilter: パーティクルフィルタを用いて
* 現状態を推定するクラス
*
* Copyright (C) 2019 Yuya Kudo.
* Copyright (C) 2019 <NAME>.
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
*/
#ifndef FAD_SRC_FAD_ROADSURFACESLAM_PARTICLEFILTER_PARTICLEFILTER_H_
#define FAD_SRC_FAD_ROADSURFACESLAM_... | c |
packages/pigeon/platform_tests/ios_unit_tests/ios/RunnerTests/EchoMessenger.h | indaband/packages | 2 | 2823415 | // Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Flutter/Flutter.h>
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/// A FlutterBinaryMessenger who replies with the first argument se... | c |
atmel/avr/classes/eea_1.h | gotnone/hwa | 0 | 5490054 | /* This file is part of the HWA project.
* Copyright (c) 2012,2015 <NAME>.
* All rights reserved. Read LICENSE.TXT for details.
*/
/**
* @file
* @brief EEPROM
*/
/**
* @page atmelavr_eea Class _eea: EEPROM memory
*
* A class `_eea` object is an EEPROM memory.
*
* It is used in:
* * @ref attinyx4 : `eepro... | c |
arm/betadisk/stdinc.h | chipsi/speccy2010 | 1 | 218597 | #include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "../system.h"
#define USE_RAM_FILE 0
#if USE_RAM_FILE
#include "../ramFile.h"
#define FIL RFIL
#define f_open rf_open
#define f_read rf_read
#define f_write rf_write
#define f_lseek rf_lseek
#define f... | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.