doc_id stringlengths 36 36 | metadata dict | input stringlengths 28 4.3k | output stringlengths 11 5.45k |
|---|---|---|---|
d1433327-48df-40f7-b45f-544f86dcb8b3 | {
"language": "C"
} | ```c
// 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 CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_
#define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_
#pragma once
#include "content/bro... | ```c
// 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 CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_
#define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_
#pragma once
#include "content/bro... |
06d87ca9-007c-49c0-8872-046589bdfb58 | {
"language": "C"
} | ```c
```
Add separate file for nx_ieee_eui64, since tinyos-main is unable to support it. | ```c
/**
* Struct for IEEE EUI64 with network byte order and nx_structs.
*
* @author Raido Pahtma
* @license MIT
*/
#ifndef NXIEEEEUI64_H
#define NXIEEEEUI64_H
#include "IeeeEui64.h"
typedef nx_struct nx_ieee_eui64 {
nx_uint8_t data[IEEE_EUI64_LENGTH];
} nx_ieee_eui64_t;
#endif // NXIEEEEUI64_H
``` |
8dc8da05-d231-477a-b43b-75ef7cb6de0c | {
"language": "C"
} | ```c
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1 as published by the Free Software Foundation.
This library is distributed in the hope that it will be ... | ```c
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1 as published by the Free Software Foundation.
This library is distributed in the hope that it will be ... |
34f75193-742c-4895-9f53-dc6f209b7f5b | {
"language": "C"
} | ```c
```
Add the thread specific class. | ```c
/**
* \file thread_specific.h
*
* A thread specific type.
*
* \author eaburns
* \date 2009-07-23
*/
#if !defined(_THREAD_SPECIFIC_H_)
#define _THREAD_SPECIFIC_H_
#include <vector>
using namespace std;
#include "thread.h"
/* To attempt to prevent cache ping-ponging? */
#define PADDING 24 /* bytes */
t... |
e025ef59-fd46-45e2-8e6b-9adf087b3661 | {
"language": "C"
} | ```c
// Copyright 2014 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 CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTO... | ```c
// Copyright 2014 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 CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTO... |
e747a7b7-0b42-424a-8742-5a13c628f895 | {
"language": "C"
} | ```c
/* vi: set sw=4 ts=4: */
/*
* getgid() for uClibc
*
* Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include "syscalls.h"
#include <unistd.h>
#if defined __NR_getxgid
# define __NR_getgid __NR_getxgid
#endif
_sysca... | ```c
/* vi: set sw=4 ts=4: */
/*
* getgid() for uClibc
*
* Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include "syscalls.h"
#include <unistd.h>
#if defined __NR_getxgid
# define __NR_getgid __NR_getxgid
#endif
libc_h... |
76bee993-2ab2-4bfc-8f5f-5122e029ccd2 | {
"language": "C"
} | ```c
//
// Marshal.h
// Marshal
//
// Created by Jason Larsen on 2/24/16.
// Copyright © 2016 Utah iOS & Mac. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for Marshal.
FOUNDATION_EXPORT double MarshalVersionNumber;
//! Project version string for Marshal.
FOUNDATION_EXPORT const unsi... | ```c
//
// M A R S H A L
//
// ()
// /\
// ()--' '--()
// `. .'
// / .. \
// ()' '()
//
//
#import <Foundation/Foundation.h>
//! Project version number for Marshal.
FOUNDATION_EXPORT double MarshalVersionNumber;
//! Project version string for Marshal.
FOUNDATION_EXPORT const unsigned cha... |
ee7a9732-f582-4df0-b93c-71000f9711d1 | {
"language": "C"
} | ```c
//
// IMeetingDelegate.h
// MeetingApp
//
// Created by Estefania Chavez Guardado on 2/27/16.
// Copyright © 2016 Estefania Chavez Guardado. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Meeting.h"
@protocol IMeetingDelegate <NSObject>
@optional
- (void) update: (MutableMeeting *) newMeeting;
... | ```c
//
// IMeetingDelegate.h
// MeetingApp
//
// Created by Estefania Chavez Guardado on 2/27/16.
// Copyright © 2016 Estefania Chavez Guardado. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Meeting.h"
typedef enum NotificationType {
NOTIFICATION_TYPE_EMAIL,
NOTIFICATION_TYPE_CALENDAR
} Noti... |
fc9e3d2f-5f19-4ca3-85c2-dd903ddc17a6 | {
"language": "C"
} | ```c
#ifndef ALEXCPT_H
#define ALEXCPT_H
#include <exception>
#include <string>
#include "AL/alc.h"
namespace al {
class backend_exception final : public std::exception {
std::string mMessage;
ALCenum mErrorCode;
public:
backend_exception(ALCenum code, const char *msg, ...);
const char *what() co... | ```c
#ifndef ALEXCPT_H
#define ALEXCPT_H
#include <exception>
#include <string>
#include "AL/alc.h"
#ifdef __GNUC__
#define ALEXCPT_FORMAT(x, y, z) __attribute__((format(x, (y), (z))))
#else
#define ALEXCPT_FORMAT(x, y, z)
#endif
namespace al {
class backend_exception final : public std::exception {
std::str... |
e67fa0ba-8e86-4ca7-82fc-84eff1a4240b | {
"language": "C"
} | ```c
```
Add failing test case with max u long long | ```c
// PARAM: --conf=conf/svcomp21.json
// from: ldv-linux-3.0/usb_urb-drivers-vhost-vhost_net.ko.cil.out.i
typedef unsigned long long u64;
int main( )
{ u64 a ;
unsigned long flag ;
unsigned long roksum ;
struct thread_info *tmp___7 ;
int tmp___8 ;
long tmp___9;
void *log_base;
unsigned long sz;
u64 ... |
a4acee76-95d2-4b6e-907d-83753cc4085c | {
"language": "C"
} | ```c
```
Add a clang test for r257376 (Ensure -mcpu=xscale works for arm targets). | ```c
// RUN: %clang -target arm-freebsd -mcpu=xscale -### -c %s 2>&1 | FileCheck %s
// CHECK-NOT: error: the clang compiler does not support '-mcpu=xscale'
// CHECK: "-cc1"{{.*}} "-target-cpu" "xscale"{{.*}}
``` |
b92d1e88-5ff3-4898-9f97-e67557a8092c | {
"language": "C"
} | ```c
//
// CDZIssueSyncEngine.h
// thingshub
//
// Created by Chris Dzombak on 1/13/14.
// Copyright (c) 2014 Chris Dzombak. All rights reserved.
//
#import <ReactiveCocoa/ReactiveCocoa.h>
@class OCTClient;
@class CDZThingsHubConfiguration;
@protocol CDZIssueSyncDelegate;
@interface CDZIssueSyncEngine : NSObject... | ```c
//
// CDZIssueSyncEngine.h
// thingshub
//
// Created by Chris Dzombak on 1/13/14.
// Copyright (c) 2014 Chris Dzombak. All rights reserved.
//
#import <ReactiveCocoa/ReactiveCocoa.h>
@class OCTClient;
@class CDZThingsHubConfiguration;
@protocol CDZIssueSyncDelegate;
@interface CDZIssueSyncEngine : NSObject... |
29ec37f8-925b-4b77-b441-76a9cf09679c | {
"language": "C"
} | ```c
/* Auxiliary program: write the include file for determining
PLplot's floating-point type
*/
#include <stdio>
#include <stdlib>
#include "plConfig.h"
main(int argc, char *argv[] )
{
FILE *outfile ;
char *kind ;
outfile = fopen( "plflt.inc", "w" ) ;
#ifdef PL_DOUBLE
kind = "1.0d0"
#else
kind = ... | ```c
/* Auxiliary program: write the include file for determining
PLplot's floating-point type
*/
#include <stdio.h>
#include <stdlib.h>
#include "plConfig.h"
main(int argc, char *argv[] )
{
FILE *outfile;
char *kind;
outfile = fopen( "plflt.inc", "w" ) ;
#ifdef PL_DOUBLE
kind = "1.0d0";
#else
kind... |
f083b554-90a2-44c9-966f-2b102484feeb | {
"language": "C"
} | ```c
#ifndef LIBPORT_UNISTD_H
# define LIBPORT_UNISTD_H
# include "detect_win32.h"
# include "libport/config.h"
// This is traditional Unix file.
# ifdef LIBPORT_HAVE_UNISTD_H
# include "unistd.h"
# endif
// This seems to be its WIN32 equivalent.
// http://msdn2.microsoft.com/en-us/library/ms811896(d=printer).aspx... | ```c
#ifndef LIBPORT_UNISTD_H
# define LIBPORT_UNISTD_H
# include "detect_win32.h"
# include "libport/config.h"
// This is traditional Unix file.
# ifdef LIBPORT_HAVE_UNISTD_H
# include "unistd.h"
# endif
// This seems to be its WIN32 equivalent.
// http://msdn2.microsoft.com/en-us/library/ms811896(d=printer).aspx... |
5a1bb39a-daf1-438f-a3ee-1cda0681d1b8 | {
"language": "C"
} | ```c
#import "NSManagedObject+ActiveRecord.h"
#import "NSString+StringBetweenStrings.h"
#import <Artsy+UIColors/UIColor+ArtsyColors.h>
#import "UIColor+FolioColours.h"
#import <Artsy+UIFonts/UIFont+ArtsyFonts.h>
#import "NSObject+Notifications.h"
#import <UIView+BooleanAnimations/UIView+BooleanAnimations.h>
#import "UI... | ```c
#import "NSManagedObject+ActiveRecord.h"
#import "NSString+StringBetweenStrings.h"
#import <Artsy+UIColors/UIColor+ArtsyColors.h>
#import "UIColor+FolioColours.h"
#if __has_include(<Artsy+UIFonts/UIFont+ArtsyFonts.h>)
#import <Artsy+UIFonts/UIFont+ArtsyFonts.h>
#endif
#if __has_include(<Artsy+OSSUIFonts/UIFont+O... |
98a94e39-da61-409b-a588-7d7ada6068d7 | {
"language": "C"
} | ```c
file4.c - r1
Test checkin in master1-updated - updated_by_master
Test checkin in master2
Test checkin in master3
Test checkin in master4
```
Test commit merges feature to master | ```c
Test checkin in master1-updated - updated_by_master
Test checkin in master1-updated - updated2
Test checkin in master2
Test checkin in master3
Test checkin in master4
``` |
07c83939-1126-46d5-b5e6-6279337b16f8 | {
"language": "C"
} | ```c
// Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree-dialects/Transforms/Listener.h"
#include "mlir/IR/PatternMatch.h"
#include "m... | ```c
// Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree-dialects/Transforms/Listener.h"
#include "mlir/IR/PatternMatch.h"
#include "m... |
9e93c323-bc71-4db3-9037-bcc924246709 | {
"language": "C"
} | ```c
#pragma once
#define DHT22_PIN 6
#define DHT22_SAMPLE_RATE 3000
#define TEMPORATURE_TARGET (204)
#define HEATER_PIN 10
#define HEATER_ACTION_DELAY (15*60) // minimal seconds to open/close heater, prevent switch heater too frequently.
```
Change DHT22 sensor sample rate to 20 seconds | ```c
#pragma once
#define DHT22_PIN 6
#define DHT22_SAMPLE_RATE 20000
#define TEMPORATURE_TARGET (204)
#define HEATER_PIN 10
#define HEATER_ACTION_DELAY (15*60) // minimal seconds to open/close heater, prevent switch heater too frequently.
``` |
c9c27fce-2edf-4651-902e-22dd3d5a3e2d | {
"language": "C"
} | ```c
#ifndef VECTOR_3D_H
#define VECTOR_3D_H
#include <math.h>
namespace classes {
struct Point3D {
double x, y, z;
};
class Vector3D {
struct Cheshire;
Cheshire* smile;
static const Point3D nullPoint = { 0.0, 0.0, 0.0 };
public:
Vector3D();
Vector3D(Point3D point = nullPoint);
Vector3D(doub... | ```c
#ifndef VECTOR_3D_H
#define VECTOR_3D_H
#include <math.h>
namespace classes {
struct Point3D {
double x, y, z;
};
typedef const char* err;
class Vector3D {
struct Cheshire;
Cheshire* smile;
static const Point3D nullPoint;
static unsigned int idCounter;
public:
Vector3D(Point3D point = nul... |
ccfb884f-7a15-477a-a9ab-ec0c8fa4abf1 | {
"language": "C"
} | ```c
```
Add first example! (Hello World) | ```c
/**
* Exemplo 01 - Hello World!
*
* Este é o exemplo mais simples da linguagem C. Consiste apenas em um programa que
* imprime a mensagem "Hello World!" e termina sua execução.
* Apesar de simples, é um bom programa para se basear na estrutura, além de testar
* se o compilador está funcionando corretamente
... |
0194b3e6-df37-4768-8044-33e4f3a4db31 | {
"language": "C"
} | ```c
#include "calc.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
int calc(const char* p)
{
int i;
int ans;
ans = atoi(p);
i = 0;
while (p[i] != '\0'){
while (isdigit(p[i])){
i++;
}
switch (p[i]){
case '+':
return (ans... | ```c
#include "calc.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
int calc(const char* p)
{
int i;
int ans;
ans = atoi(p);
i = 0;
while (p[i] != '\0'){
while (isdigit(p[i])){
i++;
}
switch (p[i]){
case '+':
return (ans... |
bab0c132-801e-42cb-9a71-860a8e9e4b3b | {
"language": "C"
} | ```c
```
Support for system "power profiles". Currently we support two profiles; "economy" and "performance". | ```c
/*-
* Copyright (c) 2001 Michael Smith
* 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 ... |
68854d7c-2e43-4b0e-807d-fc5398702457 | {
"language": "C"
} | ```c
/* OSEKOS Implementation of an OSEK Scheduler
* Copyright (C) 2015 Joakim Plate
*
* 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.1 of the License, or (at yo... | ```c
/* OSEKOS Implementation of an OSEK Scheduler
* Copyright (C) 2015 Joakim Plate
*
* 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.1 of the License, or (at yo... |
0891e860-0dea-42ea-abdc-7a51afb667de | {
"language": "C"
} | ```c
//===- MCSymbolXCOFF.h - ----------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------... | ```c
//===- MCSymbolXCOFF.h - ----------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------... |
a5678a37-903f-42cf-b99a-ac01b9256d59 | {
"language": "C"
} | ```c
```
Add a clang test for LLVM fix for PR23332 | ```c
// RUN: %clang_cc1 -x c++ -g -emit-llvm -triple x86_64-linux-gnu -o - %s | FileCheck %s
// PR23332
// CHECK: MDLocalVariable(tag: DW_TAG_arg_variable, arg: 255
// CHECK: MDLocalVariable(tag: DW_TAG_arg_variable, arg: 256
// CHECK: MDLocalVariable(tag: DW_TAG_arg_variable, arg: 257
void fn1(int, int, int, int, int... |
dba99f4f-984c-4c12-8e26-f64fa1c3b002 | {
"language": "C"
} | ```c
```
Implement Linked List in C | ```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct Node Node;
struct Node {
int value;
Node *next;
};
void addFirst(Node **head, int v) {
Node *newNode = (Node * )malloc(sizeof(Node));
newNode->value = v;
newNode->next = *head;
*head = newNode;
}
void printList(Node *head) {
Node ... |
046d0030-a058-4dd9-90f4-bfd0da92c7f1 | {
"language": "C"
} | ```c
/**
* Generic reservoir sampling.
*/
#ifndef _RS_H
#define _RS_H
/* print actions to the reservoir */
#ifndef PRINT_RS_TRACE
#define PRINT_RS_TRACE 1
#endif
struct reservoir;
struct drand48_data;
struct reservoir *init_reservoir(size_t sz,
#if PRINT_RS_TRACE
void (*print_fun)(void *it),
#endif
void *(*cl... | ```c
/**
* Generic reservoir sampling.
*/
#ifndef _RS_H
#define _RS_H
/* print actions to the reservoir */
#ifndef PRINT_RS_TRACE
#define PRINT_RS_TRACE 1
#endif
struct reservoir;
struct drand48_data;
/* Notice one extra parameter when tracing the reservoir */
struct reservoir *init_reservoir(size_t sz,
#if PRINT... |
33d50fe3-e4c2-48b7-bfa6-dac349270c66 | {
"language": "C"
} | ```c
/***************************************************************************//**
* \file domain.h
* \author Krishnan, A. (anush@bu.edu)
* \brief Definition of the class \c domain
*/
#pragma once
#include "types.h"
/**
* \class domain
* \brief Store the mesh grid information
*/
class domain
{
public:
int nx... | ```c
/***************************************************************************//**
* \file domain.h
* \author Anush Krishnan (anush@bu.edu)
* \brief Definition of the class \c domain.
*/
#pragma once
#include "types.h"
/**
* \class domain
* \brief Stores information about the computational grid.
*/
class... |
3f71da80-0b36-4d74-8df3-6ecf7cd6cc51 | {
"language": "C"
} | ```c
/*
* Copyright (c) 2014-2015 Erik Doernenburg and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use these files except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | ```c
/*
* Copyright (c) 2014-2015 Erik Doernenburg and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use these files except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
be601a12-d7ac-4d61-a778-6e953ff3884e | {
"language": "C"
} | ```c
/*
* Copyright (c) 2012, Nadir Sampaoli
* See the LICENSE for more information
*/
#include "memory.h"
#include <stdlib.h>
#include <stdio.h>
static uint8_t *memory_area;
void allocmemory(void)
{
while(!memory_area) {
memory_area = malloc(MEM_SIZE * sizeof(uint8_t));
}
}
uint8_t getmembyte(ui... | ```c
/*
* Copyright (c) 2012, Nadir Sampaoli
* See the LICENSE for more information
*/
#include "memory.h"
#include <stdlib.h>
#include <stdio.h>
static uint8_t *memory_area;
void allocmemory(void)
{
while(!memory_area) {
memory_area = malloc(MEM_SIZE * sizeof(uint8_t));
}
}
inline uint8_t getmem... |
cf0073b3-cb81-4626-bd06-87aec028fc38 | {
"language": "C"
} | ```c
//
// GLGInputParserDelegate.h
// TwIRCk
//
// Created by Tim Jarratt on 11/29/13.
// Copyright (c) 2013 General Linear Group. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol GLGInputParserDelegate <NSObject>
- (void) didJoinChannel:(NSString *)channel
rawCommand:(NSString *... | ```c
//
// GLGInputParserDelegate.h
// TwIRCk
//
// Created by Tim Jarratt on 11/29/13.
// Copyright (c) 2013 General Linear Group. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol GLGInputParserDelegate <NSObject>
- (void) didJoinChannel:(NSString *)channel
rawCommand:(NSString *... |
821e247f-0d73-4151-9397-81eb91146c4f | {
"language": "C"
} | ```c
#ifndef IDT_H
#define IDT_H
#include <stdint.h>
struct IDTEntry {
uint16_t base_address_low;
uint16_t selector;
uint8_t reserved;
uint8_t type : 4;
uint8_t storage_segment : 1;
uint8_t privilege : 2;
uint8_t present : 1;
uint16_t base_address_high;
} __attribute__((packed));
struct IDTDescriptor {
uint... | ```c
#ifndef IDT_H
#define IDT_H
#include <stdint.h>
struct IDTEntry {
uint16_t base_address_low;
uint16_t selector;
uint8_t reserved;
uint8_t type : 4;
uint8_t storage_segment : 1;
uint8_t privilege : 2;
uint8_t present : 1;
uint16_t base_address_high;
} __attribute__((packed));
struct IDTDescriptor {
uint... |
03998448-afaa-4b9a-bcbd-9c1854d3bc24 | {
"language": "C"
} | ```c
```
Add beginnings of DB layer. | ```c
// Copyright 2016 Ben Trask
// MIT licensed (see LICENSE for details)
#include <kvstore/db_schema.h>
enum {
harc_timeid_to_entry = 20,
harc_url_timeid = 21,
harc_hash_timeid = 50,
};
#define harc_timeid_to_entry_keypack(val, time, id) \
DB_VAL_STORAGE(val, DB_VARINT_MAX*3); \
db_bind_uint64((val), harc_tim... |
995a3b6f-58ea-4d6f-afd1-a5fc382abc8b | {
"language": "C"
} | ```c
/*
* types.h
*
* Created on: Mar 11, 2014
* Author: Chase
*/
#ifndef TYPES_H_
#define TYPES_H_
#include <stdint.h>
//Don't use stdbool.h, we have to make sure bool is only a byte in size!
typedef uint8_t bool;
#define true 1
#define false 0
#define TRUE 1
#define FALSE 0
typedef uint8_t char8_t;
typ... | ```c
/*
* types.h
*
* Created on: Mar 11, 2014
* Author: Chase
*/
#ifndef TYPES_H_
#define TYPES_H_
#include <stdint.h>
//Don't use stdbool.h, we have to make sure bool is only a byte in size!
typedef uint8_t bool;
enum {
true = 1,
false = 0,
TRUE = 1,
FALSE = 0
};
typedef uint8_t char8_t;
typedef ui... |
43b19958-578c-4135-83f0-b750f92f0d06 | {
"language": "C"
} | ```c
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <unistd.h>
#include "native_client/src/untrusted/nacl/nacl_irt.h"
#include "native_client/src/untrusted/nacl/nacl_thread.h"... | ```c
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <unistd.h>
#include "native_client/src/untrusted/nacl/nacl_irt.h"
#include "native_client/src/untrusted/nacl/nacl_thread.h"... |
f6be6d7d-82fb-4caf-86a6-30c7cecc4541 | {
"language": "C"
} | ```c
#include <bert/buffer.h>
#include <string.h>
#include <stdio.h>
#include "test.h"
#define DATA_SIZE 4
int main()
{
unsigned char data[4];
bert_buffer_t buffer;
bert_buffer_init(&buffer);
memset(data,'A',DATA_SIZE);
bert_buffer_write(&buffer,data,DATA_SIZE);
bert_buffer_write(&buffer,data,DATA_SIZE);
... | ```c
#include <bert/buffer.h>
#include <string.h>
#include <stdio.h>
#include "test.h"
#define DATA_SIZE 4
int main()
{
unsigned char data[4];
bert_buffer_t buffer;
bert_buffer_init(&buffer);
memset(data,'A',DATA_SIZE);
unsigned int i;
for (i=0;i<((BERT_CHUNK_SIZE / DATA_SIZE) * 2);i++)
{
bert_buffer_w... |
1903a006-e8c5-4fb9-be8b-291edcccdf5d | {
"language": "C"
} | ```c
/*****************************************************************************\
* *
* Filename SysLib.h *
* *
* Description SysLib Library core definitions *
* ... | ```c
/*****************************************************************************\
* *
* Filename SysLib.h *
* *
* Description SysLib Library core definitions *
* ... |
abdfc134-250d-4e4d-943f-7a977933ff7c | {
"language": "C"
} | ```c
#ifndef FIFO_H
#define FIFO_H
#include "align.h"
#define FIFO_NODE_SIZE 510
struct _fifo_node_t;
typedef struct DOUBLE_CACHE_ALIGNED {
volatile size_t enq DOUBLE_CACHE_ALIGNED;
volatile size_t deq DOUBLE_CACHE_ALIGNED;
volatile struct {
int index;
struct _fifo_node_t * node;
} head DOUBLE_CACHE... | ```c
#ifndef FIFO_H
#define FIFO_H
#include "align.h"
#define FIFO_NODE_SIZE (1 << 20 - 2)
struct _fifo_node_t;
typedef struct DOUBLE_CACHE_ALIGNED {
volatile size_t enq DOUBLE_CACHE_ALIGNED;
volatile size_t deq DOUBLE_CACHE_ALIGNED;
volatile struct {
size_t index;
struct _fifo_node_t * node;
} head... |
d367e7db-7a34-4be5-a7c9-b9638f24cc9b | {
"language": "C"
} | ```c
/*
* $Id$
*
* Copyright (c) 2013, Juniper Networks, Inc.
* All rights reserved.
* This SOFTWARE is licensed under the LICENSE provided in the
* ../Copyright file. By downloading, installing, copying, or otherwise
* using the SOFTWARE, you agree to be bound by the terms of that
* LICENSE.
*
* jsonwriter.h... | ```c
/*
* Copyright (c) 2013, Juniper Networks, Inc.
* All rights reserved.
* This SOFTWARE is licensed under the LICENSE provided in the
* ../Copyright file. By downloading, installing, copying, or otherwise
* using the SOFTWARE, you agree to be bound by the terms of that
* LICENSE.
*
* jsonwriter.h -- turn js... |
eea87dc1-33f5-4df9-a420-74c02ad06869 | {
"language": "C"
} | ```c
// RUN: clang -checker-simple -verify %s
int* f1() {
int x = 0;
return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}
}
int* f2(int y) {
return &y; // expected-warning{{... | ```c
// RUN: clang -checker-simple -verify %s
int* f1() {
int x = 0;
return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}
}
int* f2(int y) {
return &y; // expected-warning{{... |
eade6491-8a6d-46e4-a4aa-a3403f2ef32c | {
"language": "C"
} | ```c
```
Add structs used in the GDT | ```c
/*GDT stands for "Global Descriptor Table".
It is a table available on i386 (ix86?)
processors. The GDT is a list of 64 bit entries.
GRUB (or our boot) loader will install the GDT for us.
If we overwrite the GDT we will cause a 'triple fault'
and the machine will be reset.
Based on the tutorial, we will write a ... |
abb38ae4-288a-4fa0-99a8-d42b26988d69 | {
"language": "C"
} | ```c
/*
* Time stamp of last source code repository commit.
*/
#define ___STAMP_YMD 20131223
#define ___STAMP_HMS 145645
```
Clarify that LD_LIBRARY_PATH must be set when Gambit is build with shared libs | ```c
/*
* Time stamp of last source code repository commit.
*/
#define ___STAMP_YMD 20131223
#define ___STAMP_HMS 172203
``` |
7165d95c-6481-4715-9ed4-a751a6e4630d | {
"language": "C"
} | ```c
#ifndef _H_SAMSON_QUEUE_TASK_MANAGER
#define _H_SAMSON_QUEUE_TASK_MANAGER
#include "au/list.h" // au::list
namespace samson {
namespace stream {
class QueueTask;
class QueueTaskManager
{
au::list< QueueTask > queueTasks;
size_t id; ... | ```c
#ifndef _H_SAMSON_QUEUE_TASK_MANAGER
#define _H_SAMSON_QUEUE_TASK_MANAGER
#include "au/list.h" // au::list
#include <string> // std::string
namespace samson {
namespace stream {
class QueueTask;
class QueueTaskManager
{
au::list< QueueTa... |
c4527273-738a-478d-8234-6c9f805b988d | {
"language": "C"
} | ```c
#ifndef SwitecX25_h
#define SwitecX25_h
class SwitecX25
{
public:
static const unsigned char pinCount = 4;
static const unsigned char stateCount = 6;
unsigned char pins[pinCount];
unsigned char currentState; // 6 steps
unsigned int currentStep; // step we are currently at
unsigned int ... | ```c
#ifndef SwitecX25_h
#define SwitecX25_h
#include <Arduino.h>
class SwitecX25
{
public:
static const unsigned char pinCount = 4;
static const unsigned char stateCount = 6;
unsigned char pins[pinCount];
unsigned char currentState; // 6 steps
unsigned int currentStep; // step we are currentl... |
eda1e561-add6-424e-baf8-1905b4900944 | {
"language": "C"
} | ```c
/* RUN: %clang_cc1 %s -emit-llvm -o - | not grep __builtin_
*
* __builtin_longjmp/setjmp should get transformed into llvm.setjmp/longjmp
* just like explicit setjmp/longjmp calls are.
*/
void jumpaway(int *ptr) {
__builtin_longjmp(ptr,1);
}
int main(void) {
__builtin_setjmp(0);
jumpaway(0);
}
```... | ```c
/* RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
*
* __builtin_longjmp/setjmp should get transformed into intrinsics.
*/
// CHECK-NOT: builtin_longjmp
void jumpaway(int *ptr) {
__builtin_longjmp(ptr,1);
}
int main(void) {
__builtin_setjmp(0);
jumpaway(0);
}
``` |
39561eb9-ca7a-4f82-9166-a039b3e38ead | {
"language": "C"
} | ```c
#define _GNU_SOURCE
#define _FILE_OFFSET_BITS 64
#include <fcntl.h>
#include <stdint.h>
#include <linux/falloc.h>
int native_fallocate(int fd, uint64_t len) {
return fallocate(fd, 0, 0, (off_t)len);
}
```
Remove falloc header from linux build | ```c
#define _GNU_SOURCE
#define _FILE_OFFSET_BITS 64
#include <fcntl.h>
#include <stdint.h>
int native_fallocate(int fd, uint64_t len) {
return fallocate(fd, 0, 0, (off_t)len);
}
``` |
ec166736-e37f-47f7-beaf-3500698e52f6 | {
"language": "C"
} | ```c
/*
* Copyright 2013 Mo McRoberts.
*
* 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 o... | ```c
/*
* Copyright 2013 Mo McRoberts.
*
* 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 o... |
aafd1008-4b78-4f0c-882a-0e8018c66e7c | {
"language": "C"
} | ```c
// A current_time function for use in the tests. Returns time in
// milliseconds.
#ifdef _WIN32
extern "C" bool QueryPerformanceCounter(uint64_t *);
extern "C" bool QueryPerformanceFrequency(uint64_t *);
double current_time() {
uint64_t t, freq;
QueryPerformanceCounter(&t);
QueryPerformanceFrequency(... | ```c
// A current_time function for use in the tests. Returns time in
// milliseconds.
#ifdef _WIN32
#include <Windows.h>
double current_time() {
LARGE_INTEGER freq, t;
QueryPerformanceCounter(&t);
QueryPerformanceFrequency(&freq);
return (t.QuadPart * 1000.0) / freq.QuadPart;
}
// Gross, these come f... |
d20af979-8c95-4064-adc4-959eb30ab590 | {
"language": "C"
} | ```c
#ifndef BOREUTILS_H
#define BOREUTILS_H
#include <string.h>
static const char *BOREUTILS_VERSION = "0.0.0b1";
int has_arg(int argc, char **argv, char *search);
void bu_missing_argument(char *name);
int bu_handle_version(int argc, char **argv);
// FIXME: Having this in a header is definitely a hack.
int has_ar... | ```c
#ifndef BOREUTILS_H
#define BOREUTILS_H
#include <string.h>
static const char *BOREUTILS_VERSION = "0.0.0b1";
int has_arg(int argc, char **argv, char *search);
void bu_missing_argument(char *name);
int bu_handle_version(int argc, char **argv);
// FIXME: Having this in a header is definitely a hack.
int has_ar... |
4ba23815-d203-4a27-8bef-d3a5fc60833d | {
"language": "C"
} | ```c
#ifndef _CHAMPLAIN_PERL_H_
#include <clutterperl.h>
#include <champlain/champlain.h>
#include "ppport.h"
#include "champlain-autogen.h"
#ifdef CHAMPLAINPERL_GTK
#include <champlain-gtk/champlain-gtk.h>
#endif
#endif /* _CHAMPLAIN_PERL_H_ */
```
Move the include file around. | ```c
#ifndef _CHAMPLAIN_PERL_H_
#include <clutterperl.h>
#include <champlain/champlain.h>
#ifdef CHAMPLAINPERL_GTK
#include <champlain-gtk/champlain-gtk.h>
#endif
#include "ppport.h"
#include "champlain-autogen.h"
#endif /* _CHAMPLAIN_PERL_H_ */
``` |
e2469b81-6f19-403b-8c8d-847e1c0421dc | {
"language": "C"
} | ```c
//
// MagicalRecord for Core Data.
//
// Created by Saul Mora.
// Copyright 2011 Magical Panda Software. All rights reserved.
//
// enable to use caches for the fetchedResultsControllers (iOS only)
#if TARGET_OS_IPHONE
#define STORE_USE_CACHE
#endif
#define kCreateNewCoordinatorOnBackgroundOperations 0
#d... | ```c
//
// MagicalRecord for Core Data.
//
// Created by Saul Mora.
// Copyright 2011 Magical Panda Software. All rights reserved.
//
// enable to use caches for the fetchedResultsControllers (iOS only)
#if TARGET_OS_IPHONE
#define STORE_USE_CACHE
#endif
#define kCreateNewCoordinatorOnBackgroundOperations 0
#... |
aa6d31e3-5f21-4e79-83c7-a0f7af0b10d8 | {
"language": "C"
} | ```c
// Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SYSCOIN_POLICY_RBF_H
#define SYSCOIN_POLICY_RBF_H
#include <txmempool.h>
enum class RBFTransactionState {
... | ```c
// Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SYSCOIN_POLICY_RBF_H
#define SYSCOIN_POLICY_RBF_H
#include <txmempool.h>
/** The rbf state of unconfirmed tran... |
0699d678-7de8-4491-8607-f0aa3c1f0fb0 | {
"language": "C"
} | ```c
/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include <iostream>
#include <time.h>
namespace lean {
/**
\brief Low tech timer for used for testing.
*/
class timeit {
std::ostr... | ```c
/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include <iostream>
#include <time.h>
namespace lean {
/**
\brief Low tech timer for used for testing.
*/
class timeit {
std::ostr... |
245217a1-8a2a-4fc8-ab39-908bdc0bf6a6 | {
"language": "C"
} | ```c
/* --------------------------------------------------------------------------
* Name: create.c
* Purpose: Associative array implemented as a hash
* ----------------------------------------------------------------------- */
#include <stdlib.h>
#include <string.h>
#include "base/memento/memento.h"
#include ... | ```c
/* --------------------------------------------------------------------------
* Name: create.c
* Purpose: Associative array implemented as a hash
* ----------------------------------------------------------------------- */
#include <stdlib.h>
#include <string.h>
#include "base/memento/memento.h"
#include ... |
03c637c0-8920-4cfc-b552-f8ddd35752fa | {
"language": "C"
} | ```c
/*-------------------------------------------------------------------------
*
* FILE
* pqxx/util.h
*
* DESCRIPTION
* Various utility definitions for libpqxx
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file call... | ```c
/*-------------------------------------------------------------------------
*
* FILE
* pqxx/util.h
*
* DESCRIPTION
* Various utility definitions for libpqxx
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file call... |
7429ee8a-1310-4600-8558-ec24e28ee3a2 | {
"language": "C"
} | ```c
#include <avr/io.h>
int main (void) {
//Set pin 3 as output to source current?
PORTB = 1<<PORTB3;
DDRB = 1<<DDB3;
}```
Make a watchdog timer blink a LED | ```c
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
int main ( void ) {
//Disable interrupts and reset WDT timer
cli();
wdt_reset();
//Reset MCU status register
MCUSR &= ~(1<<WDRF);
//Disable watchdog
WDTCR |= (1<<WDCE) | (1<<WDE);
WDTCR = 0;
//Enable LED
DDRB = 1<<DDB3;
PORTB = 1<... |
6b65dc76-8dd1-4c0e-a17c-f196e28ddf95 | {
"language": "C"
} | ```c
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-----------------------------------... | ```c
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-----------------------------------... |
94d0ecf7-7b95-46a9-b1d9-f9e186ac4602 | {
"language": "C"
} | ```c
#ifndef FTS_COMMON_H
#define FTS_COMMON_H
#define IS_NONASCII_APOSTROPHE(c) \
((c) == 0x2019 || (c) == 0xFF07)
#define IS_APOSTROPHE(c) \
((c) == 0x0027 || IS_NONASCII_APOSTROPHE(c))
#endif
```
Add note about possible additional apostrophe. | ```c
#ifndef FTS_COMMON_H
#define FTS_COMMON_H
/* Some might consider 0x02BB an apostrophe also. */
#define IS_NONASCII_APOSTROPHE(c) \
((c) == 0x2019 || (c) == 0xFF07)
#define IS_APOSTROPHE(c) \
((c) == 0x0027 || IS_NONASCII_APOSTROPHE(c))
#endif
``` |
702a69d2-3484-4a75-a69b-aef8883ea563 | {
"language": "C"
} | ```c
```
Add a snippet (lang C). | ```c
#include <stdlib.h>
#include <stdio.h>
typedef struct list {
int data;
struct list * next;
} list;
list * make_elem(void) {
list * pe;
if(NULL == (pe = malloc(sizeof(list)))) {
fprintf(stderr, "Erreur d'allocation memoire\n");
exit(EXIT_FAILURE);
}
return pe;
}
int main... |
2428736c-30ab-46a7-8201-4e40c1d72f8c | {
"language": "C"
} | ```c
#include <stdio.h>
typedef struct {
int *x;
int **y;
} inner ;
typedef struct {
int *g;
inner in[3];
} outer;
int *ep;
int main(int argc, char *argv[])
{
outer o;
int z = 5;
printf("%d\n" , z);
ep = &z;
o.in[2].x = ep;
*o.in[2].x = 3;
printf("%d\n" , z);
ou... | ```c
#include <stdio.h>
typedef struct {
int *x;
int **y;
} inner ;
typedef struct {
int *g;
inner in[3];
} outer;
int *ep;
int main(int argc, char *argv[])
{
outer o;
int z = 5;
int zzz;
printf("%d\n" , z);
ep = &z;
o.in[2].x = ep;
*o.in[2].x = 3;
printf("%d\n" ... |
8c445d63-6db1-4b53-9634-3ad14a93a274 | {
"language": "C"
} | ```c
#import <Foundation/Foundation.h>
// Motivation:
// JSON responses frequently contain 'null'. For our purposes, a JSON object with
// a null property is equivalent to the same object with that property missing.
// However, JSON parsers treat the former as `NSNull` and the latter as nil;
// This leads to problems ... | ```c
#import <Foundation/Foundation.h>
@interface NSDictionary (TDTNullNormalization)
/**
@return NSDictionary created by removing all enteries whose @p value is an
instance of @p NSNull.
@see NSArray+TDTNullNormalization
*/
- (NSDictionary *)tdt_dictionaryByRemovingNulls;
@end
``` |
b91e0bbc-7e00-4892-b52c-702c9193af37 | {
"language": "C"
} | ```c
```
Add new header file. (or: xcode is stupid) | ```c
//
// BDSKSearchGroupViewController.h
// Bibdesk
//
// Created by Christiaan Hofman on 1/2/07.
/*
This software is Copyright (c) 2007
Christiaan Hofman. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following condition... |
ff906449-8d5b-4f23-907b-64e8d17ebe48 | {
"language": "C"
} | ```c
```
Make things based on Asio `service_io` inherite from same base | ```c
// MIT License
// Copyright (c) 2017 Zhuhao Wang
// 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... |
5dc6339f-3327-4c53-9e28-3584a3e64df8 | {
"language": "C"
} | ```c
```
Check if two linked lists are identical or same. | ```c
#include "listHelper.h"
int isIdentical(struct linkList *head1, struct linkList *head2)
{
/* list1 and list2 has to have same data and length
* even if length or data mismatch , we return
* list as non identical.
*/
while(head1 != NULL && head2 != NULL) {
if(head1->data != head2->data)
return 0;
h... |
3cd2ce4e-95b1-418d-b62c-ff6c376b0c3d | {
"language": "C"
} | ```c
//
// YSProcessTimer.h
// YSProcessTimeExample
//
// Created by Yu Sugawara on 2014/02/21.
// Copyright (c) 2014年 Yu Sugawara. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifndef DEBUG
#define kYSProcessTimerInvalid 1
#endif
@interface YSProcessTimer : NSObject
+ (instancetype)sharedInsta... | ```c
//
// YSProcessTimer.h
// YSProcessTimeExample
//
// Created by Yu Sugawara on 2014/02/21.
// Copyright (c) 2014年 Yu Sugawara. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifndef DEBUG
#define kYSProcessTimerInvalid 1
#endif
@interface YSProcessTimer : NSObject
+ (instancetype)sharedInsta... |
3733205f-f819-46cc-967d-04c5bffc6481 | {
"language": "C"
} | ```c
// SyncTools.h
// This file is part of the EScript programming language (https://github.com/EScript)
//
// Copyright (C) 2015 Claudius Jhn <ClaudiusJ@live.de>
//
// Licensed under the MIT License. See LICENSE file for details.
// ---------------------------------------------------------------------------------
#if... | ```c
// SyncTools.h
// This file is part of the EScript programming language (https://github.com/EScript)
//
// Copyright (C) 2015 Claudius Jhn <ClaudiusJ@live.de>
//
// Licensed under the MIT License. See LICENSE file for details.
// ---------------------------------------------------------------------------------
#if... |
a32f14e9-5e61-4432-bbec-3b166bbe4663 | {
"language": "C"
} | ```c
```
Add missing file. Remove debuggig statements | ```c
#ifndef TAILPRODUCE_UTILS_H
#define TAILPRODUCE_UTILS_H
#include <string>
#include <sstream>
#include <memory>
#include <unordered_map>
#include <utility>
#include <cereal/cereal.hpp>
#include <cereal/archives/json.hpp>
#include <cereal/types/string.hpp>
#include "helpers.h"
#include "stream.h"
#include "dbm_it... |
478ce9d5-6228-454b-b569-eba2b08373ab | {
"language": "C"
} | ```c
#ifndef SPIRALLINESGLWIDGET_H
#define SPIRALLINESGLWIDGET_H
#include "GLWidget.h"
#include <cmath>
class SpiralLinesGLWidget : public GLWidget
{
public:
SpiralLinesGLWidget(QWidget* parent = 0);
protected:
void initializeGL();
void render();
};
SpiralLinesGLWidget::SpiralLinesGLWidget(QWidget* parent) : GLWi... | ```c
#ifndef SPIRALLINESGLWIDGET_H
#define SPIRALLINESGLWIDGET_H
#include "GLWidget.h"
#include <cmath>
class SpiralLinesGLWidget : public GLWidget
{
public:
SpiralLinesGLWidget(QWidget* parent = 0);
protected:
void initializeGL();
void render();
};
SpiralLinesGLWidget::SpiralLinesGLWidget(QWidget* parent) : GLWi... |
51d39c35-577c-4a29-86ec-7586567f1a9e | {
"language": "C"
} | ```c
#pragma once
#include <pthread.h>
#include <glb-lib/output.h>
#include <kmq.h>
#include <knd_shard.h>
struct kndLearnerService;
struct kndLearnerOptions
{
char *config_file;
struct addrinfo *address;
};
struct kndLearnerService
{
struct kmqKnode *knode;
struct kmqEndPoint *entry_point;
st... | ```c
#pragma once
#include <pthread.h>
#include <glb-lib/output.h>
#include <kmq.h>
#include <knd_shard.h>
struct kndLearnerService;
struct kndLearnerOptions
{
char *config_file;
struct addrinfo *address;
};
struct kndLearnerService
{
struct kmqKnode *knode;
struct kmqEndPoint *entry_point;
st... |
e77dd75c-e35d-47f4-b6e6-e53267beba49 | {
"language": "C"
} | ```c
#ifndef HTTPD_PLATFORM_H
#define HTTPD_PLATFORM_H
void httpdPlatSendData(ConnTypePtr conn, char *buff, int len);
void httpdPlatDisconnect(ConnTypePtr conn);
void httpdPlatInit(int port, int maxConnCt);
#endif```
Change to send routine: return status | ```c
#ifndef HTTPD_PLATFORM_H
#define HTTPD_PLATFORM_H
int httpdPlatSendData(ConnTypePtr conn, char *buff, int len);
void httpdPlatDisconnect(ConnTypePtr conn);
void httpdPlatInit(int port, int maxConnCt);
#endif``` |
50ca977c-40c8-405e-bb48-37dca4995e0f | {
"language": "C"
} | ```c
#include <stdio.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
#define CAPSLOCK 2
void setcaps(int on)
{
Display* display = XOpenDisplay(NULL);
XkbLockModifiers(display, XkbUseCoreKbd, CAPSLOCK, on ? CAPSLOCK : 0);
XCloseDisplay(display);
}
void usage(const char* program_name)
... | ```c
#include <stdio.h>
#include <strings.h>
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
#define CAPSLOCK 2
void setcaps(int on)
{
Display* display = XOpenDisplay(NULL);
XkbLockModifiers(display, XkbUseCoreKbd, CAPSLOCK, on ? CAPSLOCK : 0);
XCloseDisplay(display);
}
void usage(const char* program_name... |
f68fa4e7-4316-40f0-b6b7-da3db4a84474 | {
"language": "C"
} | ```c
```
Add routine screenBuffer to enable scrolling view and to enable syntax highlighting. | ```c
#! /usr/bin/tcc -run
/*** construct scroll ready screen buffer ***/
// y = 0,1,2 ... (text buffer first line, second line, ...)
// x = 0,1,2 ... (screen buffer first character in line y, ...)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
size_t linecap;
FILE *fp;
typedef struct slot... |
3c85286e-3ed2-405a-ab29-cf2efbab100f | {
"language": "C"
} | ```c
#include "user.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
user_t* NewUser(int fd,char *addr,unsigned short port,char *name){
user_t *user = malloc(sizeof(user_t));
if(user == NULL){
goto ret;
}
if(fd < 0 || addr == NULL || name == NULL){
free(user);
user... | ```c
#include "user.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
user_t* NewUser(int fd,char *addr,unsigned short port,char *name){
user_t *user = malloc(sizeof(user_t));
if(user == NULL){
goto ret;
}
if(fd < 0 || addr == NULL || name == NULL){
free(user);
user... |
8751dafe-4666-4e78-94ea-2fe861cc9dc2 | {
"language": "C"
} | ```c
// KMail Version Information
//
#ifndef kmversion_h
#define kmversion_h
#define KMAIL_VERSION "1.9.8"
#endif /*kmversion_h*/
```
Increase version number for KDE 3.5.9. | ```c
// KMail Version Information
//
#ifndef kmversion_h
#define kmversion_h
#define KMAIL_VERSION "1.9.9"
#endif /*kmversion_h*/
``` |
c328bede-78f8-4f57-b57f-5b45539a6019 | {
"language": "C"
} | ```c
// Copyright (c) 2015, Galaxy Authors. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: yuanyi03@baidu.com
#ifndef _DOWNLOAD_H
#define _DOWNLOAD_H
#include <string>
namespace galaxy {
class Downloader {
public:
virtual... | ```c
// Copyright (c) 2015, Galaxy Authors. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: yuanyi03@baidu.com
#ifndef _DOWNLOAD_H
#define _DOWNLOAD_H
#include <string>
namespace galaxy {
class Downloader {
public:
virtual... |
e23c8783-8008-408e-ae87-e9e82a93f541 | {
"language": "C"
} | ```c
#include <string.h>
#include "luv.h"
#include "luv_functions.c"
int luv_newindex(lua_State* L) {
lua_getfenv(L, 1);
lua_pushvalue(L, 2);
lua_pushvalue(L, 3);
lua_rawset(L, -3);
lua_pop(L, 1);
return 0;
}
LUALIB_API int luaopen_luv (lua_State *L) {
luv_main_thread = L;
luaL_newmetatable(L, "luv... | ```c
#include <string.h>
#include "luv.h"
#include "luv_functions.c"
static int luv_newindex(lua_State* L) {
lua_getfenv(L, 1);
lua_pushvalue(L, 2);
lua_pushvalue(L, 3);
lua_rawset(L, -3);
lua_pop(L, 1);
return 0;
}
static int luv_index(lua_State* L) {
#ifdef LUV_STACK_CHECK
int top = lua_gettop(L);
#e... |
09622e3b-e122-4f7d-9d66-d7c9c868dae0 | {
"language": "C"
} | ```c
/* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
link_warning(gets, "the 'gets' function is dangerous and should not be used.")
/* UNSA... | ```c
/* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
link_warning(gets, "the 'gets' function is dangerous and should not be used.")
/* UNSA... |
27551af9-4c8b-48f6-b9e6-217efef96153 | {
"language": "C"
} | ```c
#pragma once
#define NOMINMAX
#include <windows.h>
#include <streams.h>
#include <audioclient.h>
#include <comdef.h>
#include <malloc.h>
#include <mmdeviceapi.h>
#include <process.h>
#include <algorithm>
#include <array>
#include <cassert>
#include <deque>
#include <functional>
#include <futu... | ```c
#pragma once
#ifndef NOMINMAX
# define NOMINMAX
#endif
#include <windows.h>
#include <streams.h>
#include <audioclient.h>
#include <comdef.h>
#include <malloc.h>
#include <mmdeviceapi.h>
#include <process.h>
#include <algorithm>
#include <array>
#include <cassert>
#include <deque>
#inclu... |
4f51400a-18b0-4f46-89aa-e15d52969ce8 | {
"language": "C"
} | ```c
#ifndef ALIVERTEXERHYPERTRITON3BODY_H
#define ALIVERTEXERHYPERTRITON3BODY_H
#include <AliVertexerTracks.h>
class AliESDVertex;
class AliESDtrack;
class AliExternalTrackParam;
class AliVertexerHyperTriton3Body
{
public:
AliVertexerHyperTriton3Body();
AliESDVertex* GetCurrentVertex() { return mCurrentVertex;... | ```c
#ifndef ALIVERTEXERHYPERTRITON3BODY_H
#define ALIVERTEXERHYPERTRITON3BODY_H
class TClonesArray; /// This will be removed as soon as alisw/AliRoot#898 is merged and a new tag is available
#include <AliVertexerTracks.h>
class AliESDVertex;
class AliESDtrack;
class AliExternalTrackParam;
class AliVertexerHyperTri... |
e720562a-6769-4862-9278-c57efdc4482c | {
"language": "C"
} | ```c
/* $FreeBSD$ */
#include <sys/param.h>
#include <sys/assym.h>
#include <i386/linux/linux.h>
ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));
ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
ASSYM(LINUX_SC_GS, offsetof(struct l_sigcontext, sc_gs));
ASSYM(LINUX_SC_EFLAGS, offsetof(stru... | ```c
/* $FreeBSD$ */
#include <sys/param.h>
#include <sys/assym.h>
#include <sys/systm.h>
#include <i386/linux/linux.h>
ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));
ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
ASSYM(LINUX_SC_GS, offsetof(struct l_sigcontext, sc_gs));
ASSYM(LINUX_S... |
c67447ef-5758-41f5-adb1-f305927a2fd1 | {
"language": "C"
} | ```c
#ifndef RUTIL2_RALLOC_H
#define RUTIL2_RALLOC_H
#include "OO.h"
void* RAlloc(int Size);
void* RAlign(int Align, int Size);
#if defined(__MINGW32__)
#define _aligned_malloc __mingw_aligned_malloc
#define _aligned_free __mingw_aligned_free
#define memalign(align, size) _aligned_malloc(size, align)
#endif //For M... | ```c
#ifndef RUTIL2_RALLOC_H
#define RUTIL2_RALLOC_H
#include <memory.h>
#include "OO.h"
void* RAlloc(int Size);
void* RAlign(int Align, int Size);
#if defined(__MINGW32__)
#define _aligned_malloc __mingw_aligned_malloc
#define _aligned_free __mingw_aligned_free
#define memalign(align, size) _aligned_malloc(size, ... |
16f5a10b-61d2-45ba-85bb-b021d3a9aa74 | {
"language": "C"
} | ```c
#ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QValidator>
/** Base48 entry widget validator.
Corrects near-miss characters and refuses characters that are no part of base48.
*/
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
public:
explicit BitcoinAddres... | ```c
#ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QValidator>
/** Base58 entry widget validator.
Corrects near-miss characters and refuses characters that are not part of base58.
*/
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
public:
explicit BitcoinAddre... |
df3980c2-f709-4e1f-b923-602a33b2075c | {
"language": "C"
} | ```c
#ifndef CUTELYST_GLOBAL_H
#define CUTELYST_GLOBAL_H
#include <QtCore/QtGlobal>
#if defined(CUTELYST_LIBRARY)
# define CUTELYST_LIBRARY Q_DECL_EXPORT
#else
# define CUTELYST_LIBRARY Q_DECL_IMPORT
#endif
#endif // CUTELYST_GLOBAL_H
```
Make sure export macro is properly set | ```c
#ifndef CUTELYST_GLOBAL_H
#define CUTELYST_GLOBAL_H
#include <QtCore/QtGlobal>
// defined by cmake when building this library
#if defined(cutelyst_qt5_EXPORTS)
# define CUTELYST_LIBRARY Q_DECL_EXPORT
#else
# define CUTELYST_LIBRARY Q_DECL_IMPORT
#endif
#endif // CUTELYST_GLOBAL_H
``` |
9d4bdad6-cf2e-4f12-aa1e-d8d4cc1c1be6 | {
"language": "C"
} | ```c
/*
* Copyright (c) 2017 Lech Kulina
*
* This file is part of the Realms Of Steel.
* For conditions of distribution and use, see copyright details in the LICENSE file.
*/
#ifndef ROS_VERTEX_H
#define ROS_VERTEX_H
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <core/Common.h>
... | ```c
/*
* Copyright (c) 2017 Lech Kulina
*
* This file is part of the Realms Of Steel.
* For conditions of distribution and use, see copyright details in the LICENSE file.
*/
#ifndef ROS_VERTEX_H
#define ROS_VERTEX_H
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <core/Common.h>
... |
6deb641f-826c-4dae-8a36-d10660f74974 | {
"language": "C"
} | ```c
/* $Id: ruby_xml_ns.h 612 2008-11-21 08:01:29Z cfis $ */
/* Please see the LICENSE file for copyright and distribution information */
#ifndef __RXML_NAMESPACES__
#define __RXML_NAMESPACES__
extern VALUE cXMLNamespaces;
void ruby_init_xml_namespaces(void);
#endif
```
Fix up name of init_namespaces method. | ```c
/* $Id: ruby_xml_ns.h 612 2008-11-21 08:01:29Z cfis $ */
/* Please see the LICENSE file for copyright and distribution information */
#ifndef __RXML_NAMESPACES__
#define __RXML_NAMESPACES__
extern VALUE cXMLNamespaces;
void rxml_init_namespaces(void);
#endif
``` |
dfc7c1ab-66b5-46c8-8135-75e05cc9a155 | {
"language": "C"
} | ```c
#pragma once
#include <uk/mman.h>
BEGIN_DECLS
void *mmap(void *addr, size_t length, int prot, int flags,
int fd, off_t offset);
int munmap(void *addr, size_t length);
int mprotect(void *addr, size_t length, int prot);
int madvise(void *addr, size_t length, int advice);
END_DECLS
```
Fix missing dep... | ```c
#pragma once
#include <sys/types.h>
#include <uk/mman.h>
BEGIN_DECLS
void *mmap(void *addr, size_t length, int prot, int flags,
int fd, off_t offset);
int munmap(void *addr, size_t length);
int mprotect(void *addr, size_t length, int prot);
int madvise(void *addr, size_t length, int advice);
END_DEC... |
6f767723-7bff-41d6-83c6-d51a395a7424 | {
"language": "C"
} | ```c
//
// Created by wan on 1/2/16.
//
#include <stdio.h>
int main(void) {
printf("Input:");
int a;
scanf("%d", &a);
if (2016 % a != 0) {
printf("No way. Exit.\n");
return 0;
}
int s = 2016;
printf("2016 = ");
int flag = 0, b;
for (b = 1111; b >= 1; b /= 10) {
... | ```c
//
// Created by Hexapetalous on 1/1/16.
//
#include <stdio.h>
int main(void) {
printf("Input[1]:");
int a;
scanf("%d", &a);
printf("Input[2]:");
int z;
scanf("%d", &z);
if (z % a != 0) {
printf("No way. Exit.\n");
return 0;
}
int s = z;
printf("%d = ", z);
... |
531cec63-9240-4924-b1bf-2b7096eedab8 | {
"language": "C"
} | ```c
#include "scheme.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifndef DEFAULT_BOOTFILE_PATH
# define DEFAULT_BOOTFILE_PATH "./shen.boot"
#endif
static void custom_init(void) {}
int main(int argc, char *argv[]) {
int status;
char *bfpath = getenv("SHEN_BOOTFILE_PATH");
if (bfpath == NULL... | ```c
#include "scheme.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#ifndef DEFAULT_BOOTFILE_PATH
# define DEFAULT_BOOTFILE_PATH NULL
#endif
static void custom_init(void) {}
int main(int argc, char *argv[]) {
int status;
char *bfpath = getenv("SHEN_BOOTFIL... |
749039bd-2274-4511-bd72-a7dbc1715cf9 | {
"language": "C"
} | ```c
#ifndef EXTRACTOR_VERSION_H_
#define EXTRACTOR_VERSION_H_
#define FREESOUND_EXTRACTOR_VERSION "freesound 2.0"
#endif /* EXTRACTOR_VERSION_H_ */
```
Change FreesoundExtractor version to 0.5 | ```c
#ifndef EXTRACTOR_VERSION_H_
#define EXTRACTOR_VERSION_H_
#define FREESOUND_EXTRACTOR_VERSION "freesound 0.5"
#endif /* EXTRACTOR_VERSION_H_ */
``` |
3f99e2cc-286b-4df9-87da-56eab1f55e2b | {
"language": "C"
} | ```c
// Created by Arkadiusz on 01-04-14.
#import <UIKit/UIKit.h>
/// A UINavigationController subclass allowing the interactive pop gesture when the navigation bar is hidden or a custom back button is used.
@interface AHKNavigationController : UINavigationController
@end
```
Add warning when a subclass doesn’t ca... | ```c
// Created by Arkadiusz on 01-04-14.
#import <UIKit/UIKit.h>
/// A UINavigationController subclass allowing the interactive pop gesture when the navigation bar is hidden or a custom back button is used.
@interface AHKNavigationController : UINavigationController
- (void)pushViewController:(UIViewController *)v... |
fb011a7b-2af0-4226-b976-0140d249d569 | {
"language": "C"
} | ```c
_CLC_DEF _CLC_OVERLOAD float __clc_ldexp(float, int);
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
_CLC_DEF _CLC_OVERLOAD float __clc_ldexp(double, int);
#endif
```
Fix double precision function return type | ```c
_CLC_DEF _CLC_OVERLOAD float __clc_ldexp(float, int);
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
_CLC_DEF _CLC_OVERLOAD double __clc_ldexp(double, int);
#endif
``` |
e4468c0b-18b9-45da-93de-cdfcc25bb620 | {
"language": "C"
} | ```c
```
Add test for link flags added by -fcatch-undefined-behavior. | ```c
// Test UndefinedBehaviorSanitizer ld flags.
// RUN: %clang -fcatch-undefined-behavior %s -### -o %t.o 2>&1 \
// RUN: -target i386-unknown-linux \
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
// RUN: | FileCheck --check-prefix=CHECK-LINUX %s
// CHECK-LINUX: "{{.*}}ld{{(.exe)?}}"
// CHECK-LINUX-NOT: "-... |
9acdf0d3-2ce3-4f82-91fc-ae6a6bc04ea8 | {
"language": "C"
} | ```c
#include <cstdint>
#include <cstring>
#include <string>
#include <vector>
#include "../utf8/utf8.h"
/*
* Convert UTF-8 string to std::vector<uint32_t>
*/
void utf8to32(const std::string &s, std::vector<uint32_t> &vec) {
vec.assign(utf8::distance(s.cbegin(), s.cend()), 0);
utf8::utf8to32(s.cbegin(), s.cend(),... | ```c
#include <cstdint>
#include <cstring>
#include <string>
#include <vector>
#include "../utf8/utf8.h"
/*
* Convert UTF-8 string to std::vector<uint32_t>
*/
void inline utf8to32(const std::string &s, std::vector<uint32_t> &vec) {
vec.assign(utf8::distance(s.cbegin(), s.cend()), 0);
utf8::utf8to32(s.cbegin(), s.... |
166a9dd3-d65f-449b-a980-6b3abada169c | {
"language": "C"
} | ```c
// Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_POLICY_RBF_H
#define BITCOIN_POLICY_RBF_H
#include <txmempool.h>
enum class RBFTransactionState {
... | ```c
// Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_POLICY_RBF_H
#define BITCOIN_POLICY_RBF_H
#include <txmempool.h>
/** The rbf state of unconfirmed tran... |
ee20bfda-bfc2-4fe4-9856-12b6e6f1b987 | {
"language": "C"
} | ```c
//
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
#import "AFDefines.h"
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h"
#import "AFKVO.h"
#import "AFArray.h"
#import "AFMutableArray.h"
#import "NSBundle+Universal.h"
#import "UITableViewCell+Universal.h"
... | ```c
//
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
#import "AFDefines.h"
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h"
#import "AFReachability.h"
#import "AFKVO.h"
#import "AFArray.h"
#import "AFMutableArray.h"
#import "NSBundle+Universal.h"
#import "UI... |
95b526b2-25d6-4625-8b74-8d692f068eaf | {
"language": "C"
} | ```c
//===--- RuntimeStubs.h -----------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.o... | ```c
//===--- RuntimeStubs.h -----------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.o... |
46ab4269-bc2f-4de3-9a81-be5ab8a04b08 | {
"language": "C"
} | ```c
```
Add test program for easier grabber's tests | ```c
/* Media Server - a library and daemon for medias indexation and streaming
*
* Copyright (C) 2012 Enna Team. 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... |
6e51cd11-d75c-4ed0-b3b4-dacdcf49c6d0 | {
"language": "C"
} | ```c
#include <stdlib.h>
#include "chip8.h"
chip8_t *
chip8_new(void) {
chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t));
/* The first 512 bytes are used by the interpreter. */
self->program_counter = 0x200;
self->index_register = 0;
self->stack_pointer = 0;
self->opcode = 0;
return sel... | ```c
#include <stdlib.h>
#include "chip8.h"
chip8_t * chip8_new(void) {
chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t));
/* The first 512 bytes are used by the interpreter. */
self->program_counter = 0x200;
self->index_register = 0;
self->stack_pointer = 0;
self->opcode = 0;
return sel... |
5f14d3a7-157e-4238-b5c7-b0c2483f5127 | {
"language": "C"
} | ```c
#ifndef StringUtils_h
#define StringUtils_h
#include <stdio.h>
#include <string.h>
namespace CCMessageWindow {
class Utils {
public:
static std::string substringUTF8(const char* str, int from, int length);
static std::vector<std::string> split(const std::string& input, char delimiter);
... | ```c
#ifndef StringUtils_h
#define StringUtils_h
#include "cocos2d.h"
namespace CCMessageWindow {
class Utils {
public:
static std::string substringUTF8(const char* str, int from, int length);
static std::vector<std::string> split(const std::string& input, char delimiter);
static std::... |
deef0b34-1a7d-418f-8d6e-2a58f6956b6b | {
"language": "C"
} | ```c
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef enum {
UILabelCountingMethodEaseInOut,
UILabelCountingMethodEaseIn,
UILabelCountingMethodEaseOut,
UILabelCountingMethodLinear
} UILabelCountingMethod;
typedef NSString* (^UICountingLabelFormatBlock)(float value);
typedef NSAttribut... | ```c
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, UILabelCountingMethod) {
UILabelCountingMethodEaseInOut,
UILabelCountingMethodEaseIn,
UILabelCountingMethodEaseOut,
UILabelCountingMethodLinear
};
typedef NSString* (^UICountingLabelFormatBlock)(float value);
typ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.