commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
6bbc09533e28e0912ac2b1683e3d03cb26ce9fa0
ui/aura/aura_switches.h
ui/aura/aura_switches.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 UI_AURA_AURA_SWITCHES_H_ #define UI_AURA_AURA_SWITCHES_H_ #pragma once namespace switches { extern const char kAuraHostWindowSize[]; extern ...
// 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 UI_AURA_AURA_SWITCHES_H_ #define UI_AURA_AURA_SWITCHES_H_ #pragma once #include "ui/aura/aura_export.h" namespace switches { AURA_EXPORT ex...
Fix shared library build for aura.
Fix shared library build for aura. TBR=ben@chromium.org,derat@chromium.org R=ben@chromium.org,derat@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/8438039 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@108299 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,zcbenz/cefode-chromium,keishi/chromium,Chilledheart/chromium,krieger-od/nwjs_chromium.src,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,PeterWangIntel/chro...
b267698e0377126299950113cb864c3d995f32dc
FBTweak/FBTweak+Dictionary.h
FBTweak/FBTweak+Dictionary.h
// // FBTweak+Dictionary.h // FBTweak // // Created by John McIntosh on 11/5/14. // Copyright (c) 2014 Facebook. All rights reserved. // #import <FBTweak/FBTweak.h> /** Implementation works by storing the dictionary in the tweak's `stepValue`. */ @interface FBTweak (Dictionary) @property (nonatomic, copy, read...
// // FBTweak+Dictionary.h // FBTweak // // Created by John McIntosh on 11/5/14. // Copyright (c) 2014 Facebook. All rights reserved. // #import "FBTweak.h" /** Implementation works by storing the dictionary in the tweak's `stepValue`. */ @interface FBTweak (Dictionary) @property (nonatomic, copy, readonly) NS...
Update syntax for import statement
Update syntax for import statement
C
bsd-3-clause
dedelost/Tweaks,MakrisHuang/Tweaks,1yvT0s/Tweaks,1yvT0s/Tweaks,sgl0v/Tweaks,MrWooJ/Tweaks,eyeem/Tweaks,Kingside/Tweaks,programming086/Tweaks,MrWooJ/Tweaks,eyeem/Tweaks,Kingside/Tweaks,DanielAsher/Tweaks,eyeem/Tweaks,dedelost/Tweaks,cuppi/Tweaks,Uberchord/Tweaks,DanielAsher/Tweaks,sgl0v/Tweaks,adamdahan/Tweaks,1yvT0s/Tw...
acb699bec196566a5dba364b97b83ae28a9b1a80
gibbs.c
gibbs.c
#include "nb_simp.c" struct arrayProb* gibbsC_shim(struct arrayProb* topic_prior_b, struct arrayProb* word_prior_c, struct arrayNat* z_d, struct arrayNat* w_e, struct arrayNat* doc_f, unsigned int docUpdate_g) { struct arrayProb* res = (...
#include "nb_simp.c" struct arrayProb* gibbsC_shim(struct arrayProb* topic_prior_b, struct arrayProb* word_prior_c, struct arrayNat* z_d, struct arrayNat* w_e, struct arrayNat* doc_f, unsigned int docUpdate_g) { struct arrayProb* res = (...
Fix size error in malloc call
Fix size error in malloc call
C
bsd-3-clause
zaxtax/naive_bayes,zaxtax/naive_bayes,zaxtax/naive_bayes,zaxtax/naive_bayes
f5a798a2aa7fcf68d684c3dc58d9efaabe83b390
Headers/Public/MLMediaLibrary.h
Headers/Public/MLMediaLibrary.h
// // MLMediaLibrary.h // MobileMediaLibraryKit // // Created by Pierre d'Herbemont on 7/14/10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import <CoreData/CoreData.h> @interface MLMediaLibrary : NSObject { NSManagedObjectContext *_managedObjectContext; NSManagedObjectModel *_managedO...
// // MLMediaLibrary.h // MobileMediaLibraryKit // // Created by Pierre d'Herbemont on 7/14/10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import <CoreData/CoreData.h> @interface MLMediaLibrary : NSObject { NSManagedObjectContext *_managedObjectContext; NSManagedObjectModel *_managedO...
Revert "Adding a public method to be able to update the database"
Revert "Adding a public method to be able to update the database" This reverts commit 0c6bfc6ec7f63d468b0222c00ab1e31d69c62d40. Conflicts: Sources/MLMediaLibrary.m
C
lgpl-2.1
TheHungryBu/MediaLibraryKit,TheHungryBu/MediaLibraryKit,TheHungryBu/MediaLibraryKit,larrytin/MediaLibraryKit,TheHungryBu/MediaLibraryKit
0997dbb61cacad042c452b37e03d4de5a0ed82bb
content/common/child_process_messages.h
content/common/child_process_messages.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. // Common IPC messages used for child processes. // Multiply-included message file, hence no include guard. #include "googleurl/src/gurl.h" #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. // Common IPC messages used for child processes. // Multiply-included message file, hence no include guard. #include "googleurl/src/gurl.h" #include ...
Add newline at end of file
Add newline at end of file git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@78227 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
chuan9/chromium-crosswalk,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,dednal/chromium.src,jaruba/chromium.src,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,jaruba/chromium.src,jar...
4d203821876f5e4e87c75417224e79035ecf0641
src/session/manager.h
src/session/manager.h
/* * waysome - wayland based window manager * * Copyright in alphabetical order: * * Copyright (C) 2014-2015 Julian Ganz * Copyright (C) 2014-2015 Manuel Messner * Copyright (C) 2014-2015 Marcel Müller * Copyright (C) 2014-2015 Matthias Beyer * Copyright (C) 2014-2015 Nadja Sommerfeld * * This file is part o...
/* * waysome - wayland based window manager * * Copyright in alphabetical order: * * Copyright (C) 2014-2015 Julian Ganz * Copyright (C) 2014-2015 Manuel Messner * Copyright (C) 2014-2015 Marcel Müller * Copyright (C) 2014-2015 Matthias Beyer * Copyright (C) 2014-2015 Nadja Sommerfeld * * This file is part o...
Add session files to session doc group
Add session files to session doc group
C
lgpl-2.1
waysome/waysome,waysome/waysome
a20f753e2585ef887f7242e7bd8863836df65715
8/platform.h
8/platform.h
#if defined(__APPLE__) && defined(__MACH__) /* for OSX */ # define Fprefix "_" #else /* Default to linux */ # define Fprefix "" #endif #define Assembler "as --32 -g -o %s -"
#if defined(__APPLE__) && defined(__MACH__) /* for OSX */ # define Assembler "as -arch i386 -g -o %s -" # define Fprefix "_" #else /* Default to linux */ # define Assembler "as --32 -g -o %s -" # define Fprefix "" #endif
Use the appropriate assembler for OSX.
Use the appropriate assembler for OSX.
C
mit
8l/myrddin,oridb/mc,oridb/mc,8l/myrddin,oridb/mc,oridb/mc
fa741677fbe2bd4f5ba40268e2418cf7420f5e98
SSPSolution/SSPSolution/DoorEntity.h
SSPSolution/SSPSolution/DoorEntity.h
#ifndef SSPAPPLICATION_ENTITIES_DOORENTITY_H #define SSPAPPLICATION_ENTITIES_DOORENTITY_H #include "Entity.h" #include <vector> class DoorEntity : public Entity { private: struct ElementState { int entityID; EVENT desiredState; bool desiredStateReached; }; std::vector<ElementState> m_elementStates; bool...
#ifndef SSPAPPLICATION_ENTITIES_DOORENTITY_H #define SSPAPPLICATION_ENTITIES_DOORENTITY_H #include "Entity.h" #include <vector> class DoorEntity : public Entity { private: struct ElementState { int entityID; EVENT desiredState; bool desiredStateReached; }; std::vector<ElementState> m_elementStates; bool...
UPDATE Door rotation standard of 90 degrees
UPDATE Door rotation standard of 90 degrees
C
apache-2.0
Chringo/SSP,Chringo/SSP
3ab057f7b9e5f98210eabd53165d74282b5a6bdb
test/PCH/modified-header-error.c
test/PCH/modified-header-error.c
// RUN: mkdir -p %t.dir // RUN: echo '#include "header2.h"' > %t.dir/header1.h // RUN: echo > %t.dir/header2.h // RUN: cp %s %t.dir/t.c // RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch // RUN: echo >> %t.dir/header2.h // RUN: %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&1 | FileCheck %s...
// RUN: mkdir -p %t.dir // RUN: echo '#include "header2.h"' > %t.dir/header1.h // RUN: echo > %t.dir/header2.h // RUN: cp %s %t.dir/t.c // RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch // RUN: echo >> %t.dir/header2.h // RUN: %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&1 | FileCheck %s...
Disable on Windows, for real.
Disable on Windows, for real. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@143027 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/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-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
8b30c206f7da701fa5c609c1100c3957ae22c916
src/Vector3.h
src/Vector3.h
#pragma once #include <math.h> struct Vector3 { union { float v[3]; struct { float x; float y; float z; }; struct { float azimuth; float pitch; float roll; }; }; Vector3() { x = 0; ...
#pragma once #include <math.h> struct Vector3 { union { float v[3]; struct { float x; float y; float z; }; struct { union { float azimuth; float yaw; }; float pitch; ...
Allow both yaw and azimuth
Allow both yaw and azimuth
C
mit
loopj/i2c-sensor-hal,loopj/i2c-sensor-hal
3e7ab39853701277f637eed91630b4b152212d26
src/slurp.c
src/slurp.c
#include <cgreen/slurp.h> #include <stdlib.h> #include <stdio.h> static char *read_all(FILE *file, int gulp); char *slurp(const char *file_name, int gulp) { FILE *file = fopen(file_name, "r"); if (file == NULL) { return NULL; } char *content = read_all(file, gulp); fclose(file); return...
#include <cgreen/slurp.h> #include <stdlib.h> #include <stdio.h> #include <strings.h> static char *read_all(FILE *file, int gulp); char *slurp(const char *file_name, int gulp) { FILE *file = fopen(file_name, "r"); if (file == NULL) { return NULL; } char *content = read_all(file, gulp); fcl...
Fix read_all and return content without segment fault
Fix read_all and return content without segment fault
C
isc
matthargett/cgreen,gardenia/cgreen,matthargett/cgreen,cgreen-devs/cgreen,gardenia/cgreen,gardenia/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,matthargett/cgreen,thoni56/cgreen,gardenia/cgreen,matthargett/cgreen,ykaliuta/cgreen,thoni56/cgreen,cgreen-devs/cgreen,thoni56/cgreen,thoni56/cgreen,ykaliuta/cgreen,ykaliuta/cgr...
abdcf820d40c063e8542291cfbf51a6eb7e28253
usespace/daemon-one.c
usespace/daemon-one.c
#include <signal.h> #include <unistd.h> #include <stdlib.h> void spawn_again(int signum) { (void) signum; /* unused */ pid_t pid = fork(); if (pid == 0) { setsid(); return; } exit(EXIT_SUCCESS); } int main(int argc, char **argv) { struct sigaction new_action = { 0 }; new_action.sa_handler = &spawn_again; ...
#include <signal.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <sys/shm.h> #define NUMBER_OF_THE_BEAST 666 struct shared { pid_t pid; }; static struct shared *shared; void spawn_again(int signum) { (void) signum; /* unused */ pid_t pid = fork(); if (pid == 0) { /* signalize change of...
Add basic support for shared memory
userspace: Add basic support for shared memory Basic communication protocol between daemons.
C
bsd-3-clause
ClosedHouse/contest,ClosedHouse/contest,ClosedHouse/contest
50e626531255c21434a9680e8c9986edb1ae90f4
tests/noreturn.c
tests/noreturn.c
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include "noreturn.h" // Because assert_fail is marked as noreturn, the call to it is not followed // by another instruction in this function. // This test ensures that "thisFunctionWontReturn is on the dumped stack. int thisFunctionWontReturn(int x) { if ...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include "noreturn.h" // Because assert_fail is marked as noreturn, the call to it is not followed // by another instruction in this function. // This test ensures that "thisFunctionWontReturn is on the dumped stack. __attribute__((noinline, weak)) // avoid in...
Make tests work in gcc11/clang
Make tests work in gcc11/clang When inlined, we lose our stackframe for our trampoline function in this test - disallow the optimisations that break the test.
C
bsd-2-clause
peadar/pstack,peadar/pstack,peadar/pstack,peadar/pstack
cd0f72316db95b941ab54a682a7687dbbd83f0a5
test/main.c
test/main.c
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" #include <stdio.h> int main(int argc, char** argv) { if (argc < 2) { printf("err\n"); return -1; } cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result result = cgltf_parse_file(&options, argv[1], &data); if (result == cgltf_result_succes...
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" #include <stdio.h> int main(int argc, char** argv) { if (argc < 2) { printf("err\n"); return -1; } cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result result = cgltf_parse_file(&options, argv[1], &data); if (result == cgltf_result_succes...
Add validation to test program
Add validation to test program This makes sure we exercise this code during CI for all test models.
C
mit
jkuhlmann/cgltf,jkuhlmann/cgltf,jkuhlmann/cgltf
9531b2a558971e61047019ad4eaa9ed0830442bd
apps/sensors/main.c
apps/sensors/main.c
#include <firestorm.h> #include <isl29035.h> #include <stdio.h> #include <stdbool.h> void print_intensity(int intensity) { printf("Intensity: %d\n", intensity); } void intensity_cb(int intensity, int unused1, int unused2, void* ud) { print_intensity(intensity); } void temp_callback(int temp_value, int err, int u...
#include <firestorm.h> #include <isl29035.h> #include <stdio.h> #include <stdbool.h> void print_intensity(int intensity) { printf("Intensity: %d\n", intensity); } void intensity_cb(int intensity, int unused1, int unused2, void* ud) { print_intensity(intensity); } void temp_callback(int temp_value, int err, int u...
Remove blink functionality from "sensors" app
Remove blink functionality from "sensors" app Now that we can run multiple apps simultaneously, it's easier to test things if the sensors app doesn't clobber the blink app.
C
apache-2.0
google/tock-on-titan,google/tock-on-titan,google/tock-on-titan
e5fc7d47e00c9d375a320b97e19790715c6e8104
liblick/lick.h
liblick/lick.h
/** * @file * @brief A convenience header * * A header which includes all headers needed for a front-end */ #include "boot-loader.h" #include "drives.h" #include "install.h" #include "lickdir.h" #include "llist.h" #include "menu.h" #include "system-info.h" #include "utils.h"
/** * @file * @brief A convenience header * * A header which includes all headers needed for a front-end */ #ifdef __cplusplus extern "C" { #endif #include "boot-loader.h" #include "drives.h" #include "install.h" #include "lickdir.h" #include "llist.h" #include "menu.h" #include "system-info.h" #include "utils.h...
Add `extern "C"' to convenience headers
Add `extern "C"' to convenience headers
C
mit
noryb009/lick,noryb009/lick,noryb009/lick
d53bc3437f941cf01bf709ddd8e9c394db095b7a
libm/s_isnan.c
libm/s_isnan.c
/* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided that this notice * is preserved. ...
/* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided that this notice * is preserved. ...
Add isnan weak alias to __isnan
isnan: Add isnan weak alias to __isnan * libm/s_isnan.c: Add isnan weak alias. Signed-off-by: Mickaël Guêné <fd4c850767532186e170673aca49b5c51d48c53c@st.com> Signed-off-by: Christophe Lyon <0ec1b8ee85d9250d253c392c5d5101068ac5d5d3@st.com>
C
lgpl-2.1
kraj/uclibc-ng,wbx-github/uclibc-ng,wbx-github/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uclibc-ng
a99df4d6c91366304dcf55b986d555115e3cc6a6
aimp_dotnet/AIMPPlugin.h
aimp_dotnet/AIMPPlugin.h
#pragma once #include "Services\MenuManager\ServiceMenuManager.h" #include "InternalLogger.h" namespace AIMP { namespace SDK { using namespace System; using namespace AIMP::SDK::Interfaces; public ref class AimpPlugin abstract : public AimpPluginBase { public: AimpPlugin() { } property IAimp...
#pragma once #include "Services\MenuManager\ServiceMenuManager.h" #include "InternalLogger.h" namespace AIMP { namespace SDK { using namespace System; using namespace AIMP::SDK::Interfaces; public ref class AimpPlugin abstract : public AimpPluginBase { public: AimpPlugin() { } property IAimp...
Fix AimpPlugin.AimpCore property which was never initialized.
Fix AimpPlugin.AimpCore property which was never initialized. Remove the _aimpCore field and use Player instead.
C
apache-2.0
martin211/aimp_dotnet,martin211/aimp_dotnet,martin211/aimp_dotnet,martin211/aimp_dotnet,martin211/aimp_dotnet
8aba5772afe0e409e2e6d52131433b0a79188f3a
include/response.h
include/response.h
#ifndef CPR_RESPONSE_H #define CPR_RESPONSE_H #include <string> #include "cookies.h" #include "cprtypes.h" namespace cpr { class Response { public: Response(const long& status_code, const std::string& text, const Header& header, const Url& url, const double& elapsed) : ...
#ifndef CPR_RESPONSE_H #define CPR_RESPONSE_H #include <string> #include "cookies.h" #include "cprtypes.h" namespace cpr { class Response { public: Response() = default; Response(const long& status_code, const std::string& text, const Header& header, const Url& url, const d...
Put the default constructor first
Put the default constructor first
C
mit
whoshuu/cpr,SuperV1234/cpr,SuperV1234/cpr,msuvajac/cpr,skystrife/cpr,skystrife/cpr,whoshuu/cpr,msuvajac/cpr,whoshuu/cpr,SuperV1234/cpr,msuvajac/cpr,skystrife/cpr
1b4d49cbf1b05997cd7fe468c06cf78a2a90af43
modules/seed-module.h
modules/seed-module.h
#ifndef _SEED_MODULE_H_ #define _SEED_MODULE_H_ #include "../libseed/seed.h" // TODO: Move [example sqlite canvas Multiprocessing // os sandbox dbus libxml cairo] // towards utilization of this header. // Check that the required number of arguments were passed into a seed callback. // If this is no...
#ifndef _SEED_MODULE_H_ #define _SEED_MODULE_H_ #include "../libseed/seed.h" // TODO: Move [example sqlite canvas Multiprocessing // os sandbox dbus libxml cairo] // towards utilization of this header. // Check that the required number of arguments were passed into a seed callback. // If this is no...
Change wording of argument count check
[modules] Change wording of argument count check
C
lgpl-2.1
danilocesar/seed,danilocesar/seed,danilocesar/seed,danilocesar/seed,danilocesar/seed
4ec209a4c7e1d9c0903f454c5aa3c8e2ed19edb0
cmd/smyrna/topviewdefs.h
cmd/smyrna/topviewdefs.h
#ifndef TOPVIEWDEFS_H #define TOPVIEWDEFS_H #include "smyrnadefs.h" #include "gui.h" #include "tvnodes.h" #include "glcompset.h" #endif
/* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (c) 1994-2004 AT&T Corp...
Clean up smyrna files: remove unnecessary globals modify libraries not to rely on code in cmd/smyrna remove static declarations from .h files remove unnecessary libraries mark unused code and clean up warnings
Clean up smyrna files: remove unnecessary globals modify libraries not to rely on code in cmd/smyrna remove static declarations from .h files remove unnecessary libraries mark unused code and clean up warnings
C
epl-1.0
MjAbuz/graphviz,kbrock/graphviz,pixelglow/graphviz,kbrock/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,kbrock/graphviz,kbrock/graphviz,MjAbuz/graphviz,jho1965us/graphviz,jho1965us/graphviz,BMJHayward/graphviz,pixelglow/graphviz,jho1965us/graphviz,ellson/graphviz,pixelglow/graphviz,BMJHayward/graphviz,BMJHayward/gra...
6854cea3b6c5179fcf84b29194bb70c65aae82e8
core/vulkan/vk_virtual_swapchain/cc/platform.h
core/vulkan/vk_virtual_swapchain/cc/platform.h
/* * Copyright (C) 2018 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * Copyright (C) 2018 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Fix clang-format with different clang-format version
Fix clang-format with different clang-format version
C
apache-2.0
google/agi,google/agi,pmuetschard/gapid,Qining/gapid,pmuetschard/gapid,Qining/gapid,pmuetschard/gapid,Qining/gapid,pmuetschard/gapid,pmuetschard/gapid,google/gapid,google/agi,google/agi,google/gapid,Qining/gapid,google/gapid,google/gapid,google/agi,google/agi,pmuetschard/gapid,google/agi,google/gapid,Qining/gapid,googl...
98aabdc63f8ef285aadcfff35e582bba69d70bac
SocksLib/protocol/Socks5UDPRequestMessage.h
SocksLib/protocol/Socks5UDPRequestMessage.h
#ifndef SOCKS5UDPREQUESTMESSAGE_H #define SOCKS5UDPREQUESTMESSAGE_H #include <QHostAddress> #include "SocksProtocolMessage.h" class Socks5UDPRequestMessage : public SocksProtocolMessage { public: Socks5UDPRequestMessage(QHostAddress dst, quint16 dstPort, QByteArray data, quint8 fragID=0); Socks5UDPRequestMes...
#ifndef SOCKS5UDPREQUESTMESSAGE_H #define SOCKS5UDPREQUESTMESSAGE_H #include <QHostAddress> #include "SocksProtocolMessage.h" class Socks5UDPRequestMessage : public SocksProtocolMessage { public: Socks5UDPRequestMessage(QHostAddress dst, quint16 dstPort, QByteArray data, quint8 fragID=0); Socks5UDPRequestMes...
Fix warning about initialization order (GCC/Clang, -Wreorder)
Fix warning about initialization order (GCC/Clang, -Wreorder)
C
bsd-2-clause
blochbergermax/Qt-Socks-Server,raptorswing/Qt-Socks-Server,blochberger/Qt-Socks-Server,blochberger/Qt-Socks-Server,raptorswing/Qt-Socks-Server,blochbergermax/Qt-Socks-Server
99c06cff63c4dc661b5cffc5a80f79327269684a
c/anagrams.c
c/anagrams.c
#include <stdlib.h> #include <stdio.h> #include <string.h> void swap(char *i, char *j) { char saved = *i; *i = *j; *j = saved; } void generate_permutations(char* a, int n) { if (n == 0) { printf("%s\n", a); } else { for (int i = 0; i < n; i++) { generate_permutations(a,...
#include <stdlib.h> #include <stdio.h> #include <string.h> void swap(char *i, char *j) { char saved = *i; *i = *j; *j = saved; } void generate_permutations(char* a, int n) { if (n == 0) { printf("%s\n", a); } else { for (int i = 0; i < n; i++) { generate_permutations(a,...
Make the error message consistent with all of the other languages
Make the error message consistent with all of the other languages
C
mit
rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,...
1b5fd56466967d0092ba489e45343d7c3317ed95
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2014 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.07.00.08-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 7 #define QLA_DRIVER_PATCH_VER 0 #defi...
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2014 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.07.00.16-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 7 #define QLA_DRIVER_PATCH_VER 0 #defi...
Update the driver version to 8.07.00.16-k.
qla2xxx: Update the driver version to 8.07.00.16-k. Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com> Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com> Signed-off-by: Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
9a146e55752f9b84119fcedfabcf0dfca877610b
connection.h
connection.h
int initial_connection(char *ip_addr, int port) { int socket_desc; struct sockaddr_in server; //Create socket socket_desc = socket(AF_INET , SOCK_STREAM , 0); if (socket_desc == -1) { puts("Could not create socket"); return 1; } server.sin_addr.s_addr = inet_addr(ip_ad...
int initial_connection(char *ip_addr, int port) { int socket_desc; struct sockaddr_in server; //Create socket socket_desc = socket(AF_INET , SOCK_STREAM , 0); if (socket_desc == -1) { puts("Could not create socket"); return 1; } server.sin_addr.s_addr = inet_addr(ip_ad...
Add function recv and send
Add function recv and send Improve function to use easier
C
mit
chin8628/terminal-s-chat
f1482d1be22da850eee8db1e597f5c555c16e42f
src/common.c
src/common.c
/* $Id$ */ static char const _copyright[] = "Copyright (c) 2006-2013 Pierre Pronchery <khorben@defora.org>"; /* This file is part of DeforaOS Desktop Mailer */ static char const _license[] = "This program is free software: you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as...
/* $Id$ */ static char const _copyright[] = "Copyright © 2006-2013 Pierre Pronchery <khorben@defora.org>"; /* This file is part of DeforaOS Desktop Mailer */ static char const _license[] = "This program is free software: you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as p...
Use the copyright character for the about dialogs
Use the copyright character for the about dialogs
C
bsd-2-clause
DeforaOS/Mailer,DeforaOS/Mailer
99e0edf752302fe27340e16b9d8233cd04bc2029
lib/packet_queue.c
lib/packet_queue.c
#include "packet_queue.h" #include "error.h" #include "radio.h" #include <stdint.h> #include <stdlib.h> #include <string.h> uint32_t packet_queue_init(packet_queue_t * queue) { queue->head = 0; queue->tail = 0; return SUCCESS; } bool packet_queue_is_empty(packet_queue_t * queue) { return queue->he...
#include "packet_queue.h" #include "error.h" #include "radio.h" #include <stdint.h> #include <stdlib.h> #include <string.h> uint32_t packet_queue_init(packet_queue_t * queue) { queue->head = 0; queue->tail = 0; return SUCCESS; } bool packet_queue_is_empty(packet_queue_t * queue) { return queue->he...
Increment head and tail properly.
Increment head and tail properly.
C
bsd-3-clause
hlnd/nrf51-simple-radio,hlnd/nrf51-simple-radio
73a7df9ca22086025246f5329826750b46aea81a
source/board/mtconnect04s.c
source/board/mtconnect04s.c
/** * @file mtconnect04s.c * @brief board ID for the MtM MtConnect04S developments board * * 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 th...
/** * @file mtconnect04s.c * @brief board ID for the MtM MtConnect04S developments board * * 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 th...
Update target page url of MtConnect04S
Update target page url of MtConnect04S
C
apache-2.0
sg-/DAPLink,google/DAPLink-port,sg-/DAPLink,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port,sg-/DAPLink
dbd9075781f1f83ec53841c162ea027902c3742a
queue.c
queue.c
#include "queue.h" struct Queue { size_t head; size_t tail; size_t size; void** e; }; Queue* Queue_Create(size_t n) { Queue* q = (Queue *)malloc(sizeof(Queue)); q->size = n; q->head = q->tail = 1; q->e = (void **)malloc(sizeof(void*) * (n + 1)); return q; } int Queue_Empty(Queue* q) { return (q->head == q-...
#include "queue.h" struct Queue { size_t head; size_t tail; size_t size; void** e; }; Queue* Queue_Create(size_t n) { Queue* q = (Queue *)malloc(sizeof(Queue)); q->size = n; q->head = q->tail = 1; q->e = (void **)malloc(sizeof(void*) * (n + 1)); return q; } int Queue_Empty(Queue* q) { return (q->head == q-...
Add helper function Queue Full implementation
Add helper function Queue Full implementation
C
mit
MaxLikelihood/CADT
e3cdcbbbfd75cd76d705bee7c01ea07cced618cb
shell.c
shell.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "parsing.h" #include "shutility.h" int main(int argc, char **argv) { int status = 1; int read; size_t len; char *buffer = NULL; printf("----- C O N S O L E\t S I M U L A T I O N -----\n\n"); while (s...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include "parsing.h" #include "shutility.h" /* void sig_handler(int signo) { if (signo == SIGUSR1) printf("Received SIGUSR1\n"); else if (signo == SIGTERM) printf("Received SIGTERM\n"); else if (signo == SIGINT) printf("Receive...
Add example of signal handling
Add example of signal handling
C
mit
Bcoolie/Shell-Simulation
ce8db655cff33b744df07e338e328fb598a5a81c
snake.c
snake.c
#include <stdlib.h> /** * @author: Hendrik Werner */ #define BOARD_HEIGHT 50 #define BOARD_WIDTH 50 typedef struct Position { int row; int col; } Position; int main() { return EXIT_SUCCESS; }
#include <stdlib.h> /** * @author: Hendrik Werner */ #define BOARD_HEIGHT 50 #define BOARD_WIDTH 50 typedef struct Position { int row; int col; } Position; typedef enum Cell { EMPTY ,SNAKE ,FOOD } Cell; int main() { return EXIT_SUCCESS; }
Enumerate possible values for cells.
Enumerate possible values for cells.
C
mit
Hendrikto/Snake
515a641dacc9b445826646263f92bb4148963a25
test/CFrontend/2005-02-20-AggregateSAVEEXPR.c
test/CFrontend/2005-02-20-AggregateSAVEEXPR.c
// RUN: %llvmgcc %s -o /dev/null -S // Note: // We fail this on Sparc because the C library seems to be missing complex.h // and the corresponding C99 complex support. // // We could modify the test to use only GCC extensions, but I don't know if // that would change the nature of the test. // // XFAIL: sparc #inc...
// RUN: %llvmgcc %s -o /dev/null -S // Note: // We fail this on Sparc because the C library seems to be missing complex.h // and the corresponding C99 complex support. // // We could modify the test to use only GCC extensions, but I don't know if // that would change the nature of the test. // // XFAIL: sparc #ifd...
Make this testcase compatible with CYGWIN.
Make this testcase compatible with CYGWIN. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@44353 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggi...
126b631e22915e43dc41a6a62e6d29c88d9afc19
test/test_parser_empty.c
test/test_parser_empty.c
#include "test_parser_p.h" void empty_success(void **state) { grammar_t *grammar = grammar_init( non_terminal("Start"), rule_init("Start", empty()), 1); parse_t *result = parse("hello", grammar); assert_non_null(result); assert_int_equal(result->length, 0); assert_int_equal(result->n_children, 0); }...
#include "test_parser_p.h" void empty_success(void **state) { grammar_t *grammar = grammar_init( non_terminal("Start"), rule_init("Start", empty()), 1); parse_result_t *result = parse("hello", grammar); assert_non_null(result); parse_t *suc = result->data.result; assert_int_equal(suc->length, 0); ...
Use new API on empty tests
Use new API on empty tests
C
mit
Baltoli/peggo,Baltoli/peggo
9819e6f6db1beec8053584002d9573c496b17ea7
test/test-file.c
test/test-file.c
#include <glib.h> #include <glib/gstdio.h> #include <uuid/uuid.h> #include <wizbit/file.h> char *work_dir = "/tmp/wizbittest"; int main() { system ("rm -rf /tmp/wizbittest"); mkdir (work_dir,0700); chdir (work_dir); { struct wiz_file *file; wiz_vref vref; FILE *fp; file = wiz_file_open(WIZ_FILE_NEW, 0...
#include <glib.h> #include <glib/gstdio.h> #include <uuid/uuid.h> #include <wizbit/file.h> char *work_dir = "/tmp/wizbittest"; int main() { system ("rm -rf /tmp/wizbittest"); mkdir (work_dir,0700); chdir (work_dir); { struct wiz_file *file; wiz_vref vref; FILE *fp; file = wiz_file_open(WIZ_FILE_NEW, 0...
Test writing to temp file and making a snapshot
Test writing to temp file and making a snapshot
C
lgpl-2.1
wizbit-archive/wizbit,wizbit-archive/wizbit
5c8bed619e318e12f883f2e1df4773be68cae334
src/gamemaps_parser.h
src/gamemaps_parser.h
#ifndef GAMEMAPS_PARSER_H #define GAMEMAPS_PARSER_H #include <stdbool.h> #include <stddef.h> #include <stdint.h> /// /// Parses content of the map header file. /// /// \return `true` if successful, `false` otherwise /// bool parse_map_header( uint8_t *header, ///< [in] The content of the map heade...
#ifndef GAMEMAPS_PARSER_H #define GAMEMAPS_PARSER_H #include <stdbool.h> #include <stddef.h> #include <stdint.h> /// /// A structure representing a plane /// typedef struct { uint16_t *data; ///< Plane data size_t length; ///< The length of the plane data } plane_t; /// /// A structure representing a leve...
Add some definitions required for parsing map data
Add some definitions required for parsing map data
C
mit
Xiyng/gamemaps-parser,Xiyng/gamemaps-parser
2bc87f4dd510a5d3e7f255de3af0e68042af60e9
messagebox.c
messagebox.c
#include <stdlib.h> #include <stdio.h> #include <errno.h> #include <windows.h> #define URL "https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505\ (v=vs.85).aspx" #define VERSION "0.1.0" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine, int nCmdShow) { ...
#undef __STRICT_ANSI__ #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <windows.h> #define URL "https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505\ (v=vs.85).aspx" #define VERSION "0.1.0" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine, ...
Fix warning about implicit declaration of _wtoi()
Fix warning about implicit declaration of _wtoi() Per http://0mg.hatenadiary.jp/entry/2015/08/25/172457.
C
mit
dbohdan/messagebox,dbohdan/messagebox
6888f7293c815a4cd4c313c1a9bf57cc95f7d043
Pod/Classes/MapperMacros/VOKManagedObjectMapperMacros.h
Pod/Classes/MapperMacros/VOKManagedObjectMapperMacros.h
// // VOKManagedObjectMapperMacros.h // Vokoder // // Copyright © 2016 Vokal. // #ifndef VOKManagedObjectMapperMacros_h #define VOKManagedObjectMapperMacros_h #import "VOKManagedObjectMap.h" #import <VOKKeyPathHelper.h> /** * Creates a map with the default date mapper. * * @param inputKeyPath The ...
// // VOKManagedObjectMapperMacros.h // Vokoder // // Copyright © 2016 Vokal. // #ifndef VOKManagedObjectMapperMacros_h #define VOKManagedObjectMapperMacros_h #import "VOKManagedObjectMap.h" #import <VOKUtilities/VOKKeyPathHelper.h> /** * Creates a map with the default date mapper. * * @param inputKeyPath ...
Include VOKKeyPathHelper.h as a module header
Include VOKKeyPathHelper.h as a module header
C
mit
vokal/Vokoder,vokal/Vokoder,designatednerd/Vokoder,vokal/Vokoder,designatednerd/Vokoder,brockboland/Vokoder,brockboland/Vokoder,brockboland/Vokoder,designatednerd/Vokoder,vokal/Vokoder,designatednerd/Vokoder,brockboland/Vokoder,brockboland/Vokoder
ad42e08ce166b18f20f0346c5a2bb6a6f107c5fb
integer-multiplication/recursive.c
integer-multiplication/recursive.c
#include <stdlib.h> #include <stdio.h> #include <string.h> int* toInt(char * s, int len){ int * arr = malloc(sizeof(char) * len); int i = 0; for(i = 0; i < len; i++) { arr[i] = s[i] - '0'; } return arr; } int main(int argc, char *argv[]) { int n1_len = strlen(argv[1]); int n2_len = strlen(argv[2]); int ...
#include <stdlib.h> #include <stdio.h> #include <string.h> int* toInt(char * s, int len){ int * arr = malloc(sizeof(int) * len); int i = 0; for(i = 0; i < len; i++) { arr[i] = s[i] - '0'; } return arr; } int** getabcd(int *arr1, int *arr2, int len1, int len2){ int i,j; int *a = malloc(sizeof(int*) * (len1...
Split int arrays into 4 smaller int arrays
Split int arrays into 4 smaller int arrays Managed to split int arrays into 4 smaller int arrays representing a, b, c, and d, and return as an array of these 4 arrays. Am not sure this is the best way to go about this anymore...
C
mit
timpel/stanford-algs,timpel/stanford-algs
5c110dd17a8e122bf2fe297c41b30e848e934549
src/runtime/main.c
src/runtime/main.c
#include <stdio.h> #include <string.h> #include <time.h> #include <orbit/orbit.h> int main(int argc, const char** argv) { if(argc < 2) { fprintf(stderr, "error: no input module file.\n"); return -1; } OrbitVM* vm = orbit_vmNew(); if(orbit_vmInvoke(vm, argv[1], "main")) { ...
#include <stdio.h> #include <string.h> #include <time.h> #include <orbit/orbit.h> int main(int argc, const char** argv) { if(argc < 2) { fprintf(stderr, "error: no input module file.\n"); return -1; } OrbitVM* vm = orbit_vmNew(); if(!orbit_vmInvoke(vm, argv[1], "main")) { ...
Fix wrong success check in runtime cli
Fix wrong success check in runtime cli
C
mit
amyinorbit/orbitvm,amyinorbit/orbitvm,cesarparent/orbitvm,amyinorbit/orbitvm,cesarparent/orbitvm
954ca58264801b7a4cac4b3bc53d0bd01feaca92
include/GL.h
include/GL.h
#ifndef _GL_H_ #define _GL_H_ #if defined __APPLE__ #include <OpenGLES/ES3/gl.h> #include <OpenGLES/ES3/glext.h> #elif defined GL_ES #include <GLES3/gl3.h> #include <EGL/egl.h> #include <EGL/eglext.h> #else #define GL_GLEXT_PROTOTYPES #ifdef WIN32 #include <GL/glew.h> #include <windows.h> #endif #ifdef __ANDROID__ #...
#ifndef _GL_H_ #define _GL_H_ #if defined __APPLE__ #include <OpenGLES/ES2/gl.h> #include <OpenGLES/ES2/glext.h> #elif defined GL_ES #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <EGL/egl.h> #include <EGL/eglext.h> #include <importgl.h> #else //#define GL_GLEXT_PROTOTYPES #ifdef WIN32 #include <GL/glew.h>...
Remove gl includes from __ANDROID__
Remove gl includes from __ANDROID__
C
mit
Sometrik/framework,Sometrik/framework,Sometrik/framework
307265aaabc5d61e1aa3add68f87911e003a85fa
support/c/idris_directory.h
support/c/idris_directory.h
#ifndef __IDRIS_DIRECTORY_H #define __IDRIS_DIRECTORY_H char* idris2_currentDirectory(); int idris2_changeDir(char* dir); int idris2_createDir(char* dir); void* idris2_openDir(char* dir); void idris2_dirClose(void* d); char* idris2_nextDirEntry(void* d); #endif
#ifndef __IDRIS_DIRECTORY_H #define __IDRIS_DIRECTORY_H char* idris2_currentDirectory(); int idris2_changeDir(char* dir); int idris2_createDir(char* dir); void* idris2_openDir(char* dir); void idris2_closeDIr(void* d); int idris2_removeDir(char* path); char* idris2_nextDirEntry(void* d); #endif
Update C support header files
Update C support header files
C
bsd-3-clause
mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm
5b1265c575dcaa7f8d424f7e6cfdb956ee048dff
src/Methcla/Utility/Macros.h
src/Methcla/Utility/Macros.h
// Copyright 2012-2013 Samplecount S.L. // // 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 agr...
// Copyright 2012-2013 Samplecount S.L. // // 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 agr...
Remove -Wunused-private-field from pragma for gcc <= 4
Remove -Wunused-private-field from pragma for gcc <= 4
C
apache-2.0
samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla
6bc5a1e26fadb438c8363d60b7d60a790870c3c2
test2/structs/lvalue/cant.c
test2/structs/lvalue/cant.c
// RUN: %check -e %s main() { struct A { int i; } a, b, c; a = b ? : c; // CHECK: error: struct involved in if-expr }
// RUN: %check -e %s main() { struct A { int i; } a, b, c; a = b ? : c; // CHECK: error: struct involved in ?: }
Fix struct if-expression test warning
Fix struct if-expression test warning
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
793459cf8a68ef3e596211bc81d8003880d1d6ba
Application/MIDASDesktop/GUI/ResourceEdit.h
Application/MIDASDesktop/GUI/ResourceEdit.h
#ifndef __ResourceEdit_H #define __ResourceEdit_H #include "midasLogAware.h" #include "midasResourceDescTable.h" #include <QObject> class midasDatabaseProxy; class QTableWidgetItem; namespace mdo { class Community; class Collection; class Item; class Bitstream; }; class ResourceEdit : public QObject, public...
#ifndef __ResourceEdit_H #define __ResourceEdit_H #include "midasLogAware.h" #include "MidasResourceDescTable.h" #include <QObject> class midasDatabaseProxy; class QTableWidgetItem; namespace mdo { class Community; class Collection; class Item; class Bitstream; }; class ResourceEdit : public QObject, public...
Fix wrong case bug causing compile error on unix platforms
BUG: Fix wrong case bug causing compile error on unix platforms SVN-Revision: 2901
C
apache-2.0
cpatrick/MidasClient,cpatrick/MidasClient,cpatrick/MidasClient
5c52d60804ea39834ef024923d4286fb7464eefa
ir/ana/execfreq_t.h
ir/ana/execfreq_t.h
/* * This file is part of libFirm. * Copyright (C) 2012 University of Karlsruhe. */ /** * @file * @brief Compute an estimate of basic block executions. * @author Adam M. Szalkowski * @date 28.05.2006 */ #ifndef FIRM_ANA_EXECFREQ_T_H #define FIRM_ANA_EXECFREQ_T_H #include "execfreq.h" void i...
/* * This file is part of libFirm. * Copyright (C) 2012 University of Karlsruhe. */ /** * @file * @brief Compute an estimate of basic block executions. * @author Adam M. Szalkowski * @date 28.05.2006 */ #ifndef FIRM_ANA_EXECFREQ_T_H #define FIRM_ANA_EXECFREQ_T_H #include "execfreq.h" void i...
Remove unused attribute max from int_factors.
execfreq: Remove unused attribute max from int_factors.
C
lgpl-2.1
MatzeB/libfirm,jonashaag/libfirm,libfirm/libfirm,killbug2004/libfirm,killbug2004/libfirm,libfirm/libfirm,jonashaag/libfirm,8l/libfirm,jonashaag/libfirm,killbug2004/libfirm,MatzeB/libfirm,davidgiven/libfirm,libfirm/libfirm,davidgiven/libfirm,davidgiven/libfirm,killbug2004/libfirm,killbug2004/libfirm,davidgiven/libfirm,d...
74201b3f0de435b167786fe31159f9217e860a79
Lagrangian/L3TestResult.h
Lagrangian/L3TestResult.h
// L3TestResult.h // Created by Rob Rix on 2012-11-12. // Copyright (c) 2012 Rob Rix. All rights reserved. #import <Foundation/Foundation.h> @interface L3TestResult : NSObject +(instancetype)testResultWithName:(NSString *)name startDate:(NSDate *)startDate; @property (strong, nonatomic) L3TestResult *parent; // ...
// L3TestResult.h // Created by Rob Rix on 2012-11-12. // Copyright (c) 2012 Rob Rix. All rights reserved. #import <Foundation/Foundation.h> @interface L3TestResult : NSObject +(instancetype)testResultWithName:(NSString *)name startDate:(NSDate *)startDate; @property (strong, nonatomic) L3TestResult *parent; // ...
Test results have an end date.
Test results have an end date.
C
bsd-3-clause
ashfurrow/RXCollections,robrix/RXCollections,policp/RXCollections,ashfurrow/RXCollections,robrix/RXCollections,policp/RXCollections,robrix/Lagrangian,robrix/Lagrangian,robrix/RXCollections,robrix/Lagrangian,policp/RXCollections
eebacb19cbe5109354aa877ba4c83b79164cfc5c
examples/foo.h
examples/foo.h
/* -*- C++ -*- */ #ifndef FOO_H_ # define FOO_H_ #include <string> int print_something(const char *message); int print_something_else(const char *message2); class SomeObject { std::string m_prefix; public: SomeObject (std::string const prefix) : m_prefix (prefix) {} int add_prefix (std::s...
// -*- Mode: C++; c-file-style: "stroustrup"; indent-tabs-mode:nil; -*- #ifndef FOO_H_ # define FOO_H_ #include <string> // Yes, this code is stupid, I know; it is only meant as an example! int print_something(const char *message); int print_something_else(const char *message2); class Foo { std::string m_...
Add example interfaces to test a bunch of new stuff (c++ subclassing, class parameter handling)
Add example interfaces to test a bunch of new stuff (c++ subclassing, class parameter handling)
C
lgpl-2.1
cawka/pybindgen-old,cawka/pybindgen-old,gjcarneiro/pybindgen,gjcarneiro/pybindgen,gjcarneiro/pybindgen,ftalbrecht/pybindgen,gjcarneiro/pybindgen,ftalbrecht/pybindgen,ftalbrecht/pybindgen,ftalbrecht/pybindgen,cawka/pybindgen-old,cawka/pybindgen-old
837f1bd12b5c80446bf0ee243303c66d37c6a69e
ndb/src/common/portlib/NdbSleep.c
ndb/src/common/portlib/NdbSleep.c
/* Copyright (C) 2003 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in t...
/* Copyright (C) 2003 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in t...
Use my_sleep instead of nanosleep for portability
Use my_sleep instead of nanosleep for portability
C
lgpl-2.1
ollie314/server,davidl-zend/zenddbi,flynn1973/mariadb-aix,flynn1973/mariadb-aix,davidl-zend/zenddbi,flynn1973/mariadb-aix,natsys/mariadb_10.2,ollie314/server,davidl-zend/zenddbi,ollie314/server,flynn1973/mariadb-aix,davidl-zend/zenddbi,natsys/mariadb_10.2,ollie314/server,davidl-zend/zenddbi,flynn1973/mariadb-aix,natsys...
6380b46ab02851ab8ab0071695f395fc20246f4c
apps/libs/gpio.h
apps/libs/gpio.h
#ifndef _GPIO_H #define _GPIO_H #include <unistd.h> #include "tock.h" #define GPIO_DRIVER_NUM 1 #ifdef __cplusplus extern "C" { #endif // GPIO pin enum is defined externally in platform headers enum GPIO_Pin_enum; typedef enum GPIO_Pin_enum GPIO_Pin_t; typedef enum { PullUp=0, PullDown, PullNone, } GPIO_Inpu...
#ifndef _GPIO_H #define _GPIO_H #include <unistd.h> #include "tock.h" #include "firestorm.h" #define GPIO_DRIVER_NUM 1 #ifdef __cplusplus extern "C" { #endif // GPIO pin enum is defined externally in platform headers enum GPIO_Pin_enum; typedef enum GPIO_Pin_enum GPIO_Pin_t; typedef enum { PullUp=0, PullDown, ...
Make GPIO_Pin_t type work by including firestorm.h
Make GPIO_Pin_t type work by including firestorm.h This isn't good long-term. The gpio driver should not have to depend on a specific platform
C
apache-2.0
google/tock-on-titan,google/tock-on-titan,google/tock-on-titan
4feae9f90bc7a483c54103d5bfdc9b1c231624ca
tests/regression/01-cpa/35-intervals.c
tests/regression/01-cpa/35-intervals.c
// PARAM: --enable ana.int.interval --disable ana.int.def_exc --disable ana.int.enums void main(){ int n = 7; for (; n; n--) { assert(n==1); // UNKNOWN! } int i; if(i-1){ assert(i==2); // UNKNOWN } return; }
// PARAM: --enable ana.int.interval --disable ana.int.def_exc --disable ana.int.enums void main(){ int n = 7; for (; n; n--) { assert(n==1); // UNKNOWN! } int i; if(i-1){ assert(i==2); // UNKNOWN! } return; }
Fix tests 01/35: Any int != 0 evaluates to true
Fix tests 01/35: Any int != 0 evaluates to true
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
39a74c1552c74910eaac60ed8574ef34e5e5ad5c
src/c/main.c
src/c/main.c
/* * Copyright (c) 2016 Jan Hoffmann * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "windows/main_window.h" #include <pebble.h> static void init...
/* * Copyright (c) 2016 Jan Hoffmann * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "lib/data.h" #include "windows/main_window.h" #include <pebble...
Set fast sellers as app glance on supported watches
Set fast sellers as app glance on supported watches
C
mpl-2.0
janh/mensa-stuttgart,janh/mensa-stuttgart,janh/mensa-stuttgart,janh/mensa-stuttgart
14cf94eed81468759bb7b2ab084837f656059407
stdafx.h
stdafx.h
// precompiled header /* * * Author: septimomend (Ivan Chapkailo) * * 27.06.2017 * */ #define _DEFAULT_SOURCE #define _BSD_SOURCE #define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <sys/i...
// precompiled header /* * * Author: septimomend (Ivan Chapkailo) * * 27.06.2017 * */ #define _DEFAULT_SOURCE #define _BSD_SOURCE #define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <iostream> #include <stdarg.h> #include <cstdlib> #include <string> #include <sys/ioc...
Update precompiled header -- added defines
Update precompiled header -- added defines
C
mit
septimomend/UNIX-C-Text-Editor,septimomend/UNIX-C-Text-Editor
7bfdc0e00b77c05fe0de79da3eaa6b0009418926
PWG3/PWG3baseLinkDef.h
PWG3/PWG3baseLinkDef.h
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliQuarkoniaAcceptance+; #pragma link C++ class AliQuarkoniaEfficiency+; #pragma link C++ class AliD0toKpi+; #pragma link C++ class AliD0toKpiAnalysis+; #pragma link C++ class AliBtoJP...
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliQuarkoniaAcceptance+; #pragma link C++ class AliQuarkoniaEfficiency+; #pragma link C++ class AliAODRecoDecayHF+; #pragma link C++ class AliAODRecoDecayHF2Prong+; #pragma link C++ cl...
Move AliD0toKpi* and AliBtoJPSI* from libPWG3base to libPWG3 (Andrea)
Move AliD0toKpi* and AliBtoJPSI* from libPWG3base to libPWG3 (Andrea)
C
bsd-3-clause
mkrzewic/AliRoot,alisw/AliRoot,ecalvovi/AliRoot,shahor02/AliRoot,ecalvovi/AliRoot,jgrosseo/AliRoot,coppedis/AliRoot,sebaleh/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,mkrzewic/AliRoot,sebaleh/AliRoot,coppedis/AliRoot,alisw/AliRoot,sebaleh/AliRoot,jgrosseo/AliRoot,shahor02/AliRoot,miranov25/AliRoot,alisw/AliRoot,jgrosseo...
66122432b36ed35ec40499d2d93fc51fa02c20e0
STRUCT/STRUCTLinkDef.h
STRUCT/STRUCTLinkDef.h
#ifdef __CINT__ /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliBODY; #pragma lin...
#ifdef __CINT__ /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliBODY; #pragma lin...
Add new classes to LinkDef
Add new classes to LinkDef
C
bsd-3-clause
coppedis/AliRoot,ALICEHLT/AliRoot,coppedis/AliRoot,alisw/AliRoot,mkrzewic/AliRoot,mkrzewic/AliRoot,alisw/AliRoot,alisw/AliRoot,miranov25/AliRoot,miranov25/AliRoot,sebaleh/AliRoot,shahor02/AliRoot,jgrosseo/AliRoot,ecalvovi/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,miranov25/AliRoot,shahor02/AliRoot,coppedis/AliRoot,mira...
86ee240a4a6a958b4728b3613ce05edd884caf45
sway/commands/floating_modifier.c
sway/commands/floating_modifier.c
#include "strings.h" #include "sway/commands.h" #include "sway/config.h" #include "sway/input/keyboard.h" struct cmd_results *cmd_floating_modifier(int argc, char **argv) { struct cmd_results *error = NULL; if ((error = checkarg(argc, "floating_modifier", EXPECTED_AT_LEAST, 1))) { return error; } uint32_t mod =...
#include "strings.h" #include "sway/commands.h" #include "sway/config.h" #include "sway/input/keyboard.h" struct cmd_results *cmd_floating_modifier(int argc, char **argv) { struct cmd_results *error = NULL; if ((error = checkarg(argc, "floating_modifier", EXPECTED_AT_LEAST, 1))) { return error; } if (strcasecmp...
Add ability to remove the floating modifier
Add ability to remove the floating modifier
C
mit
ascent12/sway,1ace/sway,1ace/sway,SirCmpwn/sway,1ace/sway,ascent12/sway,ascent12/sway
2b33ac168c6e252e441f9b0a547d2bf18c153984
Squirrel/SQRLInstaller+Private.h
Squirrel/SQRLInstaller+Private.h
// // SQRLInstaller+Private.h // Squirrel // // Created by Justin Spahr-Summers on 2013-11-19. // Copyright (c) 2013 GitHub. All rights reserved. // #import "SQRLInstaller.h" // A preferences key for the URL where the target bundle has been moved before // installation. // // This is stored in preferences, rather...
// // SQRLInstaller+Private.h // Squirrel // // Created by Justin Spahr-Summers on 2013-11-19. // Copyright (c) 2013 GitHub. All rights reserved. // #import "SQRLInstaller.h" // A preferences key for the URL where the target bundle has been moved before // installation. // // This is stored in preferences to prev...
Update docs to reflect that the root prefs aren’t opposed to shipit state
Update docs to reflect that the root prefs aren’t opposed to shipit state ShipIt state is now in the prefs too.
C
mit
EdZava/Squirrel.Mac,EdZava/Squirrel.Mac,Squirrel/Squirrel.Mac,emiscience/Squirrel.Mac,EdZava/Squirrel.Mac,Squirrel/Squirrel.Mac,emiscience/Squirrel.Mac,emiscience/Squirrel.Mac,Squirrel/Squirrel.Mac
c8bb5693469744e0deeb03a552f190faa2146764
tests/integrationtests/fibonacci.c
tests/integrationtests/fibonacci.c
#include <stdio.h> void print_fib(int n) { int a = 0; int b = 1; while (a < n) { printf("%d ", a); int old_a = a; a = b; b = old_a + b; } } int main() { print_fib(500); printf("\n"); return 0; }
#include <stdio.h> void print_fib(int n) { int a = 0; int b = 1; while (a < n) { int old_a = a; printf("%d ", a); a = b; b = old_a + b; } } int main() { print_fib(500); printf("\n"); return 0; }
Fix variable declaration non-conformant to C89
Fix variable declaration non-conformant to C89 Declaring variables on C89 need to be done at the beginning of the function scope. The old code failed on VS2010.
C
bsd-3-clause
webmaster128/clcache,webmaster128/clcache,webmaster128/clcache
fac07f049b1779162101baddf60a331df761e228
cpp/libjoynr/include/joynr/StatusCode.h
cpp/libjoynr/include/joynr/StatusCode.h
/* * #%L * %% * Copyright (C) 2011 - 2017 BMW Car IT GmbH * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
/* * #%L * %% * Copyright (C) 2011 - 2017 BMW Car IT GmbH * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
Improve documentation of Future status codes.
[C++] Improve documentation of Future status codes. Change-Id: I979083e18ea5facec4e6f52fc2ed486b4a18d358
C
apache-2.0
bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr
cd2450371d48da1c548b8894cccc0a67cd8b0e99
asylo/test/util/test_flags.h
asylo/test/util/test_flags.h
/* * * Copyright 2018 Asylo authors * * 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 agree...
/* * * Copyright 2018 Asylo authors * * 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 agree...
Add missing include of string
Add missing include of string PiperOrigin-RevId: 317401762 Change-Id: Icbc4d0e2a4e99a9e73a4d8e7ad148e34ee2e9d03
C
apache-2.0
google/asylo,google/asylo,google/asylo,google/asylo,google/asylo,google/asylo
0a6986c0d9b11bf808264239a7d107fecf67dab1
test/functionalities/signal/main.c
test/functionalities/signal/main.c
#include <sys/signal.h> #include <stdio.h> #include <unistd.h> void handler_usr1 (int i) { puts ("got signal usr1"); } void handler_alrm (int i) { puts ("got signal ALRM"); } int main () { int i = 0; signal (SIGUSR1, handler_usr1); signal (SIGALRM, handler_alrm); puts ("Put breakpoint here"); while ...
#include <signal.h> #include <stdio.h> #include <unistd.h> void handler_usr1 (int i) { puts ("got signal usr1"); } void handler_alrm (int i) { puts ("got signal ALRM"); } int main () { int i = 0; signal (SIGUSR1, handler_usr1); signal (SIGALRM, handler_alrm); puts ("Put breakpoint here"); while (i++...
Include signal.h instead of sys/signal.h in the test case.
[TestSendSignal] Include signal.h instead of sys/signal.h in the test case. Summary: Android API-9 does not have sys/signal.h. However, all sys/signal.h has when present is an include of signal.h. Test Plan: dotest.py -p TestSendSignal on linux and Android. Reviewers: chaoren Reviewed By: chaoren Subscribers: tber...
C
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb
b1501a3cde99f68c9c419d9db4ad15b8fed814f3
src/core/SkEdgeBuilder.h
src/core/SkEdgeBuilder.h
#ifndef SkEdgeBuilder_DEFINED #define SkEdgeBuilder_DEFINED #include "SkChunkAlloc.h" #include "SkRect.h" #include "SkTDArray.h" class SkEdge; class SkEdgeClipper; class SkPath; class SkEdgeBuilder { public: SkEdgeBuilder(); int build(const SkPath& path, const SkIRect* clip, int shiftUp); SkEdge** ...
#ifndef SkEdgeBuilder_DEFINED #define SkEdgeBuilder_DEFINED #include "SkChunkAlloc.h" #include "SkRect.h" #include "SkTDArray.h" struct SkEdge; class SkEdgeClipper; class SkPath; class SkEdgeBuilder { public: SkEdgeBuilder(); int build(const SkPath& path, const SkIRect* clip, int shiftUp); SkEdge**...
Fix warning (struct forward-declared as class).
Fix warning (struct forward-declared as class). Review URL: http://codereview.appspot.com/164061 git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@451 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
shahrzadmn/skia,houst0nn/external_skia,GladeRom/android_external_skia,MIPS/external-chromium_org-third_party-skia,VRToxin-AOSP/android_external_skia,zhaochengw/platform_external_skia,ench0/external_chromium_org_third_party_skia,MyAOSP/external_chromium_org_third_party_skia,akiss77/skia,fire855/android_external_skia,Inf...
2c063183a172e9f42e174b2741d532b240effd46
core/meta/inc/TEnumConstant.h
core/meta/inc/TEnumConstant.h
// @(#)root/meta:$Id$ // Author: Bianca-Cristina Cristescu 09/07/13 /************************************************************************* * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// @(#)root/meta:$Id$ // Author: Bianca-Cristina Cristescu 09/07/13 /************************************************************************* * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Implement a GetAddress method that returns the address of the value data member
Implement a GetAddress method that returns the address of the value data member this is different from the one of TGlobal which implies the presence of information in the interpreter. This is done in order to support enum constants which are created in the ROOT typesystem starting from the information in rootpcms. *IM...
C
lgpl-2.1
zzxuanyuan/root-compressor-dummy,bbockelm/root,evgeny-boger/root,mattkretz/root,gganis/root,veprbl/root,sirinath/root,agarciamontoro/root,beniz/root,zzxuanyuan/root-compressor-dummy,pspe/root,vukasinmilosevic/root,satyarth934/root,sbinet/cxx-root,davidlt/root,CristinaCristescu/root,bbockelm/root,vukasinmilosevic/root,l...
72667ea922ed9b703b56a87cd71844b74801cd55
common/c_cpp/src/c/windows/wombat/wUuid.h
common/c_cpp/src/c/windows/wombat/wUuid.h
/* $Id: wUuid.h,v 1.1.2.2 2012/03/20 11:15:17 emmapollock Exp $ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free...
/* $Id: wUuid.h,v 1.1.2.2 2012/03/20 11:15:17 emmapollock Exp $ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free...
Change uuid to char* from int for Windows
Change uuid to char* from int for Windows Signed-off-by: Mike Schonberg <a0b795d7498c6bea81956c992e86c1008615b63d@nyx.com>
C
lgpl-2.1
MattMulhern/OpenMamaCassandra,jacobraj/MAMA,MattMulhern/OpenMamaCassandra,dmaguire/OpenMAMA,dpauls/OpenMAMA,philippreston/OpenMAMA,jacobraj/MAMA,jacobraj/MAMA,fquinner/OpenMAMA,jacobraj/MAMA,vulcanft/openmama,dmaguire/OpenMAMA,cloudsmith-io/openmama,MattMulhern/OpenMamaCassandra,dmagOM/OpenMAMA-dynamic,dmagOM/OpenMAMA-...
588c5e4b6f5fa8e45811d3f4e95d3b94f8f58341
test/tools/llvm-symbolizer/print_context.c
test/tools/llvm-symbolizer/print_context.c
// REQUIRES: x86_64-linux // RUN: %host_cc -O0 -g %s -o %t 2>&1 // RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s #include <stdio.h> int inc(int a) { return a + 1; } int main() { printf("%p\n", inc); return 0; } // CHECK: inc // CHECK: print_context.c:7 // CHECK: 5 : #inc...
// REQUIRES: x86_64-linux // RUN: %host_cc -O0 -g %s -o %t 2>&1 // RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s // // See PR31870 for more details on the XFAIL // XFAIL: avr #include <stdio.h> int inc(int a) { return a + 1; } int main() { printf("%p\n", inc); return 0; } ...
Mark a failing symbolizer test as XFAIL
[AVR] Mark a failing symbolizer test as XFAIL git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@309512 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llv...
c84ea433d725db190e6e2e51344ec055422414fe
src/include/port/win.h
src/include/port/win.h
#define JMP_BUF #define HAS_TEST_AND_SET typedef unsigned char slock_t; #ifndef O_DIROPEN #define O_DIROPEN 0x100000 /* should be in sys/fcntl.h */ #endif
#define JMP_BUF #define HAS_TEST_AND_SET typedef unsigned char slock_t; #ifndef O_DIROPEN #define O_DIROPEN 0x100000 /* should be in sys/fcntl.h */ #endif #define tzname _tzname /* should be in time.h?*/ #define USE_POSIX_TIME #define HAVE_INT_TIMEZONE /* has int _timezone */
Fix from Yutaka Tanida <yutaka@marin.or.jp>
Fix from Yutaka Tanida <yutaka@marin.or.jp>
C
apache-2.0
xuegang/gpdb,ahachete/gpdb,kaknikhil/gpdb,Postgres-XL/Postgres-XL,yuanzhao/gpdb,foyzur/gpdb,CraigHarris/gpdb,janebeckman/gpdb,adam8157/gpdb,chrishajas/gpdb,janebeckman/gpdb,arcivanov/postgres-xl,xinzweb/gpdb,randomtask1155/gpdb,atris/gpdb,atris/gpdb,zaksoup/gpdb,janebeckman/gpdb,lintzc/gpdb,zaksoup/gpdb,zaksoup/gpdb,ru...
03b8a58e6b8fbfcdbe8bad02e4d0cda0f372972c
rflags.c
rflags.c
#include <inttypes.h> #include <stdio.h> int main() { uint64_t rflags; __asm__ __volatile__ ("pushf; popq %0" : "=g" (rflags) ::"memory"); printf("rFLAGS: %016llx\n", rflags); #define BIT(name, number) \ printf("\t%s: %d\n", name, rflags & (1 << number) ? 1 : 0) const char* bits[] = { "CF", "Reserved (1)", ...
#include <inttypes.h> #include <stdio.h> int main() { uint64_t rflags; __asm__ __volatile__ ("pushf; popq %0" : "=g" (rflags) ::"memory"); printf("rFLAGS: %016llx\n", (unsigned long long)rflags); #define BIT(name, number) \ printf("\t%s: %d\n", name, rflags & (1 << number) ? 1 : 0) const char* bits[] = { "CF",...
Fix printf warning when long long is 128-bit.
Fix printf warning when long long is 128-bit.
C
mit
olsner/os,olsner/os,olsner/os,olsner/os
a6ff25d87ab0d21c433390b80b513c46b6570f9c
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_GL_CUSTOM_SETUP_HEADER "gl/GrGLConfig_chrome.h" #define GR_TEST_UTILS 1 #define SK_BUILD...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
Stop using Chrome config options.
Stop using Chrome config options. These options used to apply some best practices for how to configure Skia but those have been moved to GrContext options and this file is now mostly optimizations specific to the Chrome rendering pipeline. Specifically, we don't want to use VBOs on all classes of GPUs as it can be mu...
C
bsd-3-clause
aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_externa...
ff8d8029fdfa0b28c67012b8fcddb4e2d9a2523d
src/host/os_rmdir.c
src/host/os_rmdir.c
/** * \file os_rmdir.c * \brief Remove a subdirectory. * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project */ #include <stdlib.h> #include "premake.h" int os_rmdir(lua_State* L) { int z; const char* path = luaL_checkstring(L, 1); #if PLATFORM_WINDOWS z = RemoveDirectory(path); #else z...
/** * \file os_rmdir.c * \brief Remove a subdirectory. * \author Copyright (c) 2002-2013 Jason Perkins and the Premake project */ #include <stdlib.h> #include "premake.h" int os_rmdir(lua_State* L) { int z; const char* path = luaL_checkstring(L, 1); #if PLATFORM_WINDOWS z = RemoveDirectory(path); #else z...
Fix error result handling in os.rmdir()
Fix error result handling in os.rmdir()
C
bsd-3-clause
Yhgenomics/premake-core,felipeprov/premake-core,sleepingwit/premake-core,xriss/premake-core,bravnsgaard/premake-core,grbd/premake-core,PlexChat/premake-core,prapin/premake-core,soundsrc/premake-core,prapin/premake-core,prapin/premake-core,jsfdez/premake-core,sleepingwit/premake-core,resetnow/premake-core,LORgames/prema...
f3bbcec5d714f9d457c99032e5b02c75d44b0d70
lib/StaticAnalyzer/Checkers/SelectorExtras.h
lib/StaticAnalyzer/Checkers/SelectorExtras.h
//=== SelectorExtras.h - Helpers for checkers using selectors -----*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//=== SelectorExtras.h - Helpers for checkers using selectors -----*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Use clang++-3.5 compatible initializer_list constructor
Use clang++-3.5 compatible initializer_list constructor Otherwise, a warning is issued. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@302654 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
3e5585d5a558396d52380478c2d85aeb954f4b43
src/rtcmix/rtdefs.h
src/rtcmix/rtdefs.h
/* To avoid recursion in certain includes */ #ifndef _RTDEFS_H_ #define _RTDEFS_H_ 1 #define MAXCHANS 4 #define MAX_INPUT_FDS 128 #define AUDIO_DEVICE 9999999 /* definition of input file desc struct used by rtinput */ typedef struct inputdesc { char filename[1024]; int fd; int refcount; #ifdef USE_SNDLIB short he...
/* To avoid recursion in certain includes */ #ifndef _RTDEFS_H_ #define _RTDEFS_H_ 1 #define MAXCHANS 4 #define MAX_INPUT_FDS 128 #define AUDIO_DEVICE 9999999 /* definition of input file desc struct used by rtinput */ typedef struct inputdesc { char filename[1024]; int fd; int refcount; #ifdef USE_SNDLIB short he...
Move some globals to globals.h.
Move some globals to globals.h.
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
8d89c3c0d8b5e9c5aed145d25343e04a4b81c156
driver/fingerprint/fpsensor.h
driver/fingerprint/fpsensor.h
/* Copyright 2019 The Chromium OS 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 __CROS_EC_DRIVER_FINGERPRINT_FPSENSOR_H_ #define __CROS_EC_DRIVER_FINGERPRINT_FPSENSOR_H_ #if defined(HAVE_PRIVATE) && !defined(TEST_BUILD...
/* Copyright 2019 The Chromium OS 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 __CROS_EC_DRIVER_FINGERPRINT_FPSENSOR_H_ #define __CROS_EC_DRIVER_FINGERPRINT_FPSENSOR_H_ #if defined(HAVE_PRIVATE) && !defined(EMU_BUILD)...
Exclude header on emulator build, not test build
driver/fingerprint: Exclude header on emulator build, not test build Now that we run unit tests on device, we want to be able to include the fingerprint sensor headers in test builds. BRANCH=none BUG=b:76037094 TEST=make buildall -j TEST=With dragonclaw v0.2 connected to Segger J-Trace and servo micro: ./test/...
C
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec
a3fadc72e797ba8494eb6641a677364e82b08584
list.h
list.h
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); void List_Destroy(List* l); ListNode* ListNode_Create(void* k); void ListNode_Destroy(ListNode* n); ListNode* List_Search(List* l, void* k, int (f...
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); void List_Destroy(List* l); ListNode* ListNode_Create(void* k); void* ListNode_Retrieve(ListNode* n); void ListNode_Destroy(ListNode* n); ListNode...
Add List Node Retrieve function declaration
Add List Node Retrieve function declaration Function to retrieve key from any List Node
C
mit
MaxLikelihood/CADT
76c1534e0bd78e9a7662edcf5c994bac63d939fd
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2005 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.01.05-k2" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 1 #define QLA_DRIVER_PATCH_VER 5 #define...
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2005 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.01.05-k3" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 1 #define QLA_DRIVER_PATCH_VER 5 #define...
Update version number to 8.01.05-k3.
[SCSI] qla2xxx: Update version number to 8.01.05-k3. Signed-off-by: Andrew Vasquez <67840a4977006af7f584bdc4c86d7243c1629cad@qlogic.com> Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@SteelEye.com>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program...
deae63efe7c5469c68e451f30c23296bb67b80d6
www/db.h
www/db.h
/* * db.h * * Copyright (C) 2011 OpenTech Labs * Andrew Clayton <andrew@opentechlabs.co.uk> * Released under the GNU General Public License (GPL) version 3. * See COPYING */ #ifndef _DB_H_ #define _DB_H_ /* For Tokyocabinet (user sessions) */ #include <tcutil.h> #include <tctdb.h> #include <stdbool.h> #inc...
/* * db.h * * Copyright (C) 2011 OpenTech Labs * Andrew Clayton <andrew@opentechlabs.co.uk> * Released under the GNU General Public License (GPL) version 3. * See COPYING */ #ifndef _DB_H_ #define _DB_H_ /* For Tokyocabinet (user sessions) */ #include <tcutil.h> #include <tctdb.h> #include <stdbool.h> #inc...
Fix compiler warnings under F16/GCC 4.6.2
Fix compiler warnings under F16/GCC 4.6.2 When compiling receiptomatic under Fedora 16 with GCC 4.6.2 we were getting the following warnings... gcc -Wall -std=c99 -O2 -g -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fPIE -c receiptomatic-www.c -D_RECEIPTOMATIC_WWW_ -I../../libctemp...
C
agpl-3.0
ac000/receiptomatic
7cad08e5c045a002e25c710ccb528f22e21ed835
src/ffi.c
src/ffi.c
#include "mruby.h" #include "mruby/value.h" static mrb_value longsize(mrb_state *mrb, mrb_value self) { uint8_t size = (uint8_t)sizeof(long); return mrb_fixnum_value(size); } /* ruby calls this to load the extension */ void mrb_mruby_rubyffi_compat_gem_init(mrb_state *mrb) { struct RClass *mod = mrb_define_m...
#include "mruby.h" #include "mruby/value.h" static mrb_value longsize(mrb_state *mrb, mrb_value self) { uint8_t size = (uint8_t)sizeof(long); return mrb_fixnum_value(size); } /* ruby calls this to load the extension */ void mrb_mruby_rubyffi_compat_gem_init(mrb_state *mrb) { struct RClass *mod = mrb_define_m...
Fix for "implicit declaration of function 'ARGS_NONE' is invalid" error
Fix for "implicit declaration of function 'ARGS_NONE' is invalid" error
C
mit
schmurfy/mruby-rubyffi-compat,schmurfy/mruby-rubyffi-compat,schmurfy/mruby-rubyffi-compat
296ec37839f1504138b340d785fb9a1fd1fa03a9
include/parrot/string_primitives.h
include/parrot/string_primitives.h
/* string_funcs.h * Copyright (C) 2001-2003, The Perl Foundation. * SVN Info * $Id$ * Overview: * This is the api header for the string subsystem * Data Structure and Algorithms: * History: * Notes: * References: */ #ifndef PARROT_STRING_PRIMITIVES_H_GUARD #define PARROT_STRING_PRIMITIVES_H_GU...
/* string_funcs.h * Copyright (C) 2001-2003, The Perl Foundation. * SVN Info * $Id$ * Overview: * This is the api header for the string subsystem * Data Structure and Algorithms: * History: * Notes: * References: */ #ifndef PARROT_STRING_PRIMITIVES_H_GUARD #define PARROT_STRING_PRIMITIVES_H_GU...
Fix the build on Win32 by making linkage of various symbols consistent again.
Fix the build on Win32 by making linkage of various symbols consistent again. git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@18778 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
C
artistic-2.0
fernandobrito/parrot,gitster/parrot,gagern/parrot,tkob/parrot,tewk/parrot-select,tewk/parrot-select,parrot/parrot,gagern/parrot,fernandobrito/parrot,gagern/parrot,youprofit/parrot,fernandobrito/parrot,fernandobrito/parrot,tewk/parrot-select,FROGGS/parrot,tkob/parrot,gitster/parrot,gagern/parrot,tkob/parrot,tewk/parrot-...
0e9ab695770b9c5501b56fb712527e1ed780950d
cc1/tests/test038.c
cc1/tests/test038.c
/* name: TEST038 description: Basic test for tentative definitions output: */ int x; int x = 0; int x; int main(); void * foo() { return &main; } int main() { x = 0; return x; }
/* name: TEST038 description: Basic test for tentative definitions output: test038.c:45: error: redeclaration of 'x' G1 I x ( #I0 ) F2 I E X3 F2 main F4 P E G5 F4 foo { \ r X3 'P } G3 F2 main { \ G1 #I0 :I r G1 } */ int x; int x = 0; int x; int main(); void * foo() { return &main; } int main() { x = 0; retu...
Add solution for test of tentative declarations
Add solution for test of tentative declarations
C
isc
k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/scc
d1327aec1bceaa7c998dd2eb47ab646f6c5db33d
vpx_ports/msvc.h
vpx_ports/msvc.h
/* * Copyright (c) 2015 The WebM 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 contributin...
/* * Copyright (c) 2015 The WebM 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 contributin...
Add roundf and lroundf replacements for VS < 2013.
Add roundf and lroundf replacements for VS < 2013. Change-Id: I25678279ab44672acf680bf04d9c551156e2904b
C
bsd-2-clause
GrokImageCompression/aom,mbebenita/aom,GrokImageCompression/aom,mbebenita/aom,mbebenita/aom,luctrudeau/aom,mbebenita/aom,GrokImageCompression/aom,luctrudeau/aom,GrokImageCompression/aom,luctrudeau/aom,luctrudeau/aom,GrokImageCompression/aom,mbebenita/aom,mbebenita/aom,GrokImageCompression/aom,smarter/aom,smarter/aom,mb...
667af78609aef7ce96f22c1727256265280919ae
board.h
board.h
#ifndef __BOARD_H #define __BOARD_H #include <aery32/all.h> #define ADC_VREF 3.0 #define ADC_BITS 10 namespace board { void init(void); inline double cnv_to_volt(unsigned int cnv) { return cnv * (ADC_VREF / (1UL << ADC_BITS)); } } /* end of namespace board */ #endif
#ifndef __BOARD_H #define __BOARD_H #define ADC_VREF 3.0 #define ADC_BITS 10 namespace board { void init(void); inline double cnv_to_volt(unsigned int cnv) { return cnv * (ADC_VREF / (1UL << ADC_BITS)); } } /* end of namespace board */ #endif
Remove unnecessary include of aery32/all.h
Remove unnecessary include of aery32/all.h
C
bsd-3-clause
aery32/aery32,aery32/aery32,denravonska/aery32,denravonska/aery32
52b676ffd7f8665b01f37ebb515b9ba911561fc9
zephyr/test/drivers/common/src/main.c
zephyr/test/drivers/common/src/main.c
/* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <zephyr/zephyr.h> #include <ztest.h> #include "ec_app_main.h" #include "test/drivers/test_state.h" bool drivers_predicate_pre_main(const ...
/* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <zephyr/zephyr.h> #include <ztest.h> #include "ec_app_main.h" #include "test/drivers/test_state.h" bool drivers_predicate_pre_main(const ...
Fix listing of test cases
zephyr: Fix listing of test cases Use correct ZTEST API so test cases can be listed BUG=b:240364238 BRANCH=NONE TEST=./zephyr.exe -list Signed-off-by: Al Semjonovs <c3a2ecb550cad1e7d5a943ca6241377f7b43ffc4@google.com> Change-Id: If3b603ab64421da558228e67a907039a1674ba0b Reviewed-on: https://chromium-review.googlesou...
C
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec
17787f4779ab490398d7ff391230dbfedfa987c5
sbin/md5/global.h
sbin/md5/global.h
/* GLOBAL.H - RSAREF types and constants */ /* PROTOTYPES should be set to one if and only if the compiler supports function argument prototyping. The following makes PROTOTYPES default to 0 if it has not already been defined with C compiler flags. */ #ifndef PROTOTYPES #define PROTOTYPES 0 #endif /* POINTER de...
/* GLOBAL.H - RSAREF types and constants */ /* PROTOTYPES should be set to one if and only if the compiler supports function argument prototyping. The following makes PROTOTYPES default to 0 if it has not already been defined with C compiler flags. */ #ifndef PROTOTYPES #define PROTOTYPES 0 #endif /* POINTER de...
Fix bad assumptions about types. PR: 1649 Reviewed by: phk Submitted by: Jason Thorpe <thorpej@nas.nasa.gov>
Fix bad assumptions about types. PR: 1649 Reviewed by: phk Submitted by: Jason Thorpe <thorpej@nas.nasa.gov>
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
3f283a62a22d59028e96d39fdc35c6bd85c2129d
src/modules/conf_randr/e_mod_main.h
src/modules/conf_randr/e_mod_main.h
#ifndef E_MOD_MAIN_H # define E_MOD_MAIN_H # define LOGFNS 1 # ifdef LOGFNS # include <stdio.h> # define LOGFN(fl, ln, fn) printf("-CONF-RANDR: %25s: %5i - %s\n", fl, ln, fn); # else # define LOGFN(fl, ln, fn) # endif # ifndef ECORE_X_RANDR_1_2 # define ECORE_X_RANDR_1_2 ((1 << 16) | 2) # endif # ifndef ECORE_...
#ifndef E_MOD_MAIN_H # define E_MOD_MAIN_H //# define LOGFNS 1 # ifdef LOGFNS # include <stdio.h> # define LOGFN(fl, ln, fn) printf("-CONF-RANDR: %25s: %5i - %s\n", fl, ln, fn); # else # define LOGFN(fl, ln, fn) # endif EAPI extern E_Module_Api e_modapi; EAPI void *e_modapi_init(E_Module *m); EAPI int e_modapi_s...
Remove useless defines and variables.
Remove useless defines and variables. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84200
C
bsd-2-clause
tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment
821e790e9f14828382c787ca907ef4c7c86ff1de
src/handler/plparrot.c
src/handler/plparrot.c
#include "postgres.h" #include "executor/spi.h" #include "commands/trigger.h" #include "fmgr.h" #include "access/heapam.h" #include "utils/syscache.h" #include "catalog/pg_proc.h" #include "catalog/pg_type.h" /* Figure out how to include these properly #include "parrot/embed.h" #include "parrot/debugger.h" #include "p...
#include "postgres.h" #include "executor/spi.h" #include "commands/trigger.h" #include "fmgr.h" #include "access/heapam.h" #include "utils/syscache.h" #include "utils/builtins.h" #include "catalog/pg_proc.h" #include "catalog/pg_type.h" /* Figure out how to include these properly We need to use "parrot_config include...
Add the beginnings of something that does SPI
Add the beginnings of something that does SPI
C
artistic-2.0
leto/plparrot,leto/plparrot,leto/plparrot
2cba4cc585f7dde2b9b582d2ff3c164819697e3b
features/FEATURE_UVISOR/includes/uvisor/api/inc/uvisor_deprecation.h
features/FEATURE_UVISOR/includes/uvisor/api/inc/uvisor_deprecation.h
/* * Copyright (c) 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 compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
/* * Copyright (c) 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 compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
Edit warning about FEATURE_UVISOR being deprecated
Edit warning about FEATURE_UVISOR being deprecated
C
apache-2.0
mbedmicro/mbed,c1728p9/mbed-os,c1728p9/mbed-os,betzw/mbed-os,andcor02/mbed-os,andcor02/mbed-os,betzw/mbed-os,betzw/mbed-os,betzw/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,c1728p9/mbed-os,andcor02/mbed-os,andcor02/mbed-os,c1728p9/mbed-os,mbedmicro/mbed,c1728p9/mbed-os,kjbracey-arm/mbed,c1728p9/mbed-os,kjbracey-arm/mbed...
471c298771351869ac9b520468ae8e392665572e
src/idxgen.h
src/idxgen.h
#ifndef IDXGEN_H #define IDXGEN_H #include "encparams.h" #include "bitstring.h" typedef struct NtruIGFState { int N; int c; int clen; char *Z; int zlen; int rem_len; NtruBitStr buf; int counter; void (*hash)(char[], int, char[]); int hlen; } NtruIGFState; /** * @brief IGF ini...
#ifndef IDXGEN_H #define IDXGEN_H #include "encparams.h" #include "bitstring.h" typedef struct NtruIGFState { int N; int c; char *Z; int zlen; int rem_len; NtruBitStr buf; int counter; void (*hash)(char[], int, char[]); int hlen; } NtruIGFState; /** * @brief IGF initialization *...
Remove an unused struct member
Remove an unused struct member
C
bsd-3-clause
iblumenfeld/libntru,jl777/libntru,jquesnelle/libntru,jquesnelle/libntru,jl777/libntru,jl777/libntru,iblumenfeld/libntru,iblumenfeld/libntru,jquesnelle/libntru
14dd5b240b3b619889aef85184704448c1b05dba
src/skbuff.c
src/skbuff.c
#include "syshead.h" #include "skbuff.h" struct sk_buff *alloc_skb(unsigned int size) { struct sk_buff *skb = malloc(sizeof(struct sk_buff)); memset(skb, 0, sizeof(struct sk_buff)); skb->data = malloc(size); memset(skb->data, 0, size); skb->head = skb->data; skb->tail = skb->data; skb...
#include "syshead.h" #include "skbuff.h" struct sk_buff *alloc_skb(unsigned int size) { struct sk_buff *skb = malloc(sizeof(struct sk_buff)); memset(skb, 0, sizeof(struct sk_buff)); skb->data = malloc(size); memset(skb->data, 0, size); skb->head = skb->data; skb->tail = skb->data; skb...
Fix pointer in skb free routine
Fix pointer in skb free routine You cannot pass a different memory location to malloc than what it was originally allocated with :p
C
mit
saminiir/level-ip,saminiir/level-ip
5eb3562266c5f970ae0943da45dd7740aa7a5747
src/sounds.h
src/sounds.h
/***************************************************************************** * SOUNDS HEADER * * Provides easy access to all sounds. * * See: sdl_snake.c * ...
/***************************************************************************** * SOUNDS HEADER * * Provides easy access to all sounds. * * See: sdl_snake.c * ...
Fix compilation on Mac OS X
Fix compilation on Mac OS X
C
mit
footballhead/sdl-snake,footballhead/sdl-snake,footballhead/sdl-snake
85d984179dc8cd7b3a365229e592811ee592af3a
str/env.h
str/env.h
#ifndef BGLIBS__STR__ENV__H__ #define BGLIBS__STR__ENV__H__ #include <str/str.h> /** \defgroup envstr envstr: Environment variables in a str. \par Calling Convention All functions that allocate memory return \c 0 (false) if the function failed due to being unable to allocate memory, and non-zero (true) otherwise. ...
#ifndef BGLIBS__STR__ENV__H__ #define BGLIBS__STR__ENV__H__ struct str; /** \defgroup envstr envstr: Environment variables in a str. \par Calling Convention All functions that allocate memory return \c 0 (false) if the function failed due to being unable to allocate memory, and non-zero (true) otherwise. @{ */ ex...
Use a forward struct str declaration to avoid recursive includes.
Use a forward struct str declaration to avoid recursive includes.
C
lgpl-2.1
bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs
cb0a193312f6e50c487ff1b7efebb96ce46df8ef
src/module.h
src/module.h
#include "main.h" enum Priority { PRI_HIGH, PRI_MEDIUM_HIGH, PRI_NORMAL, PRI_MEDIUM_LOW, PRI_LOW }; #define MODULE_SPAWN(modName) extern "C" Module* spawn(std::string moduleName, std::map<std::string, std::string> config, std::string workingDir, unsigned short debugLevel, Base* botptr) {\ return new modName (module...
#include "main.h" enum Priority { PRI_HIGH, PRI_MEDIUM_HIGH, PRI_NORMAL, PRI_MEDIUM_LOW, PRI_LOW }; #define MODULE_SPAWN(modName) extern "C" Module* spawn(std::string moduleName, std::map<std::string, std::string> config, std::string workingDir, unsigned short debugLevel, Base* botptr) {\ return new modName (module...
Make virtual functions that need to be virtual
Make virtual functions that need to be virtual
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
866bade85dec9a231350201fb147f9381eee55c7
tensorflow/core/platform/default/integral_types.h
tensorflow/core/platform/default/integral_types.h
/* Copyright 2015 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 2015 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...
Remove deprecation on int64 type.
Remove deprecation on int64 type. I have half a million lines of log-spew in my CI from this and clearly there has been ~no effort in the codebase to actually stop using it. Please do not deprecate such a critical type until at least its own codebase has substantially migrated off of it. PiperOrigin-RevId: 399093429 ...
C
apache-2.0
tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,tensorflow/tensorflo...
16514de50a7936950845a3851cae8ce571e0c2c2
include/llvm/Transforms/Utils/IntegerDivision.h
include/llvm/Transforms/Utils/IntegerDivision.h
//===- llvm/Transforms/Utils/IntegerDivision.h ------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- llvm/Transforms/Utils/IntegerDivision.h ------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Document the interface for integer expansion, using doxygen-style comments
Document the interface for integer expansion, using doxygen-style comments git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@164231 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-...
7c0fe28d061b6316017683c31b2e027c2d2f017f
src/lib/src/network/persistent-cookie-jar.h
src/lib/src/network/persistent-cookie-jar.h
#ifndef PERSISTENT_COOKIE_JAR_H #define PERSISTENT_COOKIE_JAR_H #include <QMutex> #include <QNetworkCookieJar> #include <QList> class QNetworkCookie; class QObject; class QUrl; class PersistentCookieJar : public QNetworkCookieJar { Q_OBJECT public: explicit PersistentCookieJar(QString filename, QObject *parent...
#ifndef PERSISTENT_COOKIE_JAR_H #define PERSISTENT_COOKIE_JAR_H #include <QMutex> #include <QNetworkCookieJar> #include <QList> class QNetworkCookie; class QObject; class QUrl; /** * Network cookie jar which loads and stores cookies on a persistent file on disk. */ class PersistentCookieJar : public QNetworkCooki...
Add documentation comments for PersistentCookieJar
Add documentation comments for PersistentCookieJar
C
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
332d1760db79f9395ccb4f479a21f9abcbf39e97
src/game/assets/recoil_player_id.h
src/game/assets/recoil_player_id.h
#pragma once #include "game/container_sizes.h" namespace assets { enum class recoil_player_id { INVALID, GENERIC, COUNT = MAX_RECOIL_PLAYER_COUNT + 1 }; }
#pragma once #include "game/container_sizes.h" namespace assets { enum class recoil_player_id { INVALID, #if BUILD_TEST_SCENES GENERIC, #endif COUNT = MAX_RECOIL_PLAYER_COUNT + 1 }; }
Fix GENERIC recoil_player conditional building
Fix GENERIC recoil_player conditional building
C
agpl-3.0
TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia
8df8514dece958af1e810935fe9d4783760b60b1
include/BALL/QSAR/automaticModelCreator.h
include/BALL/QSAR/automaticModelCreator.h
#include <BALL/QSAR/Model.h> #include <BALL/QSAR/QSARData.h> namespace BALL { namespace QSAR { /** A class for automatic creation of the most appropriate QSAR model.\n All available model-types are therefore evaluated using nested cross-validation and several successive feature selection steps. */ class Autom...
#include <BALL/COMMON/global.h> #include <BALL/QSAR/Model.h> #include <BALL/QSAR/QSARData.h> namespace BALL { namespace QSAR { /** A class for automatic creation of the most appropriate QSAR model.\n All available model-types are therefore evaluated using nested cross-validation and several successive feature se...
Add a missing BALL_EXPORT to AutoModelCreator
Add a missing BALL_EXPORT to AutoModelCreator
C
lgpl-2.1
tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball
f517d62938681f6f7d010557f3112a132707dcfa
chrome/browser/chromeos/cros/mock_update_library.h
chrome/browser/chromeos/cros/mock_update_library.h
// Copyright (c) 2010 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_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_ #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_ #pragma once #include "base/o...
// Copyright (c) 2010 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_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_ #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_ #pragma once #include "base/o...
Fix the Chrome OS build.
Fix the Chrome OS build. TEST=make -j40 BUILDTYPE=Release browser_tests BUG=chromium-os:6030 Review URL: http://codereview.chromium.org/4129006 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@64027 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
yitian134/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,adobe/chromium,adobe/chromium,ropik/chromium,gavinp/chromiu...
662f8c29cd34b43057b5167b68d2b071633d8324
arc/arc/Model/FileHelper.h
arc/arc/Model/FileHelper.h
// // FileHelper.h // arc // // Created by Jerome Cheng on 24/3/13. // Copyright (c) 2013 nus.cs3217. All rights reserved. // #import <Foundation/Foundation.h> #import "File.h" #import "Folder.h" #import "FileObject.h" @interface FileHelper : NSObject // Used to handle files passed in from other applications thr...
// // FileHelper.h // arc // // Created by Jerome Cheng on 24/3/13. // Copyright (c) 2013 nus.cs3217. All rights reserved. // #import <Foundation/Foundation.h> #import "File.h" #import "Folder.h" #import "FileObject.h" @interface FileHelper : NSObject // Used to handle files passed in from other applications thr...
Change fileWithURL:sourceApplications:annotation: to be a class method.
Change fileWithURL:sourceApplications:annotation: to be a class method.
C
mit
BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc
92e450372628ceb7c849c394c8e3c307f287974d
server/main.h
server/main.h
#include <fstream> #include <string> #include <vector> #include <pthread.h> #include <sys/epoll.h> #include "../parser.h" #include "connection.h" #include "Db.h" #include "MatrixServer.h" typedef struct Bundle Bundle; struct Bundle { MatrixServer* matrix; Db* db; int epfd; //for init only, not use...
#include <fstream> #include <string> #include <vector> #include <pthread.h> #include <sys/epoll.h> #include "../parser.h" #include "connection.h" #include "Db.h" #include "MatrixServer.h" #include "Bundle.h" //main.cpp void bundleInit(Bundle& mydata); void bundleClean(Bundle& serverData); void threadsL...
Move struct bundle declaration to dedicated header, and threads functions declarations to ThreadFunc.h
Move struct bundle declaration to dedicated header, and threads functions declarations to ThreadFunc.h
C
mit
BTriay/QMessenger,BTriay/QMessenger,BTriay/QMessenger
3132fa5c86cfa9e9a35666829dd6117e84234b5c
base/common.h
base/common.h
// Copyright (c) 2010 Timur Iskhodzhanov and others. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_COMMON_H_ #define BASE_COMMON_H_ #include <assert.h> // Use CHECK instead of assert. // TODO(timurrrr): print stack trace when ...
// Copyright (c) 2010 Timur Iskhodzhanov and others. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_COMMON_H_ #define BASE_COMMON_H_ #include <assert.h> // Use CHECK instead of assert. // TODO(timurrrr): print stack trace when ...
Fix a stupid mistake in DCHECK definition
Fix a stupid mistake in DCHECK definition
C
bsd-3-clause
denfromufa/mipt-course,denfromufa/mipt-course,denfromufa/mipt-course,denfromufa/mipt-course
ab401b01a7e87294881ed446903a5fcd33552973
XamoomSDK/classes/XamoomSDK.h
XamoomSDK/classes/XamoomSDK.h
// // XamoomSDK.h // XamoomSDK // // Created by Raphael Seher on 14/01/16. // Copyright © 2016 xamoom GmbH. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for XamoomSDK. FOUNDATION_EXPORT double XamoomSDKVersionNumber; //! Project version string for XamoomSDK. FOUNDATION_EXPORT const ...
// // XamoomSDK.h // XamoomSDK // // Created by Raphael Seher on 14/01/16. // Copyright © 2016 xamoom GmbH. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for XamoomSDK. FOUNDATION_EXPORT double XamoomSDKVersionNumber; //! Project version string for XamoomSDK. FOUNDATION_EXPORT const ...
Add XMMContentBlocks to framwork header file
Add XMMContentBlocks to framwork header file
C
mit
xamoom/xamoom-ios-sdk,xamoom/xamoom-ios-sdk,xamoom/xamoom-ios-sdk