commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
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
417ad97a5325870634f1b8edb1bf1223c28a757a
test.c
test.c
#include <stdio.h> #include <stdlib.h> typedef struct State State; struct State { char c; State *out; }; typedef struct List List; struct List { State *s; }; State *State_new(char c, State *out) { State *s; s = malloc(sizeof(*s)); s->c = c; s->out = out; return s; } void *List_new(State **outpp) { ...
Test code to simplify error
Test code to simplify error
C
mit
ggundersen/re
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
7f5209ef7f14dee23044de2c9aa738b646271004
iv/lv5/breaker/mono_ic.h
iv/lv5/breaker/mono_ic.h
// MonoIC compiler #ifndef IV_BREAKER_MONO_IC_H_ #define IV_BREAKER_MONO_IC_H_ namespace iv { namespace lv5 { namespace breaker { class MonoIC { }; } } } // namespace iv::lv5::breaker #endif // IV_BREAKER_MONO_IC_H_
Add initial MonoIC compiler file
Add initial MonoIC compiler file
C
bsd-2-clause
Constellation/iv,Constellation/iv,Constellation/iv,Constellation/iv
5f1a5c7f57ce37e4fd6cca09d3c03ce9a34b6282
include/llvm/Target/TargetSelect.h
include/llvm/Target/TargetSelect.h
//===- TargetSelect.h - Target Selection & Registration -------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add a utility header that makes it easy to link in the right set of targets for various purposes.
Add a utility header that makes it easy to link in the right set of targets for various purposes. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@73610 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/sw...
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
ff0d759f679a11449e449bbc5b098b8d2ccda8db
simreverse.c
simreverse.c
#include "config.h" #ifdef HAVE_LIBSSL #include <openssl/ssl.h> #include <openssl/rand.h> #include <openssl/err.h> #endif /* HAVE_LIBSSL */ #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/param.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #in...
Check the reverse of an IP
Check the reverse of an IP
C
mit
simta/simta,simta/simta,simta/simta
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...
12cb09e6b5ee19bb3584ae09341de0b18c17cca6
src/rh_tcp.c
src/rh_tcp.c
/* * This file is part of the KNOT Project * * Copyright (c) 2015, CESAR. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
Add RadioHead TCP node 'driver' skeleton
gw: Add RadioHead TCP node 'driver' skeleton This patch adds an abstraction for RadioHead TCP driver, allowing development on Linux using TCP sockets instead of 'real' radios.
C
lgpl-2.1
CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source
0e226182048ab803e2b3c2dafb2cb08bddb1df7e
libgpmat/src/gp-remote.h
libgpmat/src/gp-remote.h
/* Remote access -- Copyright (C) 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- 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 -- -- ...
Remove access to mat server
Remove access to mat server
C
apache-2.0
stcarrez/mat,stcarrez/mat,stcarrez/mat
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
0c159e49926e7c86b29cf7d17769a653da862254
source/tid/enums.h
source/tid/enums.h
#pragma once #include <string_view> namespace tid { enum level : int { parent = -1, normal = 0, detail = 1, pedant = 2, }; constexpr std::string_view level2sv(level l) noexcept { switch(l) { case normal: return "normal"; case detail: return "...
Add support for specifying tid print level
Add support for specifying tid print level Former-commit-id: dcbe2db0f881cae1e908cc67e3c32526477ea6a6
C
mit
DavidAce/DMRG,DavidAce/DMRG,DavidAce/DMRG,DavidAce/DMRG
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
2569701a2bdeee6811b90b6968192e387a10f402
tests/regression/01-cpa/50-escaping-recursion.c
tests/regression/01-cpa/50-escaping-recursion.c
int rec(int i,int* ptr) { int top; int x = 17; if(i == 0) { rec(5,&x); // Recursive call may have modified x assert(x == 17); //UNKNOWN! } else { x = 31; // ptr points to the outer x, it is unaffected by this assignment // and should be 17 assert...
Add test case for escaping via recursion
Add test case for escaping via recursion
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
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...
6a436d0cc010b4e281d3fb5c0adcffca6175f536
cc1/tests/test042.c
cc1/tests/test042.c
/* name: TEST042 description: Test for bug parsing ternary operators output: test042.c:19: error: bad type convertion requested F1 I G2 F1 main { \ F3 0 X4 F3 f */ int main(void) { void f(void); return (int) f(); }
Add test for casting from void
Add test for casting from void This cast is not allowed, because there is no value to cast.
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/kcc
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-...
a129bc76b0b47ec732e2229dda4165bae8083e2a
tests/regression/13-privatized/31-traces-mine-vs-mutex.c
tests/regression/13-privatized/31-traces-mine-vs-mutex.c
// Copied & modified from 13/28. #include <pthread.h> #include <assert.h> int g; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); pthread_mutex_lock(&B); g++; pthread_mutex_unlock(&B); // Write Mine influence: [[g, B...
Add cleaned up example where mine and mutex-* differ
Add cleaned up example where mine and mutex-* differ
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
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...
34e2799c7b628cb4f22400349e166ef66aaea99b
solutions/uri/1005/1005.c
solutions/uri/1005/1005.c
#include <stdio.h> int main() { float a, b; scanf("%f", &a); scanf("%f", &b); printf("MEDIA = %.5f\n", (a * 3.5 + b * 7.5) / 11.0); return 0; }
Solve Average 1 in c
Solve Average 1 in c
C
mit
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
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
bf6a7f095f6721e4172c30acf69d67e2e51899ff
lib/GPIOlib.h
lib/GPIOlib.h
#include <wiringPi.h> #include <softPwm.h> #ifndef GPIOLIB_H #define GPIOLIB_H #define FORWARD 1 #define BACKWARD 0 namespace GPIO { int init(); int controlLeft(int direction,int speed); int controlRight(int direction,int speed); int stopLeft(); int stopRight(); int resetCounter(); void getCounter(int *co...
Add header file for reference
Add header file for reference
C
mit
miaoxw/EmbeddedSystemNJU2017-Demo
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
3a437c4533474161b89955df829907427313cdd5
test/suite/bugs/ifpp.c
test/suite/bugs/ifpp.c
int f(int d) { int i = 0, j, k, l; if (d%2==0) if (d%3==0) i+=2; else i+=3; if (d%2==0) { if (d%3==0) i+=7; } else i+=11; l = d; if (d%2==0) while (l--) if (1) i+=13; else ...
Add another test for pretty printing if-then-else
Add another test for pretty printing if-then-else
C
bsd-3-clause
vincenthz/language-c,vincenthz/language-c,vincenthz/language-c
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
1796bc43feadcdd5221607f40234a481d7bc7ca4
src/trusted/validator_ragel/validator-x86_64-selector.c
src/trusted/validator_ragel/validator-x86_64-selector.c
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * This file exist for one purpose one: to pick fast, goto driven FSM in * validator-x86_64.c or slower table driven FSM in validator-...
Add change lost from CL 8577
Add change lost from CL 8577 BUG=http://src.chromium.org/viewvc/native_client?view=rev&revision=8431 TEST=trybots TBR=pasko Review URL: https://chromiumcodereview.appspot.com/10383140 git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@8578 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
C
bsd-3-clause
nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client
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
7053bf9341d0e52c8e01703953b558c1a7eefb5c
src/http/statuscodes.h
src/http/statuscodes.h
#ifndef APIMOCK_CODES_H #define APIMOCK_CODES_H /* From the specification at: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html */ namespace ApiMock { enum HTTP_RESPONSE_CODE { /* Informational */ HTTP_CONTINUE = 100, HTTP_SWITCHING_PROTOCOLS = 101, /* Successful */ HTTP_OK = 200, HTT...
Add HTTP status codes enum
Add HTTP status codes enum
C
mit
Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock
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
98c231d4b869ee1271df2681f705e981b152acec
src/net/instaweb/util/public/dynamic_annotations.h
src/net/instaweb/util/public/dynamic_annotations.h
/* * Copyright 2011 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 agreed to...
Add missing file from previous submit.
Add missing file from previous submit.
C
apache-2.0
VersoBit/mod_pagespeed,webhost/mod_pagespeed,wanrui/mod_pagespeed,jalonsoa/mod_pagespeed,pagespeed/mod_pagespeed,VersoBit/mod_pagespeed,webhost/mod_pagespeed,patricmutwiri/mod_pagespeed,webhost/mod_pagespeed,webscale-networks/mod_pagespeed,pagespeed/mod_pagespeed,webscale-networks/mod_pagespeed,jalonsoa/mod_pagespeed,h...
283d41c689ed650235fd85b72db910d05d5048b0
cpp/src/core/CommonMatrixOperationsInterface.h
cpp/src/core/CommonMatrixOperationsInterface.h
//The MIT License (MIT) // //Copyright (c) 2016 Northeastern University // //Permission is hereby granted, free of charge, to any person obtaining a copy //of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //to us...
Add common matrix operation interface
Add common matrix operation interface
C
mit
rockett-m/NICE,seleanridley/NICE,yiskylee/NICE,rockett-m/NICE,yiskylee/NICE,seleanridley/NICE,yiskylee/NICE,rockett-m/NICE
8ea9c9401cca7ea074d0e85ba57b2ccf42630cd7
BBBAPI/BBBAPI/Classes/BBASearchServiceResult.h
BBBAPI/BBBAPI/Classes/BBASearchServiceResult.h
// // BBASearchServiceResult.h // BBBAPI // // Created by Owen Worley on 12/01/2015. // Copyright (c) 2015 Blinkbox Entertainment Ltd. All rights reserved. // #import <Foundation/Foundation.h> @class FEMObjectMapping; /** * Represents data provided from the search service when searching for books */ @interface ...
// // BBASearchServiceResult.h // BBBAPI // // Created by Owen Worley on 12/01/2015. // Copyright (c) 2015 Blinkbox Entertainment Ltd. All rights reserved. // #import <Foundation/Foundation.h> @class FEMObjectMapping; /** * Represents data provided from the search service when searching for books */ @interface ...
Document contents of Links array
Document contents of Links array
C
mit
blinkboxbooks/blinkbox-network.objc,blinkboxbooks/blinkbox-network.objc
00cbbaa30f3c3336f6bfeea39b8c2699fb43b6e0
inc/osvr/Util/SharedPtr.h
inc/osvr/Util/SharedPtr.h
/** @file @brief Header to bring shared_ptr into the ::osvr namespace. @date 2014 @author Ryan Pavlik <ryan@sensics.com> <http://sensics.com> */ // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) ...
/** @file @brief Header to bring shared_ptr into the ::osvr namespace. @date 2014 @author Ryan Pavlik <ryan@sensics.com> <http://sensics.com> */ // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) ...
Include more items in our namespace with shared_ptr.
Include more items in our namespace with shared_ptr.
C
apache-2.0
leemichaelRazer/OSVR-Core,feilen/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core,Armada651/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,Armada651/OSVR-Core,leemichaelRazer/OSVR-Core,feilen/OSVR-Core,Armada651/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core,Armada651/OSVR-Core,d235j/OSVR-Core,leemichaelRazer/OSVR-Co...
579bb01db2d8b21d3de6223c6305eb94f3fc92f2
src/sampgdk.c
src/sampgdk.c
#include "sampgdk.h" #if SAMPGDK_WINDOWS #undef CreateMenu #undef DestroyMenu #undef GetTickCount #undef KillTimer #undef SelectObject #undef SetTimer #include <windows.h> #endif
#include "sampgdk.h" #if SAMPGDK_WINDOWS #undef CreateMenu #undef DestroyMenu #undef GetTickCount #undef KillTimer #undef SelectObject #undef SetTimer #define WIN32_LEAN_AND_MEAN #include <windows.h> #else #define _GNU_SOURCE #endif
Copy some definitions from CMakeLists.txt to preamble
Copy some definitions from CMakeLists.txt to preamble
C
apache-2.0
WopsS/sampgdk,Zeex/sampgdk,WopsS/sampgdk,Zeex/sampgdk,WopsS/sampgdk,Zeex/sampgdk
1b09860dd29bdf741fff1f20c28abff817f88cd1
CreamMonkey.h
CreamMonkey.h
#import <Cocoa/Cocoa.h> @interface CreamMonkey : NSObject { } @end
/* * Copyright (c) 2006 KATO Kazuyoshi <kzys@8-p.info> * This source code is released under the MIT license. */ #import <Cocoa/Cocoa.h> @interface CreamMonkey : NSObject { } @end
Add copyright and license header.
Add copyright and license header.
C
mit
torezzz/greasekit
de50503cc4ef90f8e0eaa9786303bcc287284e33
hardware/main.c
hardware/main.c
#include <avr/io.h> #include <util/delay.h> #include <avr/interrupt.h> #include "deps/util.h" #include "deps/rcswitch/rcswitch.h" #define PIN_RC PB2 #include "deps/softuart/softuart.h" #include "packet.h" int main(void) { // initialize serial softuart_init(); // enable interrupts sei(); // ena...
#include <avr/io.h> #include <avr/interrupt.h> #include "deps/rcswitch/rcswitch.h" #include "deps/softuart/softuart.h" #include "packet.h" #define PIN_RC PB2 int main(void) { // initialize serial softuart_init(); // enable interrupts sei(); // enable the rc switch rcswitch_enable(PIN_RC); ...
Remove unused includes and move rc pin definition
Remove unused includes and move rc pin definition
C
agpl-3.0
jackwilsdon/lightcontrol,jackwilsdon/lightcontrol
54ed8514134558d13ab53b81f9d94836e036f351
src/thsh.c
src/thsh.c
/* ============================================================================ Name : thsh.c Authors : Collin Kruger, Denton Underwood, John Christensen, Jon Stacey Version : Copyright : Copyright 2009 Jon Stacey. All rights reserved. Description : Hello World in C, Ansi-style =================...
/* ============================================================================ Name : thsh.c Authors : Collin Kruger, Denton Underwood, John Christensen, Jon Stacey Version : Copyright : Copyright 2009 Jon Stacey. All rights reserved. Description : Hello World in C, Ansi-style =================...
Add environment vars and commandline arguments
Add environment vars and commandline arguments
C
mit
jmstacey/thsh
b1a0e5ae8b3e3d1052cc7c3e3ec12750060cb173
db/functions/quadtile.c
db/functions/quadtile.c
#include <my_global.h> #include <my_sys.h> #include <m_string.h> #include <mysql.h> #include <quad_tile.h> my_bool tile_for_point_init(UDF_INIT *initid, UDF_ARGS *args, char *message) { if ( args->arg_count != 2 || args->arg_type[0] != INT_RESULT || args->arg_type[1] != INT_RESULT ) { strcp...
#include <my_global.h> #include <my_sys.h> #include <m_string.h> #include <mysql.h> #include <quad_tile.h> my_bool tile_for_point_init(UDF_INIT *initid, UDF_ARGS *args, char *message) { if ( args->arg_count != 2 || args->arg_type[0] != INT_RESULT || args->arg_type[1] != INT_RESULT ) { strcp...
Make the MySQL tile_for_point function take arguments in the same order as the ruby version.
Make the MySQL tile_for_point function take arguments in the same order as the ruby version.
C
agpl-3.0
tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam