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
7b9661e1d1d78c7558123e4865a32c60e84d8049
src/graphics.h
src/graphics.h
#ifndef __GRAPHICS_H__ #define __GRAPHICS_H__ #include "models.h" typedef struct { int num_goats_to_put; int num_eaten_goats; player_turn_t turn; mvt_t input; mvt_t *possible_mvts; board_t *board; } state_to_draw_t; #endif
#ifndef __GRAPHICS_H__ #define __GRAPHICS_H__ #include "models.h" typedef struct { int num_goats_to_put; int num_eaten_goats; player_turn_t turn; mvt_t input; mvt_t *possible_mvts; size_t num_possible_mvts; board_t *board; } state_to_draw_t;...
Fix state_to_draw_t by adding the number of possible mvts
Fix state_to_draw_t by adding the number of possible mvts
C
mit
moverest/bagh-chal,moverest/bagh-chal,moverest/bagh-chal
41ecc842c747e8dc572fcbca6f41a11a08a55e4e
pkg/gridalt/gridalt_mapping.h
pkg/gridalt/gridalt_mapping.h
C $Header$ C $Name$ #include "PACKAGES_CONFIG.h" c Alternate grid Mapping Common c ------------------------------ #ifdef ALLOW_FIZHI integer nlperdyn(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,Nsy) _RL dpphys0(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy) _RL dpphys(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy)...
C $Header$ C $Name$ c Alternate grid Mapping Common c ------------------------------ #ifdef ALLOW_FIZHI integer nlperdyn(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,Nsy) _RL dpphys0(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy) _RL dpphys(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy) _RL dxfalt,dyfalt,drfal...
Remove explicit include of packages_config in here - it is included elsewhere in all routines which use this common
Remove explicit include of packages_config in here - it is included elsewhere in all routines which use this common
C
mit
altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h
2d7cf3ef879b22bdfd271aa3b66733c53279e813
arch/powerpc/include/asm/kmap_types.h
arch/powerpc/include/asm/kmap_types.h
#ifndef _ASM_POWERPC_KMAP_TYPES_H #define _ASM_POWERPC_KMAP_TYPES_H #ifdef __KERNEL__ /* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your opti...
#ifndef _ASM_POWERPC_KMAP_TYPES_H #define _ASM_POWERPC_KMAP_TYPES_H #ifdef __KERNEL__ /* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your opti...
Fix DEBUG_HIGHMEM build break from d4515646699
powerpc: Fix DEBUG_HIGHMEM build break from d4515646699 Code was added to mm/higmem.c that depends on several kmap types that powerpc does not support. We add dummy invalid definitions for KM_NMI, KM_NM_PTE, and KM_IRQ_PTE. According to list discussion, this fix should not be needed anymore starting with 2.6.33. Th...
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program...
0b8a1228b773bc4e9a865a913a231f7e0d1e7a15
platform/shared/common/stat.h
platform/shared/common/stat.h
/* #if defined(__APPLE__) && !(defined(__DARWIN_ONLY_64_BIT_INO_T) && ___DARWIN_ONLY_64_BIT_INO_T) #define __DARWIN_ONLY_64_BIT_INO_T 1 #endif */ #include <sys/stat.h>
#if defined(__APPLE__) && !defined(__arm__) && !defined(__IPHONE_4_0) /* Simulator 3.2 or less */ #define RHO_IPHONE_SIMULATOR_3 #endif #ifdef RHO_IPHONE_SIMULATOR_3 #ifdef stat #undef stat #endif #ifdef lstat #undef lstat #endif #ifdef fstat #undef fstat #endif #endif #include <sys/stat.h> #ifdef RHO_IPHONE_SIMULAT...
Make iPhone simulator build binary compatible between 3.x and 4.x
Make iPhone simulator build binary compatible between 3.x and 4.x
C
mit
pslgoh/rhodes,tauplatform/tau,watusi/rhodes,tauplatform/tau,tauplatform/tau,tauplatform/tau,tauplatform/tau,watusi/rhodes,rhomobile/rhodes,rhomobile/rhodes,tauplatform/tau,tauplatform/tau,watusi/rhodes,pslgoh/rhodes,pslgoh/rhodes,tauplatform/tau,rhomobile/rhodes,rhomobile/rhodes,watusi/rhodes,pslgoh/rhodes,watusi/rhode...
ca4e752c35e8a6254d85fae156cc256f2658de2a
src/ip.c
src/ip.c
/*****************************************************************************/ /* */ /* Telize 2.0.0 */ /* Copyright (c) 2013-2018, Frederic Cambus */ ...
/*****************************************************************************/ /* */ /* Telize 2.0.0 */ /* Copyright (c) 2013-2018, Frederic Cambus */ ...
Handle the 'X-Forwarded-For' HTTP header if present
Handle the 'X-Forwarded-For' HTTP header if present
C
bsd-2-clause
fcambus/telize
102f9015c61e9e7a84e1442705e85de19fe9b400
test/C++Frontend/ConstructorDestructorAttributes.c
test/C++Frontend/ConstructorDestructorAttributes.c
#include <stdio.h> void ctor() __attribute__((constructor)); void ctor() { printf("Create!\n"); } void dtor() __attribute__((destructor)); void dtor() { printf("Create!\n"); } int main() { return 0; }
Add a testcase to ensure that ctor/dtor attributes work in C
Add a testcase to ensure that ctor/dtor attributes work in C git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@6919 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift...
f696c641dc0182e254ae9cea224465ed8e7fef79
src/common.h
src/common.h
#ifndef COMMON_INCLUDED #define COMMON_INCLUDED #pragma once #define _WIN32_WINNT _WIN32_WINNT_WINXP #define NOMINMAX #include <Windows.h> #define at_scope_exit(cb) auto CONCAT(scope_exit_, __COUNTER__) = make_scope_guard(cb); #define CONCAT(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b template <class Callback> ...
#ifndef COMMON_INCLUDED #define COMMON_INCLUDED #pragma once #define _WIN32_WINNT _WIN32_WINNT_WINXP #define NOMINMAX #include <Windows.h> #define at_scope_exit(cb) auto CONCAT(scope_exit_, __COUNTER__) = make_scope_guard(cb); #define CONCAT(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b template <class Callback> ...
Use = delete for deleted members.
Use = delete for deleted members. git-svn-id: 43fbdb37a1fde3402d8d2922bf6a94a542354cf8@402 41632dc1-7a16-0410-8441-a1f66f767317
C
mit
Bekenn/wcdx,Bekenn/wcdx
a98d2b55c79a9959efd814bd9a316415ebc8dac8
bin/varnishtest/vtc_h2_priv.h
bin/varnishtest/vtc_h2_priv.h
#include "vqueue.h" #define ITER_DONE(iter) (iter->buf == iter->end ? hpk_done : hpk_more) struct dynhdr { struct hpk_hdr header; VTAILQ_ENTRY(dynhdr) list; }; VTAILQ_HEAD(dynamic_table,dynhdr); struct hpk_iter { struct hpk_ctx *ctx; char *orig; char *buf; char *end; }; const struct txt * tbl_get_key(co...
/*- * Copyright (c) 2008-2016 Varnish Software AS * All rights reserved. * * Author: Guillaume Quintard <guillaume.quintard@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of s...
Add a copyright to this file
Add a copyright to this file
C
bsd-2-clause
gquintard/Varnish-Cache,gquintard/Varnish-Cache,gquintard/Varnish-Cache,gquintard/Varnish-Cache
f0b45d88d5e1c1737e75cdf4eceda4e5a01461b5
include/sys/mman.h
include/sys/mman.h
/* * Copyright (C) 2014, Galois, Inc. * This sotware is distributed under a standard, three-clause BSD license. * Please see the file LICENSE, distributed with this software, for specific * terms and conditions. */ #ifndef MINLIBC_MMAN_H #define MINLIBC_MMAN_H #include <sys/types.h> #define PROT_NONE ...
/* * Copyright (C) 2014, Galois, Inc. * This sotware is distributed under a standard, three-clause BSD license. * Please see the file LICENSE, distributed with this software, for specific * terms and conditions. */ #ifndef MINLIBC_MMAN_H #define MINLIBC_MMAN_H #include <sys/types.h> #define PROT_NONE ...
Add more flags for mmap() to ignore.
Add more flags for mmap() to ignore.
C
bsd-3-clause
GaloisInc/minlibc,GaloisInc/minlibc
532931d29b6fb5e28f3aa3904f20b097014ab5e8
include/LoggerStream.h
include/LoggerStream.h
// ============================================================================= // Licensed under the MIT License <http://opensource.org/licenses/MIT>. // Copyright (c) 2017 Kevin T Qi // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation...
Implement operator<< with template method
Implement operator<< with template method
C
mit
kevintqi/stream-like-logger
672c11b41fe66f96a3f3c6b16f839c1edf66a384
test/CFrontend/2005-04-09-ComplexOps.c
test/CFrontend/2005-04-09-ComplexOps.c
// %llvmgcc %s -S -o - #include <math.h> #define I 1.0iF double __complex test(double X) { return ~-(X*I); } _Bool EQ(double __complex A, double __complex B) { return A == B; } _Bool NE(double __complex A, double __complex B) { return A != B; }
// RUN: %llvmgcc %s -S -o - #include <math.h> #define I 1.0iF double __complex test(double X) { return ~-(X*I); } _Bool EQ(double __complex A, double __complex B) { return A == B; } _Bool NE(double __complex A, double __complex B) { return A != B; }
Add the RUN: prefix to the start of the run line so this test doesn't fail. BTW .. isn't the date on this funky? We haven't reachec 2005-05-09 yet???
Add the RUN: prefix to the start of the run line so this test doesn't fail. BTW .. isn't the date on this funky? We haven't reachec 2005-05-09 yet??? git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@21432 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,l...
15378c98e1987964299a406232dc405a11c7a413
trace.h
trace.h
#ifndef _TRACE_H_ #define _TRACE_H_ #include <stdio.h> #include <errno.h> #define TRACE ERROR #define ERROR(fmt,arg...) \ fprintf(stderr, "%s: "fmt, program_invocation_short_name, ##arg) #define FATAL(fmt,arg...) do { \ ERROR(fmt, ##arg); \ exit(1); \ } while (0) #endif
#ifndef _TRACE_H_ #define _TRACE_H_ #include <stdio.h> #include <errno.h> #ifdef DEBUG #define TRACE ERROR #else #define TRACE(fmt,arg...) ((void) 0) #endif #define ERROR(fmt,arg...) \ fprintf(stderr, "%s: "fmt, program_invocation_short_name, ##arg) #define FATAL(fmt,arg...) do { \ ERROR(fmt, ##arg); \...
Make TRACE depend on DEBUG.
Make TRACE depend on DEBUG.
C
lgpl-2.1
dimm0/tacc_stats,sdsc/xsede_stats,rtevans/tacc_stats_old,ubccr/tacc_stats,aaichsmn/tacc_stats,TACC/tacc_stats,dimm0/tacc_stats,rtevans/tacc_stats_old,sdsc/xsede_stats,TACC/tacc_stats,TACCProjects/tacc_stats,dimm0/tacc_stats,TACCProjects/tacc_stats,TACCProjects/tacc_stats,TACC/tacc_stats,aaichsmn/tacc_stats,ubccr/tacc_s...
3124e376b93054e742b6cd302e5c71bf8ccf2949
tests/regression/15-deadlock/14-missing-unlock.c
tests/regression/15-deadlock/14-missing-unlock.c
// PARAM: --set ana.activated[+] deadlock --set ana.activated[+] threadJoins #include <pthread.h> int x; pthread_mutex_t m1 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t m2 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t m3 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t m4 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t m5 = P...
Add problematic example with missed must deadlock
Add problematic example with missed must deadlock
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
2873c139d02d994834029349bc72b417108bad6c
tests/regression/24-octagon/17-problem-pointer.c
tests/regression/24-octagon/17-problem-pointer.c
void change(int *p) { (*p)++; } int a; int main() { a = 5; int *p = &a; change(p); assert(a - 6 == 0); return 0; }
// PARAM: --sets solver td3 --set ana.activated "['base','threadid','threadflag','mallocWrapper','octApron']" void change(int *p) { (*p)++; } int a; int main() { a = 5; int *p = &a; change(p); assert(a - 6 == 0); return 0; }
Add parameters to a test
Add parameters to a test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
45cc7865e4142582460218bed288d41d60428bb4
src/chrono_vehicle/tracked_vehicle/ChTrackSubsysDefs.h
src/chrono_vehicle/tracked_vehicle/ChTrackSubsysDefs.h
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
Add enum constant TrackCollide::ALL with a value 0xFFFF.
Add enum constant TrackCollide::ALL with a value 0xFFFF. This allows statements such as: vehicle.SetCollide(TrackCollide::ALL & ~TrackCollide::IDLER_RIGHT); to enable contact on all parts except the right idler wheel.
C
bsd-3-clause
dariomangoni/chrono,rserban/chrono,armanpazouki/chrono,amelmquist/chrono,jcmadsen/chrono,dariomangoni/chrono,andrewseidl/chrono,armanpazouki/chrono,jcmadsen/chrono,projectchrono/chrono,rserban/chrono,Milad-Rakhsha/chrono,Milad-Rakhsha/chrono,armanpazouki/chrono,andrewseidl/chrono,rserban/chrono,jcmadsen/chrono,rserban/...
380587f16b04bf1ad24b8cfb7a105711e8e8ab62
Source/PKMacros.h
Source/PKMacros.h
// // PKMacros.h // PKToolBox // // Created by Pavel Kunc on 17/07/2013. // Copyright (c) 2013 PKToolBox. All rights reserved. // #define PK_NIL_IF_NULL(obj) ((obj == [NSNull null]) ? nil : obj) #define PK_NULL_IF_NIL(obj) ((obj == nil) ? [NSNull null] : obj) #define PK_BOOL_TO_LOCALIZED_STRING(val) ((val == YES)...
// // PKMacros.h // PKToolBox // // Created by Pavel Kunc on 17/07/2013. // Copyright (c) 2013 PKToolBox. All rights reserved. // #pragma mark - Foundation #define PK_NIL_IF_NULL(obj) ((obj == (id)[NSNull null]) ? nil : obj) #define PK_NULL_IF_NIL(obj) ((obj == nil) ? [NSNull null] : obj) #define PK_DEFAULT_IF_NI...
Fix warnings and reorganize file.
Fix warnings and reorganize file.
C
mit
prajput/pkCode,pk/pktoolbox,prajput/pkCode,pk/pktoolbox
ca4f57fdff9f6c875cd96335dc6d73206bcb8fce
lua/myprog.c
lua/myprog.c
#include <math.h> #include "lua5.2/lua.h" #include "lua5.2/lauxlib.h" // Functions exposed to Lua static int l_sin(lua_State *L) { // Verify that the argument is a number double d = luaL_checknumber(L, 1); // Call the function, and return the result lua_pushnumber(L, sin(d)); return 1; // Single r...
#include <math.h> #include "lua5.2/lua.h" #include "lua5.2/lauxlib.h" // Functions exposed to Lua static int l_sin(lua_State *L) { double value_as_number = luaL_checknumber(L, 1); // Call the function, and return the result lua_pushnumber(L, sin(value_as_number)); return 1; // Single result } static ...
Change comment into descriptive variable name
Change comment into descriptive variable name
C
apache-2.0
dspinellis/effective-debugging,dspinellis/effective-debugging,dspinellis/effective-debugging,dspinellis/effective-debugging,dspinellis/effective-debugging
45f62c1e3f74333affdeda3053630e78fcaa4aa1
bibdesk/BDSKSearchGroupViewController.h
bibdesk/BDSKSearchGroupViewController.h
// // 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 conditions ar...
Add new header file. (or: xcode is stupid)
Add new header file. (or: xcode is stupid) git-svn-id: cb3fc60f0f557b927b8032d8a94e869b6f9f230b@318 0fceea05-a30d-0410-8a8b-80ef821fb0a1
C
bsd-3-clause
jasongrout/skim,camillobruni/skim,jasongrout/skim,camillobruni/skim,camillobruni/skim,camillobruni/skim
759f87259e5cfada2a9d84118e26d21d227e3718
Portal/Portal.h
Portal/Portal.h
// // Portal.h // Portal // // Created by Guido Marucci Blas on 3/14/17. // Copyright © 2017 Guido Marucci Blas. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Portal. FOUNDATION_EXPORT double PortalVersionNumber; //! Project version string for Portal. FOUNDATION_EXPORT const unsi...
// // Portal.h // Portal // // Created by Guido Marucci Blas on 3/14/17. // Copyright © 2017 Guido Marucci Blas. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Portal. FOUNDATION_EXPORT double PortalVersionNumber; //! Project version string for Portal. FOUNDATION_EXPORT const unsi...
Add missing Yoga headers to umbrella header.
Add missing Yoga headers to umbrella header. This is needed to avoid warnings.
C
mit
guidomb/Portal,guidomb/Portal,guidomb/Portal,guidomb/Portal
aa1a7a8b481411f027d3931a2d52382398345ac1
tests/test-x509.c
tests/test-x509.c
#include <mongoc.h> #include "mongoc-ssl-private.h" #include "TestSuite.h" #ifdef MONGOC_ENABLE_OPENSSL static void test_extract_subject (void) { char *subject; subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL); ASSERT_CMPSTR (subject, "C=IS,ST=Reykjavik,L=Reykjavik,O=MongoDB,OU=Drivers,CN=server"); ...
#include <mongoc.h> #include "mongoc-ssl-private.h" #include "TestSuite.h" #ifdef MONGOC_ENABLE_OPENSSL static void test_extract_subject (void) { char *subject; subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL); ASSERT_CMPSTR (subject, "C=US,ST=California,L=Palo Alto,O=MongoDB,OU=Drivers,CN=server");...
Fix last-minute certificate subject changes
Fix last-minute certificate subject changes
C
apache-2.0
christopherjwang/mongo-c-driver,mongodb/mongo-c-driver,bjori/mongo-c-driver,ajdavis/mongo-c-driver,ajdavis/mongo-c-driver,beingmeta/mongo-c-driver,jmikola/mongo-c-driver,ajdavis/mongo-c-driver,mongodb/mongo-c-driver,acmorrow/mongo-c-driver,Machyne/mongo-c-driver,rcsanchez97/mongo-c-driver,christopherjwang/mongo-c-drive...
b834040b9426954cde912b685af7505b741dab4a
control.c
control.c
#include <stdio.h> #include <string.h> #include <math.h> struct Packet { unsigned int status: 1; unsigned int group: 2; unsigned int plug: 2; }; unsigned int packet_to_binary(struct Packet packet) { unsigned int binary = (packet.status << 7); binary |= ((packet.group & 0x3) << 2); binary |= (p...
#include <stdio.h> #include <string.h> #include <math.h> struct Packet { unsigned int status: 1; unsigned int group: 2; unsigned int plug: 2; }; unsigned int packet_to_binary(struct Packet packet) { unsigned int binary = (packet.status << 7); binary |= ((packet.group & 0x3) << 2); binary |= (p...
Rename printBinary function and write to string instead
Rename printBinary function and write to string instead printBinary is now called btoa (binary to ascii) btoa accepts the number, a buffer and a number of digits buffer length must be (digits + 1)
C
agpl-3.0
jackwilsdon/lightcontrol,jackwilsdon/lightcontrol
ac16931e26eee975b8a80dd7aa36c393de59a349
src/libclientserver/Client.h
src/libclientserver/Client.h
/** * @class Client * @brief Factor class for being able to generate connections * * This class will create connections using the common interface ClientBase * which is based on connections strings. The connections should be completly * abstracted from the parent classes other than this entry point. */ class ...
/** * @class Client * @brief Factor class for being able to generate connections * * This class will create connections using the common interface ClientBase * which is based on connections strings. The connections should be completly * abstracted from the parent classes other than this entry point. */ class ...
Fix compile error with missing function declare
Fix compile error with missing function declare
C
mit
mistralol/libclientserver,mistralol/libclientserver
e6f3746ef6ef8910e3e420e78f2a073f8e5a9084
src/nbds.0.4.3/include/mem.h
src/nbds.0.4.3/include/mem.h
/* * Written by Josh Dybnis and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain */ #ifndef MEM_H #define MEM_H void *nbd_malloc (size_t n) __attribute__((malloc, alloc_size(1))); void nbd_free (void *x) __attribute__((nonnull)); #endif//MEM_H
/* * Written by Josh Dybnis and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain */ #ifndef MEM_H #define MEM_H void *nbd_malloc (size_t n) __attribute__((malloc)); void nbd_free (void *x) __attribute__((nonnull)); #endif//MEM_H
Remove a warning from NBDS.
Remove a warning from NBDS.
C
mit
eaburns/pbnf,eaburns/pbnf,eaburns/pbnf,eaburns/pbnf
450fc5d62732ee8a97220114a02c8393c1b67182
include/kernel.h
include/kernel.h
#ifndef __KERNEL_H__ #define __KERNEL_H__ #include <task.h> typedef struct kernel_global { TaskList *task_list; } KernelGlobal; #define TASK_MAX 30 #define TASK_STACK_SIZE 1000 #define TASK_PRIORITY_MAX 10 #define SWI_ENTRY_POINT 0x28 #define DATA_REGION_BASE 0x218000 #define CPU_MODE_USER 0x10 #define CPU_MODE_S...
#ifndef __KERNEL_H__ #define __KERNEL_H__ #include <task.h> typedef struct kernel_global { TaskList *tlist; FreeList *flist; } KernelGlobal; #define TASK_MAX 30 #define TASK_STACK_SIZE 512 #define TASK_PRIORITY_MAX 10 #define SWI_ENTRY_POINT 0x28 #define DATA_REGION_BASE 0x218000 #define CPU_MODE_USER 0x10 #defi...
Modify KernelGlobal structure; decrease TASK_STACK_SIZE
Modify KernelGlobal structure; decrease TASK_STACK_SIZE
C
mit
gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel
a726bc24664b69fd2f5899dab2a6155d3bd6b963
Core/CoreDefines.h
Core/CoreDefines.h
// For conditions of distribution and use, see copyright notice in license.txt #ifndef incl_CoreDefines_h #define incl_CoreDefines_h // useful defines #define SAFE_DELETE(p) { delete p; p=0; } #define SAFE_DELETE_ARRAY(p) { delete [] p; p=0; } #define NUMELEMS(x) (sizeof(x)/sizeof(x[0])) /// Use this template to d...
// For conditions of distribution and use, see copyright notice in license.txt #ifndef incl_CoreDefines_h #define incl_CoreDefines_h // useful defines #define SAFE_DELETE(p) { delete p; p=0; } #define SAFE_DELETE_ARRAY(p) { delete [] p; p=0; } #define NUMELEMS(x) (sizeof(x)/sizeof(x[0])) /// Use this template to d...
Fix checked_static_cast to allow null pointers.
Fix checked_static_cast to allow null pointers.
C
apache-2.0
antont/tundra,jesterKing/naali,antont/tundra,antont/tundra,realXtend/tundra,pharos3d/tundra,jesterKing/naali,jesterKing/naali,AlphaStaxLLC/tundra,antont/tundra,BogusCurry/tundra,BogusCurry/tundra,BogusCurry/tundra,antont/tundra,realXtend/tundra,jesterKing/naali,AlphaStaxLLC/tundra,pharos3d/tundra,AlphaStaxLLC/tundra,Bo...
abd31a208639f0be773f35d1c161fe7fdcb138db
src/main/entity/components/SkillComponent.h
src/main/entity/components/SkillComponent.h
#ifndef SKILLCOMPONENT_H_ #define SKILLCOMPONENT_H_ /** * Data structure to represent an Entity's skill. */ typedef struct { int ranks; ///< Current ranks in the skill int xp; ///< Amount of XP earned towards next rank } SkillComponent; /** * Enumeration for identifying different skills. */ enum skill_t { NOSK...
#ifndef SKILLCOMPONENT_H_ #define SKILLCOMPONENT_H_ /** * Data structure to represent an Entity's skill. */ typedef struct { int ranks; ///< Current ranks in the skill int xp; ///< Amount of XP earned towards next rank } SkillComponent; /** * Enumeration for identifying different skills. */ enum skill_t { Mele...
Fix PARENT_SKILLS declaration; remove NOSKILL
Fix PARENT_SKILLS declaration; remove NOSKILL Why would anyone want to be unskilled anyway?
C
mit
Kromey/roglick
0a574c093691f0a16a3016456475ec98d57c1109
src/ia64/Gget_proc_info.c
src/ia64/Gget_proc_info.c
/* libunwind - a platform-independent unwind library Copyright (C) 2002 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
Call ia64_make_proc_info() to ensure that the proc_info is valid.
(unw_get_proc_info): Call ia64_make_proc_info() to ensure that the proc_info is valid. 2002/12/11 12:26:26-08:00 mostang.com!davidm Rename: src/ia64/Lget_proc_info.c -> src/ia64/Gget_proc_info.c (Logical change 1.30)
C
mit
dagar/libunwind,geekboxzone/mmallow_external_libunwind,krytarowski/libunwind,cms-externals/libunwind,geekboxzone/lollipop_external_libunwind,rantala/libunwind,geekboxzone/lollipop_external_libunwind,unkadoug/libunwind,zeldin/platform_external_libunwind,libunwind/libunwind,CyanogenMod/android_external_libunwind,android-...
5a0d65b27682ea330b8d2c88edae4ff9e44f8098
src/plugins/crypto/compile_gcrypt.c
src/plugins/crypto/compile_gcrypt.c
/** * @file * * @brief tests if compilation works (include and build paths set correct, etc...) * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ #include <gcrypt.h> gcry_cipher_hd_t nothing () { gcry_cipher_hd_t elektraCryptoHandle = NULL; return elektraCryptoHandle; } int main...
/** * @file * * @brief tests if compilation works (include and build paths set correct, etc...) * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ #include <gcrypt.h> gcry_cipher_hd_t nothing (void) { gcry_cipher_hd_t elektraCryptoHandle = NULL; return elektraCryptoHandle; } int ...
Fix warning in GCrypt test program
Crypto: Fix warning in GCrypt test program
C
bsd-3-clause
e1528532/libelektra,e1528532/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,e1528532/libelektra,e1528532/libelektra,BernhardDenner/libelektra,petermax2/libelektra,BernhardDenner/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,pe...
e280eda845dd538c8e37d2d5e526d242e3099d41
tests/regression/08-malloc_null/02-paths-malloc.c
tests/regression/08-malloc_null/02-paths-malloc.c
// PARAM: --set ana.activated "['base','threadid','threadflag','escape','malloc_null','mallocWrapper']" --set ana.base.privatization none #include <stdlib.h> #include <stdio.h> #include <assert.h> int main(void) { int *v, *u, r; u = (int*)malloc(sizeof(*u)); v = (int*)malloc(sizeof(*v)); *u = 10; // WARN ...
// PARAM: --set ana.activated "['base','threadid','threadflag','escape','malloc_null','mallocWrapper']" --set ana.base.privatization none #include <stdlib.h> #include <stdio.h> #include <assert.h> int main(void) { int *v, *u, r; u = (int*)malloc(sizeof(*u)); v = (int*)malloc(sizeof(*v)); *u = 10; // WARN ...
Remove unnecessary assert(0) from 08/02
Remove unnecessary assert(0) from 08/02
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
df52622b317e55b88c6f9d62e0273defa0164a35
tests/ncc/struct_init_array_of_padded_structs/in.c
tests/ncc/struct_init_array_of_padded_structs/in.c
#include <assert.h> int main() { struct { struct { int *a; int b; } a[2]; } b = { .a[1].b = 1 }; assert(sizeof b.a == 32); assert(sizeof b.a[0] == 16); assert(b.a[1].b == 1); return 0; }
Add a similar test to the previous one, with arrays this time.
Add a similar test to the previous one, with arrays this time.
C
mit
orodley/naive,orodley/naive,orodley/naive,orodley/naive
1c0b391419b035f78b41ee3bce8934f42896eef2
browser/ui/atom_event_processing_window.h
browser/ui/atom_event_processing_window.h
// Copyright (c) 2013 GitHub, Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_UI_ATOM_EVENT_PROCESSING_WINDOW_H_ #define ATOM_BROWSER_UI_ATOM_EVENT_PROCESSING_WINDOW_H_ #import <Cocoa/Cocoa.h> // Override NSWindow ...
// Copyright (c) 2013 GitHub, Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_UI_ATOM_EVENT_PROCESSING_WINDOW_H_ #define ATOM_BROWSER_UI_ATOM_EVENT_PROCESSING_WINDOW_H_ #import <Cocoa/Cocoa.h> #import "ui/base/coco...
Fix the black devtools view.
Fix the black devtools view. Without using UnderlayOpenGLHostingWindow the devtools view would just be black.
C
mit
baiwyc119/electron,IonicaBizauKitchen/electron,farmisen/electron,dahal/electron,bright-sparks/electron,darwin/electron,sky7sea/electron,greyhwndz/electron,sircharleswatson/electron,vipulroxx/electron,JesselJohn/electron,vaginessa/electron,hokein/atom-shell,thomsonreuters/electron,kenmozi/electron,brave/muon,Zagorakiss/...
fc18109c3d40efea326780bbd020f8b9dfcd71b7
include/Math/NLEMath.h
include/Math/NLEMath.h
/* ----------------------------------------------------------------------------- This source file is part of NLRE (NonLinear Rendering Engine) For the latest info, see https://github.com/AlexandrSachkov/NonLinearRenderingEngine Copyright (c) 2014 NonLinear Rendering Engine Team Permission is hereby granted, free of c...
Revert "original structure is out of sync with github"
Revert "original structure is out of sync with github" This reverts commit 8a793e097c75856b7fdd55a5f9d4ed1984e81cae.
C
mit
AlexandrSachkov/NonLinearEngine
cb232f9f912e801a596e8c99191ed538021cd702
test2/vla/normal_alloca_after_vla.c
test2/vla/normal_alloca_after_vla.c
// RUN: %ocheck 0 %s void abort(void); g() { return 0; } main() { int n = 5; // an unaligned value int vla[n]; vla[0] = 1; vla[1] = 2; vla[2] = 3; vla[3] = 4; { // this alloca is done in order after the vla, // but is coalesced to before the VLA by the stack logic int x = 99; if(x != 99) abort(); ...
Test normal (backend-)allocas inside VLA scope
Test normal (backend-)allocas inside VLA scope
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
a94d0b43cf4cf548d828fec548790a6da073bec1
include/paper.h
include/paper.h
#ifndef PAPER_H #define PAPER_H #include <stdbool.h> bool paper_is_start_of_first_word(char *ptr) { // Lookback and check if that is a NUL then check that we aren't // currently on a space. return (*(ptr - 1) == KATA_NUL && *ptr != KATA_SPACE); } bool paper_is_start_of_subsequent_word(char *ptr) { //...
#ifndef PAPER_H #define PAPER_H #include <stdbool.h> bool paper_is_start_of_first_word(size_t word_count, char *ptr) { return (word_count == 0 && *ptr != KATA_SPACE); } bool paper_is_start_of_subsequent_word(char *ptr) { // Lookback and see if the prior character was a space then check that // we aren't ...
Refactor to fix potential buffer overflow.
Refactor to fix potential buffer overflow.
C
mit
jbenner-radham/pencil-durability-kata-c
f19341dec7361451f100a882a023b14583454d7e
test/CFrontend/extern-weak.c
test/CFrontend/extern-weak.c
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc #if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) void foo() __attribute__((weak_import)); #else void foo() __attribute__((weak)); #endif void bar() { foo(); }
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc #if !defined(__linux__) && !defined(__FreeBSD__) && \ !defined(__OpenBSD__) && !defined(__CYGWIN__) void foo() __attribute__((weak_import)); #else void foo() __attribute__((weak)); #endif void ...
Make this pass for CYGWIN.
Make this pass for CYGWIN. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@44354 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llv...
1110425df2e58bdaeb623f9c3a8de84bccee7381
test/Driver/noexecstack.c
test/Driver/noexecstack.c
// RUN: clang -### %s -c -o tmp.o -Wa,--noexecstack | grep "-mnoexecstack"
// RUN: clang -### %s -c -o tmp.o -Wa,--noexecstack | grep "mnoexecstack"
Remove the leading hyphen so that grep doesn't parse it as one long option :)
Remove the leading hyphen so that grep doesn't parse it as one long option :) git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@133491 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
dc6f838f1d6b4c7dabaaaf0740e194298f9d4ff4
DDMathParser/DDMathParser.h
DDMathParser/DDMathParser.h
// // DDMathParser.h // DDMathParser // // Created by Dave DeLong on 11/20/10. // Copyright 2010 Home. All rights reserved. // #import "DDMathEvaluator.h" #import "DDExpression.h" #import "DDParser.h" #import "DDTypes.h" #import "NSString+DDMathParsing.h" #define DDRuleTemplateAnyNumber @"__num" #define DDRuleTem...
// // DDMathParser.h // DDMathParser // // Created by Dave DeLong on 11/20/10. // Copyright 2010 Home. All rights reserved. // #import "DDMathEvaluator.h" #import "DDExpression.h" #import "DDParser.h" #import "DDTypes.h" #import "NSString+DDMathParsing.h" #define DDRuleTemplateAnyNumber @"__num" #define DDRuleTem...
Fix default value of PERCENT_SIGN_AS_MOD
Fix default value of PERCENT_SIGN_AS_MOD
C
mit
mrackwitz/DDMathParser,davedelong/DDMathParser,carabina/DDMathParser,hyperoslo/HYPMathParser,carabina/DDMathParser,mrackwitz/DDMathParser,davedelong/DDMathParser
3440d0b857fa6def37c1a4185ac9602be2393c9c
tools/obj2yaml/obj2yaml.h
tools/obj2yaml/obj2yaml.h
//===------ utils/obj2yaml.hpp - obj2yaml conversion tool -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // // This file declares some helper routines, and also the for...
//===------ utils/obj2yaml.hpp - obj2yaml conversion tool -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // // This file declares some helper routines, and also the for...
Fix include guards to match new location.
Fix include guards to match new location. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@178877 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers...
691cb4414e03ca9cf56b86cf76740078c4208080
include/frozen/bits/constexpr_assert.h
include/frozen/bits/constexpr_assert.h
/* * Frozen * Copyright 2016 QuarksLab * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Lice...
/* * Frozen * Copyright 2016 QuarksLab * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Lice...
Use regular assert for static_assert, it's C++14 compatible
Use regular assert for static_assert, it's C++14 compatible works everywhere... but for MVSC :-/
C
apache-2.0
serge-sans-paille/frozen,serge-sans-paille/frozen
19350bd42ffbaec283ccb6caa9199accc2c8f074
generate/templates/manual/include/cleanup_handle.h
generate/templates/manual/include/cleanup_handle.h
#ifndef NODEGIT_CLEANUP_HANDLE_H #define NODEGIT_CLEANUP_HANDLE_H #include <map> #include <memory> namespace nodegit { class CleanupHandle { public: CleanupHandle(); virtual ~CleanupHandle(); }; class FilterRegistryCleanupHandles : public CleanupHandle { public: std::map<std::string, std::share...
#ifndef NODEGIT_CLEANUP_HANDLE_H #define NODEGIT_CLEANUP_HANDLE_H #include <map> #include <memory> #include <string> namespace nodegit { class CleanupHandle { public: CleanupHandle(); virtual ~CleanupHandle(); }; class FilterRegistryCleanupHandles : public CleanupHandle { public: std::map<std::...
Fix a reference error when compiling with VC2019
Fix a reference error when compiling with VC2019
C
mit
nodegit/nodegit,jmurzy/nodegit,nodegit/nodegit,jmurzy/nodegit,jmurzy/nodegit,nodegit/nodegit,jmurzy/nodegit,nodegit/nodegit,nodegit/nodegit,jmurzy/nodegit
46d81f2bcfa56dc2579d26b1d38b86051119c7ca
src/Core/Framework/QScriptEngineHelpers.h
src/Core/Framework/QScriptEngineHelpers.h
// For conditions of distribution and use, see copyright notice in license.txt #include <QScriptEngine> #include <QMetaType> // The following functions help register a custom QObject-derived class to a QScriptEngine. // See http://lists.trolltech.com/qt-interest/2007-12/thread00158-0.html . template <typename Tp> QSc...
// For conditions of distribution and use, see copyright notice in license.txt #include <QScriptEngine> #include <QMetaType> // The following functions help register a custom QObject-derived class to a QScriptEngine. // See http://lists.trolltech.com/qt-interest/2007-12/thread00158-0.html . template <typename Tp> QSc...
Use dynamic_cast in qScriptValueToQObject as qobject_cast fails for some metatypes such as Entity*. However, assert that if dynamic_cast is null, so is qobject_cast.
Use dynamic_cast in qScriptValueToQObject as qobject_cast fails for some metatypes such as Entity*. However, assert that if dynamic_cast is null, so is qobject_cast.
C
apache-2.0
realXtend/tundra,jesterKing/naali,pharos3d/tundra,jesterKing/naali,jesterKing/naali,AlphaStaxLLC/tundra,AlphaStaxLLC/tundra,BogusCurry/tundra,jesterKing/naali,pharos3d/tundra,jesterKing/naali,AlphaStaxLLC/tundra,jesterKing/naali,BogusCurry/tundra,jesterKing/naali,BogusCurry/tundra,BogusCurry/tundra,pharos3d/tundra,real...
3241c8f801152bcaf30ca852e7ee1a14c128f7c8
v0100/tests/c99.c
v0100/tests/c99.c
/* How to compile for DOS (all mode(l)s: tiny/.COM, small/.EXE, huge/.EXE): smlrcc -dost c99.c -o c99dt.com smlrcc -doss c99.c -o c99ds.exe smlrcc -dosh c99.c -o c99dh.exe How to compile for Windows: smlrcc -win c99.c -o c99w.exe How to compile for Linux: smlrcc -linux c99.c -o c99l */ #inc...
Add a small C99 test
Add a small C99 test
C
bsd-2-clause
gdos/SmallerC,JianpingZeng/SmallerC,JianpingZeng/SmallerC,gdos/SmallerC
ade2938ab94b28aa3dd2574bf5752e1e5a8c6641
libavutil/pca.h
libavutil/pca.h
/* * Principal component analysis * Copyright (c) 2004 Michael Niedermayer <michaelni@gmx.at> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, o...
/* * Principal component analysis * Copyright (c) 2004 Michael Niedermayer <michaelni@gmx.at> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, o...
Add prototypes to header (based on code by ramiro)
Add prototypes to header (based on code by ramiro) git-svn-id: a4d7c1866f8397a4106e0b57fc4fbf792bbdaaaf@14808 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
C
lgpl-2.1
prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg
114548ece9c6664d069e3e8db33e04a5e74acf75
ADX2Manager/ADX2Manager.h
ADX2Manager/ADX2Manager.h
#ifndef CCADX2Manager_Manager_h #define CCADX2Manager_Manager_h #include "Manager.h" #include "CueSheet.h" #endif
#ifndef CCADX2Manager_Manager_h #define CCADX2Manager_Manager_h #include "Manager.h" #include "CueSheet.h" #include "SharedCueSheet.h" #endif
Add SharedCueSheet to global headers
Add SharedCueSheet to global headers
C
mit
giginet/CCADX2Manager,giginet/CCADX2Manager,giginet/CCADX2Manager,giginet/CCADX2Manager
67c6e446503055f3b29f2ecd8269b09f5743ab85
insts/jg/FREEVERB/denormals.h
insts/jg/FREEVERB/denormals.h
// Macro for killing denormalled numbers // // Written by Jezar at Dreampoint, June 2000 // http://www.dreampoint.co.uk // Based on IS_DENORMAL macro by Jon Watte // This code is public domain #ifndef _denormals_ #define _denormals_ #if 0 #define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f8000...
// Macro for killing denormalled numbers // // Written by Jezar at Dreampoint, June 2000 // http://www.dreampoint.co.uk // Based on IS_DENORMAL macro by Jon Watte // This code is public domain #ifndef _denormals_ #define _denormals_ #if defined(i386) #ifdef NOMORE // original code doesn't work on recent ...
Replace denormalise macro, broken on recent gcc's.
Replace denormalise macro, broken on recent gcc's.
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
e0da7bce8c184f72a42a49990b8de158ab828423
platform/shared/common/RhoFatalError.h
platform/shared/common/RhoFatalError.h
#ifndef _RHOFATALERROR_H_ #define _RHOFATALERROR_H_ #include "RhoPort.h" #ifdef OS_SYMBIAN #include <e32std.h> #endif namespace rho{ namespace common{ class CRhoFatalError{ public: static void processFatalError(){ #ifdef RHO_DEBUG #if defined (OS_WINDOWS) //__debugbreak(); ...
#ifndef _RHOFATALERROR_H_ #define _RHOFATALERROR_H_ #include "RhoPort.h" #ifdef OS_SYMBIAN #include <e32std.h> #endif namespace rho{ namespace common{ class CRhoFatalError{ public: static void processFatalError(){ #ifdef RHO_DEBUG #if defined (OS_WINDOWS) //__debugbreak(); ...
Support RHO_ASSERT in Debug mode
Support RHO_ASSERT in Debug mode
C
mit
pslgoh/rhodes,UIKit0/rhodes,louisatome/rhodes,rhosilver/rhodes-1,pslgoh/rhodes,nosolosoftware/rhodes,UIKit0/rhodes,louisatome/rhodes,rhomobile/rhodes,watusi/rhodes,jdrider/rhodes,tauplatform/tau,pslgoh/rhodes,rhosilver/rhodes-1,pslgoh/rhodes,pslgoh/rhodes,watusi/rhodes,rhomobile/rhodes,UIKit0/rhodes,tauplatform/tau,rho...
e63f331dd3a1f20e0f5d961a3569dd75b8104994
tests/regression/62-abortUnless/03-unsound-abortUnless.c
tests/regression/62-abortUnless/03-unsound-abortUnless.c
// PARAM: --set ana.activated[+] abortUnless #include <goblint.h> int zero(int cond) { return 0; } void assume_abort_if_not(int cond) { if (cond) { cond = zero(cond); } else { abort(); } } int main(void) { int x; assume_abort_if_not(x == 8); __goblint_check(x==8); // UNKNOWN! }
Add test abortUnless unsound test
Add test abortUnless unsound test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
a6b10190b8c629901b451a1519b49e2cee2bb4e1
ouzel/scene/SceneManager.h
ouzel/scene/SceneManager.h
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #include "utils/Types.h" #include "utils/Noncopyable.h" namespace ouzel { class Engine; namespace scene { class SceneManager: public Noncopyable { friend Engine; public: ...
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #include "utils/Types.h" #include "utils/Noncopyable.h" namespace ouzel { class Engine; namespace scene { class SceneManager: public Noncopyable { friend Engine; public: ...
Set scene and nextScene to null
Set scene and nextScene to null
C
unlicense
elvman/ouzel,elvman/ouzel,Hotspotmar/ouzel,elnormous/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,Hotspotmar/ouzel
3dee78190789bf7961a326101e417203d05253f5
master/mcoils.c
master/mcoils.c
#include "../modlib.h" #include "../parser.h" #include "mtypes.h" #include "mcoils.h" //Use external master configuration extern MODBUSMasterStatus MODBUSMaster;
Add function for building request01
Add function for building request01
C
mit
Jacajack/modlib
c018da163f50acc6add9df3d74905ec150ce8573
generate/templates/manual/include/callback_wrapper.h
generate/templates/manual/include/callback_wrapper.h
#ifndef CALLBACK_WRAPPER_H #define CALLBACK_WRAPPER_H #include <nan.h> #include <uv.h> using namespace v8; using namespace node; class CallbackWrapper { Nan::Callback* jsCallback; // throttling data, used for callbacks that need to be throttled int throttle; // in milliseconds - if > 0, calls to the JS callba...
#ifndef CALLBACK_WRAPPER_H #define CALLBACK_WRAPPER_H #include <nan.h> #include <uv.h> using namespace v8; using namespace node; class CallbackWrapper { Nan::Callback* jsCallback; // throttling data, used for callbacks that need to be throttled int throttle; // in milliseconds - if > 0, calls to the JS callba...
Use wider int to calculate throttle window
Use wider int to calculate throttle window
C
mit
nodegit/nodegit,jmurzy/nodegit,jmurzy/nodegit,jmurzy/nodegit,nodegit/nodegit,nodegit/nodegit,nodegit/nodegit,nodegit/nodegit,jmurzy/nodegit,jmurzy/nodegit
cb094452ae663fbc04e8f7c01f3864dee30bf98f
protocols/jabber/jingle/libjingle/talk/base/base64.h
protocols/jabber/jingle/libjingle/talk/base/base64.h
//********************************************************************* //* C_Base64 - a simple base64 encoder and decoder. //* //* Copyright (c) 1999, Bob Withers - bwit@pobox.com //* //* This code may be freely used for any purpose, either personal //* or commercial, provided the authors copyright notice remains...
//********************************************************************* //* C_Base64 - a simple base64 encoder and decoder. //* //* Copyright (c) 1999, Bob Withers - bwit@pobox.com //* //* This code may be freely used for any purpose, either personal //* or commercial, provided the authors copyright notice remains...
Make it build with gcc 4.1
Make it build with gcc 4.1 svn path=/branches/kopete/0.12/kopete/; revision=518337
C
lgpl-2.1
josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete
3bc2b96d8ddb01e739161e4c65fe23473135db40
chrome/common/notification_observer.h
chrome/common/notification_observer.h
// Copyright (c) 2009 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_COMMON_NOTIFICATION_OBSERVER_H_ #define CHROME_COMMON_NOTIFICATION_OBSERVER_H_ class NotificationDetails; class NotificationSo...
Add forgotted notification observer header.
Add forgotted notification observer header. git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@9021 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
yitian134/chromium,adobe/chromium,adobe/chromium,ropik/chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,adobe/...
b6d178b4dcb894180356c445b8cde644e7dc4327
Squirrel/SQRLShipItLauncher.h
Squirrel/SQRLShipItLauncher.h
// // SQRLShipItLauncher.h // Squirrel // // Created by Justin Spahr-Summers on 2013-08-12. // Copyright (c) 2013 GitHub. All rights reserved. // #import <Foundation/Foundation.h> // The domain for errors originating within SQRLShipItLauncher. extern NSString * const SQRLShipItLauncherErrorDomain; // The ShipIt ...
// // SQRLShipItLauncher.h // Squirrel // // Created by Justin Spahr-Summers on 2013-08-12. // Copyright (c) 2013 GitHub. All rights reserved. // #import <Foundation/Foundation.h> // The domain for errors originating within SQRLShipItLauncher. extern NSString * const SQRLShipItLauncherErrorDomain; // The ShipIt ...
Clarify XPC connection lifecycle for -launch:
Clarify XPC connection lifecycle for -launch:
C
mit
emiscience/Squirrel.Mac,EdZava/Squirrel.Mac,Squirrel/Squirrel.Mac,EdZava/Squirrel.Mac,Squirrel/Squirrel.Mac,emiscience/Squirrel.Mac,EdZava/Squirrel.Mac,emiscience/Squirrel.Mac,Squirrel/Squirrel.Mac
e3a82a7ee478b4693a7f250004d628e822c105ed
src/bin/e_acpi.h
src/bin/e_acpi.h
#ifdef E_TYPEDEFS /* enum for various event types */ typedef enum _E_Acpi_Type { E_ACPI_TYPE_UNKNOWN = 0, E_ACPI_TYPE_LID, E_ACPI_TYPE_BATTERY, E_ACPI_TYPE_BUTTON, E_ACPI_TYPE_SLEEP, E_ACPI_TYPE_WIFI } E_Acpi_Type; /* struct used to pass to event handlers */ typedef struct _E_Event_Acpi E_Event_Acp...
#ifdef E_TYPEDEFS /* enum for various event types */ typedef enum _E_Acpi_Type { E_ACPI_TYPE_UNKNOWN = 0, E_ACPI_TYPE_BATTERY, E_ACPI_TYPE_BUTTON, E_ACPI_TYPE_FAN, E_ACPI_TYPE_LID, E_ACPI_TYPE_PROCESSOR, E_ACPI_TYPE_SLEEP, E_ACPI_TYPE_POWER, E_ACPI_TYPE_THERMAL, E_ACPI_TYPE_VIDEO, E_A...
Add some more acpi event types that we will handle.
Add some more acpi event types that we will handle. git-svn-id: 6ac5796aeae0cef97fb47bcc287d4ce899c6fa6e@48916 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
bsd-2-clause
jordemort/e17,jordemort/e17,jordemort/e17
02b194c36659bfd85485aded4e52c3e587df48b0
Runtime/Rendering/BufferDX11.h
Runtime/Rendering/BufferDX11.h
#pragma once #include "ResourceDX11.h" namespace Mile { class MEAPI BufferDX11 : public ResourceDX11 { public: BufferDX11( RendererDX11* renderer ) : m_buffer( nullptr ), ResourceDX11( renderer ) { } ~BufferDX11( ) { SafeRelease( m_buffer ); ...
#pragma once #include "ResourceDX11.h" namespace Mile { class MEAPI BufferDX11 : public ResourceDX11 { public: BufferDX11( RendererDX11* renderer ) : m_buffer( nullptr ), ResourceDX11( renderer ) { } ~BufferDX11( ) { SafeRelease( m_buffer ); ...
Modify UnMap function return boolean value that succesfully unmaped.
Modify UnMap function return boolean value that succesfully unmaped.
C
mit
HoRangDev/MileEngine,HoRangDev/MileEngine
eff92ef21f2853cdde235b81b3e4427ce122787d
xFaceLib/xFaceLib/Classes/runtime/XViewController.h
xFaceLib/xFaceLib/Classes/runtime/XViewController.h
/* This file was modified from or inspired by Apache Cordova. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Ap...
/* This file was modified from or inspired by Apache Cordova. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Ap...
Update the way of importing CDVViewController to avoid compiler warning when using xFaceLib in 3rd party.
Update the way of importing CDVViewController to avoid compiler warning when using xFaceLib in 3rd party.
C
apache-2.0
polyvi/xface-ios,polyvi/xface-ios,polyvi/xface-ios,polyvi/xface-ios
aafe9cec55a481c7982611fd491279c44b2bab41
LinkedList/linkedList.c
LinkedList/linkedList.c
#include <stdio.h> #include <stdlib.h> #ifndef LINKED_LIST_H #define LINKED_LIST_H #include "linkedList.h" #endif struct Node { int data; struct Node* next; }; int main(int arc, char **argc) { // Create size for the nodes struct Node* head = malloc(sizeof(struct Node)); struct Node* middle = malloc(sizeof(st...
#include <stdio.h> #include <stdlib.h> #ifndef LINKED_LIST_H #define LINKED_LIST_H #include "linkedList.h" #endif struct Node { int data; struct Node* next; }; bool hasNode(struct Node* head, int data) { return true; } int main(int arc, char **argc) { // Create size for the nodes struct Node* head = malloc(...
Add base struct for hasNode.
Add base struct for hasNode.
C
mit
karysto/c-datastructures,karysto/c-datastructures
6ba1561ebea8ed03aa36e1aaa4892a53f9bc9496
php_extcss3.h
php_extcss3.h
#ifndef PHP_EXTCSS3_H #define PHP_EXTCSS3_H #include <php.h> #include "extcss3/types.h" #define PHP_EXTCSS3_EXTNAME "extcss3" #define PHP_EXTCSS3_EXTVER "1.0.0" #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ extern zend_module_entry extcss3_module_entry; #define phpext_extcss3_ptr &extcss3_mo...
#ifndef PHP_EXTCSS3_H #define PHP_EXTCSS3_H #include <php.h> #include "extcss3/types.h" #define PHP_EXTCSS3_EXTNAME "extcss3" #define PHP_EXTCSS3_EXTVER "1.0.1" #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ extern zend_module_entry extcss3_module_entry; #define phpext_extcss3_ptr &extcss3_mo...
Change the version to `1.0.1`
Change the version to `1.0.1`
C
mit
sevenval/php-ext-css,sevenval/php-ext-css,sevenval/php-ext-css
b4efe8788da54f5fd42311a4cc8d8d432b181167
project_config/lmic_project_config.h
project_config/lmic_project_config.h
// project-specific definitions for otaa sensor //#define CFG_eu868 1 //#define CFG_us915 1 //#define CFG_au921 1 #define CFG_as923 1 #define LMIC_COUNTRY_CODE LMIC_COUNTRY_CODE_JP //#define CFG_in866 1 #define CFG_sx1276_radio 1 //#define LMIC_USE_INTERRUPTS
// project-specific definitions for otaa sensor //#define CFG_eu868 1 //#define CFG_us915 1 //#define CFG_au921 1 #define CFG_as923 1 #define LMIC_COUNTRY_CODE LMIC_COUNTRY_CODE_JP //#define CFG_in866 1 #define CFG_sx1276_radio 1 //#define LMIC_USE_INTERRUPTS #define LMIC_DEBUG_LEVEL 2 #define LMIC_DEBUG_PRINTF_FN lm...
Set debug level to 2 and use a suitable printf function
Set debug level to 2 and use a suitable printf function
C
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
b621f9804b8dc2274d9d990eb074978151c6d09d
portable_io.c
portable_io.c
#include <stdio.h> #include "portable_io.h" char Prbuf[MAXLLEN]; //将输入输出函数包出来. void portable_puts(char* buf){ while((*buf)!=0){ putchar(*buf); buf++; } } void portable_input_int(int* val){ portable_gets(Prbuf); sscanf(Prbuf, "%d", val); } void portable_gets(char* buf){ gets(buf); }
#include <stdio.h> #include "portable_io.h" char Prbuf[MAXLLEN]; //将输入输出函数包出来. void portable_puts(char* buf){ while((*buf)!=0){ putchar(*buf); buf++; } } void portable_input_int(int* val){ portable_gets(Prbuf); sscanf(Prbuf, "%d", val); } void portable_gets(char* buf){ fgets(buf, MAXLLEN, stdin); }
Change gets to fgets, because gets is unsafe
Change gets to fgets, because gets is unsafe We had to make a pull request to a project with some unsafe C code to make it more secure. This project was the lucky one. Have fun with the security improvements :)
C
mit
sunzx/TarielBASIC,sunzx/TarielBASIC
1154cd8ae5e2835514a5d890d68d082b7dfe26d1
hardware/arduino/esp8266/cores/esp8266/core_esp8266_noniso.c
hardware/arduino/esp8266/cores/esp8266/core_esp8266_noniso.c
#include <stdlib.h> #include "stdlib_noniso.h" long atol_internal(const char* s) { return 0; } float atof_internal(const char* s) { return 0; } char * itoa (int val, char *s, int radix) { *s = 0; return s; } char * ltoa (long val, char *s, int radix) { *s = 0; return s; } char * utoa (unsigned int val...
#include <stdlib.h> #include "stdlib_noniso.h" extern int ets_sprintf(char*, const char*, ...); #define sprintf ets_sprintf long atol_internal(const char* s) { long result = 0; return result; } float atof_internal(const char* s) { float result = 0; return result; } char * itoa (int val, char *s, int radix...
Add stubs for itoa, ltoa
Add stubs for itoa, ltoa
C
lgpl-2.1
leftbrainstrain/Arduino-ESP8266,mateuszdw/Arduino,aichi/Arduino-2,paulmand3l/Arduino,NeuralSpaz/Arduino,piersoft/esp8266-Arduino,myrtleTree33/Arduino,piersoft/esp8266-Arduino,ogahara/Arduino,weera00/Arduino,mateuszdw/Arduino,toddtreece/esp8266-Arduino,Cloudino/Arduino,Protoneer/Arduino,mattvenn/Arduino,paulo-raca/ESP82...
bf4ff33e22ae48df8793db370efb85024443fc43
include/llvm/Bytecode/Reader.h
include/llvm/Bytecode/Reader.h
//===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ----*- C++ -*--=// // // This functionality is implemented by the lib/Bytecode/Reader library. // This library is used to read VM bytecode files from an iostream. // // Note that performance of this library is _crucial_ for performance of the // JIT type app...
//===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ----*- C++ -*--=// // // This functionality is implemented by the lib/Bytecode/Reader library. // This library is used to read VM bytecode files from an iostream. // // Note that performance of this library is _crucial_ for performance of the // JIT type app...
Add information about the module source
Add information about the module source git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@5837 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift...
b0e63575233eace638e73b198167f38705ded905
primitiv/c/api.h
primitiv/c/api.h
/* Copyright 2017 The primitiv Authors. All Rights Reserved. */ #ifndef PRIMITIV_C_API_H_ #define PRIMITIV_C_API_H_ #include <primitiv/config.h> #include <primitiv/c/graph.h> #include <primitiv/c/initializer_impl.h> #include <primitiv/c/model.h> #include <primitiv/c/naive_device.h> #include <primitiv/c/functions.h> ...
/* Copyright 2017 The primitiv Authors. All Rights Reserved. */ #ifndef PRIMITIV_C_API_H_ #define PRIMITIV_C_API_H_ #include <primitiv/config.h> #include <primitiv/c/graph.h> #include <primitiv/c/initializer_impl.h> #include <primitiv/c/model.h> #include <primitiv/c/naive_device.h> #include <primitiv/c/functions.h> ...
Add endif statement to the C API header.
Add endif statement to the C API header.
C
apache-2.0
odashi/primitiv,odashi/primitiv,odashi/primitiv
d484ae979059e596c9fb1d4fb02008f86b0e1bd6
Pinmark/NSURL+Pinmark.h
Pinmark/NSURL+Pinmark.h
// // NSURL+Pinmark.h // Pinmark // // Created by Kyle Stevens on 12/24/13. // Copyright (c) 2013 kilovolt42. All rights reserved. // #import <Foundation/Foundation.h> @interface NSURL (Pinmark) - (NSDictionary *)queryParameters; @end
// // NSURL+Pinmark.h // Pinmark // // Created by Kyle Stevens on 12/24/13. // Copyright (c) 2013 kilovolt42. All rights reserved. // #import <Foundation/Foundation.h> @interface NSURL (Pinmark) /** * Creates a dictionary of the query parameters in which fields are keys for the corresponding values. * Does not...
Add documentation for NSURL category
Add documentation for NSURL category
C
mit
kilovolt42/Pinmarker,kilovolt42/Pinmarker,kilovolt42/Pinmarker
4b386b1c0380d7d3d2a34828308d0290a350a59e
src/include/enesim_rectangle.h
src/include/enesim_rectangle.h
/* ENESIM - Direct Rendering Library * Copyright (C) 2007-2011 Jorge Luis Zapata * * 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 your o...
Add a rectangle definition for enesim
Add a rectangle definition for enesim
C
lgpl-2.1
turran/enesim,turran/enesim,turran/enesim,turran/enesim
d1fcb30ab60fc32525798a3992e5db0256f5ce71
src/qblowfish.h
src/qblowfish.h
#ifndef QBLOWFISH_H #define QBLOWFISH_H #include <QByteArray> class QBlowfish { public: QBlowfish(const QByteArray &key); bool init(); // Padding: // // Blowfish works on 8-byte blocks. Padding makes it usable even // in case where the input size is not in exact 8-byte blocks. // // I...
#ifndef QBLOWFISH_H #define QBLOWFISH_H #include <QByteArray> class QBlowfish { public: QBlowfish(const QByteArray &key); bool init(); // Padding: // // Blowfish works on 8-byte blocks. Padding makes it usable even // in case where the input size is not in exact 8-byte blocks. // // I...
Fix comment to reflect the change in the function name
Fix comment to reflect the change in the function name
C
mit
roop/qblowfish,roop/qblowfish
17fec70022c30695ca9a1cbaab4494f92668a317
tests/variable.h
tests/variable.h
#ifndef __VARIABLE_H__ #define __VARAIBLE_H__ typedef struct { double weight; double sum; double sum2; } Variable; #define VARIABLE_INIT { 0.0, 0.0, 0.0 } void variable_init (Variable *variable); void variable_add_weighted (Variable *variable, double ...
#ifndef __VARIABLE_H__ #define __VARIABLE_H__ typedef struct { double weight; double sum; double sum2; } Variable; #define VARIABLE_INIT { 0.0, 0.0, 0.0 } void variable_init (Variable *variable); void variable_add_weighted (Variable *variable, double ...
Fix another header guard oversight
Fix another header guard oversight Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741252
C
lgpl-2.1
davidgumberg/gtk,ahodesuka/gtk,davidgumberg/gtk,jadahl/gtk,alexlarsson/gtk,jigpu/gtk,alexlarsson/gtk,ahodesuka/gtk,chergert/gtk,chergert/gtk,ahodesuka/gtk,grubersjoe/adwaita,jigpu/gtk,grubersjoe/adwaita,Lyude/gtk-,davidgumberg/gtk,grubersjoe/adwaita,jadahl/gtk,jigpu/gtk,jadahl/gtk,jigpu/gtk,Lyude/gtk-,davidgumberg/gtk,...
7ec36884712e027f5c4a9124f5b5994b8b5b4db0
src/bin/e_acpi.h
src/bin/e_acpi.h
#ifdef E_TYPEDEFS /* enum for various event types */ typedef enum _E_Acpi_Type { E_ACPI_TYPE_UNKNOWN = 0, E_ACPI_TYPE_LID, E_ACPI_TYPE_BATTERY, E_ACPI_TYPE_BUTTON, E_ACPI_TYPE_SLEEP, E_ACPI_TYPE_WIFI } E_Acpi_Type; /* struct used to pass to event handlers */ typedef struct _E_Event_Acpi E_Event_Acp...
#ifdef E_TYPEDEFS /* enum for various event types */ typedef enum _E_Acpi_Type { E_ACPI_TYPE_UNKNOWN = 0, E_ACPI_TYPE_BATTERY, E_ACPI_TYPE_BUTTON, E_ACPI_TYPE_FAN, E_ACPI_TYPE_LID, E_ACPI_TYPE_PROCESSOR, E_ACPI_TYPE_SLEEP, E_ACPI_TYPE_POWER, E_ACPI_TYPE_THERMAL, E_ACPI_TYPE_VIDEO, E_A...
Add some more acpi event types that we will handle.
Add some more acpi event types that we will handle. SVN revision: 48916
C
bsd-2-clause
tizenorg/platform.upstream.enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment
dce6cca0fa0c6ef05a203c96588906a399c007ba
tests/regression/04-mutex/56-extern_call_by_ptr_rc.c
tests/regression/04-mutex/56-extern_call_by_ptr_rc.c
#include<pthread.h> extern void foo(int (*callback)()); int glob; pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&mutex2); glob=glob+1; // RACE! pthread_mutex_unlock(&mutex2); return NULL; } int bar() { p...
Add regression test for extern function calling/spawning function pointer argument
Add regression test for extern function calling/spawning function pointer argument 04/19 previously used custom_libc although that was actually unnecessary.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
3af52b4c0ff95af8344cacd16a2cee827d6301cc
source/main.c
source/main.c
#include <stdio.h> int main(void) { return(0); }
#include <stdio.h> #include <stdlib.h> #include <sys/ioctl.h> #include <ncurses.h> struct winsize terminalSize; void initScreen(void) { initscr(); noecho(); nocbreak(); } void closeScreen(void) { endwin(); } void getScreenSize(void) { if (ioctl(0, TIOCGWINSZ, (char *) &terminalSize) < 0) { printf("The progra...
Add the initial NCurses support for the program.
Add the initial NCurses support for the program.
C
unlicense
pacmanalx/fastview,pacmanalx/fastview
36cba37a4d0e7ca84753315ed4191b195ab3db21
tests/ctests/error_incr_decr.c
tests/ctests/error_incr_decr.c
int main() { // Issue: 3: error: operand of increment operator not a modifiable lvalue 4--; int array[5]; // Issue: 7: error: operand of increment operator not a modifiable lvalue array--; }
Add incr decr error test
Add incr decr error test
C
mit
ShivamSarodia/ShivyC,ShivamSarodia/ShivyC,ShivamSarodia/ShivyC
87a44bd8909a9961fa4e909d2e199920061d08e0
src/control.h
src/control.h
/** * File: control.h * Author: Alex Savarda */ #ifndef CONTROL_H #define CONTROL_H typedef struct { unsigned int d_srcA; unsigned int d_srcB; unsigned int E_dstM; unsigned int e_Cnd; unsigned int D_icode; unsigned int E_icode; unsigned int M_icode; } controlType; #endif /* CONTROL_H...
/* * File: control.h * Author: Alex Savarda */ #ifndef CONTROL_H #define CONTROL_H typedef struct { unsigned int d_srcA; unsigned int d_srcB; unsigned int E_dstM; unsigned int e_Cnd; unsigned int D_icode; unsigned int E_icode; unsigned int M_icode; } controlType; #endif /* CONTROL_H ...
Change header to C style.
Change header to C style.
C
isc
sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS
73e7eee167ec59d1b908c59a143ba88ef0dff2ad
xhyve-manager.c
xhyve-manager.c
// System #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> // Preprocessed #define PROGRAM_EXEC 0 #define COMMAND 1 #define MACHINE_NAME 2 // Commands #define LIST_COMMAND "list" void list_machines() { fprintf(stdout, "Here be a list of machines:\n"); fprintf(stdout, " - default\n"...
/** * xhyve-manager * a simple CLI utility to manage xhyve virtual machines. **/ // System #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> // Preprocessed #define PROGRAM_EXEC 0 #define COMMAND 1 #define MACHINE_NAME 2 // Valid Commands char *commands[] = { "list", "create", "...
Add array of valid commands.
Add array of valid commands.
C
bsd-3-clause
0x414A/xhyve-manager
1ec8e194eb28bc451abab3624ff2cb85f22f7b6c
test/FrontendC/func-aligned.c
test/FrontendC/func-aligned.c
// RUN: %llvmgcc %s -S -emit-llvm -o - | FileCheck %s // rdar://7270273 void foo() __attribute__((aligned (64))); void foo() { // CHECK: define void @foo() {{.*}} align 64 }
Test case for aligned attribute on function declaration.
Test case for aligned attribute on function declaration. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@83234 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,...
025fba5a10df4643626c91c96c8ecf2042b19218
cocos2d-ui/cocos2d-ui.h
cocos2d-ui/cocos2d-ui.h
/* * cocos2d for iPhone: http://www.cocos2d-iphone.org * * Copyright (c) 2013 Apportable Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without l...
/* * cocos2d for iPhone: http://www.cocos2d-iphone.org * * Copyright (c) 2013 Apportable Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without l...
Add CCSlider to the UI headers
Add CCSlider to the UI headers Former-commit-id: ea90510d6f80d76b2f53ba1e2bc469e9304eb642
C
mit
DNESS/cocos2d-objc,richardgroves/cocos2d-iphone,tambarskjelve/cocos2d-objc,jason-puck/cocos2d-iphone,SuPair/cocos2d-objc,yaoxiaoyong/cocos2d-objc,seem-sky/cocos2d-swift,cogddo/cocos2d-objc,oxeron/cocos2d-objc,dnessorga/cocos2d-objc,codepython/cocos2d-objc,codepython/cocos2d-objc,zaneLou/cocos2d-objc,SuPair/cocos2d-objc...
05958a67e44b1b08381db79cf2116db502616704
tests/sv-comp/basic/for_odd_vesal_true-unreach-call.c
tests/sv-comp/basic/for_odd_vesal_true-unreach-call.c
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR: __VERIFIER_error(); } return; } void fun() { int i; // Ultimate can't handle i declared in for for (i = 1; i < 1000; i += 2) { ...
Add Vesal's oddness cycle invariant example
Add Vesal's oddness cycle invariant example
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
27b3c2fae342747e25b76eb82524650fde42ed47
src/compiler_llvm/utils_llvm.h
src/compiler_llvm/utils_llvm.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Abort LLVM in debug builds when the IR doesn't verify.
Abort LLVM in debug builds when the IR doesn't verify. Change-Id: I71a035b260c895adde21ba90c84afa1f0b0ec997
C
apache-2.0
treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst
bf945fd0e8808702fe10a6375e696b96fb5512f8
insert_mode.c
insert_mode.c
#include "mode.h" #include <ctype.h> #include <termbox.h> #include "buffer.h" #include "gap.h" #include "editor.h" static void insert_mode_entered(editor_t *editor) { editor_status_msg(editor, "-- INSERT --"); } static void insert_mode_key_pressed(editor_t* editor, struct tb_event* ev) { buffer_t *buffer = edit...
#include "mode.h" #include <ctype.h> #include <termbox.h> #include "buffer.h" #include "gap.h" #include "editor.h" static void insert_mode_entered(editor_t *editor) { editor_status_msg(editor, "-- INSERT --"); } static void insert_mode_key_pressed(editor_t* editor, struct tb_event* ev) { buffer_t *buffer = edit...
Fix backspace at start of file.
Fix backspace at start of file.
C
mit
isbadawi/badavi
14e47d26ce9d896bc47e4873175013c529e14e4c
PcapDotNet/src/PcapDotNet.Core/PacketTotalStatistics.h
PcapDotNet/src/PcapDotNet.Core/PacketTotalStatistics.h
#pragma once #include "PcapDeclarations.h" namespace PcapDotNet { namespace Core { /// <summary> /// Statistics on capture from the start of the run. /// </summary> public ref class PacketTotalStatistics sealed : System::IEquatable<PacketTotalStatistics^> { public: /// <s...
#pragma once #include "PcapDeclarations.h" namespace PcapDotNet { namespace Core { /// <summary> /// Statistics on capture from the start of the run. /// </summary> public ref class PacketTotalStatistics sealed : System::IEquatable<PacketTotalStatistics^> { public: /// <s...
Add a TODO to update PacketsDroppedByInterface documentation when it gets supported.
Add a TODO to update PacketsDroppedByInterface documentation when it gets supported.
C
bsd-3-clause
prvillagra/Pcap.Net,bricknerb/Pcap.Net,OperatorOverload/Pcap.Net,suarez-duran-m/pcap-pade,petredimov/Pcap.Net,giokats/Pcap.Net,OperatorOverload/Pcap.Net,suarez-duran-m/pcap-pade,bricknerb/Pcap.Net,prvillagra/Pcap.Net,bricknerb/Pcap.Net,giokats/Pcap.Net,petredimov/Pcap.Net,suarez-duran-m/pcap-pade,OperatorOverload/Pcap....
3ff4727396312ce53c2b78a111bfb8d691148751
cbits/check-mx.c
cbits/check-mx.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <netinet/in.h> #include <resolv.h> int check_mx(char *domain) { u_char nsbuf[4096]; return res_query(domain, ns_c_any, ns_t_mx, nsbuf, sizeof (nsbuf)) > 0; }
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <netinet/in.h> #include <resolv.h> int check_mx(char *domain) { u_char nsbuf[4096]; return res_query(domain, ns_c_in, ns_t_mx, nsbuf, sizeof (nsbuf)) > 0; }
Use C_IN for class of information
Use C_IN for class of information
C
bsd-3-clause
qoelet/check-email,chrisdone/check-email
0737f040b1a4fc0a8edbef63fecce90cb77a487b
include/os/utils.h
include/os/utils.h
//////////////////////////////////////////////////////////////////////////////////////////////// /// /// @file /// @author Kuba Sejdak /// @date 11.12.2016 /// /// @copyright This file is a part of cosmos OS. All rights reserved. /// ///////////////////////////////////////////////////////////////////////////...
Add macro for defining memory-mapped registers.
lib: Add macro for defining memory-mapped registers.
C
bsd-2-clause
ksejdak/cosmos,ksejdak/cosmos,ksejdak/cosmos
be7f76e0718737cf7db3506572d8b933a3da0296
firmware/common/Motor/Motor.h
firmware/common/Motor/Motor.h
/* * Supemeca Never Dies 2017 * \file Motor.h * \date 17/03/2017 * \author Romain Reignier */ #pragma once #include "hal.h" #include "Motors.h" class Motor { friend class Motors; public: enum eDirection { FORWARD, BACKWARD }; static constexpr uint32_t kPwmFrequency{1000000}; static constexp...
/* * Supemeca Never Dies 2017 * \file Motor.h * \date 17/03/2017 * \author Romain Reignier */ #pragma once #include "hal.h" #include "Motors.h" class Motor { friend class Motors; public: enum eDirection { FORWARD, BACKWARD }; static constexpr uint32_t kPwmFrequency{10000}; static constexpr ...
Reduce PWM frequency to 500 Hz.
Reduce PWM frequency to 500 Hz.
C
apache-2.0
romainreignier/robot2017,romainreignier/robot2017,romainreignier/robot2017,romainreignier/robot2017
f7efdfd7b740d8d59015e14cb62ac6b3e68743da
Source/PureLayout.h
Source/PureLayout.h
// // PureLayout.h // v2.0.2 // https://github.com/smileyborg/PureLayout // // Copyright (c) 2014 Tyler Fox // // This code is distributed under the terms and conditions of the MIT license. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated docum...
// // PureLayout.h // v2.0.2 // https://github.com/smileyborg/PureLayout // // Copyright (c) 2014 Tyler Fox // // This code is distributed under the terms and conditions of the MIT license. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated docum...
Add newline to end of file
Add newline to end of file
C
mit
k214k/PureLayout,12207480/PureLayout,liuyujing/PureLayout,PureWiki/PureLayout,Joneze/PureLayout,pivotal-oscar/PureLayout,fhchina/PureLayout,FiftyThree/PureLayout,jiamaozheng/PureLayout,adachic/PureLayout,ppamorim/PureLayout,PureWiki/PureLayout,smileyborg/PureLayout,smileyborg/PureLayout,eleostech/PureLayout,lijie121210...
9e8a570d53cb8c545ec0c5fe296bcd6e0f657862
Source/config_lui.h
Source/config_lui.h
// Filename: config_lui.h // Created by: tobspr (28Aug14) // #ifndef CONFIG_LUI_H #define CONFIG_LUI_H #include "pandabase.h" #include "notifyCategoryProxy.h" #include "dconfig.h" // It is convenient to put these here for now. // #if (defined(WIN32_VC) || defined(WIN64_VC)) && !defined(CPPPARSER) && !defined(LINK_A...
// Filename: config_lui.h // Created by: tobspr (28Aug14) // #ifndef CONFIG_LUI_H #define CONFIG_LUI_H #include "pandabase.h" #include "notifyCategoryProxy.h" #include "dconfig.h" #define EXPCL_LUI EXPORT_CLASS #define EXPTP_LUI EXPORT_TEMPL ConfigureDecl(config_lui, EXPCL_LUI, EXPTP_LUI); NotifyCategoryDecl(lui, ...
Fix compilation on Linux with latest 1.10
Fix compilation on Linux with latest 1.10
C
mit
tobspr/LUI,tobspr/LUI,tobspr/LUI
a2cbe2b176bc027d46b9c17046e8df49c247c7bd
core/base/inc/TVersionCheck.h
core/base/inc/TVersionCheck.h
// @(#)root/base:$Id$ // Author: Fons Rademakers 9/5/2007 /************************************************************************* * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// @(#)root/base:$Id$ // Author: Fons Rademakers 9/5/2007 /************************************************************************* * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Move gVersionCheck into `ROOT::` (ROOT-10426):
Move gVersionCheck into `ROOT::` (ROOT-10426): This avoids deserializing the declaration when iterating over globals, which in turn avoids jitting the global needed by static init.
C
lgpl-2.1
olifre/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,olifre/root,olifre/root,root-mirror/root,karies/root,karies/root,karies/root,root-mirror/root,karies/root,karies/root,karies/root,root-mirror/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root...
20f3fbf3c7a108b75c5dc92f0fe1108cc3e9bab5
Josh_Zane_Sebastian/src/main.h
Josh_Zane_Sebastian/src/main.h
struct stack_node { struct stack_node *cdr; int data; char type; } struct subroutine { struct stack_node *nodes; int num_nodes; }
#define T_INT 0 #define T_CHAR 1 #define T_SBRTN 2 struct stack_node { struct stack_node *cdr; union node_data data; } union node_data { struct subroutine srtine; int numval; char type; } struct subroutine { struct stack_node *nodes; int num_nodes; }
Add types, allow for subroutines.
Add types, allow for subroutines.
C
mit
aacoppa/final,aacoppa/final
a8eed7df4a04d3a002a04f517efe46a7f9b5c603
src/compiler_llvm/utils_llvm.h
src/compiler_llvm/utils_llvm.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Use uint32_t for compilation unit index instead of uint16_t.
Use uint32_t for compilation unit index instead of uint16_t. Change-Id: If89246e35c16a6b50942e0fe7dcc289234bbdfad
C
apache-2.0
treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst
fac8751ad9ac6eab7f5b86fe5fc82d1ca59a7b2a
src/ehl/isr_written_variable.h
src/ehl/isr_written_variable.h
#ifndef EMBEDDEDHELPERLIBRARY_ISR_WRITTEN_VARIABLE_H #define EMBEDDEDHELPERLIBRARY_ISR_WRITTEN_VARIABLE_H #include "rvalue.h" namespace ehl { template<typename T> class isr_written_variable { private: mutable volatile bool modified; volatile T value; public: isr_written_variable() = default; isr_writte...
#ifndef EMBEDDEDHELPERLIBRARY_ISR_WRITTEN_VARIABLE_H #define EMBEDDEDHELPERLIBRARY_ISR_WRITTEN_VARIABLE_H #include "rvalue.h" namespace ehl { template<typename T> class isr_written_variable { private: mutable volatile bool modified; volatile T value; public: isr_written_variable() = default; isr_writte...
Refactor to clean up isr written variable
Refactor to clean up isr written variable
C
mit
hiddeninplainsight/EmbeddedHelperLibrary,hiddeninplainsight/EmbeddedHelperLibrary,hiddeninplainsight/EmbeddedHelperLibrary,hiddeninplainsight/EmbeddedHelperLibrary
03951137c1867d52a47b69466ffb9986f60bd9af
wire.h
wire.h
#ifndef OPTITRACK_WIRE_H_ #define OPTITRACK_WIRE_H_ #include <stdint.h> typedef enum { NAT_PING = 0, NAT_PINGRESPONSE = 1, NAT_REQUEST = 2, NAT_RESPONSE = 3, NAT_REQUEST_MODELDEF = 4, NAT_MODELDEF = 5, NAT_REQUEST_FRAMEOFDATA = 6, NAT_FRAMEOFDATA = 7, NAT_MESSAGESTRING = 8, NAT...
#ifndef OPTITRACK_WIRE_H_ #define OPTITRACK_WIRE_H_ #include <stdint.h> typedef enum { NAT_PING = 0, NAT_PINGRESPONSE = 1, NAT_REQUEST = 2, NAT_RESPONSE = 3, NAT_REQUEST_MODELDEF = 4, NAT_MODELDEF = 5, NAT_REQUEST_FRAMEOFDATA = 6, NAT_FRAMEOFDATA = 7, NAT_MESSAGESTRING = 8, NAT...
Fix uchar vs. char in natnet_sender_t; add natnet_packet_t
Fix uchar vs. char in natnet_sender_t; add natnet_packet_t
C
bsd-2-clause
cg123/optitrack-depack,cg123/optitrack-depack
3d49470ecd745e1b9eee54a6f4dfdc507029a66b
Pod/Classes/LumberjackLogger.h
Pod/Classes/LumberjackLogger.h
// // LumberjackLogger.h // Pods // // Created by jiakai lian on 29/09/2015. // // #import <Foundation/Foundation.h> #import <CocoaLumberjack/CocoaLumberjack.h> //If you set the log level to DDLogLevelError, then you will only see Error statements. //If you set the log level to DDLogLevelWarn, then you will only s...
// // LumberjackLogger.h // Pods // // Created by jiakai lian on 29/09/2015. // // #import <Foundation/Foundation.h> #import <CocoaLumberjack/CocoaLumberjack.h> //If you set the log level to DDLogLevelError, then you will only see Error statements. //If you set the log level to DDLogLevelWarn, then you will only s...
Update the release log level
Update the release log level
C
mit
jiakai-lian/LumberjackLogger
0f10a72294d653b458fe7a72604a61e155d67904
include/scratch/bits/algorithm/counted-copying-iterator.h
include/scratch/bits/algorithm/counted-copying-iterator.h
#pragma once #include <cstddef> namespace scratch { template<class T> struct counted_copying_iterator { using value_type = T; using difference_type = ptrdiff_t; using pointer = const T *; using reference = const T&; using iterator_category = random_access_iterator_tag; explicit counted_copyi...
Add a "counted copying iterator".
Add a "counted copying iterator". Most STL containers have a method `assign(size_t, const T&)` and another method `assign(It, It)` that works with input iterators. By creating an iterator that yields exactly `n` copies of a `const T&`, we can make it really easy to implement the former in terms of the latter.
C
mit
Quuxplusone/from-scratch,Quuxplusone/from-scratch,Quuxplusone/from-scratch
a89923742aac5c342714a6acb1e6da887e945cf3
src/commons.h
src/commons.h
#ifndef __COMMONS_H #define __COMMONS_H #ifdef __APPLE__ #define ENDLINE '\r' #else #define ENDLINE '\n' #endif #endif
Add line endings for Mac OS.
Add line endings for Mac OS.
C
mit
tomaszwojcik/git-ec,tomaszwojcik/git-ec
09461ff2d6756f990eac8d26fd94b2d0bbe15e78
core/rgb_color.h
core/rgb_color.h
#ifndef TRN_RGB_COLOR_H #define TRN_RGB_COLOR_H #include <stdbool.h> typedef struct { float red; float green; float blue; } TrnColor; extern TrnColor const TRN_WHITE; extern TrnColor const TRN_RED; extern TrnColor const TRN_GREEN; extern TrnColor const TRN_BLUE; extern TrnColor const TRN_YELLOW; extern TrnColo...
#ifndef TRN_COLOR_H #define TRN_COLOR_H #include <stdbool.h> typedef struct { float red; float green; float blue; } TrnColor; extern TrnColor const TRN_WHITE; extern TrnColor const TRN_RED; extern TrnColor const TRN_GREEN; extern TrnColor const TRN_BLUE; extern TrnColor const TRN_YELLOW; extern TrnColor const ...
Make include guard name for color.h be compliant with our standard
Make include guard name for color.h be compliant with our standard
C
bsd-3-clause
sed-pro-inria/tetrinria,sed-pro-inria/tetrinria,sed-pro-inria/tetrinria
89bbc645af1622ffc4a7f1cc7e4509f2ca663139
adsbus/resolve.c
adsbus/resolve.c
#include <netdb.h> #include "asyncaddrinfo.h" #include "peer.h" #include "resolve.h" void resolve_init() { asyncaddrinfo_init(2); } void resolve_cleanup() { asyncaddrinfo_cleanup(); } void resolve(struct peer *peer, const char *node, const char *service, int flags) { struct addrinfo hints = { .ai_flags = AI_V...
#include <netdb.h> #include "asyncaddrinfo.h" #include "peer.h" #include "resolve.h" void resolve_init() { asyncaddrinfo_init(2); } void resolve_cleanup() { asyncaddrinfo_cleanup(); } void resolve(struct peer *peer, const char *node, const char *service, int flags) { struct addrinfo hints = { .ai_flags = AI_V...
Remove AI_ADDRCONFIG, since the netlink socket is missing CLOEXEC and gets inherited by children.
Remove AI_ADDRCONFIG, since the netlink socket is missing CLOEXEC and gets inherited by children.
C
apache-2.0
flamingcowtv/adsb-tools,flamingcowtv/adsb-tools,flamingcowtv/adsb-tools,flamingcowtv/adsb-tools
66e579500ec1d670e6ea638f93f3fea72aabb6bf
pratica-07/local.h
pratica-07/local.h
#include <stdlib.h> #include <stdio.h> #include <math.h> #define PI 3.14 float soluc (float, float); float radians_degrees (float); float degrees_radians (float);
Add cabecalho para as funcoes (modularizando)
Add cabecalho para as funcoes (modularizando)
C
mit
tonussi/freezing-dubstep,tonussi/freezing-dubstep,tonussi/freezing-dubstep
1253b6a192299bdb1b8d7ff1d50d4718ae0a9957
mudlib/mud/home/Verb/sys/verb/core/wiz/ooc/system/bstat.c
mudlib/mud/home/Verb/sys/verb/core/wiz/ooc/system/bstat.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2013 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Add command to check bulk sync stats
Add command to check bulk sync stats
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
506d8e88ab8c28f052697127fb6ccdcc5a44649a
libedataserverui/gtk-compat.h
libedataserverui/gtk-compat.h
#ifndef __GTK_COMPAT_H__ #define __GTK_COMPAT_H__ #include <gtk/gtk.h> /* Provide a compatibility layer for accessor functions introduced * in GTK+ 2.22 which we need to build with sealed GDK. * That way it is still possible to build with GTK+ 2.20. */ #if !GTK_CHECK_VERSION(2, 21, 0) #define gdk_drag_context_ge...
#ifndef __GTK_COMPAT_H__ #define __GTK_COMPAT_H__ #include <gtk/gtk.h> /* Provide a compatibility layer for accessor functions introduced * in GTK+ 2.22 which we need to build with sealed GDK. * That way it is still possible to build with GTK+ 2.20. */ #if !GTK_CHECK_VERSION(2,21,2) #define gdk_drag_context_get_...
Set the GTK+ backward compatibility check to 2.21.2.
Set the GTK+ backward compatibility check to 2.21.2.
C
lgpl-2.1
Distrotech/evolution-data-server,tintou/evolution-data-server,tintou/evolution-data-server,tintou/evolution-data-server,matzipan/evolution-data-server,Distrotech/evolution-data-server,Distrotech/evolution-data-server,gcampax/evolution-data-server,matzipan/evolution-data-server,gcampax/evolution-data-server,tintou/evolu...
cc884148c3ba9903d9d2355cfd31ddbba3a2b77d
MatrixSDK/Data/ReplyEvent/Parser/MXReplyEventParser.h
MatrixSDK/Data/ReplyEvent/Parser/MXReplyEventParser.h
/* Copyright 2019 The Matrix.org Foundation C.I.C 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 2019 The Matrix.org Foundation C.I.C 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...
Make reply parser result optional
Make reply parser result optional
C
apache-2.0
matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk
5c02865845248547ea33362877291f5b70c876c4
Perspective/Perspective/Perspective-Bridging-Header.h
Perspective/Perspective/Perspective-Bridging-Header.h
// // Use this file to import your target's public headers that you would like to expose to Swift. //
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import <Parse/Parse.h> #import <Bolts/Bolts.h> #import <AWSiOSSDKv2/AWSCore.h> #import <AWSiOSSDKv2/S3.h> #import <AWSiOSSDKv2/DynamoDB.h> #import <AWSiOSSDKv2/SQS.h> #import <AWSiOSSDKv2/SNS.h>
Add imports to Bridging Header.
Add imports to Bridging Header.
C
mit
dlrifkin/Perspective-1.0,thedanpan/Perspective
262b514264325253e8e3c180f2f9b91a0a6ff4a6
tests/regression/13-privatized/24-multiple-protecting.c
tests/regression/13-privatized/24-multiple-protecting.c
// Copied & modified from 28/42. #include <pthread.h> #include <assert.h> int g1,g2; pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t __global_lock = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&mutex1); pthread_mute...
Add privatization test where mutex-oplus fails
Add privatization test where mutex-oplus fails Previously mutex-oplus failed on 28/42, which uses trylock. Apparently the problem isn't trylock but multiple protecting mutexes.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer