commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
590ed8f60ad02fe8f1ed66c086c04e3fe4ea29b5
src/lib/MarbleLocale.h
src/lib/MarbleLocale.h
// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2006-2007 Torsten Rahn <tackat@kde.org> // Copyright 2007 Inge Wallin <ingwa@kde.o...
// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2006-2007 Torsten Rahn <tackat@kde.org> // Copyright 2007 Inge Wallin <ingwa@kde.o...
Remove simpleLanguageCode (unused and not implemented).
Remove simpleLanguageCode (unused and not implemented). svn path=/trunk/KDE/kdeedu/marble/; revision=1102505
C
lgpl-2.1
AndreiDuma/marble,tucnak/marble,utkuaydin/marble,Earthwings/marble,probonopd/marble,Earthwings/marble,adraghici/marble,AndreiDuma/marble,AndreiDuma/marble,utkuaydin/marble,rku/marble,probonopd/marble,oberluz/marble,probonopd/marble,AndreiDuma/marble,rku/marble,oberluz/marble,David-Gil/marble-dev,utkuaydin/marble,rku/ma...
bcdfda8195e5414119afebb64601f89b37cf04fc
src/ifdhandler.c
src/ifdhandler.c
#include <ifdhandler.h>
#include <ifdhandler.h> #include <stdio.h> RESPONSECODE IFDHCreateChannelByName(DWORD Lun, LPSTR DeviceName) { return IFD_NO_SUCH_DEVICE; } RESPONSECODE IFDHCreateChannel(DWORD Lun, DWORD Channel) { char buf[40]; snprintf(buf, sizeof(buf), "/dev/o2scr%d", Channel); return IFDHCreateChannelByName(Lun, buf); } RE...
Add empty dummy implementation of ifd handler
Add empty dummy implementation of ifd handler Signed-off-by: Dmitry Eremin-Solenikov <b6edad08270b2e4ffbcb0879e25a0e29a48c5275@gmail.com>
C
lgpl-2.1
lumag/o2scr-ifd
5c015c4a0da723ab62abcedc2a861daa1c320a00
tutorial/clock.h
tutorial/clock.h
// 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(&freq...
// 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 from W...
Fix build of tutorials that require libpng under Visual Studio.
Fix build of tutorials that require libpng under Visual Studio. Former-commit-id: ca864cc2e2063756ba8e48de390d1cf947f2efad
C
mit
Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide
61fbb5891d9dcde973da71de4011ba748948fca1
src/init.c
src/init.c
#include <stdlib.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> #include "common.h" static void reap(char *argv[]); static pid_t spawn(char *argv[]); extern void init(char *argv[]); int main(int argc, char *argv[]) { const char *name = getenv("PROCNAME"); if (name && *name) setpro...
#include <stdlib.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> #include "common.h" static void reap(char *argv[]); static pid_t spawn(char *argv[]); extern void init(char *argv[]); const char *path; int main(int argc, char *argv[]) { path = strdup(argv[0]); const ch...
Save program path before doing setprocname().
Save program path before doing setprocname().
C
bsd-2-clause
Shizmob/finite
c1e16b1a0d2179370ae26c8f567441e6be803294
ugeneric.h
ugeneric.h
#include "generic.h" #include "dict.h" #include "vector.h" #include "list.h" #include "htbl.h" #include "dsu.h" #include "heap.h" #include "bst.h" #include "sort.h" #include "heap.h" #include "queue.h" #include "mem.h" #include "bitmap.h" #include "string_utils.h" #include "file_utils.h"
#if defined(__cplusplus) extern "C" { #endif #include "generic.h" #include "dict.h" #include "vector.h" #include "list.h" #include "htbl.h" #include "dsu.h" #include "heap.h" #include "bst.h" #include "sort.h" #include "heap.h" #include "queue.h" #include "mem.h" #include "bitmap.h" #include "string_utils.h" #include ...
Add a little bit of c++ awareness to the main header
Add a little bit of c++ awareness to the main header
C
mit
vslapik/ugeneric,vslapik/ugeneric,vslapik/ugeneric
a91d1e7ba1332bad5a735c067c487ab0c9d0eb9d
src/laco.h
src/laco.h
#ifndef __LACO_H #define __LACO_H struct lua_State; /* State of laco REPL */ struct LacoState; /** * Makes a new LacoState. * * param argument count (argc) * param arguments (argv) * * return a pointer to new LacoState. */ struct LacoState* laco_newLacoState(int, const char**); /** * ...
#ifndef __LACO_H #define __LACO_H struct lua_State; /* State of laco REPL */ struct LacoState; /** * Makes a new LacoState. * * param argument count (argc) * param arguments (argv) * * return a pointer to new LacoState. */ struct LacoState* laco_newLacoState(int, const char**); /** * ...
Add documentation for new get and set functions
Add documentation for new get and set functions
C
bsd-2-clause
sourrust/laco
8e280cced6657669e8f47b19ee22f587ff91b721
Wikipedia/Code/WMFRelatedSearchResults.h
Wikipedia/Code/WMFRelatedSearchResults.h
#import <Foundation/Foundation.h> @class MWKSearchResult; @interface WMFRelatedSearchResults : NSObject @property (nonatomic, strong, readonly) NSURL *siteURL; @property (nonatomic, strong, readonly) NSArray<MWKSearchResult *> *results; - (instancetype)initWithURL:(NSURL *)URL results:(NSArray *)results; @end
#import <Mantle/Mantle.h> @class MWKSearchResult; @interface WMFRelatedSearchResults : MTLModel @property (nonatomic, strong, readonly) NSURL *siteURL; @property (nonatomic, strong, readonly) NSArray<MWKSearchResult *> *results; - (instancetype)initWithURL:(NSURL *)URL results:(NSArray *)results; @end
Make search results storable in database as metadata
Make search results storable in database as metadata Just need to inherit from MTLModel for NSCoding
C
mit
anirudh24seven/wikipedia-ios,josve05a/wikipedia-ios,josve05a/wikipedia-ios,anirudh24seven/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,anirudh24seven/wikipedia-ios,anirudh24seven/wikipedia-ios,anirudh24seven/wikipedia-ios,wikimedia/apps-ios-wikipedia,anirudh24seven/wikipedia-ios,wikimedia/apps-i...
7fb9042a91ebeeb34a622f73ff61c9feef891e8b
src/main.c
src/main.c
/* * Copyright 2015, Wink Saville * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. */ #include <sel4/printf.h> /** * No parameters are passed to main, the return * value is ignored a...
/* * Copyright 2015, Wink Saville * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. */ #include <sel4/printf.h> /** * No parameters are passed to main, the return * value is ignored a...
Change indent to 4 spaces.
Change indent to 4 spaces.
C
bsd-2-clause
winksaville/sel4-app-helloworld
7e3576d2e120fb69cc360c976341bf5491bbb633
src/port.h
src/port.h
// Copyright 2013 by Tetsuo Kiso // // 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 ...
// Copyright 2013 by Tetsuo Kiso // // 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 ...
Include the OS X specific header to use OS specific macros.
Include the OS X specific header to use OS specific macros.
C
apache-2.0
clab/fast_align,spanishdict/fast_align,LoreDema/fast_align,clab/fast_align,christianbuck/fast_align,LoreDema/fast_align,spanishdict/fast_align,christianbuck/fast_align
51f8c2e766d7d7110e073630b6a1885eb7d7cabc
bst.c
bst.c
#include "bst.h" static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v); struct BSTNode { BSTNode* left; BSTNode* right; BSTNode* p; void* k; }; struct BST { BSTNode* root; }; BST* BST_Create(void) { BST* T = (BST* )malloc(sizeof(BST)); T->root = NULL; return T; }
#include "bst.h" static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v); struct BSTNode { BSTNode* left; BSTNode* right; BSTNode* p; void* k; }; struct BST { BSTNode* root; }; BST* BST_Create(void) { BST* T = (BST* )malloc(sizeof(BST)); T->root = NULL; return T; } BSTNode* BSTNode_Create(void* k) { BS...
Add BSTNode create function implementation
Add BSTNode create function implementation
C
mit
MaxLikelihood/CADT
c80f71802443a6a352a7ed7c0f1dfbeda97d961a
bst.h
bst.h
#include <stdlib.h> #ifndef __BST_H__ #define __BST_H__ struct BSTNode; struct BST; typedef struct BSTNode BSTNode; typedef struct BST BST; BST* BST_Create(void); BSTNode* BSTNode_Create(void* k); void BST_Inorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Preorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Postor...
#include <stdlib.h> #ifndef __BST_H__ #define __BST_H__ struct BSTNode; struct BST; typedef struct BSTNode BSTNode; typedef struct BST BST; BST* BST_Create(void); BSTNode* BSTNode_Create(void* k); void BST_Inorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Preorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Postor...
Add BST Tree Root function declaration
Add BST Tree Root function declaration
C
mit
MaxLikelihood/CADT
8ae38b029c6566f18bcf7a8781c1235f2d57acbc
unique-characters/unique-characters/main.c
unique-characters/unique-characters/main.c
// // main.c // unique-characters // // Created by Jack Zuban on 8/20/17. // Copyright © 2017 Jack Zuban. All rights reserved. // #include <stdio.h> void printCharacters(char *inputString) { int dictinary[30] = {}; while (*inputString) { dictinary[(int) *inputString]++; printf("Current ch...
// // main.c // Check if a string has all unique characters by counting how many times each character appears using its ASCII code // // Created by Jack Zuban on 8/20/17. // Copyright © 2017 Jack Zuban. All rights reserved. // #include <stdio.h> _Bool isUniqueChars(char *str) { int frequencyDictionary[127] = ...
Check if a string has all unique characters algorithm
Check if a string has all unique characters algorithm
C
mit
jack-zuban/c-practice
b832d36facff0cf57695e537e06a7ba1f484c6e6
ugeneric.h
ugeneric.h
#include "generic.h" #include "dict.h" #include "vector.h" #include "list.h" #include "htbl.h" #include "dsu.h" #include "bst.h" #include "sort.h" #include "heap.h" #include "queue.h" #include "mem.h" #include "string_utils.h" #include "file_utils.h"
Add common header for library functions
Add common header for library functions
C
mit
vslapik/ugeneric,vslapik/ugeneric,vslapik/ugeneric
d56b3dc386fbcc966e600b357768b078ceea550d
ios/RNFlurryAnalytics.h
ios/RNFlurryAnalytics.h
#import "RCTBridgeModule.h" @interface RNFlurryAnalytics : NSObject <RCTBridgeModule> @end
#import <React/RCTBridgeModule.h> @interface RNFlurryAnalytics : NSObject <RCTBridgeModule> @end
Update header include paths to support React Native 0.40
Update header include paths to support React Native 0.40
C
mit
xxsnakerxx/react-native-flurry-analytics,xxsnakerxx/react-native-flurry-analytics
77cea865bdef876d2745442ce2894ec8288d6cb3
kernel/kernel.c
kernel/kernel.c
#include <stddef.h> #include <stdint.h> #include "./arch/x86/idt.h" #include <terminal.h> #include <kabort.h> #include <kassert.h> void kernel_main() { term_initialize(); idt_install(); kputs("Interrupt?"); int i = 0; int b = 128; int d = 1; d = b / i; while (1) ; }
#include <stddef.h> #include <stdint.h> #include "./arch/x86/gdt.h" #include "./arch/x86/idt.h" #include <terminal.h> #include <kabort.h> #include <kassert.h> void kernel_main() { term_initialize(); gdt_install(); idt_install(); kputs("Hello kernel!"); while (1) { }; }
Install GDT and remove division by 0
Install GDT and remove division by 0
C
mit
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,Herbstein/kernel-of-truth
57bd2cbba55e1dc808ac5daec0b8440d542eafbe
ios/src/TGGeoPoint.h
ios/src/TGGeoPoint.h
// // TGGeoPoint.h // tangram // // Created by Karim Naaji on 10/27/16. // // #ifndef TGGeoPoint_h #define TGGeoPoint_h struct TGGeoPoint { double longitude; double latitude; }; typedef struct TGGeoPoint TGGeoPoint; static inline TGGeoPoint TGGeoPointMake(double lat, double lon) { TGGeoPoint p; p...
// // TGGeoPoint.h // tangram // // Created by Karim Naaji on 10/27/16. // // #pragma once struct TGGeoPoint { double longitude; double latitude; }; typedef struct TGGeoPoint TGGeoPoint; static inline TGGeoPoint TGGeoPointMake(double lat, double lon) { TGGeoPoint p; p.latitude = lat; p.longit...
Update for pragma syntax - Only unsupported on older versions of GCC
Update for pragma syntax - Only unsupported on older versions of GCC
C
mit
quitejonny/tangram-es,tangrams/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,cleeus/tangram-es,tangrams/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,cleeus/tangram...
4be116f58417a5f94ea51babff4e1a06425ab37e
loopback_test.c
loopback_test.c
#include "usbdmx.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> int main(int argc, char ** argv) { int result; int set_value; int count = 0; TDMXArray dmx_out; TDMXArray dmx_in; // Open Interface in Mode 6 (PC Out -> DMX Out & DMX In -> PC In) // See head of this file for ...
#include "usbdmx.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> int main(int argc, char ** argv) { int result; int set_value; int count = 0; TDMXArray dmx_out; TDMXArray dmx_in; // Open Interface in Mode 6 (PC Out -> DMX Out & DMX In -> PC In) // See head of this file for ...
Fix typo dmx_out instead of dmx_in
Fix typo dmx_out instead of dmx_in
C
bsd-3-clause
DMXControl/usbdmx,DMXControl/usbdmx,DMXControl/usbdmx,fx5/usbdmx,fx5/usbdmx,fx5/usbdmx
f74c134dddc1b7307c24f98180256cd0fec1d316
Useful/FunTypes.h
Useful/FunTypes.h
#if defined TESTFLIGHT #define TESTFLIGHT YES #define DISTRIBUTION NO #elif defined DEBUG #define TESTFLIGHT NO #define DISTRIBUTION NO #else #define TESTFLIGHT NO #define DISTRIBUTION YES #endif #define CLIP(X,min,max) MIN(MAX(X, min), max) #define white [UIColor whiteColor] #define yellow [UIColor yellowColor] #def...
#define MODE_DEV 1 #define MODE_TESTFLIGHT 2 #define MODE_DISTRIBUTION 3 #if defined TESTFLIGHT #define MODE MODE_TESTFLIGHT #elif defined DEBUG #define MODE MODE_DEV #else #define MODE MODE_DISTRIBUTION #endif #define IS_DISTRIBUTION (MODE == MODE_DISTRIBUTION) #define CLIP(X,min,max) MIN(MAX(X, min), ma...
Add macro MODE and MODE_DEV, MODE_TESTFLIGHT, MODE_DISTRIBUTION
Add macro MODE and MODE_DEV, MODE_TESTFLIGHT, MODE_DISTRIBUTION
C
mit
ASAPPinc/fun-go,marcuswestin/fun-go,marcuswestin/FunGo
37a8410bea290d24e316a841d3fac2fe03815011
xftwidth.c
xftwidth.c
#include <X11/Xft/Xft.h> #include <X11/Xlib.h> #include <X11/extensions/Xrender.h> #include <fontconfig/fontconfig.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char** argv) { if (argc < 3) { printf("xftwidth font string\n"); return 1; } Display *dpy; XftFont *fn; ...
#include <X11/Xft/Xft.h> #include <X11/Xlib.h> #include <X11/extensions/Xrender.h> #include <fontconfig/fontconfig.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char** argv) { if (argc < 3) { printf("xftwidth font string\n"); return 1; } Display *dpy; XftFont *fn; ...
Fix wrong result caused by newline character.
Fix wrong result caused by newline character.
C
mit
vixus0/xftwidth
071d3ba3b99c9bd61b31eb08f7778afd094bd779
searchsummary/src/vespa/searchsummary/docsummary/slime_filler_filter.h
searchsummary/src/vespa/searchsummary/docsummary/slime_filler_filter.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/stllike/string.h> #include <vespa/vespalib/stllike/hash_map.h> #include <optional> namespace search::docsummary { /* * Class filtering which fields to render in a struct fi...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/stllike/string.h> #include <vespa/vespalib/stllike/hash_map.h> #include <optional> namespace search::docsummary { /* * Class filtering which fields to render in a struct fi...
Add comment describing semantics of return value from SlimeFillerFilter::get_filter().
Add comment describing semantics of return value from SlimeFillerFilter::get_filter().
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
3129fa53af679c2f869d0799c42bc8cf41465fda
common/spherical_coordinates.h
common/spherical_coordinates.h
#ifndef LAGER_COMMON_SPHERICAL_COORDINATES_H #define LAGER_COMMON_SPHERICAL_COORDINATES_H /* * Code based on: * http://stackoverflow.com/questions/17016175/c-unordered-map-using-a-custom-class-type-as-the-key */ struct SphericalCoordinates { int phi; int theta; bool operator==(const SphericalCoordinates &other)...
#ifndef LAGER_COMMON_SPHERICAL_COORDINATES_H #define LAGER_COMMON_SPHERICAL_COORDINATES_H #include <math.h> /* * Code based on: * http://stackoverflow.com/questions/17016175/c-unordered-map-using-a-custom-class-type-as-the-key */ struct SphericalCoordinates { int phi; int theta; bool operator==(const Spherical...
Add missing math.h include for M_PHI definition
Common: Add missing math.h include for M_PHI definition
C
mit
andresodio/lager,andresodio/lager,andresodio/lager,andresodio/lager
5a9f64253ca71c0923304c033d121d5f27dd69ad
document/src/vespa/document/serialization/annotationdeserializer.h
document/src/vespa/document/serialization/annotationdeserializer.h
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/document/annotation/span.h> #include <vespa/document/serialization/util.h> namespace vespalib { class nbostream; } namespace document { class AlternateSpanList; class An...
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/document/annotation/span.h> #include <vespa/document/serialization/util.h> #include <vector> namespace vespalib { class nbostream; } namespace document { class Alternate...
Include what you need as gcc 6 provides less.
Include what you need as gcc 6 provides less.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
35fac131d1331779d31a9de6d40b3ba1d8a4d5b9
include/shmlog_tags.h
include/shmlog_tags.h
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(CLI) SLTM(SessionOpen) SLTM(SessionClose) SLTM(ClientAddr) SLTM(Request) SLTM(URL) SLTM(Protocol) SLTM(HD_Unknown) SLTM(HD_Lost) #define HTTPH(a, b, c, d, e, f, g) SL...
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(Debug) SLTM(CLI) SLTM(SessionOpen) SLTM(SessionClose) SLTM(ClientAddr) SLTM(Request) SLTM(URL) SLTM(Protocol) SLTM(HD_Unknown) SLTM(HD_Lost) #define HTTPH(a, b, c, d,...
Add a Debug shmemlog tag.
Add a Debug shmemlog tag. git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@104 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
chrismoulton/Varnish-Cache,feld/Varnish-Cache,ambernetas/varnish-cache,drwilco/varnish-cache-drwilco,franciscovg/Varnish-Cache,drwilco/varnish-cache-old,ajasty-cavium/Varnish-Cache,varnish/Varnish-Cache,1HLtd/Varnish-Cache,ajasty-cavium/Varnish-Cache,drwilco/varnish-cache-old,franciscovg/Varnish-Cache,mrhmouse/Varnish-...
f7499f65a6149495f5750a1aade611d7ce44d9e9
src/common.h
src/common.h
#ifndef __COMMON_H__ #define __COMMON_H__ #if NODE_VERSION_AT_LEAST(0,11,0) #define __NODE_V0_11__ #endif #endif
#ifndef __COMMON_H__ #define __COMMON_H__ #ifdef NODE_VERSION_AT_LEAST #if NODE_VERSION_AT_LEAST(0,11,0) #define __NODE_V0_11__ #endif #endif #endif
Fix build under node.js 0.10.0
Fix build under node.js 0.10.0
C
lgpl-2.1
zenozeng/yapcduino.js,zenozeng/yapcduino.js,zenozeng/yapcduino.js,zenozeng/yapcduino.js,zenozeng/yapcduino.js
5b146eb8735ca22eb8182a58c14381996ebaf173
src/safequeue.h
src/safequeue.h
// Copyright (c) 2017 Shift Devices AG // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef LIBDBB_SAFEQUEUE_H #define LIBDBB_SAFEQUEUE_H #include <stdint.h> #include <stdlib.h> #include <atomic> #include <queue> #include <...
Add thread safe queue class
Add thread safe queue class
C
mit
digitalbitbox/libdbb,digitalbitbox/libdbb,digitalbitbox/libdbb
47f47c7d5a7c9bf8d222a1b6ecb62ebaa28617fc
MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h
MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h
// // NSManagedObject+JSONHelpers.h // // Created by Saul Mora on 6/28/11. // Copyright 2011 Magical Panda Software LLC. All rights reserved. // #import <CoreData/CoreData.h> extern NSString * const kMagicalRecordImportCustomDateFormatKey; extern NSString * const kMagicalRecordImportDefaultDateFormatString; extern...
// // NSManagedObject+JSONHelpers.h // // Created by Saul Mora on 6/28/11. // Copyright 2011 Magical Panda Software LLC. All rights reserved. // #import <CoreData/CoreData.h> extern NSString * const kMagicalRecordImportCustomDateFormatKey; extern NSString * const kMagicalRecordImportDefaultDateFormatString; extern...
Remove unnecessarily public method from interface
Remove unnecessarily public method from interface
C
mit
lifcio/MagicalRecord,akaking/MagicalRecord,csotiriou/MagicalRecord,donvaughn/MagicalRecord,BlessNeo/MagicalRecord,tmacyml/MagicalRecord,sujeking/MagicalRecord,zyncro/MagicalRecord,libiao88/MagicalRecord,lintaoSuper/MagicalRecord,zezefamily/MagicalRecord,kidaa/MagicalRecord,donvaughn/MagicalRecord,yanyuqingshi/MagicalRe...
dcc7db1fa3167c6dca1fef18dd38b820952faa49
CoreFoundation/Base.subproj/CFAsmMacros.h
CoreFoundation/Base.subproj/CFAsmMacros.h
// This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the l...
// This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the l...
Fix libFoundation.so being flagged as requiring executable stack
Fix libFoundation.so being flagged as requiring executable stack libFoundation.so is flagged as requiring an executable stack on Linux, although it does not. This is due to GNU as behavior. Please see discussion at https://bugs.swift.org/browse/SR-2700?jql=text%20~%20%22executable%20stack%22 This was already intended...
C
apache-2.0
ikesyo/swift-corelibs-foundation,JGiola/swift-corelibs-foundation,amraboelela/swift-corelibs-foundation,ikesyo/swift-corelibs-foundation,johnno1962b/swift-corelibs-foundation,parkera/swift-corelibs-foundation,alblue/swift-corelibs-foundation,amraboelela/swift-corelibs-foundation,apple/swift-corelibs-foundation,johnno19...
c3eea81ded78e7803b42f09697bc202e1b1aaf86
sbr/read_line.c
sbr/read_line.c
#include <h/mh.h> const char * read_line(void) { char *cp; static char line[BUFSIZ]; fflush(stdout); if (fgets(line, sizeof(line), stdin) == NULL) return NULL; if ((cp = strchr(line, '\n'))) *cp = 0; return line; }
#include <h/mh.h> #include <h/utils.h> const char * read_line(void) { static char line[BUFSIZ]; fflush(stdout); if (fgets(line, sizeof(line), stdin) == NULL) return NULL; TrimSuffixC(line, '\n'); return line; /* May not be a complete line. */ }
Replace strchr() condition with TrimSuffixC().
Replace strchr() condition with TrimSuffixC().
C
bsd-3-clause
mcr/nmh,mcr/nmh
dad599a4b721780c6b11122bf88c39bdda5c9eed
include/tiramisu/MainPage.h
include/tiramisu/MainPage.h
/** \file * This file only exists to contain the front-page of the documentation */ /** \mainpage Tiramisu Optimization Framework * Tiramisu is a library that is designed to simplify code optimization and code generation. The user can express his code in the Tiramisu intermediate representation (Tiramisu IR), he ...
/** \file * This file only exists to contain the front-page of the documentation */ /** \mainpage Documentation of the API if the Tiramisu Compiler * * Tiramisu provides few classes to enable users to represent their program: * - The \ref tiramisu::function class: a function in Tiramisu is equivalent to a functio...
Fix the documentation main page
Fix the documentation main page
C
mit
rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/COLi,rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/COLi
37dd8f83def8e85cdf1b71528832980021078d86
compat/linux/sys/user.h
compat/linux/sys/user.h
// Copyright 2018 The Crashpad Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
// Copyright 2018 The Crashpad Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
Fix compilation issue on arm64 with Debian's glibc 2.19
Fix compilation issue on arm64 with Debian's glibc 2.19 Fuchsia's glibc is derived from Debian so it's causing issues on Fuchsia. Change-Id: I46368eb08f7cc7338783f115869e5c761f35e465 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2630288 Reviewed-by: Joshua Peraza <f5809a5e35ec7e1bd0e25cb...
C
apache-2.0
chromium/crashpad,chromium/crashpad,chromium/crashpad
e6a2cdb5e6ab64d929c96981f5ef3b53c8f9c49a
test/struct-init-swap.c
test/struct-init-swap.c
/* From Listing 3 in "Test-Case Reduction for C Compiler Bugs" paper, avaiable * at http://www.cs.utah.edu/~regehr/papers/pldi12-preprint.pdf. */ int printf (const char *, ...); struct { int f0; int f1; int f2; } a, b = { 0, 0, 1 }; void fn1 () { a = b; a = a; } int main () { fn1 (); printf ("%d\n", a.f2); ...
Add test case on struct initialization and assignment
Add test case on struct initialization and assignment
C
mit
larmel/lacc,larmel/c-compiler,larmel/lacc,larmel/c-compiler,larmel/c-compiler
699f3c15e0d84c2005741464cbb988b354b4da54
ir-debug-robotc.c
ir-debug-robotc.c
#pragma config(Sensor, S1, ir, sensorHiTechnicIRSeeker600) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*// task main() { while (true) { nxtDisplayTextLine(0, "S:%d", SensorValue[ir]); nxtDisplayTextLine(1, "R:%d", SensorRaw[ir]); } }
Add IR sensor debugging program, using robotc API
Add IR sensor debugging program, using robotc API
C
mit
patrickmess/ftc-2013,patrickmess/ftc-2013
0bcab9dae52e680b345f83228a83370f370fc929
c_src/kinit.c
c_src/kinit.c
#include <erl_nif.h> static ERL_NIF_TERM kinit(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) { return enif_make_atom(env, "true"); } static ErlNifFunc nif_funcs[] = { {"kinit", 2, kinit} }; ERL_NIF_INIT(kinit, nif_funcs, NULL, NULL, NULL, NULL)
#include <erl_nif.h> static ERL_NIF_TERM kinit(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) { return enif_make_atom(env, "true"); } int noop(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info) { return 0; } static ErlNifFunc nif_funcs[] = { {"kinit", 2, kinit} }; ERL_...
Add a noop for upgrade so we don't get the warning.
Add a noop for upgrade so we don't get the warning.
C
bsd-3-clause
simmel/rabbitmq-auth-backend-kerberos
41e9e0c4988a92ba3cba90959622ae8673f7c1f7
src/rtcmix/io.c
src/rtcmix/io.c
#include <stdio.h> extern int print_is_on; double m_open(float *, short, double *); double m_input(float *p,short n_args,double *pp) { p[1] = (n_args > 1) ? p[1] : 0.; p[2] = 0; n_args = 3; if(print_is_on) fprintf(stderr,"Opening input file as unit %d\n",(int)p[1]); return m_open(p,n_args,pp); } double m_outp...
#include <globals.h> #include <stdio.h> extern double m_open(float *, short, double *); double m_input(float *p,short n_args,double *pp) { p[1] = (n_args > 1) ? p[1] : 0.; p[2] = 0; n_args = 3; if(print_is_on) fprintf(stderr,"Opening input file as unit %d\n",(int)p[1]); return m_open(p,n_args,pp); } double m_...
Move some globals to globals.h.
Move some globals to globals.h.
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
198b1ef1cc1c23cb15f3cc880b93b9ca2d3fd232
src/shared.c
src/shared.c
#include <openssl/conf.h> #include <openssl/bio.h> #include <openssl/evp.h> #include <string.h> #include "shared.h" int base64_decode (char *src, bytes *dest) { BIO *bio, *b64; unsigned int max_len = strlen(src) * 0.75; dest->data = malloc(max_len); if (dest->data == NULL) return -1; b64 = BIO_new(BIO_f_base64(...
#include <openssl/conf.h> #include <openssl/bio.h> #include <openssl/evp.h> #include <string.h> #include <stdio.h> #include "shared.h" int base64_decode (char *src, bytes *dest) { BIO *bio, *b64; unsigned int max_len = strlen(src) * 3 / 4; dest->data = malloc(max_len); if (dest->data == NULL) return -1; FILE* s...
Fix overflow bug in OpenSSL
Fix overflow bug in OpenSSL
C
bsd-3-clause
undesktop/libopkeychain
175c55b147b047c632edba546e15441207febf83
tests/recordinit.c
tests/recordinit.c
typedef struct list { struct list *next; struct list *prev; } list_t; typedef struct record { int data1; list_t node; int data2; } record_t; #define container(p) ((record_t*)((int*)(p) - 1)) void init_record(list_t *p) { record_t *r = container(p); r->data2 = 42; } void init_all...
Add Qadeer record init example
Add Qadeer record init example
C
bsd-3-clause
ucsd-progsys/csolve,ucsd-progsys/csolve-bak,ucsd-progsys/csolve-bak,ucsd-progsys/csolve-bak,ucsd-progsys/csolve,ucsd-progsys/csolve,ucsd-progsys/csolve,ucsd-progsys/csolve,ucsd-progsys/csolve,ucsd-progsys/csolve-bak,ucsd-progsys/csolve-bak,ucsd-progsys/csolve,ucsd-progsys/csolve,ucsd-progsys/csolve,ucsd-progsys/csolve,...
27ebeb2662d52baeab1afd0e1b61fefa18eb40c3
src/flags.c
src/flags.c
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "-?", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** argume...
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "-?", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** argume...
Add a space to the terminating array entry
Add a space to the terminating array entry
C
bsd-2-clause
sourrust/laco
793b2d601c9cafff4f4d1284da6fcc39bf1023d2
common/log.h
common/log.h
/** * log.h - Header of log class * includes 2 methods to show warrnings and errors * @author Pavel Kryukov * Copyright 2017 MIPT-MIPS team */ #ifndef LOG_H #define LOG_H #include <iostream> #include <ostream> class LogOstream { const bool enable; std::ostream& stream; public: struct Critical { }; ...
/** * log.h - Header of log class * includes 2 methods to show warrnings and errors * @author Pavel Kryukov * Copyright 2017 MIPT-MIPS team */ #ifndef LOG_H #define LOG_H #include <iostream> #include <ostream> class LogOstream { const bool enable; std::ostream& stream; public: struct Critical { }; ...
Make serr and sout mutable to use them in const methods
Make serr and sout mutable to use them in const methods
C
mit
MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,gkorepanov/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015
370602bb15aaa83d5a976ea255883a8c9d0b9152
EXAMPLE_CODE/hw.c
EXAMPLE_CODE/hw.c
/******************************************************************************* * File : hw.c * Author : Sandeep Koranne * * Purpose : Hello, World in C * ******************************************************************************/ #include <stdio.h> #include <stdlib.h> int main() { printf("Hello, Wo...
Add hello world C example
Add hello world C example
C
cc0-1.0
skoranne/CST223,skoranne/CST223,skoranne/CST223
8da70953568e44c46d7aebeea3147c029135a824
MRHexKeyboard.h
MRHexKeyboard.h
// // MRHexKeyboard.h // // Created by Mikk Rätsep on 02/10/13. // Copyright (c) 2013 Mikk Rätsep. All rights reserved. // @import UIKit; @interface MRHexKeyboard : UIView <UITextFieldDelegate> @property(nonatomic, assign) CGFloat height; @property(nonatomic, assign) BOOL display0xButton; @property(nonatomic, a...
// // MRHexKeyboard.h // // Created by Mikk Rätsep on 02/10/13. // Copyright (c) 2013 Mikk Rätsep. All rights reserved. // #import <UIKit/UIKit.h> @interface MRHexKeyboard : UIView <UITextFieldDelegate> @property(nonatomic, assign) CGFloat height; @property(nonatomic, assign) BOOL display0xButton; @property(non...
Switch to importing framework header
Switch to importing framework header Some Apps may not use modules
C
mit
doofyus/HexKeyboard
0163470450726394efaf11570daade9f34eb2f6e
util/util_export.h
util/util_export.h
// // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // util_export.h : Defines ANGLE_UTIL_EXPORT, a macro for exporting symbols. #ifndef UTIL_EXPORT_H_ #define UTIL_EXPORT_H_ #if !defined(ANGLE_...
// // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // util_export.h : Defines ANGLE_UTIL_EXPORT, a macro for exporting symbols. #ifndef UTIL_EXPORT_H_ #define UTIL_EXPORT_H_ #if !defined(ANGLE_...
Revert "util: Always specify default visibility on exports."
Revert "util: Always specify default visibility on exports." This reverts commit 2bf23ea84e4f071c18f01b94748f3be7dccc4019. Reason for revert: Probably not the right fix. Will export all angle_utils symbols in places where they shouldn't be. Original change's description: > util: Always specify default visibility on ...
C
bsd-3-clause
ppy/angle,ppy/angle,ppy/angle,ppy/angle
40489836d8c58602f60a2f2fa7b564754d41d7ae
include/psp2/avconfig.h
include/psp2/avconfig.h
/** * \usergroup{SceAVConfig} * \usage{psp2/avconfig.h,SceAVConfig_stub} */ #ifndef _PSP2_AVCONFIG_H_ #define _PSP2_AVCONFIG_H_ #include <psp2/types.h> #ifdef __cplusplus extern "C" { #endif /*** * Get the maximum brightness. * * @param[out] maxBrightness - Maximum brightness. * * @return 0 on success, < 0...
/** * \usergroup{SceAVConfig} * \usage{psp2/avconfig.h,SceAVConfig_stub} */ #ifndef _PSP2_AVCONFIG_H_ #define _PSP2_AVCONFIG_H_ #include <psp2/types.h> #ifdef __cplusplus extern "C" { #endif /*** * Get the maximum brightness. * * @param[out] maxBrightness - Maximum brightness. * * @return 0 on success, < 0...
Add some sceAVConfig volume functions
Add some sceAVConfig volume functions
C
mit
Rinnegatamante/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers
7cca2ec8a54c5bd937eaf08ceb49712f627d1c7a
lib/IRGen/CallingConvention.h
lib/IRGen/CallingConvention.h
//===--- CallingConvention.h - Calling conventions --------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
//===--- CallingConvention.h - Calling conventions --------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
Fix typo phsyical => physical
Fix typo phsyical => physical
C
apache-2.0
khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift
562bd95583a33d69e31b1e9bdea8f2076d8df46a
src/swganh/tre/visitors/objects/object_visitor-intl.h
src/swganh/tre/visitors/objects/object_visitor-intl.h
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #pragma once namespace swganh { namespace tre { template <class T> T ObjectVisitor::attribute(const std::string& key) { std::map<std::string, std::shared_ptr<boost::any>>::const_iterator i...
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #pragma once #include<stdexcept> namespace swganh { namespace tre { template <class T> T ObjectVisitor::attribute(const std::string& key) { std::map<std::string, std::shared_ptr<boost::any>...
Fix for missing include that vs studio forgot to complain about
Fix for missing include that vs studio forgot to complain about
C
mit
anhstudios/swganh,anhstudios/swganh,anhstudios/swganh
09d4f342619ac11e29128f044e3ab5c802ae7833
include/parrot/enums.h
include/parrot/enums.h
#if !defined(PARROT_ENUMS_H_GUARD) #define PARROT_ENUMS_H_GUARD typedef enum { NO_STACK_ENTRY_TYPE = 0, STACK_ENTRY_INT = 1, STACK_ENTRY_FLOAT = 2, STACK_ENTRY_STRING = 3, STACK_ENTRY_PMC = 4, STACK_ENTRY_POINTER = 5, STACK_ENTRY_DESTINATION = 6 } Stack_en...
/* enums.h * Copyright: 2001-2003 The Perl Foundation. All Rights Reserved. * Overview: * enums shared by much of the stack-handling code * Data Structure and Algorithms: * History: * Notes: * References: */ #if !defined(PARROT_ENUMS_H_GUARD) #define PARROT_ENUMS_H_GUARD typedef enum { NO_STAC...
Add header and footer comments
Add header and footer comments git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@3957 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
C
artistic-2.0
ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot
8c1ce215a8dbfb004a0d105d9bae637ed166d5c3
src/Console.h
src/Console.h
#ifndef CONSOLE_H #define CONSOLE_H #include <string> #include <Cart.h> #include <Controller.h> #include <CPU.h> #include <PPU.h> #include <APU.h> class Divider { public: Divider(int interval = 1) { setInterval(interval); } void setInterval(int interval) { this->interval = interval; clockCounter = int...
#ifndef CONSOLE_H #define CONSOLE_H #include <string> #include <Cart.h> #include <Controller.h> #include <CPU.h> #include <PPU.h> #include <APU.h> class Divider { public: Divider(int interval = 1) { setInterval(interval); } void setInterval(int interval) { this->interval = interval; clockCounter = int...
Make cart and apu members private
Make cart and apu members private
C
mit
scottjcrouch/ScootNES,scottjcrouch/ScootNES,scottjcrouch/ScootNES
44b95f9ebc976a6e5b521de7b6c44e0858b14ebf
tests/test_header.h
tests/test_header.h
#include <stdio.h> #include <stdlib.h> #include "../libcpsl.h" #include <signal.h> #define RUNTEST(x) ((CurrentTest = #x), x(), printf("Test \"%s\" passed.\n", #x)) static const char *CurrentTest = NULL; static void SigHandler(const int Signal); static inline void InitTestUnit(void) { CPSL_Configure(malloc, free, ...
#include <stdio.h> #include <stdlib.h> #include "../libcpsl.h" #include <signal.h> #define RUNTEST(x) ((CurrentTest = #x), x(), printf("Subtest \"%s\" passed.\n", #x)) static const char *CurrentTest = NULL; static void SigHandler(const int Signal); static inline void InitTestUnit(void) { CPSL_Configure(malloc, fre...
Fix some wording for unit tests.
Fix some wording for unit tests.
C
unlicense
Subsentient/libcpsl,Subsentient/libcpsl,Subsentient/libcpsl
187f9787c989c5ed8cf84a7daf010769cc3213c5
calc.c
calc.c
#include "calc.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> int calc(const char* p, int mul_div_flag) { int i; int ans; ans = atoi(p); i = 0; while (p[i] != '\0'){ while (isdigit(p[i])){ i++; } switch (p[i]){ case '+': ...
#include "calc.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> int calc(const char* p, int mul_div_flag) { int i; int ans; ans = atoi(p); if (p[0] != '(' && mul_div_flag == 1){ return (ans); } i = 0; while (p[i] != '\0'){ while (isdigit(p[i])){ i++...
Return answer when multiple or divide
Return answer when multiple or divide
C
mit
Roadagain/Calculator,Roadagain/Calculator
a6fb75a75e2efd5409e124ebbf89d4ca6eab0e1d
archive/src/080.c
archive/src/080.c
#include <stdio.h> #include <math.h> #include <gmp.h> int is_perfect_sq(int n) { int s = sqrt(n); return s * s == n; } int main(void) { // 10^100 ~< 2^400 mpf_set_default_prec(512); mpf_t a; mpf_init(a); int total_sum = 0; // Count through 100 irrational roots for (int i = 2; i <...
Add solution for problem 80
Add solution for problem 80 This is done using C, since GMP is already a dependency and the code is fairly simple.
C
mit
tiehuis/euler,tiehuis/euler,tiehuis/euler,tiehuis/euler
040a902e166dbe1c4daaa53080f920242cb9dc71
src/selector.h
src/selector.h
#pragma once #include <atomic> #include "util.h" namespace happyntrain { template <typename SelectorImpt> class Selector : NoCopy { SelectorImpt _selector; int64_t _id; public: template <typename... Vars> Selector(Vars&&... args) : _id(GetNewId()), _selector(args...) {} ~Selector() {} inline void Add...
#pragma once #include <atomic> #include "util.h" namespace happyntrain { const int kMaxSelectEvents = 2000; template <typename SelectorImpt> class Selector : NoCopy { SelectorImpt _selector; int64_t _id; public: template <typename... Vars> Selector(Vars&&... args) : _id(GetNewId()), _selector(args...) {}...
Add constants - max events
Add constants - max events
C
mit
emengjzs/happyntrain
2498c6a0ed3edffe5becc54b27ef86bbd33d4023
You-DataStore/internal/operation.h
You-DataStore/internal/operation.h
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATION_H_ #include <unordered_map> #include "../task_typedefs.h" namespace You { namespace DataStore { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: /// Executes the operat...
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATION_H_ #include <unordered_map> #include "../task_typedefs.h" namespace You { namespace DataStore { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: virtual ~IOperation(); ...
Add back virtual dtor for IOperation
Add back virtual dtor for IOperation
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
3a41b9926ac545e4497fb2faf6cf7f22c05eb4b5
src/condor_utils/perf_counter.linux.h
src/condor_utils/perf_counter.linux.h
/*************************************************************** * * Copyright (C) 1990-2021, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You may...
/*************************************************************** * * Copyright (C) 1990-2021, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You may...
Fix typo in macro guard HTCONDOR-390
Fix typo in macro guard HTCONDOR-390
C
apache-2.0
htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor
0f427d7730b007e8740fff16d9a7b0dc5ebb692a
TMCache/TMCacheBackgroundTaskManager.h
TMCache/TMCacheBackgroundTaskManager.h
// // TMCacheBackgroundTaskManager.h // TMCache // // Created by Bryan Irace on 4/24/15. // Copyright (c) 2015 Tumblr. All rights reserved. // @import UIKit; /** A protocol that classes who can begin and end background tasks can conform to. This protocol provides an abstraction in order to avoid referencing `+ ...
// // TMCacheBackgroundTaskManager.h // TMCache // // Created by Bryan Irace on 4/24/15. // Copyright (c) 2015 Tumblr. All rights reserved. // @import UIKit; #ifndef __IPHONE_OS_VERSION_MIN_REQUIRED typedef NSUInteger UIBackgroundTaskIdentifier; #endif /** A protocol that classes who can begin and end backgroun...
Define UIBackgroundTaskIdentifier if on OS X
Define UIBackgroundTaskIdentifier if on OS X
C
apache-2.0
paulkite/TMCache,paulkite/TMCache
6f435b65aea63975a33c18e251654c56bacb38b5
private/TupleManipulation.h
private/TupleManipulation.h
#pragma once namespace TupleManipulation { template<int... Integers> struct sequence { }; template<int N, int... Integers> struct gen_sequence : public gen_sequence<N - 1, N - 1, Integers...> { }; template<int... Integers> struct gen_sequence<0, Integers...> : public sequence<Integers...> { }; ...
#pragma once namespace TupleManipulation { template<int... Integers> struct sequence { }; template<int N, int... Integers> struct gen_sequence : public gen_sequence<N - 1, N - 1, Integers...> { }; template<int... Integers> struct gen_sequence<0, Integers...> : public sequence<Integers...> { }; ...
Fix compiler warning in IAR
Fix compiler warning in IAR
C
mit
PabloMansanet/Panku,PabloMansanet/Panku
a721476360ad88fa3e28202b4a399af3e7da2259
src/Engine/windowManager.h
src/Engine/windowManager.h
#ifndef windowManager_H #define windowManager_H #include <iostream> // GLEW #define GLEW_STATIC #include <GL/glew.h> // GLFW #include <GLFW/glfw3.h> class windowManager { public: void init(); void windowManager::getScreenSize(); //Functions to return dimensions of window int getWindowHeight(); int getWindow...
#ifndef windowManager_H #define windowManager_H #include <iostream> // GLEW #define GLEW_STATIC #include <GL/glew.h> // GLFW #include <GLFW/glfw3.h> class windowManager { public: void init(); void getScreenSize(); //Functions to return dimensions of window int getWindowHeight(); int getWindowWidth(); GLFWw...
Fix building error on Linux
Fix building error on Linux
C
apache-2.0
Afrostie/Mopviewer
4b405904603ee76220a24b92d4fce1689592836f
plugins/solokey/fu-plugin-solokey.c
plugins/solokey/fu-plugin-solokey.c
/* * Copyright (C) 2019 Richard Hughes <richard@hughsie.com> * * SPDX-License-Identifier: LGPL-2.1+ */ #include "config.h" #include "fu-plugin-vfuncs.h" #include "fu-solokey-device.h" void fu_plugin_init (FuPlugin *plugin) { fu_plugin_set_build_hash (plugin, FU_BUILD_HASH); fu_plugin_add_rule (plugin, FU_PLUG...
/* * Copyright (C) 2019 Richard Hughes <richard@hughsie.com> * * SPDX-License-Identifier: LGPL-2.1+ */ #include "config.h" #include "fu-plugin-vfuncs.h" #include "fu-solokey-device.h" #include "fu-solokey-firmware.h" void fu_plugin_init (FuPlugin *plugin) { fu_plugin_set_build_hash (plugin, FU_BUILD_HASH); fu...
Allow parsing firmware with fwupdtool
solokey: Allow parsing firmware with fwupdtool
C
lgpl-2.1
fwupd/fwupd,fwupd/fwupd,hughsie/fwupd,fwupd/fwupd,hughsie/fwupd,hughsie/fwupd,hughsie/fwupd,fwupd/fwupd
e5ac979a8b86bedf6d0ca74806c0cbfd6feebb20
IntelFrameworkPkg/Include/Protocol/Crc32GuidedSectionExtraction.h
IntelFrameworkPkg/Include/Protocol/Crc32GuidedSectionExtraction.h
/** @file This file declares GUIDed section extraction protocol. This interface provides a means of decoding a GUID defined encapsulation section. There may be multiple different GUIDs associated with the GUIDed section extraction protocol. That is, all instances of the GUIDed section extraction proto...
Rename GuidedSectionExtraction.h to Crc32GuidedSectonExtraction.h to avoid naming collision with that in MdePkg. Remove the duplicate definition.
Rename GuidedSectionExtraction.h to Crc32GuidedSectonExtraction.h to avoid naming collision with that in MdePkg. Remove the duplicate definition. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@2821 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
5929f9c0d0dd4510eb0a38f626b981666a179b78
bottleopener/shiftrConnector.h
bottleopener/shiftrConnector.h
#pragma once #include <YunMQTTClient.h> class ShiftrConnector { public : void sendCounter(int counter); void init(); void loop(); //default constructor ShiftrConnector() {}; private : YunMQTTClient client; void connect(); };
#pragma once //https://github.com/256dpi/arduino-mqtt #include <YunMQTTClient.h> class ShiftrConnector { public : void sendCounter(int counter); void init(); void loop(); //default constructor ShiftrConnector() {}; private : YunMQTTClient client; void connect(); };
Add link to the library
Add link to the library
C
mit
Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot
52a4ae2b1dbc35f768406dc831ae980ca3f43244
snapshots/hacl-c-experimental/aead_chacha20_poly1305.h
snapshots/hacl-c-experimental/aead_chacha20_poly1305.h
#include "Chacha20.h" #include "Poly1305_64.h" void blit(uint8_t* src, uint32_t len, uint8_t* dest, uint32_t pos); void poly1305_key_gen(uint8_t* otk, uint8_t* key, uint8_t* nonce); uint32_t hacl_aead_chacha20_poly1305_encrypt(uint8_t *plaintext, uint32_t plaintext_len, ...
#include "Chacha20.h" #include "Poly1305_64.h" void poly1305_key_gen(uint8_t* otk, uint8_t* key, uint8_t* nonce); uint32_t hacl_aead_chacha20_poly1305_encrypt(uint8_t *plaintext, uint32_t plaintext_len, uint8_t *aad, uint32_t aad_len, ...
Remove exposed function from AEAD Chacha20 Poly1305 code
Remove exposed function from AEAD Chacha20 Poly1305 code
C
apache-2.0
mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star
d0a65bfeac62294ce218c3d4c2d57c7bfca6ad20
RandomNumbers.h
RandomNumbers.h
/*===- RandomNumbers.h - libSimulation -======================================== * * DEMON * * This file is distributed under the BSD Open Source License. See LICENSE.TXT * for details. * *===-----------------------------------------------------------------------===*/ #ifndef RANDOMNU...
/*===- RandomNumbers.h - libSimulation -======================================== * * DEMON * * This file is distributed under the BSD Open Source License. See LICENSE.TXT * for details. * *===-----------------------------------------------------------------------===*/ #ifndef RANDOMNU...
Change rand cache to a struct since everything is public. Add comment.
Change rand cache to a struct since everything is public. Add comment.
C
bsd-3-clause
leios/demonsimulationcode,leios/demonsimulationcode
867fea2c7e060a1ed593e6728042effbe7274f1b
iface.h
iface.h
#ifndef IFACE_H_INCLUDED #define IFACE_H_INCLUDED #include <fcntl.h> typedef struct funcs_t { unsigned char *(*get_mem_buf_hash)(unsigned char *mem_buf, unsigned long int mem_size); unsigned char *(*hash_to_str)(unsigned char *mem_hash); int (*is_mem_buf_dumped)(unsigned char *mem_hash); void (*dump_mem_buf)(unsi...
#ifndef IFACE_H_INCLUDED #define IFACE_H_INCLUDED #include <fcntl.h> typedef struct plugin_t { void *hndl; char *name; char *description; struct plugin_t *next; } plugin_t; #ifdef __cplusplus extern "C" plugin_t *init(); #endif #endif
Make plugins's init() function external C
Make plugins's init() function external C
C
unlicense
alexandernst/memory-dumper
f325ae16249c115a28ce6a92d179315085ed13b9
bacula/src/version.h
bacula/src/version.h
/* */ #undef VERSION #define VERSION "1.35.2" #define BDATE "28 August 2004" #define LSMDATE "28Aug04" /* Debug flags */ #undef DEBUG #define DEBUG 1 #define TRACEBACK 1 #define SMCHECK #define TRACE_FILE 1 /* Debug flags not normally turned on */ /* #define TRACE_JCR_CHAIN 1 */ /* #define TRACE_RES 1 */...
/* */ #undef VERSION #define VERSION "1.35.2" #define BDATE "30 August 2004" #define LSMDATE "30Aug04" /* Debug flags */ #undef DEBUG #define DEBUG 1 #define TRACEBACK 1 #define SMCHECK #define TRACE_FILE 1 /* Debug flags not normally turned on */ /* #define TRACE_JCR_CHAIN 1 */ /* #define TRACE_RES 1 */...
Update manual Fix CDROM script to handle non-existant files
Update manual Fix CDROM script to handle non-existant files git-svn-id: bb0627f6f70d46b61088c62c6186faa4b96a9496@1568 91ce42f0-d328-0410-95d8-f526ca767f89
C
agpl-3.0
rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula
c343de856dbe3f7049ad0193911216b3e7acdc54
PSET2/caesar.c
PSET2/caesar.c
#include <stdio.h> #include <cs50.h> int main(int argc, char *argv[]) { // check entered key if (argc != 2 || atoi(argv[1]) < 0) { printf("Usage: ./caesar k\nWhere k is a non negative integer.\n"); return 1; } int key = atoi(argv[1]); return 0; }
#include <stdio.h> #include <cs50.h> #include <string.h> #define ALPHA_NUM 26 int main(int argc, char *argv[]) { // check argument number and argument key to be greater than -1 if (argc != 2 || atoi(argv[1]) < 0) { printf("Usage (k >= 0):\n./caesar k \n"); return 1; } int key = atoi(a...
Add unfinished loop to encode message
Add unfinished loop to encode message
C
unlicense
Implaier/CS50,Implaier/CS50,Implaier/CS50,Implaier/CS50
c706f245992f760afdb7d41d3f40c60b3d85ee89
src/bgp/security_group/security_group.h
src/bgp/security_group/security_group.h
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #ifndef SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #define SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #include <boost/array.hpp> #include <boost/system/error_code.hpp> #include <string> #include "base/parse_object.h" #include "bgp/bgp_common.h" c...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #ifndef SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #define SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #include <boost/array.hpp> #include <boost/system/error_code.hpp> #include <string> #include "base/parse_object.h" #include "bgp/bgp_common.h" c...
Update min/max global SGIDs values to match Schema Transformer
Update min/max global SGIDs values to match Schema Transformer Change-Id: I63d5634e9a374ce33e9e0e779caf499e8fbccdec Closes-Bug: 1381145
C
apache-2.0
rombie/contrail-controller,eonpatapon/contrail-controller,cloudwatt/contrail-controller,cloudwatt/contrail-controller,srajag/contrail-controller,DreamLab/contrail-controller,rombie/contrail-controller,reiaaoyama/contrail-controller,vmahuli/contrail-controller,nischalsheth/contrail-controller,numansiddique/contrail-cont...
1f0cf96991c2601d361416ca067be796e8b54494
blogcomment_p.h
blogcomment_p.h
/* This file is part of the kblog library. Copyright (c) 2006-2007 Christian Weilbach <christian_weilbach@web.de> Copyright (c) 2007 Mike Arthur <mike@mikearthur.co.uk> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as publ...
Add file that SVN somehow missed.
Add file that SVN somehow missed. svn path=/trunk/KDE/kdepimlibs/; revision=711804
C
lgpl-2.1
KDE/kblog,KDE/kblog
061ced8ae25bc5dad4d1179a7f9cd258ebb05ed3
2015-2016/B/10/02/task5.c
2015-2016/B/10/02/task5.c
#include <stdio.h> void increase_coordinates(); typedef struct { int x; int y; int z; } Point; Point pt; int main () { printf("x = ");scanf("%d",&pt.x); printf("y = ");scanf("%d",&pt.y); printf("z = ");scanf("%d",&pt.z); increase_coordinates(); printf("\nx = %d", pt.x); printf("\ny = %d", pt.y); prin...
Add task with points for October
Add task with points for October
C
mit
AlexAndreev/po-homework,VVurbanov/po-homework,ivanmilevtues/po-homework
d3437f42ec20df8e99fdb6ff84bea6b64a3824b5
tests/regression/01-cpa/10-posneg.c
tests/regression/01-cpa/10-posneg.c
//PARAM: --enable ana.int.wrap_on_signed_overflow #include<stdio.h> #include<assert.h> int main() { int i,k,j; if (k == 5) { assert(k == 5); return 0; } assert(k != 5); // simple arithmetic i = k + 1; assert(i != 6); i = k - 1; assert(i != 4); i = k * 3; // multiplication with odd n...
//PARAM: --enable ana.int.wrap_on_signed_overflow // Enabling ana.int.wrap_on_signed_overflow here, to retain precision for cases when a signed overflow might occcur #include<stdio.h> #include<assert.h> int main() { int i,k,j; if (k == 5) { assert(k == 5); return 0; } assert(k != 5); // Signed over...
Add comment on why ana.int.wrap_on_signed_overflow needs to enabled for test case
Add comment on why ana.int.wrap_on_signed_overflow needs to enabled for test case
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
f20b64d03463cbd35bcacea1d80848b19d15ea6a
KVODelegate/KVODelegate.h
KVODelegate/KVODelegate.h
// // KVODelegate.h // KVODelegate // // Created by Ian Gregory on 15-03-2017. // Copyright © 2017 ThatsJustCheesy. All rights reserved. // #import <Foundation/Foundation.h> #import <KVODelegate/KVOObservationDelegate.h> #import <KVODelegate/KVONotificationDelegate.h>
// // KVODelegate.h // KVODelegate // // Created by Ian Gregory on 15-03-2017. // Copyright © 2017 ThatsJustCheesy. All rights reserved. // #import <Foundation/Foundation.h> #import "KVOObservationDelegate.h" #import "KVONotificationDelegate.h"
Use quoted includes in umbrella header
Use quoted includes in umbrella header
C
mit
ThatsJustCheesy/KVODelegate,ThatsJustCheesy/KVODelegate
9f6244e43e007f27ccf02d8e4ebcdf12d182a39b
src/meat/math/abBlood.c
src/meat/math/abBlood.c
#include <math.h> #include "abBlood.h" void updateAB(simBac *sim) { sim->c_b = sim->c_b_peak * \ exp( -1 * sim->param.k_a * \ ( sim->t - sim->param.doses_t[sim->dose_num-1] ) \ / sim->param.v_w ); // Exponential decay from last time spike // ( 1.0 - sim->param.t_s * sim->par...
#include <math.h> #include "abBlood.h" void updateAB(simBac *sim) { sim->c_b = sim->c_b_peak * \ exp( -1 * sim->param.k_a * \ ( sim->t - sim->param.doses_t[sim->dose_num-1] ) \ / sim->param.v_w ); // Exponential decay from last time spike // ( 1.0 - sim->param.t_s * sim->par...
Add antibiotic concentration artificial minimum floor
Add antibiotic concentration artificial minimum floor
C
mit
bacteriaboyz/CheatingTheCheaters,bacteriaboyz/CheatingTheCheaters,bacteriaboyz/CheatingTheCheaters,bacteriaboyz/CheatingTheCheaters
4f5125e0b0ec6b3ddef8fa967b30ced19759fafa
drivers/spmi/spmi-dbgfs.h
drivers/spmi/spmi-dbgfs.h
/* Copyright (c) 2012-2013, The Linux Foundation. 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 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
/* Copyright (c) 2012-2013, The Linux Foundation. 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 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
Fix compilation error when debugfs is disabled
spmi: Fix compilation error when debugfs is disabled Code does not compile with debugfs disabled. Fix this. Change-Id: I11fa09401f29e9f2fb65d19668cae455253f6355 Signed-off-by: Olav Haugan <fbf4ddd114d5f0aa83cb721b7dacab8a264ccf22@codeaurora.org>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas
56bddeda24adcb927dd5ceafd75f84ebc2eb4203
test/Sema/static-init.c
test/Sema/static-init.c
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only -verify %s #include <stdint.h> static int f = 10; static int b = f; // expected-error {{initializer element is not a compile-time constant}} float r = (float) (intptr_t) &r; // expected-error {{initializer element is not a compile-time constant}} intptr_t s...
// RUN: %clang_cc1 -fsyntax-only -verify %s typedef __typeof((int*) 0 - (int*) 0) intptr_t; static int f = 10; static int b = f; // expected-error {{initializer element is not a compile-time constant}} float r = (float) (intptr_t) &r; // expected-error {{initializer element is not a compile-time constant}} intptr_t...
Fix test to not force triple, and also to not need stdint.h.
Fix test to not force triple, and also to not need stdint.h. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@96499 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
b51602b1db901e46fd1fec4d76c669b31a538079
components/libc/compilers/common/nogcc/sys/types.h
components/libc/compilers/common/nogcc/sys/types.h
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-09-05 Meco Man fix bugs * 2020-12-16 Meco Man add useconds_t */ #ifndef __SYS_TYPES_H__ #define __SYS_TYPES_H__ #include <stdint.h> #incl...
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-09-05 Meco Man fix bugs * 2020-12-16 Meco Man add useconds_t */ #ifndef __SYS_TYPES_H__ #define __SYS_TYPES_H__ #include <stdint.h> #incl...
Add a blank line at the end
[update] Add a blank line at the end
C
apache-2.0
nongxiaoming/rt-thread,RT-Thread/rt-thread,geniusgogo/rt-thread,RT-Thread/rt-thread,hezlog/rt-thread,geniusgogo/rt-thread,nongxiaoming/rt-thread,hezlog/rt-thread,RT-Thread/rt-thread,RT-Thread/rt-thread,nongxiaoming/rt-thread,geniusgogo/rt-thread,nongxiaoming/rt-thread,RT-Thread/rt-thread,hezlog/rt-thread,nongxiaoming/r...
aa075fd45fabc26875fb3ac5c34cce70fe3a7030
LargeBarrelAnalysis/EventCategorizerTools.h
LargeBarrelAnalysis/EventCategorizerTools.h
/** * @copyright Copyright 2017 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required by applicable la...
/** * @copyright Copyright 2017 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required by applicable la...
Change include to proper one
Change include to proper one
C
apache-2.0
JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples
b657af02c49fa95c889454f82609ed2a7672949a
kmail/kmversion.h
kmail/kmversion.h
// KMail Version Information // #ifndef kmversion_h #define kmversion_h #define KMAIL_VERSION "1.9.9" #endif /*kmversion_h*/
// KMail Version Information // #ifndef kmversion_h #define kmversion_h #define KMAIL_VERSION "1.9.10" #endif /*kmversion_h*/
Increase version number for KDE 3.5.10.
Increase version number for KDE 3.5.10. svn path=/branches/KDE/3.5/kdepim/; revision=846406
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
bbdf0450f0c99355a84db41a35d78f37a4879e16
include/program_options/item.h
include/program_options/item.h
/* * parser item * (c) Copyright 2015 Micooz * * Released under the Apache License. * See the LICENSE file or * http://www.apache.org/licenses/LICENSE-2.0.txt for more information. */ #ifndef PARSER_ITEM_H_ #define PARSER_ITEM_H_ #include <sstream> namespace program_options { class ParseItem { public: ParseItem(c...
/* * parser item * (c) Copyright 2015 Micooz * * Released under the Apache License. * See the LICENSE file or * http://www.apache.org/licenses/LICENSE-2.0.txt for more information. */ #ifndef PARSER_ITEM_H_ #define PARSER_ITEM_H_ #include <sstream> namespace program_options { class ParseItem { public: ParseItem(c...
Add a function of ParseItem which returns a c-style string directly.
Add a function of ParseItem which returns a c-style string directly.
C
apache-2.0
Micooz/program_options,Micooz/program_options,Micooz/program_options,Micooz/program_options
49546b6634d2ab100761e27f76a824909fcf89dc
src/themis/secure_record.h
src/themis/secure_record.h
/** * @file * * (c) CossackLabs */ #ifndef _SECURE_RECORD_H_ #define _SECURE_RECORD_H_ typedef struct themis_secure_record_type themis_secure_record_t; themis_secure_record_t* themis_secure_record_create(const uint8_t* master_key, const size_t master_key_length); themis_status_t themis_secure_record_encrypt_1(t...
Add THEMIS Secure Record interface
Add THEMIS Secure Record interface
C
apache-2.0
cossacklabs/themis,cossacklabs/themis,Lagovas/themis,storojs72/themis,Lagovas/themis,cossacklabs/themis,cossacklabs/themis,Lagovas/themis,storojs72/themis,cossacklabs/themis,storojs72/themis,cossacklabs/themis,Lagovas/themis,mnaza/themis,cossacklabs/themis,cossacklabs/themis,mnaza/themis,mnaza/themis,Lagovas/themis,sto...
2a1b1a4cc8a1da74d35401adc5713f63ff93f5b6
bindings/ios/Private/MEGAHandleList+init.h
bindings/ios/Private/MEGAHandleList+init.h
/** * @file MEGAHandleList+init * @brief Private functions of MEGAHandleList * * (c) 2013-2017 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set forth ...
/** * @file MEGAHandleList+init * @brief Private functions of MEGAHandleList * * (c) 2013-2017 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set forth ...
Add the ctor for MEGAHandleList (Obj-C)
Add the ctor for MEGAHandleList (Obj-C)
C
bsd-2-clause
Acidburn0zzz/sdk,meganz/sdk,Acidburn0zzz/sdk,meganz/sdk,meganz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,meganz/sdk,Acidburn0zzz/sdk,meganz/sdk,meganz/sdk,meganz/sdk,Acidburn0zzz/sdk
74a1e19dc9d9b5f1e4275745a384f594922c4ac9
test/Driver/aarch64-ssbs.c
test/Driver/aarch64-ssbs.c
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+ssbs %s 2>&1 | FileCheck %s // CHECK: "-target-feature" "+ssbs" // RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+nossbs %s 2>&1 | FileCheck %s --check-prefix=NOSSBS // NOSSBS: "-target-feature" "-ssbs" // RUN: %clang -### -target aarch...
Add command-line option for SSBS
[AArch64] Add command-line option for SSBS Summary: SSBS (Speculative Store Bypass Safe) is only mandatory from 8.5 onwards but is optional from Armv8.0-A. This patch adds testing for the ssbs command line option, added to allow enabling the feature in previous Armv8-A architectures to 8.5. Reviewers: olista01, sampa...
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
736a848b590fdebcdf1848eba11b19c0081269c3
Capu/include/capu/os/Windows/EnvironmentVariables.h
Capu/include/capu/os/Windows/EnvironmentVariables.h
/* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Fix enviroment variable getter on windows
Fix enviroment variable getter on windows found result was always true because condition only checked error code, not if there is really a value Change-Id: Ie8b8edab0419c629dd558ce9b5466a582de359f8
C
apache-2.0
bmwcarit/capu,bmwcarit/capu
96e593920711c2b6cecace99061d02d1b8738f10
LYCategory/_Foundation/_Fix/NSNumber+Fix.h
LYCategory/_Foundation/_Fix/NSNumber+Fix.h
// // NSNumber+Fix.h // LYCategory // // Created by Rick Luo on 11/25/13. // Copyright (c) 2013 Luo Yu. All rights reserved. // #import <Foundation/Foundation.h> @interface NSNumber (Fix) - (id)objectAtIndex:(NSUInteger)index; - (id)objectForKey:(id)aKey; - (BOOL)isEqualToString:(NSString *)aString; - (NSUInt...
// // NSNumber+Fix.h // LYCategory // // Created by Rick Luo on 11/25/13. // Copyright (c) 2013 Luo Yu. All rights reserved. // #import <Foundation/Foundation.h> @interface NSNumber (Fix) - (id)objectAtIndex:(NSUInteger)index; - (id)objectForKey:(id)aKey; - (BOOL)isEqualToString:(NSString *)aString; - (NSUInt...
Fix : is real for number object.
Fix : is real for number object.
C
mit
blodely/LYCategory,blodely/LYCategory,blodely/LYCategory,blodely/LYCategory
7363dfbdfb0f51a5a52c1eecdbb847dfcd026f4a
test/asan/TestCases/printf-4.c
test/asan/TestCases/printf-4.c
// RUN: %clang_asan -O2 %s -o %t // RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // FIXME: sprintf is not intercepted on Windows yet. // XFAIL: win32 #include <stdio.h> int main() { volatile char c = '0'; ...
// RUN: %clang_asan -O2 %s -o %t // RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // FIXME: sprintf is not intercepted on Windows yet. // XFAIL: win32 #include <stdio.h> int main() { volatile char c = '0'; ...
Switch to fputs stderr to try to fix output buffering issues
Switch to fputs stderr to try to fix output buffering issues git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@263293 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
5ae017de6d07cd1fae4e475d5b64423551828f87
include/clang/Basic/AllDiagnostics.h
include/clang/Basic/AllDiagnostics.h
//===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Use a static_assert instead of using the old array of size -1 trick.
[Basic] Use a static_assert instead of using the old array of size -1 trick. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@305439 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
d463708dd79dc9c1689a8ec5aa6ae6fc4d84d8c8
planck-c/timers.c
planck-c/timers.c
#include <stddef.h> #include <time.h> #include <pthread.h> #include <stdlib.h> #include "timers.h" struct timer_data_t { long millis; timer_callback_t timer_callback; void* data; }; void *timer_thread(void *data) { struct timer_data_t *timer_data = data; struct timespec t; t.tv_sec = timer_d...
#include <stddef.h> #include <time.h> #include <pthread.h> #include <stdlib.h> #include "timers.h" struct timer_data_t { long millis; timer_callback_t timer_callback; void* data; }; void *timer_thread(void *data) { struct timer_data_t *timer_data = data; struct timespec t; t.tv_sec = timer_d...
Fix bug if timer executed with 0 ms
Fix bug if timer executed with 0 ms
C
epl-1.0
mfikes/planck,slipset/planck,mfikes/planck,mfikes/planck,slipset/planck,slipset/planck,slipset/planck,mfikes/planck,mfikes/planck,mfikes/planck,slipset/planck
2cfe7b5f59bd396e82660360575b71489c6c38e7
src/newspaper.h
src/newspaper.h
#ifndef _NEWSPAPER_H_ #define _NEWSPAPER_H_ #include <string> #include "advertenum.h" using namespace std; class Newspaper { string name; int textPrice, imagePrice, textImagePrice; public: Newspaper(const string& name): name(name) {} int getPriceFor(AdvertType type) const { switch(type) { ...
#ifndef NEWSPAPER_H #define NEWSPAPER_H #include <string> #include "advertenum.h" using namespace std; class Newspaper { string name; int textPrice, imagePrice, textImagePrice; public: Newspaper(): name("") {} Newspaper(const string& name): name(name) {} int getPriceFor(AdvertType type) const { ...
Fix header guard, add impossible return value, add default name
Fix header guard, add impossible return value, add default name
C
mit
nyz93/advertapp,nyz93/advertapp
468fc8cd0f24a1bd07a586017cc55c9a014b4e04
src/webwidget.h
src/webwidget.h
#ifndef WEBWIDGET_H #define WEBWIDGET_H #include "webpage.h" #include <QtWebKit> #include <QStringList> class WebWidget : public QWebView { Q_OBJECT public: WebWidget(QWidget * parent=0); virtual void wheelEvent(QWheelEvent *); public slots: void changeFor(WebPage::UserAgents...
/* Mobile On Desktop - A Smartphone emulator on desktop * Copyright (c) 2012 Régis FLORET * * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retai...
Add BSD header on top of all files (forgot some files)
Add BSD header on top of all files (forgot some files)
C
bsd-3-clause
regisf/mobile-on-desktop,regisf/mobile-on-desktop
2a3b7a9e9928124865cfce561f410a9018aaeb94
GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h
GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h
/*! @file GTMAppAuth.h @brief GTMAppAuth SDK @copyright Copyright 2016 Google Inc. @copydetails 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 ht...
/*! @file GTMAppAuth.h @brief GTMAppAuth SDK @copyright Copyright 2016 Google Inc. @copydetails 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 ht...
Move to iOS and Mac targets only.
Move to iOS and Mac targets only.
C
apache-2.0
google/GTMAppAuth,google/GTMAppAuth
7cc9b51d1d2e091baf4f72a02e46ac1471936e7f
config.h
config.h
// batwarn - (C) 2015-2016 Jeffrey E. Bedard #ifndef CONFIG_H #define CONFIG_H #define GAMMA_NORMAL 1.0 #define GAMMA_WARNING 5.0 enum { CRIT_PERCENT=5 ,LOW_PERCENT=10 ,FULL_PERCENT=90 }; #ifndef DEBUG #define WAIT 60 #else//DEBUG #define WAIT 1 #endif//!DEBUG #define BATSYSFILE "/sys/class/power_supply/BA...
// batwarn - (C) 2015-2016 Jeffrey E. Bedard #ifndef BW_CONFIG_H #define BW_CONFIG_H #define GAMMA_NORMAL 1.0 #define GAMMA_WARNING 5.0 enum PercentCat { CRIT_PERCENT=5, LOW_PERCENT=10, FULL_PERCENT=90 }; // Delay for checking system files: #ifndef DEBUG enum { WAIT = 60 }; #else//DEBUG enum { WAIT = 1 }; #...
Convert defines to enums. Named percentage category enum. Documented values.
Convert defines to enums. Named percentage category enum. Documented values.
C
mit
jefbed/batwarn,jefbed/batwarn
bccdf2ad17f4e1ee9c7900e7e1dc95f61f700ea3
memory.c
memory.c
/* Copyright (c) 2012 Francis Russell <francis@unchartedbackwaters.co.uk> * * 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...
/* Copyright (c) 2012 Francis Russell <francis@unchartedbackwaters.co.uk> * * 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...
Fix warning on printing value of type size_t.
Fix warning on printing value of type size_t. Monotone-Parent: f3b43f63ea982bf3ea58c1b0757c412b6a05a42a Monotone-Revision: 159ac37e2f3b80788fff369effa2496f32bc5adf
C
mit
FrancisRussell/lfmerge
ad902e3138ff67a76e7c3d8d6bf7d7d4f76fc479
HTMLKit/CSSAttributeSelector.h
HTMLKit/CSSAttributeSelector.h
// // CSSAttributeSelector.h // HTMLKit // // Created by Iska on 14/05/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> #import "CSSSelector.h" #import "CSSSimpleSelector.h" typedef NS_ENUM(NSUInteger, CSSAttributeSelectorType) { CSSAttributeSelectorExists, CSSAtt...
// // CSSAttributeSelector.h // HTMLKit // // Created by Iska on 14/05/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> #import "CSSSelector.h" #import "CSSSimpleSelector.h" typedef NS_ENUM(NSUInteger, CSSAttributeSelectorType) { CSSAttributeSelectorExists, CSSAtt...
Add nullability specifiers to attribute selector
Add nullability specifiers to attribute selector
C
mit
iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit
ea2b85c388cb88e2d65a632f694bd76b285cb5ab
Modules/Core/SpatialObjects/include/itkMetaEvent.h
Modules/Core/SpatialObjects/include/itkMetaEvent.h
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
Clarify strange syntax for itk::MetaEvent
DOC: Clarify strange syntax for itk::MetaEvent The itk::MetaEvent inherits from the global namespace ::MetaEvent that is provided by the MetaIO/src/metaEvent.h class. Change-Id: I43aaeeee22298b69cfe4f1acb06186f9599586ac
C
apache-2.0
ajjl/ITK,biotrump/ITK,jmerkow/ITK,zachary-williamson/ITK,fbudin69500/ITK,msmolens/ITK,Kitware/ITK,Kitware/ITK,malaterre/ITK,richardbeare/ITK,spinicist/ITK,malaterre/ITK,hjmjohnson/ITK,msmolens/ITK,InsightSoftwareConsortium/ITK,LucasGandel/ITK,jcfr/ITK,fedral/ITK,spinicist/ITK,ajjl/ITK,InsightSoftwareConsortium/ITK,thew...
a4d274a780125cab0aa21ffd2a4060a66e2512d4
wms/WMSQueryDataLayer.h
wms/WMSQueryDataLayer.h
// ====================================================================== /*! * \brief A Meb Maps Service Layer data structure for query data layer * * Characteristics: * * - * - */ // ====================================================================== #pragma once #include "WMSConfig.h" namespace SmartM...
// ====================================================================== /*! * \brief A Meb Maps Service Layer data structure for query data layer * * Characteristics: * * - * - */ // ====================================================================== #pragma once #include "WMSConfig.h" namespace SmartM...
Use override (pacify clang++ warning)
Use override (pacify clang++ warning)
C
mit
fmidev/smartmet-plugin-wms,fmidev/smartmet-plugin-wms,fmidev/smartmet-plugin-wms,fmidev/smartmet-plugin-wms
93fefee3d2cd7f0bf773595d8e41f80fd9909897
Settings/Controls/Spinner.h
Settings/Controls/Spinner.h
#pragma once #include "Control.h" #include <CommCtrl.h> class Spinner : public Control { public: Spinner() { } Spinner(int id, HWND parent) : Control(id, parent) { } virtual void Enable(); virtual void Disable(); void Buddy(int buddyId); /// <summary>Sets the range (min, max...
#pragma once #include "Control.h" #include <CommCtrl.h> /// <summary> /// Manages a 'spin control': a numeric edit box with a up/down 'buddy' to /// increment or decrement the current value of the box. /// </summary> class Spinner : public Control { public: Spinner() { } Spinner(int id, HWND parent) : ...
Add summary for spin control class
Add summary for spin control class
C
bsd-2-clause
malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX
9e1ca6b5bc40d15f5c45189f6ca0220912dcfed5
src/qt/clientmodel.h
src/qt/clientmodel.h
#ifndef CLIENTMODEL_H #define CLIENTMODEL_H #include <QObject> class OptionsModel; class AddressTableModel; class TransactionTableModel; class CWallet; QT_BEGIN_NAMESPACE class QDateTime; QT_END_NAMESPACE // Interface to Bitcoin network client class ClientModel : public QObject { Q_OBJECT public: // The onl...
#ifndef CLIENTMODEL_H #define CLIENTMODEL_H #include <QObject> class OptionsModel; class AddressTableModel; class TransactionTableModel; class CWallet; QT_BEGIN_NAMESPACE class QDateTime; QT_END_NAMESPACE // Interface to Bitcoin network client class ClientModel : public QObject { Q_OBJECT public: explicit C...
Remove no longer valid comment
Remove no longer valid comment
C
mit
reddink/reddcoin,Cannacoin-Project/Cannacoin,ahmedbodi/poscoin,reddcoin-project/reddcoin,joroob/reddcoin,coinkeeper/2015-06-22_19-10_cannacoin,ahmedbodi/poscoin,joroob/reddcoin,coinkeeper/2015-06-22_19-10_cannacoin,bmp02050/ReddcoinUpdates,reddcoin-project/reddcoin,Cannacoin-Project/Cannacoin,bmp02050/ReddcoinUpdates,r...
b07d89ca854f79eca700a95f5e1d23d5b5f6f1ba
SFBluetoothLowEnergyDevice/Classes/SFBLELogging.h
SFBluetoothLowEnergyDevice/Classes/SFBLELogging.h
// // SFBLELogging.h // SFBluetoothLowEnergyDevice // // Created by Thomas Billicsich on 2014-04-04. // Copyright (c) 2014 Thomas Billicsich. All rights reserved. #import <CocoaLumberjack/CocoaLumberjack.h> // To define a different local (per file) log level // put the following line _before_ the import of SFBLE...
// // SFBLELogging.h // SFBluetoothLowEnergyDevice // // Created by Thomas Billicsich on 2014-04-04. // Copyright (c) 2014 Thomas Billicsich. All rights reserved. #import <CocoaLumberjack/CocoaLumberjack.h> // To define a different local (per file) log level // put the following line _before_ the import of SFBLE...
Set default log level to info
Set default log level to info [Delivers #87082830]
C
mit
martinjacala/SFBluetoothLowEnergyDevice,simpliflow/SFBluetoothLowEnergyDevice
6bfc82aaf18e42fcc7328b81ffb3ec3cf360d732
webrtc/common_audio/signal_processing/cross_correlation.c
webrtc/common_audio/signal_processing/cross_correlation.c
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Test whether removing a cast still hurts performance.
Test whether removing a cast still hurts performance. BUG=499241 TEST=none TBR=andrew Review URL: https://codereview.webrtc.org/1206653002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9491}
C
bsd-3-clause
ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc
70a3bea036ff5c4ddfc3d80b955535a646d334ae
src/lib/hex-dec.c
src/lib/hex-dec.c
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hex-dec.h" void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size) { unsigned int i; for (i = 0; i < hexstr_size; i++) { unsigned int value = dec & 0x0f; if (value < 10) hexstr[hexstr...
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hex-dec.h" void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size) { unsigned int i; for (i = 0; i < hexstr_size; i++) { unsigned int value = dec & 0x0f; if (value < 10) hexstr[hexstr...
Allow data to contain also lowercase hex characters.
hex2dec(): Allow data to contain also lowercase hex characters.
C
mit
damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot
adcb44aa1001abff7727db60cfda9c805b446582
tests/regression/00-sanity/22-cfg-connect.c
tests/regression/00-sanity/22-cfg-connect.c
int main() { // non-deterministically make all variants live int r; switch (r) { case 0: single(); break; case 1: sequential_last(); break; case 2: sequential_both(); break; case 3: branch_one(); break; case 4: branch_both(); break;...
Add regression test for infinite loop combinations CFG connectedness
Add regression test for infinite loop combinations CFG connectedness
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
2c058b10c0dc3b2df2fb6d0a203c2abca300c794
tests/regression/34-localwn_restart/04-hh.c
tests/regression/34-localwn_restart/04-hh.c
// SKIP PARAM: --enable ana.int.interval --set solver td3 --enable ana.base.partition-arrays.enabled --set ana.activated "['base','threadid','threadflag','expRelation','mallocWrapper','apron']" --set ana.base.privatization none --set ana.apron.privatization dummy --set sem.int.signed_overflow assume_none // This is pa...
// SKIP PARAM: --enable ana.int.interval --set solver td3 --set ana.base.arrays.domain partitioned --set ana.activated "['base','threadid','threadflag','expRelation','mallocWrapper','apron']" --set ana.base.privatization none --set ana.apron.privatization dummy --set sem.int.signed_overflow assume_none // This is part...
Fix partitioned array option in additional test
Fix partitioned array option in additional test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
8b47bd6c54891baebf6a1083c7b1f6fa0402b8e4
cc1/tests/test029.c
cc1/tests/test029.c
/* name: TEST029 description: Test of nested expansion and refusing macro without arguments comments: f(2) will expand to 2*g, which will expand to 2*f, and in this moment f will not be expanded because the macro definition is a function alike macro, and in this case there is no arguments. output: ...
Add test for nested macro expansion
Add test for nested macro expansion This test also check what happens when a macro with arguments is found without them.
C
isc
k0gaMSX/scc,8l/scc,k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/kcc,8l/scc,8l/scc
8b491b720bf845b0e5fa567609576e73fef1b7f6
tests/regression/46-apron2/07-escaping-recursion.c
tests/regression/46-apron2/07-escaping-recursion.c
// SKIP PARAM: --set solver td3 --set ana.activated "['base','threadid','threadflag','mallocWrapper','apron','escape']" --set ana.base.privatization none --set ana.apron.privatization dummy int rec(int i,int* ptr) { int top; int x = 17; if(i == 0) { rec(5,&x); // Recursive call may have mod...
Add "escaping" via recursion example
Add "escaping" via recursion example
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer