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
fbc9dce9bce1097692f5ce1bbab2d6b4ac2297e6
ext/foo/foo_vector.h
ext/foo/foo_vector.h
// ext/foo/foo_vector.h // Declarations for wrapped struct #ifndef FOO_VECTOR_H #define FOO_VECTOR_H #include <ruby.h> #include <math.h> // Ruby 1.8.7 compatibility patch #ifndef DBL2NUM #define DBL2NUM( dbl_val ) rb_float_new( dbl_val ) #endif void init_foo_vector( VALUE parent_module ); // This is the struct t...
// ext/foo/foo_vector.h // Declarations for wrapped struct #ifndef FOO_VECTOR_H #define FOO_VECTOR_H #include <ruby.h> #include <math.h> // Ruby 1.8.7 compatibility patch #ifndef DBL2NUM #define DBL2NUM( dbl_val ) rb_float_new( dbl_val ) #endif void init_foo_vector( VALUE parent_module ); // This is the struct t...
Add sharable methods to header file
Add sharable methods to header file
C
mit
neilslater/ruby_nex_c,neilslater/ruby_nex_c
9220eaea6f9afba4cc3bc6a0ff240f3492ff5997
ext/hitimes/hitimes_instant_osx.c
ext/hitimes/hitimes_instant_osx.c
#ifdef USE_INSTANT_OSX #include "hitimes_interval.h" #include <mach/mach.h> #include <mach/mach_time.h> /* All this OSX code is adapted from http://developer.apple.com/library/mac/#qa/qa1398/_index.html */ /* * returns the conversion factor, this value is used to convert * the value from hitimes_get_current_instan...
#ifdef USE_INSTANT_OSX #include "hitimes_interval.h" #include <mach/mach.h> #include <mach/mach_time.h> /* All this OSX code is adapted from http://developer.apple.com/library/mac/#qa/qa1398/_index.html */ /* * returns the conversion factor, this value is used to convert * the value from hitimes_get_current_instan...
Clean up C Compiler warning about declaration of variables.
Clean up C Compiler warning about declaration of variables.
C
isc
copiousfreetime/hitimes,modulexcite/hitimes,modulexcite/hitimes,modulexcite/hitimes
126d937b48e5d84399e4050f48daeb560291fb19
webkit/glue/webkit_constants.h
webkit/glue/webkit_constants.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ namespace webkit_glue { // Chromium sets the minimum interval timeou...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ namespace webkit_glue { // Chromium sets the minimum interval timeou...
Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption.
Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption. The new interval is 1000 ms, or once per second. We can easily adjust this value up or down, but this seems like a reasonable value to judge the compatibility ...
C
bsd-3-clause
keishi/chromium,jaruba/chromium.src,patrickm/chromium.src,nacl-webkit/chrome_deps,robclark/chromium,rogerwang/chromium,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,anirudhSK/ch...
01c754ddbddc85d6e84a5312fec9fa07d9f7aa2d
src/r-svd-impute.h
src/r-svd-impute.h
/* r-svd-impute.h */ #ifndef _R_SVD_IMPUTE_H #define _R_SVD_IMPUTE_H SEXP R_svd_impute (SEXP xx, SEXP KK, SEXP tol, SEXP maxiter); #endif /* _R_SVD_IMPUTE_H */
/* r-svd-impute.h */ #ifndef _R_SVD_IMPUTE_H #define _R_SVD_IMPUTE_H SEXP R_svd_impute (SEXP x, SEXP k, SEXP tol, SEXP maxiter); #endif /* _R_SVD_IMPUTE_H */
Fix parameter names for svd.impute
Fix parameter names for svd.impute
C
bsd-3-clause
patperry/r-bcv,patperry/r-bcv,patperry/r-bcv
8a580e79156666d46fa59aae21fecb05746b25e2
src/platform.h
src/platform.h
/** * machina * * Copyright (c) 2011, drmats * All rights reserved. * * https://github.com/drmats/machina */ #ifndef __PLATFORM_H_ #define __PLATFORM_H_ 1 #if defined(linux) || defined(__linux) || defined(__linux__) #undef __LINUX__ #define __LINUX__ 1 #endif #if defined(WIN32) || defined(_WIN32) #und...
/** * machina * * Copyright (c) 2011, drmats * All rights reserved. * * https://github.com/drmats/machina */ #ifndef __PLATFORM_H_ #define __PLATFORM_H_ 1 #if defined(linux) || defined(__linux) || defined(__linux__) #undef __LINUX__ #define __LINUX__ 1 #endif #if defined(WIN32) || defined(_WIN32) #und...
Disable function exception specification warning only in cl (Visual Studio).
Disable function exception specification warning only in cl (Visual Studio).
C
bsd-2-clause
drmats/machina
57a022230f9ae1b3f5901e26babafb2d321b4511
tornado/speedups.c
tornado/speedups.c
#include <Python.h> static PyObject* websocket_mask(PyObject* self, PyObject* args) { const char* mask; int mask_len; const char* data; int data_len; int i; if (!PyArg_ParseTuple(args, "s#s#", &mask, &mask_len, &data, &data_len)) { return NULL; } PyObject* result = PyBytes_Fro...
#define PY_SSIZE_T_CLEAN #include <Python.h> static PyObject* websocket_mask(PyObject* self, PyObject* args) { const char* mask; Py_ssize_t mask_len; const char* data; Py_ssize_t data_len; Py_ssize_t i; PyObject* result; char* buf; if (!PyArg_ParseTuple(args, "s#s#", &mask, &mask_len, ...
Fix msvc compile error and improve 64 bit compatibility
Fix msvc compile error and improve 64 bit compatibility
C
apache-2.0
whip112/tornado,wujuguang/tornado,kippandrew/tornado,legnaleurc/tornado,sxfmol/tornado,VShangxiao/tornado,andyaguiar/tornado,jparise/tornado,takeshineshiro/tornado,futurechallenger/tornado,0x73/tornado,InverseLina/tornado,dongpinglai/my_tornado,ymero/tornado,elelianghh/tornado,wxhzk/tornado-1,Aaron1992/tornado,icejoywo...
490a3468fb50601f00e56965a531f0bbb804f806
Python/getcopyright.c
Python/getcopyright.c
/* Return the copyright string. This is updated manually. */ #include "Python.h" static char cprt[] = "Copyright (c) 2000 BeOpen.com.\n\ All Rights Reserved.\n\ \n\ Copyright (c) 1995-2000 Corporation for National Research Initiatives.\n\ All Rights Reserved.\n\ \n\ Copyright (c) 1991-1995 Stichting Mathematisch Ce...
/* Return the copyright string. This is updated manually. */ #include "Python.h" static char cprt[] = "\ Copyright (c) 2000, 2001 Guido van Rossum.\n\ All Rights Reserved.\n\ \n\ Copyright (c) 2000 BeOpen.com.\n\ All Rights Reserved.\n\ \n\ Copyright (c) 1995-2000 Corporation for National Research Initiatives.\n\ A...
Add my name to the copyright notice.
Add my name to the copyright notice.
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
8727a3517c834cb9e4929de70ad0571038b0cc0f
engine/os/OsTypes.h
engine/os/OsTypes.h
/* Copyright (c) 2013 Daniele Bartolini, Michele Rossi Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto 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 withou...
Fix documentation: DO NOT USE __ to emphasize text
Fix documentation: DO NOT USE __ to emphasize text
C
mit
taylor001/crown,mikymod/crown,galek/crown,galek/crown,dbartolini/crown,galek/crown,mikymod/crown,galek/crown,taylor001/crown,dbartolini/crown,mikymod/crown,taylor001/crown,dbartolini/crown,mikymod/crown,dbartolini/crown,taylor001/crown
b151044a0d9307e4ab78c9b63c334604fbed41d6
platform/ozone_platform_wayland.h
platform/ozone_platform_wayland.h
// Copyright (c) 2013 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 OZONE_PLATFORM_OZONE_PLATFORM_WAYLAND_H_ #define OZONE_PLATFORM_OZONE_PLATFORM_WAYLAND_H_ namespace ui { class OzonePlatform; // Constructo...
// Copyright (c) 2013 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 OZONE_PLATFORM_OZONE_PLATFORM_WAYLAND_H_ #define OZONE_PLATFORM_OZONE_PLATFORM_WAYLAND_H_ #include "ozone/platform/ozone_export_wayland.h" n...
Fix shared_component build for Ozone platform.
Fix shared_component build for Ozone platform. This patch makes necessary changes in Ozone Wayland code base to fix shared_component build.
C
bsd-3-clause
Tarnyko/ozone-wayland,baillaw/ozone-wayland,qjia7/ozone-wayland,kalyankondapally/ozone-wayland,kuscsik/ozone-wayland,hongzhang-yan/ozone-wayland,baillaw/ozone-wayland,racarr-ubuntu/ozone-mir,qjia7/ozone-wayland,sjnewbury/ozone-wayland,siteshwar/ozone-wayland,01org/ozone-wayland,01org/ozone-wayland,nagineni/ozone-waylan...
ca31b33140cddb563d9e7749bd75a9d3763c5908
lib/libncp/ncp_mod.h
lib/libncp/ncp_mod.h
/* * Describes all ncp_lib kernel functions * * $FreeBSD$ */ #ifndef _NCP_MOD_H_ #define _NCP_MOD_H_ /* order of calls in syscall table relative to offset in system table */ #define NCP_SE(callno) (callno+sysentoffset) #define NCP_CONNSCAN NCP_SE(0) #define NCP_CONNECT NCP_SE(1) #define NCP_INTFN NCP_SE(2) #de...
/* * Describes all ncp_lib kernel functions * * $FreeBSD$ */ #ifndef _NCP_MOD_H_ #define _NCP_MOD_H_ /* order of calls in syscall table relative to offset in system table */ #define NCP_SE(callno) (callno+sysentoffset) #define NCP_CONNSCAN NCP_SE(0) #define NCP_CONNECT NCP_SE(1) #define NCP_INTFN NCP_SE(2) #de...
Add missing newline at end of file.
Add missing newline at end of file.
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
94710706b818acd113d6f56c0cdaa787f13b74eb
content/common/gpu/surface_handle_types_mac.h
content/common/gpu/surface_handle_types_mac.h
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_COMMON_GPU_SURFACE_HANDLE_TYPES_MAC_H_ #define CONTENT_COMMON_GPU_SURFACE_HANDLE_TYPES_MAC_H_ #include <OpenGL/CGLIOSurface.h> #include ...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_COMMON_GPU_SURFACE_HANDLE_TYPES_MAC_H_ #define CONTENT_COMMON_GPU_SURFACE_HANDLE_TYPES_MAC_H_ #include <IOSurface/IOSurface.h> #include <...
Fix build on OSX 10.9.
Fix build on OSX 10.9. This fixes a build error on OSX 10.9 introduced by https://codereview.chromium.org/347653005/ BUG=388160 TBR=ccameron@chromium.org,piman@chromium.org,avi@chromium.org Review URL: https://codereview.chromium.org/350833002 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@279428 0039d316-1c4...
C
bsd-3-clause
crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,Just-D/chromium-1,dushu1203/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,dednal/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,littlstar/chromium.src,ondra-novak/chromium.src,Pluto-tv/chromium-c...
04ca2f943ec928a383c7a9ab71ffc0d0a583223f
UIforETW/Version.h
UIforETW/Version.h
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.45f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.46f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
Increase version to 1.46 in preparation for new release
Increase version to 1.46 in preparation for new release
C
apache-2.0
ariccio/UIforETW,google/UIforETW,MikeMarcin/UIforETW,MikeMarcin/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW,mwinterb/UIforETW,MikeMarcin/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,google/UIforETW,mwinterb/UIforETW,ariccio/UIforETW
19fce5e178d3f071c86da34008108f8f4bb2c994
src/parse/type.h
src/parse/type.h
#ifndef __parse_type_h__ #define __parse_type_h__ typedef enum { PARSE_TYPE_NONE, PARSE_TYPE_LOGICAL, PARSE_TYPE_CHARACTER, PARSE_TYPE_INTEGER, PARSE_TYPE_REAL, PARSE_TYPE_COMPLEX, PARSE_TYPE_BYTE, } parse_type_e; typedef struct { parse_type_e type; unsigned kind; unsigned count; } parse_type_t; s...
#ifndef __parse_type_h__ #define __parse_type_h__ typedef enum { PARSE_TYPE_NONE, PARSE_TYPE_LOGICAL, PARSE_TYPE_CHARACTER, PARSE_TYPE_INTEGER, PARSE_TYPE_REAL, PARSE_TYPE_COMPLEX, PARSE_TYPE_BYTE, } parse_type_e; typedef struct { parse_type_e type; unsigned kind; unsigned count; } parse_type_t; #...
Fix issue with static consts
Fix issue with static consts
C
apache-2.0
CodethinkLabs/ofc,CodethinkLabs/ofc,CodethinkLabs/ofc,CodethinkLabs/ofc
e855173835d8911edd09dcdfc0529ebacdc9fe55
src/thermostat.h
src/thermostat.h
#pragma once #include <core.h> #define DHT22_PIN 6 #define DHT22_SAMPLE_RATE 3000 #define TEMPORATURE_TARGET (204) #define HEATER_PIN 10 #define HEATER_ACTION_DELAY (15*60) // minimal seconds to open/close heater, prevent switch heater too frequently. // pin connect to 315/433 transmitter #define TRANSMIT_PIN 8 /...
#pragma once #include <core.h> #define DHT22_PIN 6 #define DHT22_SAMPLE_RATE 3000 #define TEMPORATURE_TARGET (204) #define HEATER_PIN 10 #define HEATER_ACTION_DELAY (15*60) // minimal seconds to open/close heater, prevent switch heater too frequently. // pin connect to 315/433 transmitter #define TRANSMIT_PIN 8 /...
Use A0 instead 10 as button down input PIN
Use A0 instead 10 as button down input PIN All digital pins are used, 10 used by heater relay, so borrow an analog input pin.
C
apache-2.0
redforks/thermostat,redforks/thermostat
a4f0a6e8749227e6eabb8ae0f4af155a95721f5a
tests/regression/61-evalAssert/01-union_evalAssert.c
tests/regression/61-evalAssert/01-union_evalAssert.c
// PARAM: --set trans.activated[+] "assert" // Running the assert transformation on this test yields in code that is not compilable by gcc struct s { int a; int b; }; union u { struct s str; int i; }; int main(){ union u un; struct s* ptr; un.str.a = 1; un.str.b = 2; ptr = &un...
Add test case for invariant generation for unions.
Add test case for invariant generation for unions.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
b8f325d491a751bb8478b36f85493c728b5d098e
src/condor_includes/condor_constants.h
src/condor_includes/condor_constants.h
#ifndef CONSTANTS_H #define CONSTANTS_H #if !defined(__STDC__) && !defined(__cplusplus) #define const #endif /* Set up a boolean variable type. Since this definition could conflict with other reasonable definition of BOOLEAN, i.e. using an enumeration, it is conditional. */ #ifndef BOOLEAN_TYPE_DEFINED typedef i...
#ifndef CONSTANTS_H #define CONSTANTS_H #if !defined(__STDC__) && !defined(__cplusplus) #define const #endif /* Set up a boolean variable type. Since this definition could conflict with other reasonable definition of BOOLEAN, i.e. using an enumeration, it is conditional. */ #ifndef BOOLEAN_TYPE_DEFINED typedef i...
Add BOOL typedef becuase BOOLEAN is too verbose.
Add BOOL typedef becuase BOOLEAN is too verbose.
C
apache-2.0
djw8605/condor,htcondor/htcondor,neurodebian/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,htcondor/htcondor,neurodebian/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,clalancette/condor-dcloud,bbockelm/condor-network-accountin...
4313cb62c47240baa244e521db53531686286afd
tensorflow/lite/core/shims/cc/kernels/register.h
tensorflow/lite/core/shims/cc/kernels/register.h
/* Copyright 2020 The TensorFlow 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 applicable law or a...
/* Copyright 2020 The TensorFlow 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 applicable law or a...
Fix wrong namespace in recently-added shim header.
Fix wrong namespace in recently-added shim header. PiperOrigin-RevId: 344072784 Change-Id: I8e1de38f2bb932afd9e905551953f45046db45c9
C
apache-2.0
petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_s...
7bcc2cb0b099c2ae9a39160886e5974d58c38329
test/bugs/cpp/strip_comment_ice.c
test/bugs/cpp/strip_comment_ice.c
#ifdef GNU_VARIADIC # define FOO(args...) do { foo(args); } while (0) #else # define FOO(...) do { foo(__VA_ARGS__); } while (0) #endif #define BAR(x) FOO("x"); FOO(")"); void foo(char *a) { BAR(); }
Add cpp comment stripping bug
Add cpp comment stripping bug
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
235202c66e7fd405c0b43fdf5a4de93f8e7d0950
elsa/in/k0059.c
elsa/in/k0059.c
struct S { int a; }; struct S foo () { struct S s; int i; s.a = i; return s; } int main() { int u; u = foo().a; }
Test case for returning structs by value (missing from previous checkin)
Test case for returning structs by value (missing from previous checkin)
C
bsd-3-clause
angavrilov/olmar,angavrilov/olmar,angavrilov/olmar,angavrilov/olmar
04981f7369b37585c856a32feb71eb264bf0db84
tools/spiffsimg/spiffs_typedefs.h
tools/spiffsimg/spiffs_typedefs.h
#include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> typedef int32_t s32_t; typedef uint32_t u32_t; typedef int16_t s16_t; typedef uint16_t u16_t; typedef int8_t s8_t; typedef uint8_t u8_t; typedef long long ptrdiff_t; #define offsetof(type, member) __builtin_offsetof (type, member)
#include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> typedef int32_t s32_t; typedef uint32_t u32_t; typedef int16_t s16_t; typedef uint16_t u16_t; typedef int8_t s8_t; typedef uint8_t u8_t; #ifndef __CYGWIN__ typedef long long ptrdiff_t; #define offsetof(type, member) __builtin_offseto...
Add cygwin support for compiling spiffsimg
Add cygwin support for compiling spiffsimg
C
mit
FelixPe/nodemcu-firmware,HEYAHONG/nodemcu-firmware,nwf/nodemcu-firmware,FelixPe/nodemcu-firmware,devsaurus/nodemcu-firmware,eku/nodemcu-firmware,marcelstoer/nodemcu-firmware,vsky279/nodemcu-firmware,TerryE/nodemcu-firmware,TerryE/nodemcu-firmware,devsaurus/nodemcu-firmware,nwf/nodemcu-firmware,nodemcu/nodemcu-firmware,...
e8b7e4110f4f652baf8badb3b63a8ea2fa644fa4
Hamming_Weigth/C/Hamming_Weigth.c
Hamming_Weigth/C/Hamming_Weigth.c
#include <stdint.h> int32_t NumberOfSetBits(int32_t i) { i = i - ((i >> 1) & 0x55555555); i = (i & 0x33333333) + ((i >> 2) & 0x33333333); return (((i + (i >> 4)) & 0x0F0F0F0F) * 0x01010101) >> 24; }
Add Hamming weigth in C
Add Hamming weigth in C
C
mit
jb1717/Algorithm-Implementations,aayushKumarJarvis/Algorithm-Implementations,AntonioModer/Algorithm-Implementations,Yonaba/Algorithm-Implementations,Endika/Algorithm-Implementations,imrandomizer/Algorithm-Implementations,pravsingh/Algorithm-Implementations,AntonioModer/Algorithm-Implementations,imrandomizer/Algorithm-I...
e2a56532a31b57dbe6e8f6bec74899deb724b2a3
chrome/browser/extensions/extension_message_handler.h
chrome/browser/extensions/extension_message_handler.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #pragma once #include "...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_ #pragma once #include "...
Clarify class comment for ExtensionMessageHandler.
Clarify class comment for ExtensionMessageHandler. TBR=jam@chromium.org git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@82674 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
patrickm/chromium.src,rogerwang/chromium,pozdnyakov/chromium-crosswalk,ltilve/chromium,axinging/chromium-crosswalk,zcbenz/cefode-chromium,ltilve/chromium,fujunwei/chromium-crosswalk,markYoungH/chromium.src,ondra-novak/chromium.src,robclark/chromium,axinging/chromium-crosswalk,axinging/chromium-crosswalk,mohamed--abdel-...
93bab8bda167cd28c0b356001a043927ff9f9a50
test/Driver/XRay/xray-instrument-os.c
test/Driver/XRay/xray-instrument-os.c
// RUN: not %clang -o /dev/null -v -fxray-instrument -c %s // XFAIL: -linux- // REQUIRES-ANY: amd64, x86_64, x86_64h, arm, aarch64, arm64 typedef int a;
// RUN: not %clang -o /dev/null -v -fxray-instrument -c %s // XFAIL: -linux- // REQUIRES: amd64 || x86_64 || x86_64h || arm || aarch64 || arm64 typedef int a;
Replace `REQUIRES-ANY: a, b, c` with `REQUIRES: a || b || c`.
[test] Replace `REQUIRES-ANY: a, b, c` with `REQUIRES: a || b || c`. Requires the new `lit` boolean expressions in LLVM r292896. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@292897 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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
090cf42f736ad66ecc9360cf2770d83f8ea30574
3RVX/Controllers/Volume/VolumeTransformation.h
3RVX/Controllers/Volume/VolumeTransformation.h
#pragma once class VolumeTransformation { public: /// <summary> /// Transforms a given volume level to a new ("virtual") level based on a /// formula or set of rules (e.g., a volume curve transformation). /// </summary> virtual float Apply(float vol) = 0; /// <summary> /// Given a transfor...
#pragma once class VolumeTransformation { public: /// <summary> /// Transforms a given volume level to a new ("virtual") level based on a /// formula or set of rules (e.g., a volume curve transformation). /// </summary> virtual float Apply(float vol) = 0; /// <summary> /// Given a transfor...
Add methods to apply multiple transformations
Add methods to apply multiple transformations
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
0d2669635000a9815823129f10641fecfbe68da3
master/types.h
master/types.h
//Declarations for master types typedef enum { Register = 0 } MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.) typedef struct { uint8_t Address; //Device address uint8_t Code; //Exception code } MODBUSExceptionLog; //Parsed exception data typedef struct { uint8_t Address; //Device address ...
//Declarations for master types typedef enum { Register = 0 } MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.) typedef struct { uint8_t Address; //Device address uint8_t Function; //Function called, in which exception occured uint8_t Code; //Exception code } MODBUSExceptionLog; //Parsed exce...
Add function ID member in MODBUSExceptionLog structure
Add function ID member in MODBUSExceptionLog structure
C
mit
Jacajack/modlib
3463c9ea4607dd986af7d82c905acbb8b2e21f27
test/Analysis/std-c-library-functions-inlined.c
test/Analysis/std-c-library-functions-inlined.c
// RUN: %clang_analyze_cc1 -analyzer-checker=unix.StdCLibraryFunctions -verify %s // RUN: %clang_analyze_cc1 -triple i686-unknown-linux -analyzer-checker=unix.StdCLibraryFunctions -verify %s // RUN: %clang_analyze_cc1 -triple x86_64-unknown-linux -analyzer-checker=unix.StdCLibraryFunctions -verify %s // RUN: %clang_ana...
Add a test forgotten in r339088.
[analyzer] Add a test forgotten in r339088. Differential Revision: https://reviews.llvm.org/D50363 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@339726 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
9705782c98265c05bc87a10b1fb69bd35781c754
decoder/dict.h
decoder/dict.h
#ifndef DICT_H_ #define DICT_H_ #include <cassert> #include <cstring> #include <tr1/unordered_map> #include <string> #include <vector> #include <boost/functional/hash.hpp> #include "wordid.h" class Dict { typedef std::tr1::unordered_map<std::string, WordID, boost::hash<std::string> > Map; public: Dict() : b0_("...
#ifndef DICT_H_ #define DICT_H_ #include <cassert> #include <cstring> #include <tr1/unordered_map> #include <string> #include <vector> #include <boost/functional/hash.hpp> #include "wordid.h" class Dict { typedef std::tr1::unordered_map<std::string, WordID, boost::hash<std::string> > Map; public: Dict() : b0_(...
Update utility functions to work with pyp-topics.
Update utility functions to work with pyp-topics. git-svn-id: 357248c53bdac2d7b36f7ee045286eb205fcf757@49 ec762483-ff6d-05da-a07a-a48fb63a330f
C
apache-2.0
pks/cdec-dtrain-legacy,kho/mr-cdec,kho/mr-cdec,agesmundo/FasterCubePruning,agesmundo/FasterCubePruning,kho/mr-cdec,agesmundo/FasterCubePruning,pks/cdec-dtrain-legacy,pks/cdec-dtrain-legacy,agesmundo/FasterCubePruning,pks/cdec-dtrain-legacy,agesmundo/FasterCubePruning,kho/mr-cdec,kho/mr-cdec,agesmundo/FasterCubePruning,...
723fda1013baccca0a0686d465fb47b426ebc6b8
bayesiannetwork.h
bayesiannetwork.h
#include "bayesian.h" namespace baysian { class bayesianNetwork : public bayesian { private: long double ***cpt; double *classCount; // this array store the total number of each // decision's class in training data int *discrete; int *classNum; // this array store the number ...
#include "bayesian.h" namespace baysian { class bayesianNetwork : public bayesian { private: long double ***cpt; int **parent; public: bayesianNetwork(char *); ~bayesianNetwork(); // initialize all the information we need from training data void predict(char *); // calculate the probabili...
Move variable to base class
Move variable to base class
C
mit
lrvine/Bayesian
a4dc43cdec3a5bdee8829e4104ff732f995c8cc6
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 97 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 98 #endif
Update Skia milestone to 98
Update Skia milestone to 98 Change-Id: I937e0594b8fa3a1cc5ac2e2b80d1f0f406772817 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/468338 Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com> Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
C
bsd-3-clause
aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_exter...
7acf4549932adde2961864023db47ebfde07440d
test/Frontend/dependency-gen.c
test/Frontend/dependency-gen.c
// rdar://6533411 // RUN: %clang -MD -MF %t.d -S -x c -o %t.o %s // RUN: grep '.*dependency-gen.*:' %t.d // RUN: grep 'dependency-gen.c' %t.d // RUN: %clang -S -M -x c %s -o %t.d // RUN: grep '.*dependency-gen.*:' %t.d // RUN: grep 'dependency-gen.c' %t.d // PR8974 // XFAIL: win32 // RUN: rm -rf %t.dir // RUN: mkdir ...
// rdar://6533411 // RUN: %clang -MD -MF %t.d -S -x c -o %t.o %s // RUN: grep '.*dependency-gen.*:' %t.d // RUN: grep 'dependency-gen.c' %t.d // RUN: %clang -S -M -x c %s -o %t.d // RUN: grep '.*dependency-gen.*:' %t.d // RUN: grep 'dependency-gen.c' %t.d // PR8974 // XFAIL: win32 // RUN: rm -rf %t.dir // RUN: mkdir ...
Tweak this test a bit further to make it easier on grep. Who knows what characters get dropped into the regular expression from %t.
Tweak this test a bit further to make it easier on grep. Who knows what characters get dropped into the regular expression from %t. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@126361 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
3df2ab08d7c3be79b496ebc746ca371ba25a3db1
util/malloccache.h
util/malloccache.h
#ifndef MALLOCCACHE_H #define MALLOCCACHE_H template <size_t blockSize, size_t blockCount> class MallocCache { public: MallocCache() : m_blocksCached(0) { } ~MallocCache() { assert(m_blocksCached >= 0 && m_blocksCached <= blockCount); for (size_t i = 0; i < m_blocksCached; i...
#ifndef MALLOCCACHE_H #define MALLOCCACHE_H template <size_t blockSize, size_t blockCount> class MallocCache { public: MallocCache() : m_blocksCached(0) { } ~MallocCache() { assert(m_blocksCached >= 0 && m_blocksCached <= blockCount); for (size_t i = 0; i < m_blocksCached; i...
Fix a preprocessor syntax error. Strangely, the file still compiled.
Fix a preprocessor syntax error. Strangely, the file still compiled.
C
lgpl-2.1
KDE/dferry,KDE/dferry
ddde9def184d2a4aae122a74db99ec1b732504e5
benchmarks/halide/wrapper_fusion.h
benchmarks/halide/wrapper_fusion.h
#ifndef HALIDE__build___wrapper_fusion_o_h #define HALIDE__build___wrapper_fusion_o_h #include <coli/utils.h> #ifdef __cplusplus extern "C" { #endif int fusion_coli(buffer_t *_b_input_buffer, buffer_t *_b_output_f_buffer, buffer_t *_b_output_g_buffer) HALIDE_FUNCTION_ATTRS; int fusion_coli_argv(void **args) HALIDE_F...
#ifndef HALIDE__build___wrapper_fusion_o_h #define HALIDE__build___wrapper_fusion_o_h #include <coli/utils.h> #ifdef __cplusplus extern "C" { #endif int fusion_coli(buffer_t *_b_input_buffer, buffer_t *_b_output_f_buffer, buffer_t *_b_output_g_buffer, buffer_t *_b_output_h_buffer, buffer_t *_b_output_k_buffer) HALID...
Update wrapper fusion header file
Update wrapper fusion header file
C
mit
rbaghdadi/tiramisu,rbaghdadi/COLi,rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/ISIR,rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/tiramisu
9c3742a8d8a829ec746e0a974aa30fb5dd0e3d1a
src/tslib-private.h
src/tslib-private.h
#ifndef _TSLIB_PRIVATE_H_ #define _TSLIB_PRIVATE_H_ /* * tslib/src/tslib-private.h * * Copyright (C) 2001 Russell King. * * This file is placed under the LGPL. * * * Internal touch screen library definitions. */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include "tslib.h" #include "tslib-filt...
#ifndef _TSLIB_PRIVATE_H_ #define _TSLIB_PRIVATE_H_ /* * tslib/src/tslib-private.h * * Copyright (C) 2001 Russell King. * * This file is placed under the LGPL. * * * Internal touch screen library definitions. */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include "tslib.h" #include "tslib-filt...
Enable debug option for all components
Enable debug option for all components
C
lgpl-2.1
kergoth/tslib,vpeter4/tslib,lin2724/tslib,lin2724/tslib,vpeter4/tslib,pssc/tslib,kergoth/tslib,kobolabs/tslib,etmatrix/tslib,jaretcantu/tslib,leighmurray/tslib,pssc/tslib,kobolabs/tslib,etmatrix/tslib,pssc/tslib,leighmurray/tslib,folkien/tslib,folkien/tslib,etmatrix/tslib,kergoth/tslib,kergoth/tslib,jaretcantu/tslib,ko...
c5600ec92f953554dbb2f34ab8b17938620cff65
src/os/Win32/os_common.h
src/os/Win32/os_common.h
#ifndef OS_COMMON_H_ #define OS_COMMON_H_ #include <stddef.h> #include <fcntl.h> #include <io.h> #include <stdio.h> /* * MinGW lfind() and friends use `unsigned int *` where they should use a * `size_t *` according to the man page. */ typedef unsigned int lfind_size_t; // timeradd doesn't exist on MinGW #ifndef t...
#ifndef OS_COMMON_H_ #define OS_COMMON_H_ #include <stddef.h> #include <fcntl.h> #include <io.h> #include <stdio.h> #include <sys/time.h> /* * MinGW lfind() and friends use `unsigned int *` where they should use a * `size_t *` according to the man page. */ typedef unsigned int lfind_size_t; // timeradd doesn't ex...
Implement timeradd as an inline function
Implement timeradd as an inline function
C
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
9004e0e41a58b5af376d169bf91d320ce6705b36
adapters/Vungle/Public/Headers/VungleAdNetworkExtras.h
adapters/Vungle/Public/Headers/VungleAdNetworkExtras.h
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
Add video orientation to play ad option
Add video orientation to play ad option
C
apache-2.0
googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation
7c73373b2c3a3b22afa807ac64d468cdf5e0f570
hellow_ioctl.h
hellow_ioctl.h
#ifndef HELLOW_IOCTL_H #define HELLOW_IOCTL_H #define HWM_LOG_OFF 0xff00 #define HWM_LOG_ON 0xff01 #endif
#ifndef HELLOW_IOCTL_H #define HELLOW_IOCTL_H #define HWM_LOG_OFF 0xff00 #define HWM_LOG_ON 0xff01 #define HWM_GET_LOG_ENT_SIZE 0xff02 #define HWM_GET_LOG_ENT 0xff03 #endif
Add macros for ioctl fetching of log data.
Add macros for ioctl fetching of log data.
C
apache-2.0
utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey
f7629773ce822641fcb918f68c4c47d79c90f903
Artsy/Classes/Views/ARArtworkRelatedArtworksView.h
Artsy/Classes/Views/ARArtworkRelatedArtworksView.h
#import "ARArtworkMasonryModule.h" #import "ARArtworkViewController.h" typedef NS_ENUM(NSInteger, ARRelatedArtworksSubviewOrder) { ARRelatedArtworksSameShow = 1, ARRelatedArtworksSameFair, ARRelatedArtworksSameAuction, ARRelatedArtworksArtistArtworks, ARRelatedArtworks, }; @class ARArtworkRelatedA...
#import "ARArtworkMasonryModule.h" #import "ARArtworkViewController.h" typedef NS_ENUM(NSInteger, ARRelatedArtworksSubviewOrder) { ARRelatedArtworksSameShow = 1, ARRelatedArtworksSameFair, ARRelatedArtworksSameAuction, ARRelatedArtworksArtistArtworks, ARRelatedArtworks, }; @class ARArtworkRelatedA...
Make adding related works sections private.
[Artwork] Make adding related works sections private.
C
mit
1aurabrown/eigen,artsy/eigen,Havi4/eigen,artsy/eigen,mbogh/eigen,TribeMedia/eigen,gaurav1981/eigen,Havi4/eigen,artsy/eigen,ichu501/eigen,sarahscott/eigen,orta/eigen,ichu501/eigen,gaurav1981/eigen,ashkan18/eigen,ayunav/eigen,liduanw/eigen,ACChe/eigen,artsy/eigen,artsy/eigen,foxsofter/eigen,Shawn-WangDapeng/eigen,ayunav/...
5699bd2a8106b4fefd59fb4c3a5a63a295a86a6a
OutputBitmap.h
OutputBitmap.h
#ifndef OUTPUTBITMAP_H #define OUTPUTBITMAP_H #include <iostream> #include "common.h" using std::ostream; class OutputBitmap { protected: unsigned int width, height; OutputBitmap(unsigned int width, unsigned int height) : width(width), height(height) {}; public: unsigned int getWidth() const { return width;...
Add an abstract bitmap class.
Add an abstract bitmap class.
C
mit
bertptrs/raytracpp
c183c2b8aac1bfaefe82c9532bd16ec0f373142b
lib/callbacks.c
lib/callbacks.c
#include <libterm_internal.h> void term_update(term_t_i *term) { if( term->dirty.exists && term->update != NULL ) { term->update(TO_H(term), term->dirty.x, term->dirty.y, term->dirty.width, term->dirty.height); term->dirty.exists = false; } } void term_cursor_update(term_t_i *term) { if( t...
#include <libterm_internal.h> void term_update(term_t_i *term) { if( term->dirty.exists && term->update != NULL ) { term->update(TO_H(term), term->dirty.x, term->dirty.y - (term->grid.history - term->grid.height), term->dirty.width, term->dirty.height); term->dirty.exists = false; } } void ter...
Fix update callback position to be grid-relative not scrollback-relative.
Fix update callback position to be grid-relative not scrollback-relative.
C
apache-2.0
absmall/libterm,absmall/libterm
21c2371374733091f549f1c7451261e6237af646
ext/ffi_c/rbffi.h
ext/ffi_c/rbffi.h
/* * File: rbffi.h * Author: wayne * * Created on August 27, 2008, 5:40 PM */ #ifndef _RBFFI_H #define _RBFFI_H #include <ruby.h> #ifdef __cplusplus extern "C" { #endif #define MAX_PARAMETERS (32) extern void rb_FFI_AbstractMemory_Init(); extern void rb_FFI_MemoryPointer_Init(); extern void rb_FFI_Buff...
#ifndef _RBFFI_H #define _RBFFI_H #include <ruby.h> #ifdef __cplusplus extern "C" { #endif #define MAX_PARAMETERS (32) extern void rb_FFI_AbstractMemory_Init(); extern void rb_FFI_MemoryPointer_Init(); extern void rb_FFI_Buffer_Init(); extern void rb_FFI_Callback_Init(); extern void rb_FFI_Invoker_Init(); exter...
Remove comment at top of file
Remove comment at top of file
C
bsd-3-clause
ffi/ffi,sparkchaser/ffi,yghannam/ffi,yghannam/ffi,sparkchaser/ffi,tduehr/ffi,MikaelSmith/ffi,sparkchaser/ffi,MikaelSmith/ffi,sparkchaser/ffi,MikaelSmith/ffi,mvz/ffi,ferventcoder/ffi,yghannam/ffi,ferventcoder/ffi,majioa/ffi,mvz/ffi,ferventcoder/ffi,tduehr/ffi,MikaelSmith/ffi,ferventcoder/ffi,ffi/ffi,tduehr/ffi,mvz/ffi,y...
8504c7c838219029c7e92818f663c777b8bbe5b6
common_audio/signal_processing/cross_correlation.c
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-Original-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9491} Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc Cr-Mirrored-Commit: 6bfc82aaf18e...
C
bsd-3-clause
jchavanton/webrtc,aleonliao/webrtc-trunk,jchavanton/webrtc,Alkalyne/webrtctrunk,jchavanton/webrtc,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,sippet/webrtc,jchavanton/webrtc,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,jchavanton/webrtc,sippet/webrtc,jchavanton/webrtc,Alkalyne/webrtctrunk,aleonliao/...
8d3fcee6c93cff3bded1a37cdd052da1ef89c65d
src/shared/Threading/AEThread.h
src/shared/Threading/AEThread.h
#pragma once #include "ThreadState.h" #include <atomic> #include <mutex> #include <thread> // Lightweight wrapper for std::thread to provide extensibility namespace AscEmu { namespace Threading { class AEThread { typedef std::function<void(AEThread&)> ThreadFunc; static std::atomic<unsigned i...
#pragma once #include "ThreadState.h" #include <atomic> #include <mutex> #include <thread> // Lightweight wrapper for std::thread to provide extensibility namespace AscEmu { namespace Threading { class AEThread { typedef std::function<void(AEThread&)> ThreadFunc; static std::atomic<unsigned i...
Make threads autostart by default
Make threads autostart by default
C
agpl-3.0
master312/AscEmu,Appled/AscEmu,master312/AscEmu,AscEmu/AscEmu,Appled/AscEmu,master312/AscEmu,AscEmu/AscEmu,Appled/AscEmu,AscEmu/AscEmu,master312/AscEmu,master312/AscEmu,master312/AscEmu
dec3653d15e4bbe71c1652d9f75e8a0b8573a3ee
libpkg/pkg_error.h
libpkg/pkg_error.h
#ifndef _PKG_ERROR_H #define _PKG_ERROR_H #ifdef DEBUG # define pkg_error_set(code, fmt, ...) \ _pkg_error_set(code, fmt " [at %s:%d]", ##__VA_ARGS__, __FILE__, __LINE__) #else # define pkg_error_set _pkg_error_set #endif #define ERROR_BAD_ARG(name) \ pkg_error_set(EPKG_FATAL, "Bad argument `%s` in %s", name, __FU...
#ifndef _PKG_ERROR_H #define _PKG_ERROR_H #ifdef DEBUG # define pkg_error_set(code, fmt, ...) \ _pkg_error_set(code, fmt " [at %s:%d]", ##__VA_ARGS__, __FILE__, __LINE__) #else # define pkg_error_set _pkg_error_set #endif #define ERROR_BAD_ARG(name) \ pkg_error_set(EPKG_FATAL, "Bad argument `%s` in %s", name, __FU...
Revert "Indicate the location of sqlite failures."
Revert "Indicate the location of sqlite failures." This reverts commit 2686383409d98488ae7b2c39d531af9ef380e21a.
C
bsd-2-clause
junovitch/pkg,Open343/pkg,junovitch/pkg,khorben/pkg,khorben/pkg,skoef/pkg,Open343/pkg,skoef/pkg,khorben/pkg,en90/pkg,en90/pkg
7ef1bd0d3543ec940405f94e3c908771b6a3c210
lib/uart.h
lib/uart.h
/** * This is used to setup the UART device on an AVR unit. */ #pragma once #include <avr/io.h> #ifndef BAUD # define BAUD 9600 # warning BAUD rate not set. Setting BAUD rate to 9600. #endif // BAUD #define BAUDRATE ((F_CPU)/(BAUD*16UL)-1) static inline void uart_enable(void) { UBRR0H = BAUDRATE >> 8; UBR...
/** * This is used to setup the UART device on an AVR unit. */ #pragma once #include <avr/io.h> #ifndef BAUD # define BAUD 9600 # warning BAUD rate not set. Setting BAUD rate to 9600. #endif // BAUD #define BAUDRATE ((F_CPU)/(BAUD*16UL)-1) static inline void uart_enable(void) { UBRR0H = BAUDRATE >> 8; UBR...
Correct the frame format and async mode for the UART. Add useful comments.
Correct the frame format and async mode for the UART. Add useful comments.
C
mpl-2.0
grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr
c3592830e44ccb737e9df0b86d310c1d7dcfc17d
set-1/5-repeating-key-xor.c
set-1/5-repeating-key-xor.c
#include <stdio.h> char input[] = "Burning 'em, if you ain't quick and nimble\nI go crazy when I hear a cymbal"; char key[] = "ICE"; char lookup[] = "0123456789abcdef"; int main() { for(unsigned int i = 0; i < (sizeof(input) - 1); ++i) { char num = input[i] ^ key[i % (sizeof(key) - 1)]; printf("%c%c", loo...
Set 1 challenge 5 Implement repeating-key XOR
Set 1 challenge 5 Implement repeating-key XOR
C
mit
shantanugoel/cryptopals-solutions,shantanugoel/cryptopals-solutions
eb310eabb13ab391eb3feaccae8c937b29f726fe
src/main.c
src/main.c
#include "common.h" int main(int argc, char **argv) { return 0; }
#include "common.h" #include <stdlib.h> #include <stdio.h> #include <string.h> internal void usage() { fprintf(stderr, "usage: mepa <command> [<options>] [<args>]\n" "\n" "Commands:\n" " help - show this usage text\n" " format [<file>] - reformat code\n...
Add basic argument parsing and file reading
Add basic argument parsing and file reading
C
isc
klkblake/mepa,klkblake/mepa
dd552085c82924e28eaab28fad410b459c3fd71a
src/main.c
src/main.c
#include <stdio.h> #include "src/sea.h" int main(int argc, char* argv[]) { // parse arguments while((opt = getopt(argc, argv, "d:")) != -1) { switch(opt) { case 'd': { extern int yydebug; yydebug = 1; } default: { fpri...
#include <stdlib.h> #include <stdio.h> #include "src/sea.h" int main(int argc, char* argv[]) { // parse arguments char opt; extern int optind; while((opt = getopt(argc, argv, "d")) != -1) { switch(opt) { case 'd': { extern int yydebug; yydebug = 1; ...
Mend command line flag parsing
Mend command line flag parsing
C
mit
Mause/sea_lang,Mause/sea_lang,Mause/sea_lang
68b86d666521178f1b994c6c86a5539e35f66a52
paddle/fluid/framework/details/execution_strategy.h
paddle/fluid/framework/details/execution_strategy.h
// Copyright (c) 2018 PaddlePaddle 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...
// Copyright (c) 2018 PaddlePaddle 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...
Change default value to align with the original react
Change default value to align with the original react test=develop
C
apache-2.0
chengduoZH/Paddle,PaddlePaddle/Paddle,tensor-tang/Paddle,tensor-tang/Paddle,luotao1/Paddle,chengduoZH/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,baidu/Paddle,luotao1/Paddle,chengduoZH/Paddle,chengduoZH/Paddle,baidu/Paddle,chengduoZH/Paddle,luotao1/Paddle,tensor-tang/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,baidu/Paddle...
7d8a38b200cd70bef0300ce482c0723e8d64406b
log/log_singleton.h
log/log_singleton.h
#ifndef _LOG_SINGLETON_H_ #define _LOG_SINGLETON_H_ #include "log.h" #include "basedefs.h" namespace anp { class LogSingleton: public anp::Log { public: static LogSingleton &getInstance(); static void releaseInstance(); private: LogSingleton() { } ~LogSingleton() { } static uint32 m_refCount; static LogSingl...
#ifndef _LOG_SINGLETON_H_ #define _LOG_SINGLETON_H_ #include "log.h" #include "basedefs.h" namespace anp { class LogSingleton: public anp::Log { public: static LogSingleton &getInstance(); static void releaseInstance(); private: LogSingleton() { } ~LogSingleton() { } static uint32 m_refCount; static LogSingl...
Add overloaded () operator to LogSingletonHelper.
Add overloaded () operator to LogSingletonHelper.
C
bsd-2-clause
antonp/anpcode,antonp/anpcode
b85b078b0ce485c342dc726069a2f8cb9c23411f
src/libstat/learn_cache/learn_cache.h
src/libstat/learn_cache/learn_cache.h
/* * Copyright (c) 2015, Vsevolod Stakhov * * 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 retain the above copyright * notice, this list of co...
Add preliminary API definition for learn cache.
Add preliminary API definition for learn cache.
C
bsd-2-clause
amohanta/rspamd,andrejzverev/rspamd,dark-al/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,amohanta/rspamd,dark-al/rspamd,awhitesong/rspamd,andrejzverev/rspamd,amohanta/rspamd,minaevmike/rspamd,andrejzverev/rspamd,minaevmike/rspamd,amohanta...
1f78619803e925c12e7d222bf1af0d1de96e930c
static_block.c
static_block.c
extern int printf(char *, ...); void (^pb)() = ^{ return; }; int i, j; int *(^funcs[])() = { [0 ... 1] = ^{ printf("1!\n"); return &i; }, ^{ printf("2!\n"); return &j; }, }; void *f(int x) { return funcs[x](); } main() { printf("&i = %p\n", &i); printf("&j = %p\n", &j); for(int i = 0; i < 3; i++) printf("f...
Test case for static storage blocks
Test case for static storage blocks
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
9a1a3f47cc175cb4588451e2c6bf2147407e16f0
test/Analysis/null-deref-path-notes.c
test/Analysis/null-deref-path-notes.c
// RUN: %clang_analyze_cc1 -w -x c -analyzer-checker=core -analyzer-output=text -verify %s // Avoid the crash when finding the expression for tracking the origins // of the null pointer for path notes. Apparently, not much actual tracking // needs to be done in this example. void pr34373() { int *a = 0; // expected-...
// RUN: %clang_analyze_cc1 -w -x c -analyzer-checker=core -analyzer-output=text -verify %s // Avoid the crash when finding the expression for tracking the origins // of the null pointer for path notes. void pr34373() { int *a = 0; // expected-note{{'a' initialized to a null pointer value}} (a + 0)[0]; // expected-...
Fix an outdated comment in a test. NFC.
[analyzer] Fix an outdated comment in a test. NFC. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@314298 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang
8bc349742bc3c97da5bb88d382bc0860f7eb3399
SearchEngine/UnicodeUtf16StringSearcher.h
SearchEngine/UnicodeUtf16StringSearcher.h
#pragma once class UnicodeUtf16StringSearcher { private: const wchar_t* m_Pattern; uint32_t m_PatternLength; public: UnicodeUtf16StringSearcher() : m_Pattern(nullptr) { } void Initialize(const wchar_t* pattern, size_t patternLength) { if (patternLength > std::numeric_limits<uint32_t>::max() / 2) __fast...
#pragma once class UnicodeUtf16StringSearcher { private: const wchar_t* m_Pattern; uint32_t m_PatternLength; public: UnicodeUtf16StringSearcher() : m_Pattern(nullptr) { } void Initialize(const wchar_t* pattern, size_t patternLength) { if (patternLength > std::numeric_limits<uint32_t>::max() / 2) __fast...
Fix case insensitive UTF16 string search.
Fix case insensitive UTF16 string search.
C
mit
TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch
ada0b227c20f2ee303c5f9c7bec59f2c252dc9a2
src/Charmap.h
src/Charmap.h
#ifndef CHARMAP_H #define CHARMAP_H #include <unordered_map> class Charmap { public: void cfToAscii(); void asciiToCf(); private: std::unordered_map<uint8_t, uint8_t> map; }; #endif
Add character mapper stub class
Add character mapper stub class
C
mit
malensek/cryctl,malensek/cryctl
1b37acc75816e0c079aebbb3473bfee5762829bb
tests/regression/13-privatized/22-traces-paper.c
tests/regression/13-privatized/22-traces-paper.c
// PARAM: --enable ana.int.interval --sets exp.solver.td3.side_widen cycle_self #include <pthread.h> #include <assert.h> int g = 6; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { int x = 1; pthread_mutex_lock(&A); assert(g == 6); assert(x...
Add example from traces paper
Add example from traces paper
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
1c242f3f29c36dc6cc5d8233d51c5e4c18be079b
src/QGCConfig.h
src/QGCConfig.h
#ifndef QGC_CONFIGURATION_H #define QGC_CONFIGURATION_H #include <QString> /** @brief Polling interval in ms */ #define SERIAL_POLL_INTERVAL 4 /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 #define WITH_TEXT_TO_SPEECH 1 // If you need to make an incompati...
#ifndef QGC_CONFIGURATION_H #define QGC_CONFIGURATION_H #include <QString> /** @brief Polling interval in ms */ #define SERIAL_POLL_INTERVAL 4 /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 #define WITH_TEXT_TO_SPEECH 1 // If you need to make an incompati...
Switch to Stable V2.3 Release Candidates
Switch to Stable V2.3 Release Candidates
C
agpl-3.0
RedoXyde/PX4_qGCS,fizzaly/qgroundcontrol,CornerOfSkyline/qgroundcontrol,greenoaktree/qgroundcontrol,Hunter522/qgroundcontrol,CornerOfSkyline/qgroundcontrol,hejunbok/qgroundcontrol,catch-twenty-two/qgroundcontrol,remspoor/qgroundcontrol,UAVenture/qgroundcontrol,caoxiongkun/qgroundcontrol,devbharat/qgroundcontrol,CornerO...
3310df62860d762d150833524c9bc5dc3126dbee
src/logging.c
src/logging.c
#include <stdio.h> #include <stdlib.h> #include <syslog.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <US/unitscript.h> #include <US/logging.h> int us_syslog_redirect( struct us_unitscript* unit, int priority ){ int fds[2]; if( pipe(fds) ){ perror("pipe failed"); return -1; } ...
#include <stdio.h> #include <stdlib.h> #include <syslog.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <US/unitscript.h> #include <US/logging.h> int us_syslog_redirect( struct us_unitscript* unit, int priority ){ int fds[2]; if( pipe(fds) ){ perror("pipe failed"); return -1; } ...
Reduce memory usage of us_syslog_redirect
Reduce memory usage of us_syslog_redirect
C
mit
Daniel-Abrecht/unitscript
b94f14c84c567c1c0433bba0e4f12d0d4771b718
extensions/protocol_extension.h
extensions/protocol_extension.h
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef EXAMPLE_PROTOCOL_H #define EXAMPLE_PROTOCOL_H #include <daemon/settings.h> #include <memcached/engine.h> #ifdef __cplusplus extern "C" { #endif MEMCACHED_PUBLIC_API EXTENSION_ERROR_CODE memcached_extensions_initialize(const ...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef EXAMPLE_PROTOCOL_H #define EXAMPLE_PROTOCOL_H #include <daemon/settings.h> #include <memcached/engine.h> #ifdef __cplusplus extern "C" { #endif MEMCACHED_PUBLIC_API EXTENSION_ERROR_CODE memcached_extensions_initialize(const ...
Fix dlsym error 'Could not find symbol "file_logger_initialize"'
Fix dlsym error 'Could not find symbol "file_logger_initialize"' Wrap file_logger_initialize into extern "C" to prevent name mangling, which caused the error above. Change-Id: I8c8e1e61599f2afb6dedf4e0b71c0a5a013ccbb7 Reviewed-on: http://review.couchbase.org/86829 Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a47...
C
bsd-3-clause
daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine
f87946732ab9e2e9be8e90793ca0c5939f9a939e
source/target/freescale/kl82z/target.c
source/target/freescale/kl82z/target.c
/** * @file target.c * @brief Target information for the kl46z * * DAPLink Interface Firmware * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in complian...
/** * @file target.c * @brief Target information for the kl46z * * DAPLink Interface Firmware * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in complian...
Fix ram end for kl82z
Fix ram end for kl82z Fix typo in target_device for the kl82z. This fixes programming for this device.
C
apache-2.0
google/DAPLink-port,google/DAPLink-port,sg-/DAPLink,google/DAPLink-port,sg-/DAPLink,sg-/DAPLink,google/DAPLink-port
ac0afc8c605ab6039b1a5c25f2b7105f7e5456f5
test/Preprocessor/headermap-rel2.c
test/Preprocessor/headermap-rel2.c
// This uses a headermap with this entry: // someheader.h -> Product/someheader.h // RUN: %clang_cc1 -v -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isysroot %S/Inputs/headermap-rel2/system -I %S/Inputs/headermap-rel2 -H // RUN: %clang_cc1 -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/...
// This uses a headermap with this entry: // someheader.h -> Product/someheader.h // RUN: %clang_cc1 -triple x86_64-apple-darwin13 -v -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isysroot %S/Inputs/headermap-rel2/system -I %S/Inputs/headermap-rel2 -H // RUN: %clang_cc1 -triple x86_64-apple...
Add a triple to the test.
[test] Add a triple to the test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@205073 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
c2d3e92d424bb2084050589c9e7e1214bbb565b5
test/wasm/soft/float/extenddftf2.c
test/wasm/soft/float/extenddftf2.c
#include "src/math/reinterpret.h" #include <math.h> #include <stdint.h> #include <assert.h> double __trunctfdf2(long double); static _Bool run(double x) { return reinterpret(uint64_t, x) == reinterpret(uint64_t, __trunctfdf2(x)); } int main(void) { const uint64_t step = 0x00000034CBF126F8; assert(run(IN...
Test double -> long double
Test double -> long double
C
mit
jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic
9785f6c7f58c21a10221aee23657cca4aa4ff883
MatrixSDK/Crypto/SecretStorage/MXSecretStorage_Private.h
MatrixSDK/Crypto/SecretStorage/MXSecretStorage_Private.h
/* Copyright 2020 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 2020 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 aes-hmac-sha2 encryption methods from `MXSecretStorage` available in SDK
Make aes-hmac-sha2 encryption methods from `MXSecretStorage` available in SDK
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
dc95f76e50db1a65d39630c854ebe40620fe9f00
You-DataStore/datastore.h
You-DataStore/datastore.h
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); static DataStore& get(); // Modifying methods v...
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); static DataStore& get(); // Modifying methods v...
Add active transaction member variable to DataStore
Add active transaction member variable to DataStore
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
376adcdd2b1aae6e7465a4307214447bc0de0a75
resources/standard_file_template.h
resources/standard_file_template.h
/******************************************************************************/ /** @file @author AUTHOR NAME HERE. @brief BRIEF HERE. @copyright Copyright 2016 The University of British Columbia, IonDB Project Contributors (see @ref AUTHORS.md) @par Licensed under the Apache License, Version 2.0 (the "Li...
/******************************************************************************/ /** @file @author AUTHOR NAME HERE. @brief BRIEF HERE. @copyright Copyright 2016 The University of British Columbia, IonDB Project Contributors (see @ref AUTHORS.md) @par Licensed under the Apache License, Version 2.0 (the "Li...
Fix smart quote in file template
Fix smart quote in file template
C
bsd-3-clause
iondbproject/iondb,iondbproject/iondb
1e0998cf1d80b72eafd1639c839c86ac6f38a6ef
test/util/SeqUtils.h
test/util/SeqUtils.h
#pragma once #include "rapidcheck/seq/Operations.h" namespace rc { namespace test { //! Forwards Seq a random amount and copies it to see if it is equal to the //! original. template<typename T> void assertEqualCopies(Seq<T> seq) { std::size_t len = seq::length(seq); std::size_t n = *gen::ranged<std::size_t>...
#pragma once #include "rapidcheck/seq/Operations.h" namespace rc { namespace test { //! Forwards Seq a random amount and copies it to see if it is equal to the //! original. Must not be infinite, of course. template<typename T> void assertEqualCopies(Seq<T> seq) { std::size_t len = seq::length(seq); std::siz...
Add clarifying comment for assertEqualCopies
Add clarifying comment for assertEqualCopies
C
bsd-2-clause
whoshuu/rapidcheck,tm604/rapidcheck,whoshuu/rapidcheck,emil-e/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,unapiedra/rapidfuzz,emil-e/rapidcheck,whoshuu/rapidcheck,tm604/rapidcheck,unapiedra/rapidfuzz,unapiedra/rapidfuzz
7f21701f058014bfb2fec187ef5330799adaf7a4
tests/test-tp-feed.c
tests/test-tp-feed.c
#include <anerley/anerley-tp-feed.h> #include <libmissioncontrol/mission-control.h> #include <glib.h> #include <dbus/dbus-glib.h> int main (int argc, char **argv) { GMainLoop *main_loop; MissionControl *mc; McAccount *account; AnerleyTpFeed *feed; DBusGConnection *conn; if (argc < 2) { g_p...
#include <anerley/anerley-tp-feed.h> #include <libmissioncontrol/mission-control.h> #include <glib.h> #include <dbus/dbus-glib.h> int main (int argc, char **argv) { GMainLoop *main_loop; MissionControl *mc; McAccount *account; AnerleyTpFeed *feed; DBusGConnection *conn; if (argc < 2) { g_p...
Add missing newline to usage print call.
Add missing newline to usage print call.
C
lgpl-2.1
meego-netbook-ux/anerley,meego-netbook-ux/anerley
5492c5f1f68623bab36842c5cc3fbb325e82d33b
src/lock.h
src/lock.h
#ifndef LOCK_H #define LOCK_H enum lockstat { GET_LOCK_NOT_GOT=0, GET_LOCK_ERROR, GET_LOCK_GOT }; typedef struct lock lock_t; struct lock { int fd; enum lockstat status; char *path; lock_t *next; }; extern struct lock *lock_alloc(void); extern int lock_init(struct lock *lock, const char *path); extern struct...
#ifndef LOCK_H #define LOCK_H enum lockstat { GET_LOCK_NOT_GOT=0, GET_LOCK_ERROR, GET_LOCK_GOT }; struct lock { int fd; enum lockstat status; char *path; struct lock *next; }; extern struct lock *lock_alloc(void); extern int lock_init(struct lock *lock, const char *path); extern struct lock *lock_alloc_and_in...
Fix a build issue on Solaris
Fix a build issue on Solaris
C
agpl-3.0
rubenk/burp,rubenk/burp,rubenk/burp
06d500a9bf493403b1c9a9502f687f8d82cae1a6
LYCategory/Classes/_UIKit/UINavigationBar+Fix.h
LYCategory/Classes/_UIKit/UINavigationBar+Fix.h
// // UINavigationBar+Fix.h // LYCategory // // Created by Luo Yu on 2017/02/11. // Copyright (c) 2014 Luo Yu. All rights reserved. // #import <UIKit/UIKit.h> @interface UINavigationBar (Fix) @end
Add : navigation bar fix
Add : navigation bar fix
C
mit
blodely/LYCategory,blodely/LYCategory,blodely/LYCategory,blodely/LYCategory
d48a0e271421d2f6020ac6ac41384be83e3f2c6e
tests/regression/37-congruence/10-overflow-special-cases.c
tests/regression/37-congruence/10-overflow-special-cases.c
// PARAM: --enable ana.int.congruence #include <goblint.h> // #include <assert.h> // #define __goblint_check(e) assert(e) int basic(){ unsigned int two_pow_16 = 65536; unsigned int a; unsigned int b; if (a % two_pow_16 == 3) { if (b % two_pow_16 == 5) { __goblint_check(a % two_pow_16 == 3); __goblint_c...
Add additional test case for handling of overflows in congruence domain.
Add additional test case for handling of overflows in congruence domain.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
a9e2b1a5c66b837b0a25ddd571f96b71a95453cb
assembler/d16-main/main.c
assembler/d16-main/main.c
// // main.c // d16-asm // // Created by Michael Nolan on 6/17/16. // Copyright © 2016 Michael Nolan. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include "parser.h" #include "assembler.h" #include <string.h> #include "instruction.h" #include <unistd.h> extern int yyparse (FILE* output_file); ex...
// // main.c // d16-asm // // Created by Michael Nolan on 6/17/16. // Copyright © 2016 Michael Nolan. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include "parser.h" #include "assembler.h" #include <string.h> #include "instruction.h" #include <unistd.h> extern int yyparse (FILE* output_file); ex...
Add help and binary options
Add help and binary options
C
mit
d16-processor/d16,d16-processor/d16,d16-processor/d16,d16-processor/d16,d16-processor/d16
970da55f2320bef2103f879f4b6c7278b431bfbe
cast/cast.h
cast/cast.h
/* * CAST-128 in C * Written by Steve Reid <sreid@sea-to-sky.net> * 100% Public Domain - no warranty * Released 1997.10.11 */ #ifndef _CAST_H_ #define _CAST_H_ typedef unsigned char u8; /* 8-bit unsigned */ typedef unsigned long u32; /* 32-bit unsigned */ typedef struct { u32 xkey[32]; /* Key, after expansion ...
/* * CAST-128 in C * Written by Steve Reid <sreid@sea-to-sky.net> * 100% Public Domain - no warranty * Released 1997.10.11 */ #ifndef _CAST_H_ #define _CAST_H_ #include <stdint.h> typedef uint8_t u8; /* 8-bit unsigned */ typedef uint32_t u32; /* 32-bit unsigned */ typedef struct { u32 xkey[32]; /* Key,...
Use stdint.h in CAST to implement 32 bit and 8 bit unsigned integers.
Use stdint.h in CAST to implement 32 bit and 8 bit unsigned integers.
C
bsd-3-clause
wilx/apg,wilx/apg,wilx/apg,rogerapras/apg,rogerapras/apg,rogerapras/apg,rogerapras/apg,wilx/apg
82b7e62e178e87e9288f62ed0b90d824f426eb02
kernel/kernel_debug.h
kernel/kernel_debug.h
/* * Copyright 2011-2014 Blender Foundation * * 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 ag...
/* * Copyright 2011-2014 Blender Foundation * * 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 ag...
Fix for viewport rendering with debug enabled
Cycles: Fix for viewport rendering with debug enabled
C
apache-2.0
tangent-opensource/coreBlackbird,pyrochlore/cycles,pyrochlore/cycles,tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird,pyrochlore/cycles
eb3d6f8d292110e86a39b0e0f0fbc24821286aaf
JavaScriptCore/wtf/MathExtras.h
JavaScriptCore/wtf/MathExtras.h
/* * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of c...
Add mathextras.h to wtf to give win32 roundf/lroundf support.
Add mathextras.h to wtf to give win32 roundf/lroundf support. git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@14506 bbb929c8-8fbe-4397-9dbb-9b2b20218538
C
bsd-3-clause
primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs
3155d4daa5bb7c1a93aebc890240589cdcfa3e88
ObjectiveRocks/ObjectiveRocks.h
ObjectiveRocks/ObjectiveRocks.h
// // ObjectiveRocks.h // ObjectiveRocks // // Created by Iska on 20/11/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import "RocksDB.h" #import "RocksDBOptions.h" #import "RocksDBReadOptions.h" #import "RocksDBWriteOptions.h" #import "RocksDBWriteBatch.h" #import "RocksDBIterator.h" #import "Roc...
// // ObjectiveRocks.h // ObjectiveRocks // // Created by Iska on 20/11/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import "RocksDB.h" #import "RocksDBOptions.h" #import "RocksDBReadOptions.h" #import "RocksDBWriteOptions.h" #import "RocksDBWriteBatch.h" #import "RocksDBIterator.h" #import "Roc...
Add RocksDB merge operator import to the main public header
Add RocksDB merge operator import to the main public header
C
mit
iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks
6c12c50736a7f2cce5d8776c9d64b85e3435aec6
chrome/browser/extensions/external_install_ui.h
chrome/browser/extensions/external_install_ui.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_ #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_ class Browser; class ExtensionServi...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_ #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_ #include "build/build_config.h" cl...
Fix external extension install (post-sideload) restriction on Windows.
Fix external extension install (post-sideload) restriction on Windows. I had #ifdef'd it to OS_WINDOWS. It should be OS_WIN. BUG=156727 Review URL: https://codereview.chromium.org/11238042 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@163418 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
Jonekee/chromium.src,chuan9/chromium-crosswalk,dushu1203/chromium.src,markYoungH/chromium.src,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,dednal/chromium.src,junmin-zhu/chromium-rivertrail,patrickm/chromium.src,ltilv...
c3d0d1fa21c0302241b35fde7d591b27f6eb3afa
common_audio/signal_processing/cross_correlation.c
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...
Remove a cast again, after it was shown to worsen Windows perf.
Remove a cast again, after it was shown to worsen Windows perf. This will hurt Linux x64 perf, but we think that's a compiler bug and we're willing to take the hit for the better clarity of the code sans cast as well as the better Windows perf. Hopefully eventually the compiler will improve. BUG=504813 TEST=none TBR...
C
bsd-3-clause
sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc
0420ff2a64e441402a14ab10ea5fcf12badc6c42
util.h
util.h
#ifndef UTIL_H #define UTIL_H #include "fibrile.h" /** Atomics. */ #define fence() fibrile_fence() #define fadd(ptr, n) __sync_fetch_and_add(ptr, n) #define cas(...) __sync_val_compare_and_swap(__VA_ARGS__) /** Lock. */ #define lock(ptr) fibrile_lock(ptr) #define unlock(ptr) fibrile_unlock(ptr) #define trylock(ptr...
#ifndef UTIL_H #define UTIL_H #include "fibrile.h" /** Atomics. */ #define fence() fibrile_fence() #define fadd(ptr, n) __sync_fetch_and_add(ptr, n) #define cas(...) __sync_val_compare_and_swap(__VA_ARGS__) /** Lock. */ #define lock(ptr) fibrile_lock(ptr) #define unlock(ptr) fibrile_unlock(ptr) #define trylock(ptr...
Add a fence in barrier.
Add a fence in barrier.
C
mit
chaoran/fibril,chaoran/fibril,chaoran/fibril
6bed2ffc047130faf3beb32aacc75aa251d355bc
extensions/flac/src/main/jni/include/data_source.h
extensions/flac/src/main/jni/include/data_source.h
/* * Copyright (C) 2016 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) 2016 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...
Remove ndk-build from [] flac build rules
Remove ndk-build from [] flac build rules Android NDK r9 in [] is deprecated (see [] Update the ExoPlayer flac extensions to use android_jni_library. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=182017669
C
apache-2.0
KiminRyu/ExoPlayer,ebr11/ExoPlayer,saki4510t/ExoPlayer,ened/ExoPlayer,amzn/exoplayer-amazon-port,ened/ExoPlayer,MaTriXy/ExoPlayer,tntcrowd/ExoPlayer,kiall/ExoPlayer,stari4ek/ExoPlayer,superbderrick/ExoPlayer,MaTriXy/ExoPlayer,saki4510t/ExoPlayer,superbderrick/ExoPlayer,tntcrowd/ExoPlayer,androidx/media,superbderrick/Ex...
9dc95fbb934b842c8c055541d727477eb5de8d44
Criollo/Source/Extensions/NSDate+RFC1123.h
Criollo/Source/Extensions/NSDate+RFC1123.h
// // NSDate+RFC1123.h // MKNetworkKit // // Created by Marcus Rohrmoser // http://blog.mro.name/2009/08/nsdateformatter-http-header/ // http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1 // No obvious license attached /** Convert RFC1123 format dates */ @interface NSDate (RFC1123) /** * @name...
// // NSDate+RFC1123.h // MKNetworkKit // // Created by Marcus Rohrmoser // http://blog.mro.name/2009/08/nsdateformatter-http-header/ // http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1 // No obvious license attached #import <Foundation/Foundation.h> /** Convert RFC1123 format dates */ @interf...
Add explicit Foundation import to NSDate extension (for spm compatibility)
Add explicit Foundation import to NSDate extension (for spm compatibility)
C
mit
thecatalinstan/Criollo,thecatalinstan/Criollo,thecatalinstan/Criollo
a9aeb47a0bbf847dbe899e5cc875b25dc9ee71d7
gtksourceview2.h
gtksourceview2.h
#include "gtk2hs_macros.h" #include <gtksourceview/gtksourcebuffer.h> #if GTK_MAJOR_VERSION < 3 #include <gtksourceview/gtksourceiter.h> #endif #include <gtksourceview/gtksourcelanguage.h> #include <gtksourceview/gtksourcelanguagemanager.h> #include <gtksourceview/gtksourcestyle.h> #include <gtksourceview/gtksourcestyl...
#include "gtk2hs_macros.h" #include <gtksourceview/gtksourcebuffer.h> #if GTK_MAJOR_VERSION < 3 #include <gtksourceview/gtksourceiter.h> #endif #include <gtksourceview/gtksourcelanguage.h> #include <gtksourceview/gtksourcelanguagemanager.h> #include <gtksourceview/gtksourcestyle.h> #include <gtksourceview/gtksourcestyl...
Fix for new versions of gtksourceview provided by Oleg Chiruhin
Fix for new versions of gtksourceview provided by Oleg Chiruhin
C
lgpl-2.1
gtk2hs/gtksourceview,gtk2hs/gtksourceview
b80f4b7f7354507616789b1753f115ecfe111013
tests/regression/27-inv_invariants/04-ints-not-interval.c
tests/regression/27-inv_invariants/04-ints-not-interval.c
//PARAM: --disable ana.int.def_exc --enable ana.int.interval int main() { int x; if(!x) { assert(x==0); } else { assert(x==1); //UNKNOWN! } }
//PARAM: --disable ana.int.def_exc --enable ana.int.interval int main() { int x; if(!x) { } else { assert(x==1); //UNKNOWN! } }
Remove assert that is unknown when runinng only with interval
27/04: Remove assert that is unknown when runinng only with interval
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
32c768d0c03717f729871dc666388c6ca785aedb
Sources/OMValidation.h
Sources/OMValidation.h
// // OMValidation.h // OMValidation // // Copyright (C) 2015 Oliver Mader // // 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 ...
// // OMValidation.h // OMValidation // // Copyright (C) 2015 Oliver Mader // // 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 ...
Include NSArray category into main header
Include NSArray category into main header
C
mit
b52/OMValidation
c7672beb8d218d7b403d4cb801614d40206c00d5
sipXmediaLib/include/mp/MprnRtpStreamActivityMsg.h
sipXmediaLib/include/mp/MprnRtpStreamActivityMsg.h
// // Copyright (C) 2008 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2008 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // $$ /////////////////////////////////////////////////////////////////////////////// #ifndef _MprnRtpStreamActivityMsg_h_ #defi...
Add notification message which will be used to notify about voice activity.
Add notification message which will be used to notify about voice activity. git-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@10875 a612230a-c5fa-0310-af8b-88eea846685b
C
lgpl-2.1
sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror
068460e74885378bade28d1c8184b8867128fd39
test/Driver/XRay/xray-instrument-cpu.c
test/Driver/XRay/xray-instrument-cpu.c
// RUN: not %clang -o /dev/null -v -fxray-instrument -c %s // XFAIL: amd64-, x86_64-, x86_64h-, arm, aarch64, arm64 // REQUIRES: linux typedef int a;
// RUN: not %clang -o /dev/null -v -fxray-instrument -c %s // XFAIL: amd64-, x86_64-, x86_64h-, arm, aarch64, arm64, powerpc64le- // REQUIRES: linux typedef int a;
Update XFAIL line after r294781.
Update XFAIL line after r294781. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@294820 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
a0b806ff87bf32930f6713f256068a650d0a8ce5
ui/views/controls/button/menu_button_delegate.h
ui/views/controls/button/menu_button_delegate.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_ #define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_ #pragma once namespace gfx { class ...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_ #define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_ #pragma once #include "ui/views/vie...
Fix win builder by tagging MenuButtonDelegate with VIEWS_EXPORT.
views: Fix win builder by tagging MenuButtonDelegate with VIEWS_EXPORT. BUG=117092 TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9647003 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@125656 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
yitian134/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,gav...
cf0e1ef6f2cde1d075141ded1b12395475fee83a
Archs/Architecture.h
Archs/Architecture.h
#pragma once class IElfRelocator; enum class Endianness { Big, Little }; class CArchitecture { public: virtual void AssembleOpcode(const std::wstring& name, const std::wstring& args) = 0; virtual bool AssembleDirective(const std::wstring& name, const std::wstring& args) = 0; virtual void NextSection() = 0; virtu...
#pragma once class IElfRelocator; class CAssemblerCommand; class Tokenizer; enum class Endianness { Big, Little }; class CArchitecture { public: virtual void AssembleOpcode(const std::wstring& name, const std::wstring& args) = 0; virtual bool AssembleDirective(const std::wstring& name, const std::wstring& args) = ...
Extend interfaces with new parsing functions
Extend interfaces with new parsing functions
C
mit
Kingcom/armips,sp1187/armips,sp1187/armips,Kingcom/armips,hrydgard/armips,sp1187/armips,Kingcom/armips,hrydgard/armips,hrydgard/armips
892f9a9a7049bee59f4e64ee8245fcf5430ec128
vespalib/src/vespa/vespalib/tensor/default_tensor.h
vespalib/src/vespa/vespalib/tensor/default_tensor.h
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "compact/compact_tensor.h" #include "compact/compact_tensor_builder.h" namespace vespalib { namespace tensor { struct DefaultTensor { using type = CompactTensor; using buil...
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "compact/compact_tensor_v2.h" #include "compact/compact_tensor_v2_builder.h" namespace vespalib { namespace tensor { struct DefaultTensor { using type = CompactTensorV2; us...
Change to using CompactTensorV2 as default impl for sparse tensors.
Change to using CompactTensorV2 as default impl for sparse tensors.
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
d65adf9603243c66f9c7f4b5adc2a850c40a146c
tmpgb.c
tmpgb.c
#include <stdio.h> #include <stdlib.h> #include "error.h" #include "memory.h" #define READ_SIZE 0x4000 static void usage(void) { fprintf(stderr, "usage: tmpgb <file>"); exit(EXIT_FAILURE); } static void load_rom(const char *rom) { FILE *fp; unsigned char *buffer[READ_SIZE]; size_t nread; int i = -1; fp = fo...
#include <stdio.h> #include <stdlib.h> #include "error.h" #include "memory.h" #define READ_SIZE 0x4000 static void usage(void) { fprintf(stderr, "usage: tmpgb <file>"); exit(EXIT_FAILURE); } static void load_rom(const char *rom) { FILE *fp; unsigned char buffer[READ_SIZE]; size_t nread; int i = -1; fp = fop...
Fix error with char pointer
Fix error with char pointer
C
mit
hoferm/tmpgb,hoferm/tmpgb
f0dce4e4ff0dad5a12a2178caa6ddccc4b72debd
tests/simple.h
tests/simple.h
#pragma once #include <stdlib.h> #include <stdio.h> #include <math.h> #include <stdbool.h> #include <check.h> #include <pal.h> #include "../../src/base/pal_base_private.h" #include <common.h> /* Max allowed diff against expected value */ #define EPSILON_MAX 0.001f #define EPSILON_RELMAX 0.00001f struct gold { f...
#pragma once #include <stdlib.h> #include <stdio.h> #include <math.h> #include <stdbool.h> #include <check.h> #include <pal.h> #include "../../src/base/pal_base_private.h" #include <common.h> /* Max allowed diff against expected value */ #ifndef EPSILON_MAX #define EPSILON_MAX 0.001f #endif #ifndef EPSILON_RELMAX #d...
Allow tests to override error tolerance
tests: Allow tests to override error tolerance Signed-off-by: Ola Jeppsson <793f970c52ded1276b9264c742f19d1888cbaf73@adapteva.com>
C
apache-2.0
Adamszk/pal3,olajep/pal,eliteraspberries/pal,8l/pal,debug-de-su-ka/pal,eliteraspberries/pal,Adamszk/pal3,eliteraspberries/pal,parallella/pal,aolofsson/pal,olajep/pal,Adamszk/pal3,aolofsson/pal,mateunho/pal,mateunho/pal,debug-de-su-ka/pal,parallella/pal,aolofsson/pal,olajep/pal,olajep/pal,8l/pal,eliteraspberries/pal,mat...
07eda65a17fbf97ef7b1a5da06fde0817d0dc7ef
test2/initialisation/struct/empty/init.c
test2/initialisation/struct/empty/init.c
// RUN: %layout_check %s // RUN: %check %s struct A { }; // CHEKC: /warning: empty struct/ struct Containter { struct A a; }; struct Pre { int i; struct A a; int j; }; struct Pre p = { 1, /* warn */ 2 }; // CHECK: /warning: missing {} initialiser for empty struct/ struct Pre q = { 1, {}, 2 }; main() { struct ...
// RUN: %layout_check %s // RUN: %check %s struct A { }; // CHECK: /warning: empty struct/ struct Container { struct A a; }; struct Pre { int i; struct A a; int j; }; struct Pre p = { 1, /* warn */ 2 }; // CHECK: /warning: missing {} initialiser for empty struct/ struct Pre q = { 1, {}, 2 }; main() { struct A...
Fix typo in empty struct test check
Fix typo in empty struct test check
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
d8474b64fa65283e503821475ac6d13c28e51b41
lib/common/globals.c
lib/common/globals.c
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
Make sure fdp global parameters are statically initialized. This avoids making the algorithm independent of processing argv[].
Make sure fdp global parameters are statically initialized. This avoids making the algorithm independent of processing argv[].
C
epl-1.0
BMJHayward/graphviz,jho1965us/graphviz,jho1965us/graphviz,jho1965us/graphviz,BMJHayward/graphviz,tkelman/graphviz,tkelman/graphviz,BMJHayward/graphviz,kbrock/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,tkelman/graphviz,BMJHayward/graphviz,pixelglow/graphviz,ellson/graphviz,BMJHayward/graphviz,tkelman/g...
ac6241f2f5f470d14938510c5cd04d1b8f2cb4af
Solutions/01/include/validator.h
Solutions/01/include/validator.h
#ifndef LPSLCD_VALIDATOR_H #define LPSLCD_VALIDATOR_H #include "generator.h" class Validator { public: static bool Validate (const Code & code) { // | N - k | // | ____ | // | \ a + a | < L // | /___ i i + k | ...
#ifndef LPSLCD_VALIDATOR_H #define LPSLCD_VALIDATOR_H #include "generator.h" #include <cmath> class Validator { public: static bool Validate (const Code & code) { // | N - k | // | ____ | // | \ a + a | < L // | /___...
Fix compile error on gcc 6.3.0.
Fix compile error on gcc 6.3.0.
C
mit
Gluttton/PslRK,Gluttton/PslRK,Gluttton/PslRK
8144596da658cd3854610f51094b7b3407c0d4b4
solutions/uri/1039/1039.c
solutions/uri/1039/1039.c
#include <math.h> #include <stdio.h> int main() { double r1, x1, y1, r2, x2, y2; double distance; while (scanf("%lf %lf %lf %lf %lf %lf", &r1, &x1, &y1, &r2, &x2, &y2) != EOF) { distance = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); if (r1 >= distance + r2) { puts("RI...
#include <math.h> #include <stdio.h> int main() { double r1, x1, y1, r2, x2, y2; double distance; while (scanf("%lf %lf %lf %lf %lf %lf", &r1, &x1, &y1, &r2, &x2, &y2) != EOF) { distance = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); if (r1 >= distance + r2) { ...
Solve Fire Flowers in c
Solve Fire Flowers in c
C
mit
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
3ed71339b1bb80eec219c142aca03a0cf0be0ffa
src/condor_includes/_condor_fix_types.h
src/condor_includes/_condor_fix_types.h
#ifndef FIX_TYPES_H #define FIX_TYPES_H #include <sys/types.h> /* The system include file defines this in terms of bzero(), but ANSI says we should use memset(). */ #if defined(OSF1) #undef FD_ZERO #define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p))) #endif /* Various non-POSIX conforming files which depend o...
#ifndef FIX_TYPES_H #define FIX_TYPES_H #include <sys/types.h> /* The system include file defines this in terms of bzero(), but ANSI says we should use memset(). */ #if defined(OSF1) #undef FD_ZERO #define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p))) #endif /* Various non-POSIX conforming files which depend o...
Add types "ushort" and "rlim_t" for AIX.
Add types "ushort" and "rlim_t" for AIX.
C
apache-2.0
bbockelm/condor-network-accounting,zhangzhehust/htcondor,djw8605/condor,neurodebian/htcondor,clalancette/condor-dcloud,djw8605/htcondor,mambelli/osg-bosco-marco,neurodebian/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,clalancette/condor-dcloud,bbockelm...
6bb6c383a5acfcd734a4453d4f7f20caa727c744
Josh_Zane_Sebastian/src/interpreter/interpreter.c
Josh_Zane_Sebastian/src/interpreter/interpreter.c
#include <stdlib.h> #include <stdio.h> #include <string.h> void runStep(struct stack_node node, struct stack_node *top) { switch( node.data.type ) { case 0: struct stack_node push; push.cdr = top; push.data = node.data; *top = push; break; } }
#include <stdlib.h> #include <stdio.h> #include <string.h> void runStep(struct stack_node node, struct stack_node *top) { switch( node.data.type ) { case T_INT: push(node, top); break; case T_SBRTN: push(node, top); break; case T_char 1: switch( nonde.data.numval ) { case '+': int x =...
Implement interpretation of basic arithmetic and comparatory functions.
Implement interpretation of basic arithmetic and comparatory functions.
C
mit
aacoppa/final,aacoppa/final
feb177aed55637fa0cfd1c788ff1ecfcc25db293
arch/luna88k/include/loadfile_machdep.h
arch/luna88k/include/loadfile_machdep.h
/* $OpenBSD: loadfile_machdep.h,v 1.1 2013/10/18 10:55:33 miod Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Christos Zoulas. * * Redistribution and use in source and binary forms, with or wit...
Add configuration for MI libsa loadfile, to be used soon.
Add configuration for MI libsa loadfile, to be used soon.
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
a70643b3c43dccc4cf855ad3d793044eaf959553
Wangscape/noise/module/codecs/NoiseSourcesCodec.h
Wangscape/noise/module/codecs/NoiseSourcesCodec.h
#pragma once #include <spotify/json.hpp> #include <spotify/json/codec/boost.hpp> #include "noise/module/NoiseSources.h" namespace spotify { namespace json { template<> struct default_codec_t<noise::module::NoiseSources> { typedef noise::module::NoiseSources NoiseSources; static codec::object_t<NoiseSources...
#pragma once #include <spotify/json.hpp> #include <spotify/json/codec/boost.hpp> #include "noise/module/NoiseSources.h" namespace spotify { namespace json { template<> struct default_codec_t<noise::module::NoiseSources> { typedef noise::module::NoiseSources NoiseSources; static codec::object_t<NoiseSources...
Correct name of "DisplaceModules" field
Correct name of "DisplaceModules" field
C
mit
serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape
1da49b17817fdfb4709976c462cc4a9ca943d989
scripts/start.c
scripts/start.c
start Go to Layout [ “budget” (budget) ] Set Window Title [ Current Window; New Title: "Budget Research" ] Set Zoom Level [ 100% ] # #Report version number to Memory Switch Table. Set Field [ MemorySwitch::versionBudget; Reference::version ] # #Show regular menus if Admin logs in only. Show/Hide Text Ruler [ Hide ] If ...
start Go to Layout [ “budget” (budget) ] Set Window Title [ Current Window; New Title: "Budget Planner" ] Set Zoom Level [ 100% ] # #Report version number to Memory Switch Table. Set Field [ MemorySwitch::versionBudget; Reference::version ] # #Show regular menus if Admin logs in only. Show/Hide Text Ruler [ Hide ] If [...
Change solution name to Budget Planner
Change solution name to Budget Planner
C
apache-2.0
HelpGiveThanks/Budget
e97b81bf0b9a6521c2a8994efd1a67f9d305da7e
bitboard-test.c
bitboard-test.c
#include "bitboard.h" int main(int argc, char** argv) { Bitboard test = board_init(); board_print(test); return 0; }
Add a little test driver
Add a little test driver
C
bsd-3-clause
jwatzman/nameless-chessbot,jwatzman/nameless-chessbot
8bb57148432a0aea834343b0c5bfae98d28131b7
src/buffer.c
src/buffer.c
/* * buffer.c * * Created on: 06.02.2015. * Author: ichiro */ /* Includes ------------------------------------------------------------------*/ #include "buffer.h" /* Private typedef -----------------------------------------------------------*/ /* Private define ---------------------------------------------...
/* * buffer.c * * Created on: 06.02.2015. * Author: ichiro */ /* Includes ------------------------------------------------------------------*/ #include "buffer.h" /* Private typedef -----------------------------------------------------------*/ /* Private define ---------------------------------------------...
Add a new feature, lol
Add a new feature, lol
C
mit
futoke/cnc,futoke/cnc,futoke/cnc