commit
stringlengths
40
40
old_file
stringlengths
4
112
new_file
stringlengths
4
112
old_contents
stringlengths
0
2.05k
new_contents
stringlengths
28
3.9k
subject
stringlengths
17
736
message
stringlengths
18
4.78k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
7
111k
3ef98829f869fc94404894ef9ef315d673088608
test/number.c
test/number.c
// Copyright 2012 Rui Ueyama <[email protected]> // This program is free software licensed under the MIT license. #include "test.h" void testmain(void) { print("numeric constants"); expect(1, 0x1); expect(17, 0x11); expect(511, 0777); expect(11, 0b1011); // GNU extension expect(3, 3L); expect(3, 3LL); expect(3, 3UL); expect(3, 3LU); expect(3, 3ULL); expect(3, 3LU); expect(3, 3LLU); expectd(55.3, 55.3); expectd(200, 2e2); expectd(0x0.DE488631p8, 0xDE.488631); expect(4, sizeof(5)); expect(8, sizeof(5L)); expect(4, sizeof(3.0f)); expect(8, sizeof(3.0)); }
// Copyright 2012 Rui Ueyama <[email protected]> // This program is free software licensed under the MIT license. #include "test.h" void testmain(void) { print("numeric constants"); expect(1, 0x1); expect(17, 0x11); expect(511, 0777); expect(11, 0b1011); // GNU extension expect(11, 0B1011); // GNU extension expect(3, 3L); expect(3, 3LL); expect(3, 3UL); expect(3, 3LU); expect(3, 3ULL); expect(3, 3LU); expect(3, 3LLU); expectd(55.3, 55.3); expectd(200, 2e2); expectd(0x0.DE488631p8, 0xDE.488631); expect(4, sizeof(5)); expect(8, sizeof(5L)); expect(4, sizeof(3.0f)); expect(8, sizeof(3.0)); }
Add a test for '0B' prefix.
Add a test for '0B' prefix.
C
mit
8l/8cc,rui314/8cc,gergo-/8cc,nobody1986/8cc,vastin/8cc,rui314/8cc,nobody1986/8cc,andrewchambers/8cc,vastin/8cc,8l/8cc,andrewchambers/8cc,vastin/8cc,8l/8cc,cpjreynolds/8cc,jtramm/8cc,abc00/8cc,8l/8cc,gergo-/8cc,gergo-/8cc,nobody1986/8cc,jtramm/8cc,andrewchambers/8cc,vastin/8cc,rui314/8cc,cpjreynolds/8cc,cpjreynolds/8cc,abc00/8cc,nobody1986/8cc,jtramm/8cc,jtramm/8cc,cpjreynolds/8cc,abc00/8cc,andrewchambers/8cc,abc00/8cc,rui314/8cc
29b9f22f7c286e43c4a617fcb3645f104256cd12
src/test.c
src/test.c
#include <stdio.h> #include <stdlib.h> #include <security/pam_appl.h> #include <security/pam_misc.h> int main(int argc, char **argv) { pam_handle_t *pamh = NULL; pam_sm_authenticate(pamh, 0, 1, "/home/aj/opensc/lib/opensc-pkcs11.so"); exit(0); }
#include <stdio.h> #include <stdlib.h> #include <security/pam_appl.h> #include <security/pam_misc.h> #include <security/pam_modules.h> int main(int argc, char **argv) { pam_handle_t *pamh = NULL; pam_sm_authenticate(pamh, 0, 1, "/home/aj/opensc/lib/opensc-pkcs11.so"); exit(0); }
Add security/pam_modules.h to fix compiler warning
Add security/pam_modules.h to fix compiler warning
C
lgpl-2.1
ffsdmad/pam_p11,OpenSC/pam_p11,AktivCo/pam-p11-gost,OpenSC/pam_p11,AktivCo/pam-p11-gost,ffsdmad/pam_p11,AktivCo/pam-p11-gost
8b2bcc21bd7ab7936559bd2e6bb310075e5d0d08
src/lib/ioloop-notify-none.c
src/lib/ioloop-notify-none.c
/* Copyright (C) 2003 Timo Sirainen */ #include "lib.h" #include "ioloop-internal.h" #ifdef IOLOOP_NOTIFY_NONE struct io *io_loop_notify_add(struct ioloop *ioloop __attr_unused__, const char *path __attr_unused__, io_callback_t *callback __attr_unused__, void *context __attr_unused__) { return NULL; } void io_loop_notify_remove(struct ioloop *ioloop __attr_unused__, struct io *io __attr_unused__) { } void io_loop_notify_handler_init(struct ioloop *ioloop __attr_unused__) { } void io_loop_notify_handler_deinit(struct ioloop *ioloop __attr_unused__) { } #endif
/* Copyright (C) 2003 Timo Sirainen */ #include "lib.h" #include "ioloop-internal.h" #ifdef IOLOOP_NOTIFY_NONE #undef io_add_notify struct io *io_add_notify(const char *path __attr_unused__, io_callback_t *callback __attr_unused__, void *context __attr_unused__) { return NULL; } void io_loop_notify_remove(struct ioloop *ioloop __attr_unused__, struct io *io __attr_unused__) { } void io_loop_notify_handler_deinit(struct ioloop *ioloop __attr_unused__) { } #endif
Fix for building without notify
Fix for building without notify --HG-- branch : HEAD
C
mit
jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch,dscho/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch,dscho/dovecot,dscho/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot
c38f2fcf759f84fc1b0c5e1946270fbcea9f38ff
atom/common/native_mate_converters/command_line_converter.h
atom/common/native_mate_converters/command_line_converter.h
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_COMMON_NATIVE_MATE_CONVERTERS_COMMAND_LINE_CONVERTER_H_ #define ATOM_COMMON_NATIVE_MATE_CONVERTERS_COMMAND_LINE_CONVERTER_H_ #include <string> #include "atom/common/native_mate_converters/string16_converter.h" #include "base/command_line.h" namespace mate { template<> struct Converter<base::CommandLine> { static v8::Local<v8::Value> ToV8(v8::Isolate* isolate, const base::CommandLine& val) { return Converter<base::CommandLine::StringType>::ToV8(isolate, val.GetCommandLineString()); } static bool FromV8(v8::Isolate* isolate, v8::Local<v8::Value> val, base::CommandLine* out) { base::FilePath::StringType path; if (Converter<base::FilePath::StringType>::FromV8(isolate, val, &path)) { *out = base::CommandLine(base::FilePath(path)); return true; } else { return false; } } }; } // namespace mate #endif // ATOM_COMMON_NATIVE_MATE_CONVERTERS_FILE_PATH_CONVERTER_H_
Add a native mate converter for command lines
Add a native mate converter for command lines
C
mit
roadev/electron,aliib/electron,gerhardberger/electron,felixrieseberg/electron,jhen0409/electron,bbondy/electron,Gerhut/electron,joaomoreno/atom-shell,jaanus/electron,aichingm/electron,shiftkey/electron,tylergibson/electron,brave/muon,rreimann/electron,thomsonreuters/electron,wan-qy/electron,MaxWhere/electron,bbondy/electron,aichingm/electron,dongjoon-hyun/electron,Gerhut/electron,deed02392/electron,miniak/electron,etiktin/electron,thingsinjars/electron,simongregory/electron,electron/electron,deed02392/electron,thingsinjars/electron,brave/muon,renaesop/electron,lzpfmh/electron,preco21/electron,voidbridge/electron,rajatsingla28/electron,gabriel/electron,pombredanne/electron,posix4e/electron,pombredanne/electron,renaesop/electron,twolfson/electron,arturts/electron,matiasinsaurralde/electron,jhen0409/electron,brave/electron,thompsonemerson/electron,Gerhut/electron,bpasero/electron,gerhardberger/electron,Floato/electron,seanchas116/electron,stevekinney/electron,thingsinjars/electron,evgenyzinoviev/electron,MaxWhere/electron,astoilkov/electron,meowlab/electron,dongjoon-hyun/electron,stevekinney/electron,twolfson/electron,aliib/electron,electron/electron,minggo/electron,brave/muon,astoilkov/electron,lzpfmh/electron,matiasinsaurralde/electron,the-ress/electron,nekuz0r/electron,pombredanne/electron,thomsonreuters/electron,tinydew4/electron,bbondy/electron,simongregory/electron,shiftkey/electron,posix4e/electron,twolfson/electron,brenca/electron,leftstick/electron,roadev/electron,bpasero/electron,felixrieseberg/electron,Evercoder/electron,noikiy/electron,jaanus/electron,brave/electron,leethomas/electron,twolfson/electron,jhen0409/electron,arturts/electron,kokdemo/electron,tinydew4/electron,voidbridge/electron,the-ress/electron,stevekinney/electron,tylergibson/electron,tonyganch/electron,aliib/electron,tylergibson/electron,Floato/electron,matiasinsaurralde/electron,lzpfmh/electron,arturts/electron,the-ress/electron,astoilkov/electron,tinydew4/electron,dongjoon-hyun/electron,evgenyzinoviev/electron,dongjoon-hyun/electron,biblerule/UMCTelnetHub,seanchas116/electron,lzpfmh/electron,minggo/electron,jaanus/electron,jhen0409/electron,bpasero/electron,matiasinsaurralde/electron,arturts/electron,brenca/electron,rajatsingla28/electron,ankitaggarwal011/electron,deed02392/electron,kcrt/electron,noikiy/electron,tylergibson/electron,Evercoder/electron,minggo/electron,lzpfmh/electron,ankitaggarwal011/electron,electron/electron,leftstick/electron,ankitaggarwal011/electron,miniak/electron,tonyganch/electron,thompsonemerson/electron,felixrieseberg/electron,astoilkov/electron,meowlab/electron,brenca/electron,bpasero/electron,thompsonemerson/electron,shiftkey/electron,simongregory/electron,leftstick/electron,seanchas116/electron,Evercoder/electron,joaomoreno/atom-shell,MaxWhere/electron,miniak/electron,wan-qy/electron,thomsonreuters/electron,brave/electron,joaomoreno/atom-shell,preco21/electron,roadev/electron,Gerhut/electron,astoilkov/electron,electron/electron,pombredanne/electron,tinydew4/electron,Floato/electron,joaomoreno/atom-shell,gabriel/electron,biblerule/UMCTelnetHub,rajatsingla28/electron,rajatsingla28/electron,jhen0409/electron,renaesop/electron,kcrt/electron,Floato/electron,the-ress/electron,jaanus/electron,aichingm/electron,matiasinsaurralde/electron,ankitaggarwal011/electron,nekuz0r/electron,miniak/electron,gerhardberger/electron,stevekinney/electron,evgenyzinoviev/electron,thingsinjars/electron,felixrieseberg/electron,posix4e/electron,meowlab/electron,ankitaggarwal011/electron,bbondy/electron,etiktin/electron,gerhardberger/electron,Evercoder/electron,Floato/electron,the-ress/electron,rajatsingla28/electron,rreimann/electron,meowlab/electron,brenca/electron,seanchas116/electron,MaxWhere/electron,aichingm/electron,electron/electron,thompsonemerson/electron,gerhardberger/electron,simongregory/electron,kcrt/electron,leftstick/electron,brenca/electron,evgenyzinoviev/electron,MaxWhere/electron,aliib/electron,Gerhut/electron,deed02392/electron,felixrieseberg/electron,simongregory/electron,tinydew4/electron,rreimann/electron,etiktin/electron,gabriel/electron,jaanus/electron,aichingm/electron,jhen0409/electron,leethomas/electron,nekuz0r/electron,brave/electron,minggo/electron,tonyganch/electron,pombredanne/electron,preco21/electron,simongregory/electron,stevekinney/electron,wan-qy/electron,wan-qy/electron,twolfson/electron,tonyganch/electron,aliib/electron,gabriel/electron,MaxWhere/electron,renaesop/electron,ankitaggarwal011/electron,nekuz0r/electron,thompsonemerson/electron,roadev/electron,preco21/electron,renaesop/electron,Floato/electron,nekuz0r/electron,jaanus/electron,rreimann/electron,biblerule/UMCTelnetHub,bpasero/electron,minggo/electron,dongjoon-hyun/electron,kokdemo/electron,Gerhut/electron,aichingm/electron,wan-qy/electron,gerhardberger/electron,tonyganch/electron,meowlab/electron,thingsinjars/electron,matiasinsaurralde/electron,tonyganch/electron,bbondy/electron,brave/muon,seanchas116/electron,Evercoder/electron,thompsonemerson/electron,seanchas116/electron,meowlab/electron,dongjoon-hyun/electron,the-ress/electron,rreimann/electron,thomsonreuters/electron,noikiy/electron,miniak/electron,leethomas/electron,posix4e/electron,aliib/electron,gabriel/electron,leethomas/electron,evgenyzinoviev/electron,voidbridge/electron,pombredanne/electron,leethomas/electron,bbondy/electron,kcrt/electron,voidbridge/electron,biblerule/UMCTelnetHub,joaomoreno/atom-shell,Evercoder/electron,kcrt/electron,noikiy/electron,shiftkey/electron,etiktin/electron,deed02392/electron,electron/electron,electron/electron,roadev/electron,kokdemo/electron,etiktin/electron,kokdemo/electron,posix4e/electron,bpasero/electron,thomsonreuters/electron,bpasero/electron,astoilkov/electron,felixrieseberg/electron,leftstick/electron,leethomas/electron,brave/electron,etiktin/electron,minggo/electron,the-ress/electron,thingsinjars/electron,thomsonreuters/electron,leftstick/electron,twolfson/electron,tinydew4/electron,voidbridge/electron,deed02392/electron,nekuz0r/electron,renaesop/electron,rajatsingla28/electron,biblerule/UMCTelnetHub,joaomoreno/atom-shell,kokdemo/electron,shiftkey/electron,arturts/electron,tylergibson/electron,stevekinney/electron,kokdemo/electron,tylergibson/electron,brenca/electron,kcrt/electron,gabriel/electron,roadev/electron,miniak/electron,voidbridge/electron,evgenyzinoviev/electron,rreimann/electron,preco21/electron,noikiy/electron,brave/muon,wan-qy/electron,arturts/electron,shiftkey/electron,preco21/electron,biblerule/UMCTelnetHub,noikiy/electron,brave/muon,brave/electron,gerhardberger/electron,posix4e/electron,lzpfmh/electron
face446997e271107553a071c46f8ca0fde0bebb
test/core/transport/connectivity_state_test.c
test/core/transport/connectivity_state_test.c
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ #include "src/core/transport/connectivity_state.h" #include <string.h> #include <grpc/support/log.h> #include "test/core/util/test_config.h" #define LOG_TEST(x) gpr_log(GPR_INFO, "%s", x) static void test_connectivity_state_name(void) { GPR_ASSERT(0 == strcmp(grpc_connectivity_state_name(GRPC_CHANNEL_IDLE), "IDLE")); GPR_ASSERT(0 == strcmp(grpc_connectivity_state_name(GRPC_CHANNEL_CONNECTING), "CONNECTING")); GPR_ASSERT(0 == strcmp(grpc_connectivity_state_name(GRPC_CHANNEL_READY), "READY")); GPR_ASSERT(0 == strcmp(grpc_connectivity_state_name(GRPC_CHANNEL_TRANSIENT_FAILURE), "TRANSIENT_FAILURE")); GPR_ASSERT(0 == strcmp(grpc_connectivity_state_name(GRPC_CHANNEL_FATAL_FAILURE), "FATAL_FAILURE")); } int main(int argc, char **argv) { grpc_test_init(argc, argv); grpc_connectivity_state_trace = 1; test_connectivity_state_name(); return 0; }
Add the test code itself
Add the test code itself
C
apache-2.0
tamihiro/grpc,jboeuf/grpc,ananthonline/grpc,tengyifei/grpc,mehrdada/grpc,grpc/grpc,y-zeng/grpc,leifurhauks/grpc,jcanizales/grpc,thinkerou/grpc,greasypizza/grpc,ananthonline/grpc,ctiller/grpc,fuchsia-mirror/third_party-grpc,royalharsh/grpc,dgquintas/grpc,grani/grpc,ppietrasa/grpc,tamihiro/grpc,malexzx/grpc,muxi/grpc,dklempner/grpc,nicolasnoble/grpc,matt-kwong/grpc,infinit/grpc,kriswuollett/grpc,ncteisen/grpc,7anner/grpc,geffzhang/grpc,greasypizza/grpc,Vizerai/grpc,jtattermusch/grpc,nicolasnoble/grpc,yugui/grpc,jtattermusch/grpc,firebase/grpc,mehrdada/grpc,nicolasnoble/grpc,mehrdada/grpc,thunderboltsid/grpc,tengyifei/grpc,thinkerou/grpc,deepaklukose/grpc,matt-kwong/grpc,PeterFaiman/ruby-grpc-minimal,yugui/grpc,daniel-j-born/grpc,pszemus/grpc,adelez/grpc,arkmaxim/grpc,Vizerai/grpc,rjshade/grpc,yang-g/grpc,jcanizales/grpc,fuchsia-mirror/third_party-grpc,adelez/grpc,VcamX/grpc,tengyifei/grpc,philcleveland/grpc,royalharsh/grpc,PeterFaiman/ruby-grpc-minimal,ejona86/grpc,ctiller/grpc,PeterFaiman/ruby-grpc-minimal,grani/grpc,royalharsh/grpc,fuchsia-mirror/third_party-grpc,murgatroid99/grpc,ppietrasa/grpc,grani/grpc,msmania/grpc,Vizerai/grpc,infinit/grpc,carl-mastrangelo/grpc,7anner/grpc,y-zeng/grpc,pmarks-net/grpc,pmarks-net/grpc,dgquintas/grpc,donnadionne/grpc,murgatroid99/grpc,soltanmm-google/grpc,VcamX/grpc,muxi/grpc,pszemus/grpc,wcevans/grpc,baylabs/grpc,adelez/grpc,kpayson64/grpc,bogdandrutu/grpc,donnadionne/grpc,philcleveland/grpc,MakMukhi/grpc,Crevil/grpc,kriswuollett/grpc,carl-mastrangelo/grpc,apolcyn/grpc,quizlet/grpc,adelez/grpc,kpayson64/grpc,ppietrasa/grpc,sreecha/grpc,deepaklukose/grpc,firebase/grpc,arkmaxim/grpc,nicolasnoble/grpc,tengyifei/grpc,malexzx/grpc,y-zeng/grpc,vjpai/grpc,malexzx/grpc,chrisdunelm/grpc,ppietrasa/grpc,deepaklukose/grpc,goldenbull/grpc,PeterFaiman/ruby-grpc-minimal,zhimingxie/grpc,vjpai/grpc,muxi/grpc,goldenbull/grpc,thunderboltsid/grpc,royalharsh/grpc,kriswuollett/grpc,ipylypiv/grpc,bogdandrutu/grpc,ejona86/grpc,soltanmm-google/grpc,dgquintas/grpc,philcleveland/grpc,podsvirov/grpc,wcevans/grpc,thunderboltsid/grpc,podsvirov/grpc,pmarks-net/grpc,baylabs/grpc,hstefan/grpc,kpayson64/grpc,hstefan/grpc,rjshade/grpc,malexzx/grpc,soltanmm/grpc,chrisdunelm/grpc,zhimingxie/grpc,deepaklukose/grpc,deepaklukose/grpc,MakMukhi/grpc,makdharma/grpc,yang-g/grpc,ctiller/grpc,a11r/grpc,Vizerai/grpc,yongni/grpc,ncteisen/grpc,geffzhang/grpc,vsco/grpc,fuchsia-mirror/third_party-grpc,a-veitch/grpc,malexzx/grpc,Crevil/grpc,ppietrasa/grpc,pszemus/grpc,PeterFaiman/ruby-grpc-minimal,jcanizales/grpc,fuchsia-mirror/third_party-grpc,goldenbull/grpc,msmania/grpc,maxwell-demon/grpc,soltanmm-google/grpc,muxi/grpc,kskalski/grpc,miselin/grpc,yugui/grpc,matt-kwong/grpc,jboeuf/grpc,VcamX/grpc,yugui/grpc,adelez/grpc,jboeuf/grpc,stanley-cheung/grpc,quizlet/grpc,LuminateWireless/grpc,kskalski/grpc,miselin/grpc,msiedlarek/grpc,yugui/grpc,tamihiro/grpc,thunderboltsid/grpc,LuminateWireless/grpc,royalharsh/grpc,makdharma/grpc,yongni/grpc,jtattermusch/grpc,vsco/grpc,sreecha/grpc,LuminateWireless/grpc,simonkuang/grpc,leifurhauks/grpc,yang-g/grpc,carl-mastrangelo/grpc,andrewpollock/grpc,ananthonline/grpc,matt-kwong/grpc,donnadionne/grpc,a-veitch/grpc,mehrdada/grpc,perumaalgoog/grpc,dgquintas/grpc,mehrdada/grpc,miselin/grpc,stanley-cheung/grpc,jtattermusch/grpc,rjshade/grpc,a-veitch/grpc,philcleveland/grpc,pmarks-net/grpc,kumaralokgithub/grpc,ananthonline/grpc,yugui/grpc,grani/grpc,ppietrasa/grpc,wcevans/grpc,pszemus/grpc,pszemus/grpc,maxwell-demon/grpc,mehrdada/grpc,carl-mastrangelo/grpc,7anner/grpc,kskalski/grpc,maxwell-demon/grpc,pmarks-net/grpc,soltanmm-google/grpc,podsvirov/grpc,arkmaxim/grpc,pszemus/grpc,dklempner/grpc,hstefan/grpc,kpayson64/grpc,LuminateWireless/grpc,makdharma/grpc,tamihiro/grpc,soltanmm-google/grpc,tengyifei/grpc,geffzhang/grpc,firebase/grpc,msiedlarek/grpc,sreecha/grpc,jtattermusch/grpc,andrewpollock/grpc,ctiller/grpc,rjshade/grpc,grpc/grpc,daniel-j-born/grpc,ejona86/grpc,matt-kwong/grpc,yongni/grpc,tamihiro/grpc,infinit/grpc,kskalski/grpc,PeterFaiman/ruby-grpc-minimal,grpc/grpc,muxi/grpc,thinkerou/grpc,Crevil/grpc,ipylypiv/grpc,a11r/grpc,mehrdada/grpc,thunderboltsid/grpc,muxi/grpc,podsvirov/grpc,yugui/grpc,Vizerai/grpc,bogdandrutu/grpc,murgatroid99/grpc,malexzx/grpc,goldenbull/grpc,grani/grpc,kriswuollett/grpc,murgatroid99/grpc,dgquintas/grpc,kpayson64/grpc,daniel-j-born/grpc,dgquintas/grpc,a11r/grpc,murgatroid99/grpc,malexzx/grpc,infinit/grpc,vjpai/grpc,arkmaxim/grpc,dklempner/grpc,firebase/grpc,7anner/grpc,wcevans/grpc,pmarks-net/grpc,makdharma/grpc,kriswuollett/grpc,VcamX/grpc,kumaralokgithub/grpc,nicolasnoble/grpc,zhimingxie/grpc,donnadionne/grpc,msiedlarek/grpc,a-veitch/grpc,simonkuang/grpc,andrewpollock/grpc,perumaalgoog/grpc,jboeuf/grpc,a11r/grpc,ncteisen/grpc,msmania/grpc,kskalski/grpc,PeterFaiman/ruby-grpc-minimal,zhimingxie/grpc,maxwell-demon/grpc,jboeuf/grpc,vjpai/grpc,kskalski/grpc,pmarks-net/grpc,carl-mastrangelo/grpc,yang-g/grpc,grani/grpc,yongni/grpc,donnadionne/grpc,Crevil/grpc,podsvirov/grpc,perumaalgoog/grpc,firebase/grpc,royalharsh/grpc,msmania/grpc,stanley-cheung/grpc,daniel-j-born/grpc,makdharma/grpc,nicolasnoble/grpc,malexzx/grpc,MakMukhi/grpc,ananthonline/grpc,chrisdunelm/grpc,pszemus/grpc,adelez/grpc,mehrdada/grpc,hstefan/grpc,jboeuf/grpc,kpayson64/grpc,yang-g/grpc,fuchsia-mirror/third_party-grpc,msiedlarek/grpc,grpc/grpc,geffzhang/grpc,dgquintas/grpc,dklempner/grpc,podsvirov/grpc,greasypizza/grpc,msiedlarek/grpc,grani/grpc,MakMukhi/grpc,a11r/grpc,y-zeng/grpc,pszemus/grpc,daniel-j-born/grpc,vjpai/grpc,a11r/grpc,tengyifei/grpc,miselin/grpc,ctiller/grpc,greasypizza/grpc,mehrdada/grpc,adelez/grpc,bogdandrutu/grpc,vjpai/grpc,soltanmm/grpc,tamihiro/grpc,yugui/grpc,MakMukhi/grpc,VcamX/grpc,apolcyn/grpc,sreecha/grpc,stanley-cheung/grpc,sreecha/grpc,thunderboltsid/grpc,ncteisen/grpc,ananthonline/grpc,soltanmm-google/grpc,soltanmm/grpc,msmania/grpc,zhimingxie/grpc,leifurhauks/grpc,kpayson64/grpc,sreecha/grpc,stanley-cheung/grpc,kriswuollett/grpc,muxi/grpc,a-veitch/grpc,hstefan/grpc,firebase/grpc,soltanmm/grpc,stanley-cheung/grpc,carl-mastrangelo/grpc,donnadionne/grpc,thinkerou/grpc,grani/grpc,kriswuollett/grpc,sreecha/grpc,ipylypiv/grpc,chrisdunelm/grpc,Crevil/grpc,msiedlarek/grpc,leifurhauks/grpc,yongni/grpc,yongni/grpc,muxi/grpc,jboeuf/grpc,andrewpollock/grpc,LuminateWireless/grpc,podsvirov/grpc,deepaklukose/grpc,thinkerou/grpc,simonkuang/grpc,firebase/grpc,wcevans/grpc,miselin/grpc,firebase/grpc,apolcyn/grpc,quizlet/grpc,podsvirov/grpc,andrewpollock/grpc,murgatroid99/grpc,tengyifei/grpc,andrewpollock/grpc,soltanmm-google/grpc,thinkerou/grpc,arkmaxim/grpc,wcevans/grpc,andrewpollock/grpc,maxwell-demon/grpc,bogdandrutu/grpc,ppietrasa/grpc,tamihiro/grpc,greasypizza/grpc,pmarks-net/grpc,andrewpollock/grpc,vjpai/grpc,apolcyn/grpc,soltanmm/grpc,Vizerai/grpc,donnadionne/grpc,maxwell-demon/grpc,simonkuang/grpc,a11r/grpc,y-zeng/grpc,donnadionne/grpc,ejona86/grpc,jtattermusch/grpc,jtattermusch/grpc,kpayson64/grpc,tamihiro/grpc,philcleveland/grpc,vsco/grpc,leifurhauks/grpc,mehrdada/grpc,quizlet/grpc,hstefan/grpc,philcleveland/grpc,carl-mastrangelo/grpc,vjpai/grpc,muxi/grpc,leifurhauks/grpc,rjshade/grpc,y-zeng/grpc,LuminateWireless/grpc,murgatroid99/grpc,jtattermusch/grpc,daniel-j-born/grpc,firebase/grpc,kskalski/grpc,ejona86/grpc,MakMukhi/grpc,jcanizales/grpc,greasypizza/grpc,thunderboltsid/grpc,makdharma/grpc,quizlet/grpc,vsco/grpc,Crevil/grpc,podsvirov/grpc,vsco/grpc,deepaklukose/grpc,yang-g/grpc,kumaralokgithub/grpc,geffzhang/grpc,bogdandrutu/grpc,mehrdada/grpc,makdharma/grpc,yang-g/grpc,zhimingxie/grpc,miselin/grpc,LuminateWireless/grpc,ncteisen/grpc,jboeuf/grpc,ncteisen/grpc,donnadionne/grpc,hstefan/grpc,quizlet/grpc,jboeuf/grpc,vsco/grpc,daniel-j-born/grpc,VcamX/grpc,Vizerai/grpc,baylabs/grpc,rjshade/grpc,ipylypiv/grpc,perumaalgoog/grpc,rjshade/grpc,jboeuf/grpc,kpayson64/grpc,stanley-cheung/grpc,soltanmm/grpc,nicolasnoble/grpc,goldenbull/grpc,msiedlarek/grpc,quizlet/grpc,vsco/grpc,msmania/grpc,7anner/grpc,MakMukhi/grpc,thinkerou/grpc,ejona86/grpc,deepaklukose/grpc,arkmaxim/grpc,simonkuang/grpc,msiedlarek/grpc,LuminateWireless/grpc,a11r/grpc,murgatroid99/grpc,royalharsh/grpc,thinkerou/grpc,yang-g/grpc,soltanmm/grpc,bogdandrutu/grpc,apolcyn/grpc,dklempner/grpc,carl-mastrangelo/grpc,zhimingxie/grpc,a-veitch/grpc,ctiller/grpc,dgquintas/grpc,stanley-cheung/grpc,nicolasnoble/grpc,goldenbull/grpc,carl-mastrangelo/grpc,ananthonline/grpc,yugui/grpc,philcleveland/grpc,tengyifei/grpc,infinit/grpc,yongni/grpc,pszemus/grpc,sreecha/grpc,dgquintas/grpc,kpayson64/grpc,geffzhang/grpc,arkmaxim/grpc,carl-mastrangelo/grpc,jboeuf/grpc,Vizerai/grpc,chrisdunelm/grpc,kskalski/grpc,a-veitch/grpc,ncteisen/grpc,infinit/grpc,greasypizza/grpc,matt-kwong/grpc,grpc/grpc,royalharsh/grpc,7anner/grpc,rjshade/grpc,perumaalgoog/grpc,baylabs/grpc,chrisdunelm/grpc,leifurhauks/grpc,firebase/grpc,firebase/grpc,miselin/grpc,chrisdunelm/grpc,donnadionne/grpc,ejona86/grpc,yongni/grpc,pszemus/grpc,murgatroid99/grpc,ipylypiv/grpc,philcleveland/grpc,MakMukhi/grpc,7anner/grpc,vsco/grpc,simonkuang/grpc,perumaalgoog/grpc,jcanizales/grpc,philcleveland/grpc,ctiller/grpc,dgquintas/grpc,wcevans/grpc,VcamX/grpc,baylabs/grpc,andrewpollock/grpc,tamihiro/grpc,sreecha/grpc,a-veitch/grpc,dgquintas/grpc,stanley-cheung/grpc,jtattermusch/grpc,msmania/grpc,ctiller/grpc,greasypizza/grpc,thinkerou/grpc,goldenbull/grpc,ncteisen/grpc,thinkerou/grpc,vjpai/grpc,grpc/grpc,apolcyn/grpc,ipylypiv/grpc,ncteisen/grpc,kumaralokgithub/grpc,ipylypiv/grpc,ejona86/grpc,muxi/grpc,jcanizales/grpc,VcamX/grpc,dklempner/grpc,ncteisen/grpc,ctiller/grpc,carl-mastrangelo/grpc,kumaralokgithub/grpc,ejona86/grpc,quizlet/grpc,chrisdunelm/grpc,firebase/grpc,stanley-cheung/grpc,PeterFaiman/ruby-grpc-minimal,arkmaxim/grpc,ejona86/grpc,Crevil/grpc,ppietrasa/grpc,nicolasnoble/grpc,y-zeng/grpc,dklempner/grpc,hstefan/grpc,makdharma/grpc,simonkuang/grpc,thunderboltsid/grpc,stanley-cheung/grpc,leifurhauks/grpc,jcanizales/grpc,wcevans/grpc,kumaralokgithub/grpc,ananthonline/grpc,a11r/grpc,grpc/grpc,chrisdunelm/grpc,zhimingxie/grpc,hstefan/grpc,fuchsia-mirror/third_party-grpc,grani/grpc,baylabs/grpc,leifurhauks/grpc,grpc/grpc,infinit/grpc,miselin/grpc,daniel-j-born/grpc,baylabs/grpc,Vizerai/grpc,geffzhang/grpc,makdharma/grpc,dklempner/grpc,donnadionne/grpc,deepaklukose/grpc,Vizerai/grpc,simonkuang/grpc,geffzhang/grpc,bogdandrutu/grpc,matt-kwong/grpc,soltanmm-google/grpc,baylabs/grpc,vjpai/grpc,y-zeng/grpc,carl-mastrangelo/grpc,stanley-cheung/grpc,arkmaxim/grpc,geffzhang/grpc,jcanizales/grpc,y-zeng/grpc,simonkuang/grpc,grpc/grpc,ejona86/grpc,dklempner/grpc,ncteisen/grpc,pmarks-net/grpc,Vizerai/grpc,LuminateWireless/grpc,VcamX/grpc,nicolasnoble/grpc,bogdandrutu/grpc,infinit/grpc,chrisdunelm/grpc,malexzx/grpc,PeterFaiman/ruby-grpc-minimal,yang-g/grpc,maxwell-demon/grpc,ctiller/grpc,fuchsia-mirror/third_party-grpc,mehrdada/grpc,PeterFaiman/ruby-grpc-minimal,thunderboltsid/grpc,thinkerou/grpc,Crevil/grpc,pszemus/grpc,tengyifei/grpc,goldenbull/grpc,vjpai/grpc,thinkerou/grpc,maxwell-demon/grpc,sreecha/grpc,7anner/grpc,msiedlarek/grpc,wcevans/grpc,apolcyn/grpc,jcanizales/grpc,murgatroid99/grpc,soltanmm/grpc,a-veitch/grpc,7anner/grpc,fuchsia-mirror/third_party-grpc,grpc/grpc,ananthonline/grpc,Crevil/grpc,ipylypiv/grpc,matt-kwong/grpc,rjshade/grpc,soltanmm-google/grpc,kskalski/grpc,ppietrasa/grpc,goldenbull/grpc,ctiller/grpc,kriswuollett/grpc,kumaralokgithub/grpc,ctiller/grpc,yongni/grpc,nicolasnoble/grpc,msmania/grpc,muxi/grpc,jtattermusch/grpc,kpayson64/grpc,chrisdunelm/grpc,grpc/grpc,sreecha/grpc,pszemus/grpc,matt-kwong/grpc,daniel-j-born/grpc,sreecha/grpc,nicolasnoble/grpc,apolcyn/grpc,apolcyn/grpc,grpc/grpc,kumaralokgithub/grpc,jtattermusch/grpc,infinit/grpc,royalharsh/grpc,ipylypiv/grpc,msmania/grpc,muxi/grpc,soltanmm/grpc,kriswuollett/grpc,adelez/grpc,maxwell-demon/grpc,adelez/grpc,perumaalgoog/grpc,jtattermusch/grpc,perumaalgoog/grpc,perumaalgoog/grpc,miselin/grpc,greasypizza/grpc,jboeuf/grpc,vsco/grpc,ejona86/grpc,quizlet/grpc,zhimingxie/grpc,fuchsia-mirror/third_party-grpc,baylabs/grpc,MakMukhi/grpc,vjpai/grpc,ncteisen/grpc,donnadionne/grpc,kumaralokgithub/grpc
64d086a45bfb569038f9dcacc9e50ef04fecf574
SoomlaiOSProfile/SoomlaiOSProfile/Blueprint.h
SoomlaiOSProfile/SoomlaiOSProfile/Blueprint.h
// // Blueprint.h // SoomlaiOSProfile // // Created by Gur Dotan on 6/9/14. // Copyright (c) 2014 Soomla. All rights reserved. // #define BP_DB_KEY_PREFIX @"soomla.blueprint"
// // Blueprint.h // SoomlaiOSProfile // // Created by Gur Dotan on 6/9/14. // Copyright (c) 2014 Soomla. All rights reserved. // #define BP_DB_KEY_PREFIX @"soomla.levelup"
Change DB prefix string to comply with Android's
Change DB prefix string to comply with Android's
C
apache-2.0
emperor1412/ios-profile,vedi/ios-profile,vedi/ios-profile,soomla/ios-profile,vedi/ios-profile,emperor1412/ios-profile
1439f9421e67da83a16dc7350f50c5dabe85060e
ipxe/local/general.h
ipxe/local/general.h
#define DIGEST_CMD /* Image crypto digest commands */ #define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */ #define IMAGE_COMBOOT /* COMBOOT */ #define IMAGE_TRUST_CMD /* Image trust management commands */ #define NET_PROTO_IPV6 /* IPv6 protocol */ #define REBOOT_CMD /* Reboot command */ #define VLAN_CMD /* VLAN commands */
#define DIGEST_CMD /* Image crypto digest commands */ #define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */ #define IMAGE_COMBOOT /* COMBOOT */ #define IMAGE_TRUST_CMD /* Image trust management commands */ #define NET_PROTO_IPV6 /* IPv6 protocol */ #define REBOOT_CMD /* Reboot command */ #define VLAN_CMD /* VLAN commands */ #define NSLOOKUP_CMD /* DNS resolving command */ #define NTP_CMD /* NTP commands */
Add NSLOOKUP and NTP commands to netboot.xyz
Add NSLOOKUP and NTP commands to netboot.xyz
C
apache-2.0
Dedsec1/netboot.xyz,chris18890/netboot.xyz,antonym/netboot.xyz,antonym/netboot.xyz,Dedsec1/netboot.xyz,antonym/netboot.xyz,chris18890/netboot.xyz,Dedsec1/netboot.xyz
b6ffc70dcc58cbeae372c58675c14a9fe9dac3f9
src/interfaces/libpq/win32.h
src/interfaces/libpq/win32.h
#include <winsock.h> /* * strcasecmp() is not in Windows, stricmp is, though */ #define strcasecmp(a,b) stricmp(a,b) #define strncasecmp(a,b,c) _strnicmp(a,b,c) #define ACCEPT_TYPE_ARG3 int /* * Some compat functions */ #define open(a,b,c) _open(a,b,c) #define close(a) _close(a) #define read(a,b,c) _read(a,b,c) #define write(a,b,c) _write(a,b,c) #define popen(a,b) _popen(a,b) #define pclose(a) _pclose(a) #define vsnprintf(a,b,c,d) _vsnprintf(a,b,c,d) /* * crypt not available (yet) */ #define crypt(a,b) a /* * Parts of config.h that you get with autoconf on other systems */ #define DEF_PGPORT "5432" #define MAXIMUM_ALIGNOF 4
#include <winsock.h> /* * strcasecmp() is not in Windows, stricmp is, though */ #define strcasecmp(a,b) stricmp(a,b) #define strncasecmp(a,b,c) _strnicmp(a,b,c) /* * Some compat functions */ #define open(a,b,c) _open(a,b,c) #define close(a) _close(a) #define read(a,b,c) _read(a,b,c) #define write(a,b,c) _write(a,b,c) #define popen(a,b) _popen(a,b) #define pclose(a) _pclose(a) #define vsnprintf(a,b,c,d) _vsnprintf(a,b,c,d) /* * crypt not available (yet) */ #define crypt(a,b) a /* * Parts of config.h that you get with autoconf on other systems */ #define MAXIMUM_ALIGNOF 4 #define ACCEPT_TYPE_ARG3 int
Remove broken (and unnecessary) definition of DEF_PGPORT.
Remove broken (and unnecessary) definition of DEF_PGPORT.
C
apache-2.0
tangp3/gpdb,janebeckman/gpdb,cjcjameson/gpdb,Postgres-XL/Postgres-XL,ahachete/gpdb,adam8157/gpdb,lisakowen/gpdb,zeroae/postgres-xl,randomtask1155/gpdb,lintzc/gpdb,tangp3/gpdb,janebeckman/gpdb,cjcjameson/gpdb,xinzweb/gpdb,kmjungersen/PostgresXL,foyzur/gpdb,lisakowen/gpdb,xuegang/gpdb,rvs/gpdb,snaga/postgres-xl,Postgres-XL/Postgres-XL,foyzur/gpdb,greenplum-db/gpdb,zaksoup/gpdb,rvs/gpdb,xuegang/gpdb,xinzweb/gpdb,foyzur/gpdb,Chibin/gpdb,oberstet/postgres-xl,randomtask1155/gpdb,lisakowen/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,edespino/gpdb,lintzc/gpdb,lintzc/gpdb,rubikloud/gpdb,ashwinstar/gpdb,adam8157/gpdb,ashwinstar/gpdb,lpetrov-pivotal/gpdb,cjcjameson/gpdb,foyzur/gpdb,lisakowen/gpdb,50wu/gpdb,xinzweb/gpdb,cjcjameson/gpdb,CraigHarris/gpdb,50wu/gpdb,pavanvd/postgres-xl,oberstet/postgres-xl,royc1/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,adam8157/gpdb,yuanzhao/gpdb,atris/gpdb,ahachete/gpdb,snaga/postgres-xl,kmjungersen/PostgresXL,techdragon/Postgres-XL,postmind-net/postgres-xl,zaksoup/gpdb,0x0FFF/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,jmcatamney/gpdb,zaksoup/gpdb,adam8157/gpdb,foyzur/gpdb,Quikling/gpdb,zaksoup/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,chrishajas/gpdb,ahachete/gpdb,rubikloud/gpdb,royc1/gpdb,kaknikhil/gpdb,edespino/gpdb,CraigHarris/gpdb,CraigHarris/gpdb,snaga/postgres-xl,arcivanov/postgres-xl,janebeckman/gpdb,chrishajas/gpdb,arcivanov/postgres-xl,kaknikhil/gpdb,rubikloud/gpdb,CraigHarris/gpdb,rubikloud/gpdb,janebeckman/gpdb,lisakowen/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,yazun/postgres-xl,edespino/gpdb,lisakowen/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,oberstet/postgres-xl,cjcjameson/gpdb,royc1/gpdb,rvs/gpdb,jmcatamney/gpdb,Chibin/gpdb,lintzc/gpdb,yazun/postgres-xl,greenplum-db/gpdb,rubikloud/gpdb,Quikling/gpdb,yuanzhao/gpdb,rvs/gpdb,postmind-net/postgres-xl,0x0FFF/gpdb,chrishajas/gpdb,ahachete/gpdb,ovr/postgres-xl,rubikloud/gpdb,ahachete/gpdb,Chibin/gpdb,ashwinstar/gpdb,zaksoup/gpdb,Quikling/gpdb,techdragon/Postgres-XL,pavanvd/postgres-xl,greenplum-db/gpdb,arcivanov/postgres-xl,kaknikhil/gpdb,yazun/postgres-xl,xinzweb/gpdb,CraigHarris/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,jmcatamney/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,tpostgres-projects/tPostgres,pavanvd/postgres-xl,edespino/gpdb,kaknikhil/gpdb,zeroae/postgres-xl,royc1/gpdb,rubikloud/gpdb,0x0FFF/gpdb,xinzweb/gpdb,snaga/postgres-xl,zeroae/postgres-xl,postmind-net/postgres-xl,ashwinstar/gpdb,xuegang/gpdb,zeroae/postgres-xl,janebeckman/gpdb,janebeckman/gpdb,randomtask1155/gpdb,adam8157/gpdb,adam8157/gpdb,kaknikhil/gpdb,edespino/gpdb,lpetrov-pivotal/gpdb,randomtask1155/gpdb,chrishajas/gpdb,Postgres-XL/Postgres-XL,yuanzhao/gpdb,yuanzhao/gpdb,50wu/gpdb,janebeckman/gpdb,foyzur/gpdb,atris/gpdb,lpetrov-pivotal/gpdb,0x0FFF/gpdb,50wu/gpdb,techdragon/Postgres-XL,edespino/gpdb,rubikloud/gpdb,arcivanov/postgres-xl,0x0FFF/gpdb,ashwinstar/gpdb,CraigHarris/gpdb,kmjungersen/PostgresXL,royc1/gpdb,adam8157/gpdb,foyzur/gpdb,Quikling/gpdb,ahachete/gpdb,Quikling/gpdb,lintzc/gpdb,yazun/postgres-xl,arcivanov/postgres-xl,Quikling/gpdb,xuegang/gpdb,xuegang/gpdb,Chibin/gpdb,Quikling/gpdb,adam8157/gpdb,arcivanov/postgres-xl,zaksoup/gpdb,ashwinstar/gpdb,ahachete/gpdb,edespino/gpdb,zaksoup/gpdb,cjcjameson/gpdb,tangp3/gpdb,lisakowen/gpdb,jmcatamney/gpdb,tpostgres-projects/tPostgres,xinzweb/gpdb,0x0FFF/gpdb,xuegang/gpdb,janebeckman/gpdb,rvs/gpdb,oberstet/postgres-xl,tangp3/gpdb,CraigHarris/gpdb,edespino/gpdb,chrishajas/gpdb,cjcjameson/gpdb,rvs/gpdb,atris/gpdb,Chibin/gpdb,Chibin/gpdb,50wu/gpdb,ovr/postgres-xl,cjcjameson/gpdb,randomtask1155/gpdb,jmcatamney/gpdb,xuegang/gpdb,kaknikhil/gpdb,ovr/postgres-xl,kaknikhil/gpdb,lpetrov-pivotal/gpdb,techdragon/Postgres-XL,snaga/postgres-xl,tpostgres-projects/tPostgres,tangp3/gpdb,yuanzhao/gpdb,ovr/postgres-xl,oberstet/postgres-xl,xuegang/gpdb,zaksoup/gpdb,0x0FFF/gpdb,Quikling/gpdb,chrishajas/gpdb,chrishajas/gpdb,yuanzhao/gpdb,lpetrov-pivotal/gpdb,kmjungersen/PostgresXL,atris/gpdb,royc1/gpdb,Postgres-XL/Postgres-XL,edespino/gpdb,janebeckman/gpdb,0x0FFF/gpdb,rvs/gpdb,50wu/gpdb,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,randomtask1155/gpdb,lintzc/gpdb,tpostgres-projects/tPostgres,pavanvd/postgres-xl,50wu/gpdb,Chibin/gpdb,foyzur/gpdb,zeroae/postgres-xl,xuegang/gpdb,randomtask1155/gpdb,atris/gpdb,lpetrov-pivotal/gpdb,yazun/postgres-xl,janebeckman/gpdb,yuanzhao/gpdb,ahachete/gpdb,Chibin/gpdb,lintzc/gpdb,ashwinstar/gpdb,royc1/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,atris/gpdb,royc1/gpdb,kmjungersen/PostgresXL,Quikling/gpdb,50wu/gpdb,lintzc/gpdb,rvs/gpdb,xinzweb/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,atris/gpdb,tpostgres-projects/tPostgres,rvs/gpdb,rvs/gpdb,tangp3/gpdb,xinzweb/gpdb,techdragon/Postgres-XL,tangp3/gpdb,Postgres-XL/Postgres-XL,edespino/gpdb,jmcatamney/gpdb,Quikling/gpdb,tangp3/gpdb,Chibin/gpdb,chrishajas/gpdb,Chibin/gpdb,ovr/postgres-xl,atris/gpdb,jmcatamney/gpdb,lintzc/gpdb,lpetrov-pivotal/gpdb
6566e0278082294b97e7cd12eb4b4479abfee100
src/fs/dvfs/dcache_no.c
src/fs/dvfs/dcache_no.c
/** * @file * @brief Handle cache lookup just by iterating vfs tree * @author Denis Deryugin <[email protected]> * @version 0.1 * @date 2015-06-09 */
/** * @file * @brief Handle cache lookup just by iterating vfs tree * @author Denis Deryugin <[email protected]> * @version 0.1 * @date 2015-06-09 */ #include <fs/dvfs.h> struct dentry *dvfs_cache_lookup(const char *path, struct dentry *base) { return NULL; } struct dentry *dvfs_cache_get(char *path) { return NULL; } int dvfs_cache_del(struct dentry *dentry) { return 0; } int dvfs_cache_add(struct dentry *dentry) { return 0; }
Implement stubs for trirvial cache
vfs: Implement stubs for trirvial cache
C
bsd-2-clause
gzoom13/embox,Kefir0192/embox,Kefir0192/embox,gzoom13/embox,embox/embox,mike2390/embox,mike2390/embox,mike2390/embox,mike2390/embox,Kakadu/embox,embox/embox,Kefir0192/embox,mike2390/embox,gzoom13/embox,Kakadu/embox,gzoom13/embox,gzoom13/embox,Kefir0192/embox,Kakadu/embox,Kakadu/embox,mike2390/embox,Kakadu/embox,Kakadu/embox,mike2390/embox,Kefir0192/embox,Kakadu/embox,Kefir0192/embox,embox/embox,gzoom13/embox,embox/embox,Kefir0192/embox,embox/embox,embox/embox,gzoom13/embox
f29b65fa18ae5bcae352ad1050a5b83d8ffffd53
modules/vf_audio/sources/vf_SampleSource.h
modules/vf_audio/sources/vf_SampleSource.h
/*============================================================================*/ /* Copyright (C) 2008 by Vinnie Falco, this file is part of VFLib. See the file GNU_GPL_v2.txt for full licensing terms. 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 the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /*============================================================================*/ #ifndef VF_SAMPLESOURCE_VFHEADER #define VF_SAMPLESOURCE_VFHEADER //============================================================================== /** Abstract source of audio samples. This interface is used to retrieve sequentual raw audio samples from an abstract source. It is intended as a facade for @ref AudioSource, with these features: - No thread safety; the caller is responsible for all synchronization. - The preparation state feature is removed (along with its methods). @ingroup vf_audio */ class SampleSource { public: /** Read the next block of samples. */ virtual void getNextAudioBlock (AudioSourceChannelInfo const& bufferToFill) = 0; }; #endif
/*============================================================================*/ /* Copyright (C) 2008 by Vinnie Falco, this file is part of VFLib. See the file GNU_GPL_v2.txt for full licensing terms. 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 the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /*============================================================================*/ #ifndef VF_SAMPLESOURCE_VFHEADER #define VF_SAMPLESOURCE_VFHEADER //============================================================================== /** Abstract source of audio samples. This interface is used to retrieve sequentual raw audio samples from an abstract source. It is intended as a facade for @ref AudioSource, with these features: - No thread safety; the caller is responsible for all synchronization. - The preparation state feature is removed (along with its methods). @ingroup vf_audio */ class SampleSource { public: virtual ~SampleSource () { } /** Read the next block of samples. */ virtual void getNextAudioBlock (AudioSourceChannelInfo const& bufferToFill) = 0; }; #endif
Make dtor virtual in SampleSource
Make dtor virtual in SampleSource
C
mit
vinniefalco/VFLib,spthaolt/VFLib,spthaolt/VFLib,vinniefalco/VFLib
f130782346db6c87ebf9f44aa448c7d41810400e
public/platform/WebBlobInfo.h
public/platform/WebBlobInfo.h
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WebBlobInfo_h #define WebBlobInfo_h #include "WebCommon.h" #include "WebString.h" namespace blink { class WebBlobInfo { public: WebBlobInfo() : m_isFile(false) , m_size(-1) , m_lastModified(0) { } WebBlobInfo(const WebString& uuid, const WebString& type, long long size) : m_isFile(false) , m_uuid(uuid) , m_type(type) , m_size(size) , m_lastModified(0) { } WebBlobInfo(const WebString& uuid, const WebString& filePath, const WebString& fileName, const WebString& type) : m_isFile(true) , m_uuid(uuid) , m_type(type) , m_size(-1) , m_filePath(filePath) , m_fileName(fileName) , m_lastModified(0) { } WebBlobInfo(const WebString& uuid, const WebString& filePath, const WebString& fileName, const WebString& type, double lastModified, long long size) : m_isFile(true) , m_uuid(uuid) , m_type(type) , m_size(size) , m_filePath(filePath) , m_fileName(fileName) , m_lastModified(lastModified) { } bool isFile() const { return m_isFile; } const WebString& uuid() const { return m_uuid; } const WebString& type() const { return m_type; } long long size() const { return m_size; } const WebString& filePath() const { return m_filePath; } const WebString& fileName() const { return m_fileName; } double lastModified() const { return m_lastModified; } private: bool m_isFile; WebString m_uuid; WebString m_type; // MIME type long long m_size; WebString m_filePath; // Only for File WebString m_fileName; // Only for File double m_lastModified; // Only for File }; } // namespace blink #endif
Add two classes [as yet unused] needed for upcoming IDB Blob support.
Add two classes [as yet unused] needed for upcoming IDB Blob support. BUG=108012 R=cmumford,jsbell,abarth Review URL: https://codereview.chromium.org/205413004 git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@170686 bbb929c8-8fbe-4397-9dbb-9b2b20218538
C
bsd-3-clause
Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,jtg-gg/blink,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,ondra-novak/blink,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,crosswalk-project/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,ondra-novak/blink,Bysmyyr/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,nwjs/blink,ondra-novak/blink,jtg-gg/blink,modulexcite/blink,modulexcite/blink,kurli/blink-crosswalk,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,modulexcite/blink,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,nwjs/blink,jtg-gg/blink,ondra-novak/blink,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,nwjs/blink,ondra-novak/blink,XiaosongWei/blink-crosswalk,nwjs/blink,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,nwjs/blink,modulexcite/blink,smishenk/blink-crosswalk,smishenk/blink-crosswalk,modulexcite/blink,hgl888/blink-crosswalk-efl,ondra-novak/blink,Bysmyyr/blink-crosswalk,jtg-gg/blink,crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,hgl888/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,ondra-novak/blink,crosswalk-project/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,nwjs/blink,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,smishenk/blink-crosswalk,jtg-gg/blink,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,modulexcite/blink,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,ondra-novak/blink,nwjs/blink,modulexcite/blink,crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,jtg-gg/blink,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,smishenk/blink-crosswalk,ondra-novak/blink,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,kurli/blink-crosswalk,kurli/blink-crosswalk,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk
48288f1523084969e246b6a50ae5e2b6d4e819b8
include/shmlog_tags.h
include/shmlog_tags.h
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(Debug) SLTM(Error) SLTM(CLI) SLTM(SessionOpen) SLTM(SessionReuse) SLTM(SessionClose) SLTM(BackendOpen) SLTM(BackendXID) SLTM(BackendReuse) SLTM(BackendClose) SLTM(HttpError) SLTM(ClientAddr) SLTM(Backend) SLTM(Request) SLTM(Response) SLTM(Length) SLTM(Status) SLTM(URL) SLTM(Protocol) SLTM(Header) SLTM(BldHdr) SLTM(LostHeader) SLTM(VCL_call) SLTM(VCL_trace) SLTM(VCL_return) SLTM(XID) SLTM(ExpBan) SLTM(ExpPick) SLTM(ExpKill)
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(Debug) SLTM(Error) SLTM(CLI) SLTM(SessionOpen) SLTM(SessionReuse) SLTM(SessionClose) SLTM(BackendOpen) SLTM(BackendXID) SLTM(BackendReuse) SLTM(BackendClose) SLTM(HttpError) SLTM(ClientAddr) SLTM(Backend) SLTM(Request) SLTM(Response) SLTM(Length) SLTM(Status) SLTM(URL) SLTM(Protocol) SLTM(Header) SLTM(BldHdr) SLTM(LostHeader) SLTM(VCL_call) SLTM(VCL_trace) SLTM(VCL_return) SLTM(XID) SLTM(Hit) SLTM(ExpBan) SLTM(ExpPick) SLTM(ExpKill)
Add shmem tag for Hits
Add shmem tag for Hits git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@361 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
wikimedia/operations-debs-varnish,ssm/pkg-varnish,ssm/pkg-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,CartoDB/Varnish-Cache
6cab757bf92a547a94b319472dc16c536e7c4dc7
OpenROV/Settings.h
OpenROV/Settings.h
#ifndef __SETTINGS_H_ #define __SETTINGS_H_ #include <Arduino.h> #include "Device.h" // This section is for devices and their configuration //Kit: #define HAS_STD_LIGHTS (1) #define LIGHTS_PIN 5 #define HAS_STD_CAPE (1) #define HAS_STD_2X1_THRUSTERS (1) #define HAS_STD_PILOT (1) #define HAS_STD_CAMERAMOUNT (1) #define CAMERAMOUNT_PIN 3 #define CAPE_VOLTAGE_PIN 0 #define CAPE_CURRENT_PIN 3 //After Market: #define HAS_STD_CALIBRATIONLASERS (0) #define CALIBRATIONLASERS_PIN 6 #define HAS_POLOLU_MINIMUV (1) #define HAS_MS5803_14BA (0) #define MS5803_14BA_I2C_ADDRESS 0x76 #define MIDPOINT 1500 #define LOGGING (1) class Settings : public Device { public: static int smoothingIncriment; //How aggressive the throttle changes static int deadZone_min; static int deadZone_max; static int capability_bitarray; Settings():Device(){}; void device_setup(); void device_loop(Command cmd); }; #endif
#ifndef __SETTINGS_H_ #define __SETTINGS_H_ #include <Arduino.h> #include "Device.h" // This section is for devices and their configuration //Kit: #define HAS_STD_LIGHTS (1) #define LIGHTS_PIN 5 #define HAS_STD_CAPE (1) #define HAS_STD_2X1_THRUSTERS (1) #define HAS_STD_PILOT (1) #define HAS_STD_CAMERAMOUNT (1) #define CAMERAMOUNT_PIN 3 #define CAPE_VOLTAGE_PIN 0 #define CAPE_CURRENT_PIN 3 //After Market: #define HAS_STD_CALIBRATIONLASERS (0) #define CALIBRATIONLASERS_PIN 6 #define HAS_POLOLU_MINIMUV (0) #define HAS_MS5803_14BA (0) #define MS5803_14BA_I2C_ADDRESS 0x76 #define MIDPOINT 1500 #define LOGGING (1) class Settings : public Device { public: static int smoothingIncriment; //How aggressive the throttle changes static int deadZone_min; static int deadZone_max; static int capability_bitarray; Settings():Device(){}; void device_setup(); void device_loop(Command cmd); }; #endif
Reset default settings to stock kit configuration
Reset default settings to stock kit configuration
C
mit
LeeCheongAh/openrov-software-arduino,LeeCheongAh/openrov-software-arduino,binary42/openrov-software-arduino,dieface/openrov-software-arduino,OpenROV/openrov-software-arduino,dieface/openrov-software-arduino,binary42/openrov-software-arduino,BrianAdams/openrov-software-arduino,OpenROV/openrov-software-arduino,OpenROV/openrov-software-arduino,spiderkeys/openrov-software-arduino,spiderkeys/openrov-software-arduino,BrianAdams/openrov-software-arduino,johan--/openrov-software-arduino,johan--/openrov-software-arduino
dc2d1193248200276b37d429da9d865bd48c8f9c
mordor/version.h
mordor/version.h
#ifndef __MORDOR_VERSION_H__ #define __MORDOR_VERSION_H__ // OS #ifdef _WIN32 # define WINDOWS #else # define POSIX #endif #ifdef __CYGWIN__ # define WINDOWS # define CYGWIN #endif #if defined(linux) || defined(__linux__) # define LINUX #endif #ifdef __APPLE__ # define OSX # ifndef BSD # define BSD # endif #endif #ifdef __FreeBSD__ # define FREEBSD # define BSD #endif #ifdef WINDOWS #define MORDOR_NATIVE(win32, posix) win32 #else #define MORDOR_NATIVE(win32, posix) posix #endif // Architecture #ifdef _MSC_VER # define MSVC # ifdef _M_X64 # define X86_64 # elif defined(_M_IX86) # define X86 # endif #endif #ifdef __GNUC__ # define GCC # ifdef __x86_64 # define X86_64 # elif defined(i386) # define X86 # elif defined(__ppc__) # define PPC # elif defined(__arm__) # define ARM # endif #endif #ifdef MSVC #ifndef _DEBUG #define NDEBUG #endif #endif #endif
#ifndef __MORDOR_VERSION_H__ #define __MORDOR_VERSION_H__ // OS #ifdef _WIN32 # define WINDOWS #else # define POSIX #endif #ifdef __CYGWIN__ # define WINDOWS # define CYGWIN #endif #if defined(linux) || defined(__linux__) # define LINUX #endif #ifdef __APPLE__ # define OSX # ifndef BSD # define BSD # endif #endif #ifdef __FreeBSD__ # define FREEBSD # define BSD #endif #ifdef WINDOWS #define MORDOR_NATIVE(win32, posix) win32 #else #define MORDOR_NATIVE(win32, posix) posix #endif // Architecture #ifdef _MSC_VER # define MSVC # ifdef _M_X64 # define X86_64 # elif defined(_M_IX86) # define X86 # endif #endif #ifdef __GNUC__ # define GCC # ifdef __x86_64 # define X86_64 # elif defined(i386) # define X86 # elif defined(__ppc__) # define PPC # elif defined(__arm__) # define ARM # endif #endif #ifdef MSVC # ifndef _DEBUG # ifndef NDEBUG # define NDEBUG # endif # endif #endif #endif
Fix compiler warning in release
Fix compiler warning in release Fix long standing warning that appears multiple time in Stash release build: warning C4005: 'NDEBUG' : macro redefinition (example: http://build.dechocorp.com/job/sync-release/arch=i386,dist=windows/2043/console) If NDEBUG is already defined there is no need to define it Change-Id: I1573a99f0908e879642c3c33ee9f0dda22e885d1 Signed-off-by: Andrew Skowronski <[email protected]> Reviewed-on: https://gerrit.dechocorp.com/37185 Reviewed-by: Jeff Tulley <[email protected]> Reviewed-by: Jenkins <[email protected]>
C
bsd-3-clause
mtanski/mordor,mozy/mordor,adfin/mordor,mtanski/mordor,adfin/mordor,mozy/mordor,mtanski/mordor,adfin/mordor,mozy/mordor
eae126f18257b9095732eb7d174b777c12ec82ab
string_hash.h
string_hash.h
#include <string.h> #include <stdint.h> /** * Efficient string hash function. */ static uint32_t string_hash(const char *str) { uint32_t hash = 0; int32_t c; while ((c = *str++)) { hash = c + (hash << 6) + (hash << 16) - hash; } return hash; } /** * Test two strings for equality. */ static int string_compare(const char *str1, const char *str2) { if (str1 == str2) { return 1; } if (str2 == NULL) { return 0; } return strcmp(str1, str2) == 0; }
#include <string.h> #include <stdint.h> /** * Efficient string hash function. */ __attribute__((unused)) static uint32_t string_hash(const char *str) { uint32_t hash = 0; int32_t c; while ((c = *str++)) { hash = c + (hash << 6) + (hash << 16) - hash; } return hash; } /** * Test two strings for equality. */ __attribute__((unused)) static int string_compare(const char *str1, const char *str2) { if (str1 == str2) { return 1; } if (str2 == NULL) { return 0; } return strcmp(str1, str2) == 0; }
Mark string functions unused, in case the header is included in files that only use one of them.
Mark string functions unused, in case the header is included in files that only use one of them. git-svn-id: f6517e426f81db5247881cd92f7386583ace04fa@30387 72102866-910b-0410-8b05-ffd578937521
C
mit
crontab/libobjc2,skudryas/gnustep-libobjc2,skudryas/gnustep-libobjc2,crontab/libobjc2
85516563f7f82cc1f82a680de48f02a1e6426e77
samples/C/code.c
samples/C/code.c
/*A C calculator...of sorts*/ /* An attempt at a C calculator from stuff read so far */ #include<stdio.h> /* function for addition */ int add(int input1, int input2) { int result; result = input1 + input2; return result; } /* function for multiplication */ int multi(int input1, int input2) { int result; result = input1 * input2; return result; } /* function for subtraction */ int sub(int input1, int input2) { int result; result = input1 - input2; return result; } /* division function */ float div(float input1, float input2) { float result; result = input1 / input2; return result; } int main() { int a, b, output; float output2; char myinput; printf("Please enter a number\n"); scanf("%d", &a); printf("Enter another number\n"); scanf("%d", &b); printf("What calculation would you like to perform?\n"); printf("a) addition\n"); printf("b) mulitplication\n"); printf("c) subtraction\n"); printf("d) division\n"); scanf(" %c", &myinput); /* switch statement to run certain calculations */ switch(myinput) { case 'a': { printf("Adding the numbers entered...\n"); output = add(a, b); printf("The sum of %d and %d is: %d\n", a, b, output); break; } case 'b': { printf("Multiplication chosen\n"); output = multi(a, b); printf("Multiplying %d and %d equals %d\n", a, b , output); break; } case 'c': { printf("Subtracting %d from %d\n", a, b); output = sub(a, b); printf("%d minus %d is: %d\n", a, b, output); break; } case 'd': { printf("Divison program running...\n"); output2 = div(a, b); printf("Division of %d by %d equals %f\n", a, b, output2); break; } default: { printf("Invalid entry\n"); printf("Please run again\n"); } } return 0; }
Add another sample file for C
Add another sample file for C
C
mit
github/linguist,jtbandes/linguist,erkyrath/linguist,christop/linguist,tschf/linguist,meunierfrederic/octocatlinguist,ppaulweber/github-linguist,meunierfrederic/octocatlinguist,JJ/linguist,github/linguist,ppaulweber/github-linguist,github/linguist,PsichiX/linguist,osorgin/linguist,sebgod/linguist,R4PaSs/linguist,JJ/linguist,sebgod/linguist,MahmoudFayed/linguist,erkyrath/linguist,stanhu/linguist,yyx990803/linguist,JJ/linguist,pchaigno/linguist,erkyrath/linguist,stanhu/linguist,tschf/linguist,sebgod/linguist,yyx990803/linguist,pchaigno/linguist,PsichiX/linguist,christop/linguist,pchaigno/linguist,MahmoudFayed/linguist,pchaigno/linguist,erkyrath/linguist,sebgod/linguist,MostAwesomeDude/linguist,jtbandes/linguist,osorgin/linguist,yyx990803/linguist,stanhu/linguist,R4PaSs/linguist,JJ/linguist,MostAwesomeDude/linguist,stanhu/linguist,yyx990803/linguist,mwpastore/linguist,mwpastore/linguist,meunierfrederic/octocatlinguist,github/linguist
fd0197d26208b896caa958cc1780e8016f439711
arch/mips/qemu/q-setup.c
arch/mips/qemu/q-setup.c
#include <linux/init.h> #include <asm/io.h> #include <asm/time.h> #define QEMU_PORT_BASE 0xb4000000 static void __init qemu_timer_setup(struct irqaction *irq) { /* set the clock to 100 Hz */ outb_p(0x34,0x43); /* binary, mode 2, LSB/MSB, ch 0 */ outb_p(LATCH & 0xff , 0x40); /* LSB */ outb(LATCH >> 8 , 0x40); /* MSB */ setup_irq(0, irq); } void __init plat_setup(void) { set_io_port_base(QEMU_PORT_BASE); board_timer_setup = qemu_timer_setup; }
#include <linux/init.h> #include <asm/io.h> #include <asm/time.h> #define QEMU_PORT_BASE 0xb4000000 const char *get_system_type(void) { return "Qemu"; } static void __init qemu_timer_setup(struct irqaction *irq) { /* set the clock to 100 Hz */ outb_p(0x34,0x43); /* binary, mode 2, LSB/MSB, ch 0 */ outb_p(LATCH & 0xff , 0x40); /* LSB */ outb(LATCH >> 8 , 0x40); /* MSB */ setup_irq(0, irq); } void __init plat_setup(void) { set_io_port_base(QEMU_PORT_BASE); board_timer_setup = qemu_timer_setup; }
Implement get_system_type() for Qemu to get procfs-enabled kernels to link.
Implement get_system_type() for Qemu to get procfs-enabled kernels to link. Signed-off-by: Ralf Baechle <[email protected]>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas
526ffa6e0d2ec659f847c05c5e0bd9eeec5c6a7c
src/duk_selftest.h
src/duk_selftest.h
/* * Selftest code */ #ifndef DUK_SELFTEST_H_INCLUDED #define DUK_SELFTEST_H_INCLUDED DUK_INTERNAL_DECL void duk_selftest_run_tests(void); #endif /* DUK_SELFTEST_H_INCLUDED */
/* * Selftest code */ #ifndef DUK_SELFTEST_H_INCLUDED #define DUK_SELFTEST_H_INCLUDED #if defined(DUK_USE_SELF_TESTS) DUK_INTERNAL_DECL void duk_selftest_run_tests(void); #endif #endif /* DUK_SELFTEST_H_INCLUDED */
Fix compile warning when selftests disabled
Fix compile warning when selftests disabled
C
mit
jmptrader/duktape,zeropool/duktape,nivertech/duktape,reqshark/duktape,kphillisjr/duktape,daimajia/duktape,sloth4413/duktape,kphillisjr/duktape,eddieh/duktape,haosu1987/duktape,sloth4413/duktape,sloth4413/duktape,pombredanne/duktape,skomski/duktape,pombredanne/duktape,skomski/duktape,thurday/duktape,chenyaqiuqiu/duktape,nivertech/duktape,rwaldron/duktape,sloth4413/duktape,daimajia/duktape,markand/duktape,nivertech/duktape,haosu1987/duktape,reqshark/duktape,zeropool/duktape,harold-b/duktape,chenyaqiuqiu/duktape,kphillisjr/duktape,jmptrader/duktape,harold-b/duktape,thurday/duktape,harold-b/duktape,reqshark/duktape,zeropool/duktape,thurday/duktape,skomski/duktape,kphillisjr/duktape,svaarala/duktape,daimajia/duktape,eddieh/duktape,skomski/duktape,sloth4413/duktape,chenyaqiuqiu/duktape,daimajia/duktape,chenyaqiuqiu/duktape,harold-b/duktape,thurday/duktape,pombredanne/duktape,thurday/duktape,pombredanne/duktape,markand/duktape,thurday/duktape,pombredanne/duktape,jmptrader/duktape,thurday/duktape,eddieh/duktape,tassmjau/duktape,chenyaqiuqiu/duktape,markand/duktape,haosu1987/duktape,skomski/duktape,svaarala/duktape,reqshark/duktape,skomski/duktape,harold-b/duktape,markand/duktape,skomski/duktape,pombredanne/duktape,jmptrader/duktape,kphillisjr/duktape,haosu1987/duktape,jmptrader/duktape,tassmjau/duktape,sloth4413/duktape,tassmjau/duktape,haosu1987/duktape,eddieh/duktape,rwaldron/duktape,rwaldron/duktape,harold-b/duktape,markand/duktape,reqshark/duktape,zeropool/duktape,svaarala/duktape,thurday/duktape,chenyaqiuqiu/duktape,tassmjau/duktape,reqshark/duktape,zeropool/duktape,haosu1987/duktape,harold-b/duktape,nivertech/duktape,nivertech/duktape,kphillisjr/duktape,harold-b/duktape,reqshark/duktape,svaarala/duktape,pombredanne/duktape,nivertech/duktape,svaarala/duktape,tassmjau/duktape,markand/duktape,zeropool/duktape,pombredanne/duktape,chenyaqiuqiu/duktape,skomski/duktape,daimajia/duktape,tassmjau/duktape,svaarala/duktape,zeropool/duktape,nivertech/duktape,pombredanne/duktape,haosu1987/duktape,haosu1987/duktape,rwaldron/duktape,tassmjau/duktape,thurday/duktape,kphillisjr/duktape,chenyaqiuqiu/duktape,jmptrader/duktape,tassmjau/duktape,rwaldron/duktape,eddieh/duktape,svaarala/duktape,jmptrader/duktape,reqshark/duktape,markand/duktape,thurday/duktape,jmptrader/duktape,eddieh/duktape,nivertech/duktape,jmptrader/duktape,kphillisjr/duktape,harold-b/duktape,tassmjau/duktape,nivertech/duktape,svaarala/duktape,markand/duktape,reqshark/duktape,kphillisjr/duktape,eddieh/duktape,svaarala/duktape,nivertech/duktape,eddieh/duktape,harold-b/duktape,pombredanne/duktape,chenyaqiuqiu/duktape,zeropool/duktape,sloth4413/duktape,zeropool/duktape,eddieh/duktape,rwaldron/duktape,daimajia/duktape,zeropool/duktape,sloth4413/duktape,haosu1987/duktape,sloth4413/duktape,haosu1987/duktape,kphillisjr/duktape,markand/duktape,eddieh/duktape,sloth4413/duktape,skomski/duktape,chenyaqiuqiu/duktape,reqshark/duktape,jmptrader/duktape,tassmjau/duktape,markand/duktape,skomski/duktape
c6a31b64d9f980ef3e26bd26e4688788c80d310b
tests/regression/57-floats/12-subtraction_assignment.c
tests/regression/57-floats/12-subtraction_assignment.c
// PARAM: --enable ana.float.interval #include <assert.h> // previously failed in line 7 with "exception Invalid_argument("Cilfacade.get_ikind: non-integer type double ")" //(same error as in sv-comp: float-newlib/float_req_bl_0220a.c) // similar error also occured in the additional examples when branching on a float argument int main() { double z; z = 1 - 1.0; assert(z == 0.); // SUCCESS if (0.) ; if (0 == (0. + 1.)) ; assert(0); // FAIL }
// PARAM: --enable ana.float.interval #include <assert.h> // previously failed in line 7 with "exception Invalid_argument("Cilfacade.get_ikind: non-integer type double ")" //(same error as in sv-comp: float-newlib/float_req_bl_0220a.c) // similar error also occurred in the additional examples when branching on a float argument int main() { double z; int x; z = 1 - 1.0; assert(z == 0.); // SUCCESS if (0.) { x = z;} if (0 == (0. + 1.)) { x = z;} assert(0); // FAIL }
Modify test 57/12 to actually trigger the issue
Modify test 57/12 to actually trigger the issue
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
9efa56dd26e0ec05823bd367e69e21da3c35af2b
rts/RtsSymbols.h
rts/RtsSymbols.h
/* ----------------------------------------------------------------------------- * * (c) The GHC Team, 2000-2015 * * RTS Symbols * * ---------------------------------------------------------------------------*/ #ifndef RTS_SYMBOLS_H #define RTS_SYMBOLS_H #ifdef LEADING_UNDERSCORE #define MAYBE_LEADING_UNDERSCORE_STR(s) ("_" s) #else #define MAYBE_LEADING_UNDERSCORE_STR(s) (s) #endif typedef struct _RtsSymbolVal { const char *lbl; void *addr; } RtsSymbolVal; extern RtsSymbolVal rtsSyms[]; #endif /* RTS_SYMBOLS_H */
/* ----------------------------------------------------------------------------- * * (c) The GHC Team, 2000-2015 * * RTS Symbols * * ---------------------------------------------------------------------------*/ #ifndef RTS_SYMBOLS_H #define RTS_SYMBOLS_H #include "ghcautoconf.h" #ifdef LEADING_UNDERSCORE #define MAYBE_LEADING_UNDERSCORE_STR(s) ("_" s) #else #define MAYBE_LEADING_UNDERSCORE_STR(s) (s) #endif typedef struct _RtsSymbolVal { const char *lbl; void *addr; } RtsSymbolVal; extern RtsSymbolVal rtsSyms[]; #endif /* RTS_SYMBOLS_H */
Fix the DYNAMIC_GHC_PROGRAMS=NO build on Mac/Windows
Fix the DYNAMIC_GHC_PROGRAMS=NO build on Mac/Windows LEADING_UNDERSCORE is defined in a header file, so we need to #include that file where we use LEADING_UNDERSCORE. Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D1382
C
bsd-3-clause
sgillespie/ghc,sgillespie/ghc,sgillespie/ghc,vikraman/ghc,shlevy/ghc,ezyang/ghc,sdiehl/ghc,oldmanmike/ghc,sgillespie/ghc,da-x/ghc,sdiehl/ghc,mcschroeder/ghc,vikraman/ghc,da-x/ghc,elieux/ghc,AlexanderPankiv/ghc,snoyberg/ghc,shlevy/ghc,GaloisInc/halvm-ghc,ezyang/ghc,snoyberg/ghc,tjakway/ghcjvm,tjakway/ghcjvm,vTurbine/ghc,snoyberg/ghc,da-x/ghc,shlevy/ghc,sdiehl/ghc,gridaphobe/ghc,snoyberg/ghc,GaloisInc/halvm-ghc,vTurbine/ghc,nushio3/ghc,olsner/ghc,oldmanmike/ghc,oldmanmike/ghc,vTurbine/ghc,nushio3/ghc,ezyang/ghc,ezyang/ghc,mettekou/ghc,snoyberg/ghc,oldmanmike/ghc,snoyberg/ghc,elieux/ghc,elieux/ghc,ezyang/ghc,mcschroeder/ghc,GaloisInc/halvm-ghc,mettekou/ghc,oldmanmike/ghc,oldmanmike/ghc,tjakway/ghcjvm,gridaphobe/ghc,tjakway/ghcjvm,vikraman/ghc,snoyberg/ghc,nushio3/ghc,GaloisInc/halvm-ghc,shlevy/ghc,mettekou/ghc,vikraman/ghc,elieux/ghc,AlexanderPankiv/ghc,sgillespie/ghc,GaloisInc/halvm-ghc,nushio3/ghc,sgillespie/ghc,nushio3/ghc,da-x/ghc,ezyang/ghc,sdiehl/ghc,tjakway/ghcjvm,gridaphobe/ghc,olsner/ghc,oldmanmike/ghc,mcschroeder/ghc,vikraman/ghc,ezyang/ghc,vikraman/ghc,vTurbine/ghc,da-x/ghc,nushio3/ghc,da-x/ghc,sdiehl/ghc,olsner/ghc,mettekou/ghc,gridaphobe/ghc,shlevy/ghc,vTurbine/ghc,sdiehl/ghc,mettekou/ghc,da-x/ghc,GaloisInc/halvm-ghc,vTurbine/ghc,shlevy/ghc,sdiehl/ghc,gridaphobe/ghc,elieux/ghc,mcschroeder/ghc,AlexanderPankiv/ghc,tjakway/ghcjvm,AlexanderPankiv/ghc,gridaphobe/ghc,olsner/ghc,vikraman/ghc,AlexanderPankiv/ghc,elieux/ghc,olsner/ghc,mettekou/ghc,elieux/ghc,gridaphobe/ghc,tjakway/ghcjvm,mcschroeder/ghc,olsner/ghc,mcschroeder/ghc,sgillespie/ghc,AlexanderPankiv/ghc,vTurbine/ghc,mettekou/ghc,mcschroeder/ghc,AlexanderPankiv/ghc,olsner/ghc,shlevy/ghc,GaloisInc/halvm-ghc,nushio3/ghc
be7cae3c5a8571faa97ded3112f339f400d9a2ec
TWTValidation/TWTValidation.h
TWTValidation/TWTValidation.h
// // TWTValidation.h // TWTValidation // // Created by Prachi Gauriar on 3/28/2014. // Copyright (c) 2014 Two Toasters, LLC. All rights reserved. // @import Foundation; #import <TWTValidation/TWTValidator.h> #import <TWTValidation/TWTBlockValidator.h> #import <TWTValidation/TWTCompoundValidator.h> #import <TWTValidation/TWTValueValidator.h> #import <TWTValidation/TWTNumberValidator.h> #import <TWTValidation/TWTStringValidator.h> #import <TWTValidation/TWTValidationErrors.h>
// // TWTValidation.h // TWTValidation // // Created by Prachi Gauriar on 3/28/2014. // Copyright (c) 2014 Two Toasters, LLC. All rights reserved. // @import Foundation; #import <TWTValidation/TWTValidator.h> #import <TWTValidation/TWTValidationErrors.h> #import <TWTValidation/TWTBlockValidator.h> #import <TWTValidation/TWTCompoundValidator.h> #import <TWTValidation/TWTValueValidator.h> #import <TWTValidation/TWTNumberValidator.h> #import <TWTValidation/TWTStringValidator.h> #import <TWTValidation/TWTCollectionValidator.h> #import <TWTValidation/TWTKeyedCollectionValidator.h> #import <TWTValidation/TWTKeyValuePairValidator.h> #import <TWTValidation/TWTValidatingObject.h>
Add new classes to umbrella header
Add new classes to umbrella header
C
mit
twotoasters/TWTValidation,twotoasters/TWTValidation,twotoasters/TWTValidation
7184f9e8ff130e010be0b6db2875d840a2f12edc
ext/redcarpet/redcarpet.h
ext/redcarpet/redcarpet.h
#ifndef REDCARPET_H__ #define REDCARPET_H__ #define RSTRING_NOT_MODIFIED #include "ruby.h" #include <stdio.h> #ifdef HAVE_RUBY_ENCODING_H # include <ruby/encoding.h> # define redcarpet_str_new(data, size, enc) rb_enc_str_new(data, size, enc) #else # define redcarpet_str_new(data, size, enc) rb_str_new(data, size) #endif #include "markdown.h" #include "html.h" #define CSTR2SYM(s) (ID2SYM(rb_intern((s)))) void Init_redcarpet_rndr(); struct redcarpet_renderopt { struct html_renderopt html; VALUE link_attributes; VALUE self; VALUE base_class; #ifdef HAVE_RUBY_ENCODING_H rb_encoding *active_enc; #endif }; struct rb_redcarpet_rndr { struct sd_callbacks callbacks; struct redcarpet_renderopt options; }; #endif
#ifndef REDCARPET_H__ #define REDCARPET_H__ #define RSTRING_NOT_MODIFIED #include "ruby.h" #include <stdio.h> #include <ruby/encoding.h> #define redcarpet_str_new(data, size, enc) rb_enc_str_new(data, size, enc) #include "markdown.h" #include "html.h" #define CSTR2SYM(s) (ID2SYM(rb_intern((s)))) void Init_redcarpet_rndr(); struct redcarpet_renderopt { struct html_renderopt html; VALUE link_attributes; VALUE self; VALUE base_class; rb_encoding *active_enc; }; struct rb_redcarpet_rndr { struct sd_callbacks callbacks; struct redcarpet_renderopt options; }; #endif
Remove encoding conditionals that are no longer required
Remove encoding conditionals that are no longer required These are no longer needed since we don't support Ruby 1.8.x anymore.
C
mit
emq/redcarpet,fukayatsu/redcarpet,be9/redcarpet,Hacker0x01/redcarpet,emq/redcarpet,fukayatsu/redcarpet,kattybilly/redcarpet,gitcafe-dev/redcarpet,liquorburn/redcarpet,increments/greenmat,liquorburn/redcarpet,increments/greenmat,JuanitoFatas/redcarpet,Hacker0x01/redcarpet,kaneshin/redcarpet,Hacker0x01/redcarpet,increments/greenmat,Hacker0x01/redcarpet,vmg/redcarpet,fukayatsu/redcarpet,JuanitoFatas/redcarpet,be9/redcarpet,vmg/redcarpet,JuanitoFatas/redcarpet,kattybilly/redcarpet,kaneshin/redcarpet,increments/greenmat,emq/redcarpet,gitcafe-dev/redcarpet,be9/redcarpet,liquorburn/redcarpet,vmg/redcarpet,gitcafe-dev/redcarpet,kattybilly/redcarpet,emq/redcarpet,fukayatsu/redcarpet,liquorburn/redcarpet,be9/redcarpet,kattybilly/redcarpet,kaneshin/redcarpet,kaneshin/redcarpet,vmg/redcarpet
f9316630a5ecdc69d1e0832f24a6b9abd2b45461
server/tube.c
server/tube.c
#include "common.h" #include "tube.h" int FdTube; FILE *TextTube; void InitTubes(int textTube, int fdTube) { SetCloexec(textTube); SetCloexec(fdTube); TextTube = fdopen(textTube, "a+"); DieIf(TextTube == 0, "fdopen"); FdTube = fdTube; }
#include "common.h" #include "tube.h" int FdTube; FILE *TextTube; void InitTubes(int textTube, int fdTube) { SetCloexec(textTube); SetCloexec(fdTube); TextTube = fdopen(textTube, "a+"); setlinebuf(TextTube); DieIf(TextTube == 0, "fdopen"); FdTube = fdTube; }
Put TextTube to line buffer mode
Server: Put TextTube to line buffer mode
C
bsd-2-clause
ke7ofi/elvish,elves/elvish,elves/elvish,beni55/elvish,elves/elvish,CodyGuo/elvish,CodyGuo/elvish,elves/elvish,beni55/elvish,elves/elvish,ke7ofi/elvish
396a83183195021106acb9262bd7b56242101f20
include/shmlog_tags.h
include/shmlog_tags.h
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(Debug) SLTM(CLI) SLTM(SessionOpen) SLTM(SessionReuse) SLTM(SessionClose) SLTM(ClientAddr) SLTM(Request) SLTM(Response) SLTM(Status) SLTM(URL) SLTM(Protocol) SLTM(HD_Unknown) SLTM(HD_Lost) #define HTTPH(a, b, c, d, e, f, g) SLTM(b) #include "http_headers.h" #undef HTTPH
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(Debug) SLTM(CLI) SLTM(SessionOpen) SLTM(SessionReuse) SLTM(SessionClose) SLTM(ClientAddr) SLTM(HandlingPass) SLTM(HandlingPipe) SLTM(Request) SLTM(Response) SLTM(Status) SLTM(URL) SLTM(Protocol) SLTM(HD_Unknown) SLTM(HD_Lost) #define HTTPH(a, b, c, d, e, f, g) SLTM(b) #include "http_headers.h" #undef HTTPH
Add shmlog tags for pipe and pass handling
Add shmlog tags for pipe and pass handling git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@131 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,ssm/pkg-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish
6c02e1f26430e9fdc68f04c974d49b02816b40a5
arduino/OpenROV/Motors.h
arduino/OpenROV/Motors.h
#ifndef __MOTORS_H_ #define __MOTORS_H_ #include <Servo.h> #define MIDPOINT 128 class Motors { private: Servo port, vertical, starbord; int port_pin, vertical_pin, starbord_pin; public: Motors(int p_pin, int v_pin, int s_pin); void reset(); void go(int p, int v, int s); void stop(); }; #endif
#ifndef __MOTORS_H_ #define __MOTORS_H_ #include <Servo.h> #define MIDPOINT 90 class Motors { private: Servo port, vertical, starbord; int port_pin, vertical_pin, starbord_pin; public: Motors(int p_pin, int v_pin, int s_pin); void reset(); void go(int p, int v, int s); void stop(); }; #endif
Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180)
Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180)
C
mit
kavi87/openrov-cockpit,chaudhryjunaid/openrov-cockpit,chaudhryjunaid/openrov-cockpit,BrianAdams/openrov-cockpit,OpenROV/openrov-cockpit,kavi87/openrov-cockpit,BenjaminTsai/openrov-cockpit,BenjaminTsai/openrov-cockpit,spiderkeys/openrov-cockpit,BrianAdams/openrov-cockpit,spiderkeys/openrov-cockpit,BrianAdams/openrov-cockpit,BenjaminTsai/openrov-cockpit,spiderkeys/openrov-cockpit,johan--/openrov-cockpit,kavi87/openrov-cockpit,chaudhryjunaid/openrov-cockpit,OpenROV/openrov-cockpit,johan--/openrov-cockpit,BrianAdams/openrov-cockpit,BrianAdams/openrov-cockpit,OpenROV/openrov-cockpit,spiderkeys/openrov-cockpit,kavi87/openrov-cockpit,kavi87/openrov-cockpit,spiderkeys/openrov-cockpit,BenjaminTsai/openrov-cockpit,chaudhryjunaid/openrov-cockpit,johan--/openrov-cockpit,BenjaminTsai/openrov-cockpit,johan--/openrov-cockpit,chaudhryjunaid/openrov-cockpit,johan--/openrov-cockpit
28b425c367f9efa9ed03c339788c936f4f5dc399
glibc/sysdeps/riscv/bits/string.h
glibc/sysdeps/riscv/bits/string.h
/* This file should provide inline versions of string functions. Surround GCC-specific parts with #ifdef __GNUC__, and use `__extern_inline'. This file should define __STRING_INLINES if functions are actually defined as inlines. */ #ifndef _BITS_STRING_H #define _BITS_STRING_H 1 #define _STRING_ARCH_unaligned 0 #if defined(__GNUC__) && !defined(__cplusplus) static inline unsigned long __libc_detect_null(unsigned long w) { unsigned long mask = 0x7f7f7f7f; if (sizeof(long) == 8) mask = ((mask << 16) << 16) | mask; return ~(((w & mask) + mask) | w | mask); } #endif /* __GNUC__ && !__cplusplus */ #endif /* bits/string.h */
/* This file should provide inline versions of string functions. Surround GCC-specific parts with #ifdef __GNUC__, and use `__extern_inline'. This file should define __STRING_INLINES if functions are actually defined as inlines. */ #ifndef _BITS_STRING_H #define _BITS_STRING_H 1 #define _STRING_ARCH_unaligned 0 #if defined(__GNUC__) && !defined(__cplusplus) static __inline__ unsigned long __libc_detect_null(unsigned long w) { unsigned long mask = 0x7f7f7f7f; if (sizeof(long) == 8) mask = ((mask << 16) << 16) | mask; return ~(((w & mask) + mask) | w | mask); } #endif /* __GNUC__ && !__cplusplus */ #endif /* bits/string.h */
Change a "inline" to "__inline__"
Change a "inline" to "__inline__" So "inline" isn't complient C, which means strict packages won't build with it. This uses "__inline__" instead, which is ANSI C. This patch is required to get freetype to build.
C
lgpl-2.1
manuelafm/riscv-gnu-toolchain,manuelafm/riscv-gnu-toolchain,manuelafm/riscv-gnu-toolchain
48fa59bd9ce9c49e23b3ea45e87278f9883f77fb
syscall.c
syscall.c
#include <runtime.h> #include <cgocall.h> void runtime·asmstdcall(void *c); void ·cSyscall(WinCall *c) { runtime·cgocall(runtime·asmstdcall, c); }
#include <runtime.h> #include <cgocall.h> void runtime·asmstdcall(void *c); void ·cSyscall(LibCall *c) { runtime·cgocall(runtime·asmstdcall, c); }
Update for renamed struct in runtime.h (WinCall to LibCall)
Update for renamed struct in runtime.h (WinCall to LibCall)
C
bsd-2-clause
gnpkrish/com-and-go,gnpkrish/com-and-go,tianlin/com-and-go,vijaygiri10/com-and-go,vijaygiri10/com-and-go
72310c87a519b3530e54b96cd1ceb84e0d385a9c
math_compat.h
math_compat.h
#ifndef __math_compat_h #define __math_compat_h /* Define isnan and isinf on Windows/MSVC */ #ifndef HAVE_DECL_ISNAN # ifdef HAVE_DECL__ISNAN #include <float.h> #define isnan(x) _isnan(x) # endif #endif #ifndef HAVE_DECL_ISINF # ifdef HAVE_DECL__FINITE #include <float.h> #define isinf(x) (!_finite(x)) # endif #endif #ifndef HAVE_DECL_NAN #error This platform does not have nan() #endif #ifndef HAVE_DECL_INFINITY #error This platform does not have INFINITY #endif #endif
#ifndef __math_compat_h #define __math_compat_h /* Define isnan, isinf, infinity and nan on Windows/MSVC */ #ifndef HAVE_DECL_ISNAN # ifdef HAVE_DECL__ISNAN #include <float.h> #define isnan(x) _isnan(x) # endif #endif #ifndef HAVE_DECL_ISINF # ifdef HAVE_DECL__FINITE #include <float.h> #define isinf(x) (!_finite(x)) # endif #endif #ifndef HAVE_DECL_INFINITY #include <float.h> #define INFINITY (DBL_MAX + DBL_MAX) #define HAVE_DECL_INFINITY #endif #ifndef HAVE_DECL_NAN #define NAN (INFINITY - INFINITY) #define HAVE_DECL_NAN #endif #endif
Define INFINITY and NAN when missing
Define INFINITY and NAN when missing
C
mit
chenha0/json-c,Nzbuu/json-c,alagoutte/json-c,chenha0/json-c,PureSwift/json-c,chenha0/json-c,rgerhards/json-c,Nzbuu/json-c,Amineahd/json-c,cubieb/json-c,cubieb/json-c,Nzbuu/json-c,rgerhards/json-c,haoranzeus/json-c,PureSwift/json-c,colemancda/json-c,alagoutte/json-c,colemancda/json-c,colemancda/json-c,cubieb/json-c,PureSwift/json-c,rgerhards/json-c,haoranzeus/json-c,Nzbuu/json-c,PureSwift/json-c,alagoutte/json-c,haoranzeus/json-c,Amineahd/json-c,Amineahd/json-c
bc7d187cc0e6c65a7dcb2bff013141a4e7d776bb
Airship/Common/UAAction.h
Airship/Common/UAAction.h
/* Copyright 2009-2013 Urban Airship Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binaryform must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided withthe distribution. THIS SOFTWARE IS PROVIDED BY THE URBAN AIRSHIP INC``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL URBAN AIRSHIP INC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #import <Foundation/Foundation.h> @interface UAAction : NSObject @end
/* Copyright 2009-2013 Urban Airship Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binaryform must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided withthe distribution. THIS SOFTWARE IS PROVIDED BY THE URBAN AIRSHIP INC``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL URBAN AIRSHIP INC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #import <Foundation/Foundation.h> #import "UAActionArguments.h" typedef BOOL (^UAActionPredicate)(UAActionArguments *); @interface UAAction : NSObject @end
Add action predicate block typedef
Add action predicate block typedef
C
bsd-2-clause
zhangqinghe/ios-library,ipmobiletech/ios-library,manuyavuz/ios-library,mikerowan/ios-library,grosch/ios-library,manuyavuz/ios-library,zhangqinghe/ios-library,zhangqinghe/ios-library,ipmobiletech/ios-library,mikerowan/ios-library,mikerowan/ios-library,ipmobiletech/ios-library,manuyavuz/ios-library,grosch/ios-library,grosch/ios-library
db53ac61f87f29d48ca94bce476510e619d7c0f5
MayaTypeID.h
MayaTypeID.h
#ifndef MAYATYPEID_H #define MAYATYPEID_H // Inside Maya, the type IDs are used to identify nodes and dependency graph // data. So when we create custom nodes and data in any Maya plugins, they must // all be assigned unique IDs. For any plugins that will be used outside of // Side Effects, we *must* assign globally unique IDs. However, for plugins // that are only used internally inside Side Effects, we could assign the // "internal IDs" (0x0 - 0x7ffff). // Some important notes from the Maya SDK docs: // - In Maya, both intrinsic and user-defined Maya Objects are registered // and recognized by their type identifier or type id. // - It is very important to note that these ids are written into the Maya // binary file format. So, once an id is assigned to a node or data type it // can never be changed while any existing Maya file contains an instance // of that node or data type. If a change is made, such files will become // unreadable. // - For plug-ins that will forever be internal to your site use the // constructor that takes a single unsigned int parameter. The numeric // range 0 - 0x7ffff (524288 ids) has been reserved for such plug-ins. // For more information on these IDs, please refer to the documentation for // MTypeId in the Maya SDK. // Globally unique IDs assigned to Side Effects: // - 0x0011E240 - 0x0011E2BF : 128 IDs requested by Andrew Wong on 2013-07-17 13:55 // More IDs can be requested through the Autodesk Developer Network. // Globally unique IDs being used by Side Effects enum MayaTypeID { }; #endif
Add header file for tracking our Maya type IDs
Add header file for tracking our Maya type IDs
C
mit
pokyfudywise/HoudiniEngineForMaya,sonictk/HoudiniEngineForMaya,sideeffects/HoudiniEngineForMaya,sideeffects/HoudiniEngineForMaya,sonictk/HoudiniEngineForMaya,pokyfudywise/HoudiniEngineForMaya,sonictk/HoudiniEngineForMaya,pokyfudywise/HoudiniEngineForMaya,sideeffects/HoudiniEngineForMaya
f00ed4ca920b0150979a83ad513766481ba2f845
api-testcases/test-dev-prototype-loop.c
api-testcases/test-dev-prototype-loop.c
/* * Prototype loop is tricky to handle internally and must not cause e.g. * GC failures. Exercise a few common paths. */ /*=== *** test_1 (duk_safe_call) first gc make unreachable second gc ==> rc=0, result='undefined' ===*/ static duk_ret_t test_1(duk_context *ctx) { duk_push_object(ctx); duk_push_object(ctx); duk_dup(ctx, 0); duk_set_prototype(ctx, 1); duk_dup(ctx, 1); duk_set_prototype(ctx, 0); /* Both objects are now in a prototype loop. Force garbage * collection to ensure nothing breaks. */ printf("first gc\n"); fflush(stdout); duk_gc(ctx, 0); /* Make the objects unreachable and re-run GC. This triggers * e.g. finalizer checks. */ printf("make unreachable\n"); fflush(stdout); duk_set_top(ctx, 0); printf("second gc\n"); fflush(stdout); duk_gc(ctx, 0); return 0; } void test(duk_context *ctx) { TEST_SAFE_CALL(test_1); }
Add an API testcase for prototype loop and GC
Add an API testcase for prototype loop and GC
C
mit
thurday/duktape,skomski/duktape,reqshark/duktape,svaarala/duktape,zeropool/duktape,eddieh/duktape,jmptrader/duktape,rwaldron/duktape,reqshark/duktape,rwaldron/duktape,chenyaqiuqiu/duktape,jmptrader/duktape,chenyaqiuqiu/duktape,rwaldron/duktape,haosu1987/duktape,svaarala/duktape,svaarala/duktape,eddieh/duktape,pombredanne/duktape,nivertech/duktape,haosu1987/duktape,eddieh/duktape,skomski/duktape,thurday/duktape,kphillisjr/duktape,tassmjau/duktape,tassmjau/duktape,svaarala/duktape,markand/duktape,chenyaqiuqiu/duktape,harold-b/duktape,pombredanne/duktape,harold-b/duktape,thurday/duktape,haosu1987/duktape,daimajia/duktape,tassmjau/duktape,jmptrader/duktape,pombredanne/duktape,nivertech/duktape,sloth4413/duktape,jmptrader/duktape,haosu1987/duktape,chenyaqiuqiu/duktape,thurday/duktape,markand/duktape,haosu1987/duktape,zeropool/duktape,jmptrader/duktape,harold-b/duktape,kphillisjr/duktape,svaarala/duktape,reqshark/duktape,harold-b/duktape,skomski/duktape,sloth4413/duktape,harold-b/duktape,zeropool/duktape,markand/duktape,kphillisjr/duktape,eddieh/duktape,skomski/duktape,harold-b/duktape,reqshark/duktape,sloth4413/duktape,reqshark/duktape,jmptrader/duktape,eddieh/duktape,zeropool/duktape,nivertech/duktape,haosu1987/duktape,pombredanne/duktape,chenyaqiuqiu/duktape,reqshark/duktape,nivertech/duktape,rwaldron/duktape,jmptrader/duktape,pombredanne/duktape,daimajia/duktape,harold-b/duktape,thurday/duktape,kphillisjr/duktape,tassmjau/duktape,rwaldron/duktape,tassmjau/duktape,sloth4413/duktape,harold-b/duktape,markand/duktape,daimajia/duktape,pombredanne/duktape,zeropool/duktape,tassmjau/duktape,skomski/duktape,tassmjau/duktape,thurday/duktape,zeropool/duktape,kphillisjr/duktape,zeropool/duktape,daimajia/duktape,svaarala/duktape,chenyaqiuqiu/duktape,skomski/duktape,chenyaqiuqiu/duktape,svaarala/duktape,markand/duktape,markand/duktape,chenyaqiuqiu/duktape,markand/duktape,zeropool/duktape,sloth4413/duktape,zeropool/duktape,thurday/duktape,eddieh/duktape,tassmjau/duktape,kphillisjr/duktape,markand/duktape,eddieh/duktape,sloth4413/duktape,nivertech/duktape,jmptrader/duktape,eddieh/duktape,tassmjau/duktape,svaarala/duktape,nivertech/duktape,thurday/duktape,zeropool/duktape,haosu1987/duktape,reqshark/duktape,haosu1987/duktape,markand/duktape,pombredanne/duktape,pombredanne/duktape,nivertech/duktape,haosu1987/duktape,rwaldron/duktape,haosu1987/duktape,sloth4413/duktape,harold-b/duktape,daimajia/duktape,kphillisjr/duktape,thurday/duktape,nivertech/duktape,sloth4413/duktape,nivertech/duktape,nivertech/duktape,kphillisjr/duktape,reqshark/duktape,eddieh/duktape,tassmjau/duktape,skomski/duktape,skomski/duktape,skomski/duktape,thurday/duktape,sloth4413/duktape,sloth4413/duktape,eddieh/duktape,harold-b/duktape,markand/duktape,reqshark/duktape,pombredanne/duktape,jmptrader/duktape,daimajia/duktape,kphillisjr/duktape,skomski/duktape,reqshark/duktape,chenyaqiuqiu/duktape,kphillisjr/duktape,pombredanne/duktape,svaarala/duktape,jmptrader/duktape,chenyaqiuqiu/duktape
65788a4fd0699c3ed06bdd314ad1a8d5de5a6a3c
tutorial/clock.h
tutorial/clock.h
// A current_time function for use in the tests. Returns time in // milliseconds. #ifdef _WIN32 extern "C" bool QueryPerformanceCounter(uint64_t *); extern "C" bool QueryPerformanceFrequency(uint64_t *); double current_time() { uint64_t t, freq; QueryPerformanceCounter(&t); QueryPerformanceFrequency(&freq); return (t * 1000.0) / freq; } #else #include <sys/time.h> double current_time() { static bool first_call = true; static timeval reference_time; if (first_call) { first_call = false; gettimeofday(&reference_time, NULL); return 0.0; } else { timeval t; gettimeofday(&t, NULL); return ((t.tv_sec - reference_time.tv_sec)*1000.0 + (t.tv_usec - reference_time.tv_usec)/1000.0); } } #endif
// A current_time function for use in the tests. Returns time in // milliseconds. #ifdef _WIN32 #include <Windows.h> double current_time() { LARGE_INTEGER freq, t; QueryPerformanceCounter(&t); QueryPerformanceFrequency(&freq); return (t.QuadPart * 1000.0) / freq.QuadPart; } // Gross, these come from Windows.h #undef max #undef min #else #include <sys/time.h> double current_time() { static bool first_call = true; static timeval reference_time; if (first_call) { first_call = false; gettimeofday(&reference_time, NULL); return 0.0; } else { timeval t; gettimeofday(&t, NULL); return ((t.tv_sec - reference_time.tv_sec)*1000.0 + (t.tv_usec - reference_time.tv_usec)/1000.0); } } #endif
Fix build of tutorials that require libpng under Visual Studio.
Fix build of tutorials that require libpng under Visual Studio.
C
mit
adasworks/Halide,ronen/Halide,smxlong/Halide,rodrigob/Halide,adasworks/Halide,mcanthony/Halide,myrtleTree33/Halide,lglucin/Halide,myrtleTree33/Halide,dougkwan/Halide,damienfir/Halide,fengzhyuan/Halide,dan-tull/Halide,ronen/Halide,lglucin/Halide,adasworks/Halide,aam/Halide,adasworks/Halide,ayanazmat/Halide,myrtleTree33/Halide,dan-tull/Halide,dougkwan/Halide,delcypher/Halide,kenkuang1213/Halide,dougkwan/Halide,rodrigob/Halide,ronen/Halide,fengzhyuan/Halide,kenkuang1213/Halide,fengzhyuan/Halide,mcanthony/Halide,lglucin/Halide,delcypher/Halide,aam/Halide,fengzhyuan/Halide,dan-tull/Halide,mcanthony/Halide,adasworks/Halide,rodrigob/Halide,kgnk/Halide,rodrigob/Halide,dan-tull/Halide,tdenniston/Halide,delcypher/Halide,psuriana/Halide,ronen/Halide,dougkwan/Halide,dan-tull/Halide,tdenniston/Halide,psuriana/Halide,kgnk/Halide,kenkuang1213/Halide,jiawen/Halide,rodrigob/Halide,tdenniston/Halide,ayanazmat/Halide,aam/Halide,mcanthony/Halide,smxlong/Halide,mcanthony/Halide,ayanazmat/Halide,delcypher/Halide,tdenniston/Halide,lglucin/Halide,dougkwan/Halide,delcypher/Halide,lglucin/Halide,lglucin/Halide,damienfir/Halide,psuriana/Halide,smxlong/Halide,lglucin/Halide,dan-tull/Halide,kgnk/Halide,mcanthony/Halide,jiawen/Halide,kenkuang1213/Halide,jiawen/Halide,smxlong/Halide,kenkuang1213/Halide,fengzhyuan/Halide,delcypher/Halide,adasworks/Halide,smxlong/Halide,damienfir/Halide,psuriana/Halide,psuriana/Halide,jiawen/Halide,fengzhyuan/Halide,mcanthony/Halide,jiawen/Halide,ayanazmat/Halide,ayanazmat/Halide,myrtleTree33/Halide,tdenniston/Halide,aam/Halide,aam/Halide,ayanazmat/Halide,jiawen/Halide,dan-tull/Halide,ronen/Halide,jiawen/Halide,ronen/Halide,adasworks/Halide,psuriana/Halide,dougkwan/Halide,dougkwan/Halide,smxlong/Halide,myrtleTree33/Halide,mcanthony/Halide,rodrigob/Halide,tdenniston/Halide,ronen/Halide,tdenniston/Halide,kgnk/Halide,adasworks/Halide,damienfir/Halide,dougkwan/Halide,fengzhyuan/Halide,tdenniston/Halide,damienfir/Halide,aam/Halide,damienfir/Halide,delcypher/Halide,myrtleTree33/Halide,psuriana/Halide,damienfir/Halide,kenkuang1213/Halide,delcypher/Halide,ayanazmat/Halide,ronen/Halide,dan-tull/Halide,ayanazmat/Halide,myrtleTree33/Halide,kgnk/Halide,kenkuang1213/Halide,smxlong/Halide,kenkuang1213/Halide,rodrigob/Halide,myrtleTree33/Halide,kgnk/Halide,fengzhyuan/Halide,kgnk/Halide,aam/Halide,kgnk/Halide,rodrigob/Halide,damienfir/Halide,smxlong/Halide
f0c28aef43470a27ef2bd5956e6591889f91e45a
textdocument/lib/grantlee_textdocument.h
textdocument/lib/grantlee_textdocument.h
/* This file is part of Grantlee. Copyright (c) 2011 Stephen Kelly <[email protected]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Licence, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library. If not, see <http://www.gnu.org/licenses/>. */ #ifndef GRANTLEE_TEXTDOCUMENT_H #define GRANTLEE_TEXTDOCUMENT_H #include "grantlee/abstractmarkupbuilder.h" #include "grantlee/bbcodebuilder.h" #include "grantlee/markupdirector.h" #include "grantlee/plaintextmarkupbuilder.h" #include "grantlee/texthtmlbuilder.h" #include "grantlee/mediawikimarkupbuilder.h" #include "grantlee/grantlee_gui_export.h" #endif
Add a convenience header for the textdocument library.
Add a convenience header for the textdocument library.
C
lgpl-2.1
simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee
1ba9652ba371664b386a06fe055bf6d5263c1494
libraries/FreeIMU/calibrationAPM.h
libraries/FreeIMU/calibrationAPM.h
/** * FreeIMU calibration header. Automatically generated by FreeIMU_GUI. * Do not edit manually unless you know what you are doing. */ #define CALIBRATION_H const int acc_off_x = 426; const int acc_off_y = -141; const int acc_off_z = -540; const float acc_scale_x = 16255.420145; const float acc_scale_y = 16389.952315; const float acc_scale_z = 16598.537030; const int magn_off_x = 222; const int magn_off_y = -190; const int magn_off_z = -67; const float magn_scale_x = 488.787511; const float magn_scale_y = 513.264462; const float magn_scale_z = 434.896123;
Backup of APM 2.5.2 calibration file
Backup of APM 2.5.2 calibration file
C
mit
tokk250/FreeIMU-Updates,mjs513/FreeIMU-Updates,bmweller/FreeIMU-Updates,tokk250/FreeIMU-Updates,mjs513/FreeIMU-Updates,tokk250/FreeIMU-Updates,tokk250/FreeIMU-Updates,bmweller/FreeIMU-Updates,tokk250/FreeIMU-Updates,tokk250/FreeIMU-Updates,mjs513/FreeIMU-Updates,tokk250/FreeIMU-Updates,mjs513/FreeIMU-Updates,bmweller/FreeIMU-Updates,bmweller/FreeIMU-Updates,mjs513/FreeIMU-Updates,mjs513/FreeIMU-Updates,mjs513/FreeIMU-Updates,tokk250/FreeIMU-Updates,mjs513/FreeIMU-Updates,bmweller/FreeIMU-Updates,bmweller/FreeIMU-Updates,bmweller/FreeIMU-Updates,bmweller/FreeIMU-Updates
88238b76084bb7d7e5f2c54a0b4fc56b446af1c4
src/page_freelist.c
src/page_freelist.c
#include "redislite.h" #include "page_string.h" #include "util.h" #include <string.h> #include <stdlib.h> #include <math.h> void redislite_free_freelist(void *_db, void *_page) { redislite_page_string* page = (redislite_page_string*)_page; if (page == NULL) return; redislite_free(page); } void redislite_write_freelist(void *_db, unsigned char *data, void *_page) { redislite *db = (redislite*)_db; redislite_page_string* page = (redislite_page_string*)_page; if (page == NULL) return; data[0] = REDISLITE_PAGE_TYPE_FREELIST; redislite_put_4bytes(&data[1], 0); // reserverd redislite_put_4bytes(&data[5], page->right_page); int size = db->page_size-9; memset(&data[9], 0, size); } void *redislite_read_freelist(void *_db, unsigned char *data) { redislite_page_string* page = redislite_malloc(sizeof(redislite_page_string)); page->right_page = redislite_get_4bytes(&data[5]); return page; }
#include "redislite.h" #include "page_string.h" #include "util.h" #include <string.h> #include <stdlib.h> #include <math.h> void redislite_free_freelist(void *_db, void *_page) { redislite_page_string* page = (redislite_page_string*)_page; if (page == NULL) return; redislite_free(page); } void redislite_write_freelist(void *_db, unsigned char *data, void *_page) { redislite *db = (redislite*)_db; redislite_page_string* page = (redislite_page_string*)_page; if (page == NULL) return; redislite_put_4bytes(&data[0], 0); // reserverd redislite_put_4bytes(&data[4], page->right_page); int size = db->page_size-8; memset(&data[8], 0, size); } void *redislite_read_freelist(void *_db, unsigned char *data) { redislite_page_string* page = redislite_malloc(sizeof(redislite_page_string)); page->right_page = redislite_get_4bytes(&data[8]); return page; }
Remove unused byte in freelist
Remove unused byte in freelist
C
bsd-2-clause
pombredanne/redislite,seppo0010/redislite,pombredanne/redislite,seppo0010/redislite
ae2abc0bda94fd1e626223d3ee25e5dc21e94c00
orc/orconce.c
orc/orconce.c
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <orc/orconce.h> #include <orc/orcdebug.h> #if defined(HAVE_THREAD_PTHREAD) #include <pthread.h> static pthread_mutex_t once_mutex = PTHREAD_MUTEX_INITIALIZER; void _orc_once_init (void) { } void orc_once_mutex_lock (void) { pthread_mutex_lock (&once_mutex); } void orc_once_mutex_unlock (void) { pthread_mutex_unlock (&once_mutex); } #elif defined(HAVE_THREAD_WIN32) #include <windows.h> static CRITICAL_SECTION once_mutex; void _orc_once_init (void) { InitializeCriticalSection (&once_mutex); } void orc_once_mutex_lock (void) { EnterCriticalSection (&once_mutex); } void orc_once_mutex_unlock (void) { LeaveCriticalSection (&once_mutex); } #else void _orc_once_init (void) { } void orc_once_mutex_lock (void) { } void orc_once_mutex_unlock (void) { } #endif
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <orc/orconce.h> #include <orc/orcdebug.h> #if defined(HAVE_THREAD_PTHREAD) #include <pthread.h> static pthread_mutex_t once_mutex = PTHREAD_MUTEX_INITIALIZER; void _orc_once_init (void) { } void orc_once_mutex_lock (void) { pthread_mutex_lock (&once_mutex); } void orc_once_mutex_unlock (void) { pthread_mutex_unlock (&once_mutex); } #elif defined(HAVE_THREAD_WIN32) #include <windows.h> static CRITICAL_SECTION once_mutex; void _orc_once_init (void) { } void orc_once_mutex_lock (void) { EnterCriticalSection (&once_mutex); } void orc_once_mutex_unlock (void) { LeaveCriticalSection (&once_mutex); } int DllMain (HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) { if (dwReason == DLL_PROCESS_ATTACH) { InitializeCriticalSection (&once_mutex); } return 1; } #else void _orc_once_init (void) { } void orc_once_mutex_lock (void) { } void orc_once_mutex_unlock (void) { } #endif
Fix initialization of once mutex
win32: Fix initialization of once mutex
C
bsd-3-clause
okuoku/nmosh-orc,MOXfiles/orc,okuoku/nmosh-orc,jpakkane/orc,MOXfiles/orc,mojaves/orc,Distrotech/orc,Distrotech/orc,Distrotech/orc,ahmedammar/platform_external_gst_liborc,mojaves/orc,okuoku/nmosh-orc,ahmedammar/platform_external_gst_liborc,ijsf/OpenWebRTC-orc,jpakkane/orc,jpakkane/orc,mojaves/orc,ijsf/OpenWebRTC-orc,ijsf/OpenWebRTC-orc,MOXfiles/orc
7c18a18a5f79a27f52f80921a7b1f666407da6ff
third_party/hwloc/static-components.h
third_party/hwloc/static-components.h
/* Copyright 2019 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef THIRD_PARTY_HWLOC_STATIC_COMPONENTS_H_ #define THIRD_PARTY_HWLOC_STATIC_COMPONENTS_H_ #include <private/internal-components.h> static const struct hwloc_component* hwloc_static_components[] = { &hwloc_noos_component, &hwloc_xml_component, &hwloc_synthetic_component, &hwloc_xml_nolibxml_component, &hwloc_linux_component, &hwloc_linuxio_component, #ifdef PLATFORM_IS_X86 &hwloc_x86_component, #endif NULL}; #endif // THIRD_PARTY_HWLOC_STATIC_COMPONENTS_H_
/* Copyright 2019 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 agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef THIRD_PARTY_HWLOC_STATIC_COMPONENTS_H_ #define THIRD_PARTY_HWLOC_STATIC_COMPONENTS_H_ #include <private/internal-components.h> static const struct hwloc_component* hwloc_static_components[] = { &hwloc_noos_component, &hwloc_xml_component, &hwloc_synthetic_component, &hwloc_xml_nolibxml_component, &hwloc_linux_component, &hwloc_linuxio_component, #if defined(__x86_64__) || defined(__amd64__) || defined(_M_IX86) || \ defined(_M_X64) &hwloc_x86_component, #endif NULL}; #endif // THIRD_PARTY_HWLOC_STATIC_COMPONENTS_H_
Include all x86 defines macros for hwloc
Include all x86 defines macros for hwloc Copied from tensorflow/core/platform/platform.h#L59 Look for both gcc/clang and Visual Studio macros indicating we're compiling for an x86 device.
C
apache-2.0
adit-chandra/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,ageron/tensorflow,annarev/tensorflow,gautam1858/tensorflow,arborh/tensorflow,kevin-coder/tensorflow-fork,xzturn/tensorflow,tensorflow/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,kevin-coder/tensorflow-fork,cxxgtxy/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,annarev/tensorflow,gautam1858/tensorflow,Intel-Corporation/tensorflow,ageron/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,alsrgv/tensorflow,alsrgv/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,aldian/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow,jbedorf/tensorflow,theflofly/tensorflow,frreiss/tensorflow-fred,sarvex/tensorflow,kevin-coder/tensorflow-fork,ghchinoy/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,adit-chandra/tensorflow,xzturn/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,theflofly/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,ghchinoy/tensorflow,alsrgv/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ppwwyyxx/tensorflow,DavidNorman/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,karllessard/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,Intel-Corporation/tensorflow,karllessard/tensorflow,jbedorf/tensorflow,frreiss/tensorflow-fred,arborh/tensorflow,chemelnucfin/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,theflofly/tensorflow,aam-at/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,xzturn/tensorflow,petewarden/tensorflow,jhseu/tensorflow,adit-chandra/tensorflow,jbedorf/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,yongtang/tensorflow,kevin-coder/tensorflow-fork,adit-chandra/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,Intel-Corporation/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,jbedorf/tensorflow,adit-chandra/tensorflow,ageron/tensorflow,jbedorf/tensorflow,alsrgv/tensorflow,jhseu/tensorflow,Intel-Corporation/tensorflow,DavidNorman/tensorflow,theflofly/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,annarev/tensorflow,jhseu/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,ghchinoy/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,renyi533/tensorflow,karllessard/tensorflow,aam-at/tensorflow,ageron/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,yongtang/tensorflow,arborh/tensorflow,gunan/tensorflow,tensorflow/tensorflow,jhseu/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,kevin-coder/tensorflow-fork,ageron/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,ppwwyyxx/tensorflow,jbedorf/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,arborh/tensorflow,adit-chandra/tensorflow,chemelnucfin/tensorflow,adit-chandra/tensorflow,theflofly/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,jbedorf/tensorflow,alsrgv/tensorflow,chemelnucfin/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,annarev/tensorflow,DavidNorman/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,gunan/tensorflow,freedomtan/tensorflow,ghchinoy/tensorflow,ppwwyyxx/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,aldian/tensorflow,chemelnucfin/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-experimental_link_static_libraries_once,ppwwyyxx/tensorflow,gunan/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,petewarden/tensorflow,Intel-Corporation/tensorflow,ghchinoy/tensorflow,petewarden/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,kevin-coder/tensorflow-fork,alsrgv/tensorflow,jbedorf/tensorflow,theflofly/tensorflow,gunan/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,alsrgv/tensorflow,alsrgv/tensorflow,gunan/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,jhseu/tensorflow,jbedorf/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,arborh/tensorflow,petewarden/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,theflofly/tensorflow,arborh/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,ageron/tensorflow,freedomtan/tensorflow,theflofly/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,arborh/tensorflow,xzturn/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,sarvex/tensorflow,chemelnucfin/tensorflow,ppwwyyxx/tensorflow,ghchinoy/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,chemelnucfin/tensorflow,renyi533/tensorflow,theflofly/tensorflow,gautam1858/tensorflow,theflofly/tensorflow,sarvex/tensorflow,ageron/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,ghchinoy/tensorflow,gautam1858/tensorflow,chemelnucfin/tensorflow,aldian/tensorflow,aam-at/tensorflow,alsrgv/tensorflow,aldian/tensorflow,aldian/tensorflow,gunan/tensorflow,renyi533/tensorflow,ageron/tensorflow,paolodedios/tensorflow,annarev/tensorflow,arborh/tensorflow,chemelnucfin/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,gunan/tensorflow,karllessard/tensorflow,gunan/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ageron/tensorflow,annarev/tensorflow,gautam1858/tensorflow,gunan/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,alsrgv/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,ageron/tensorflow,theflofly/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,theflofly/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,aldian/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,ghchinoy/tensorflow,yongtang/tensorflow,cxxgtxy/tensorflow,ghchinoy/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,kevin-coder/tensorflow-fork,ageron/tensorflow,gunan/tensorflow,gautam1858/tensorflow,aldian/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,kevin-coder/tensorflow-fork,renyi533/tensorflow,ppwwyyxx/tensorflow,annarev/tensorflow,yongtang/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,annarev/tensorflow,jhseu/tensorflow,renyi533/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,kevin-coder/tensorflow-fork,Intel-tensorflow/tensorflow,ageron/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,gunan/tensorflow,sarvex/tensorflow,arborh/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ppwwyyxx/tensorflow,kevin-coder/tensorflow-fork,arborh/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,chemelnucfin/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,frreiss/tensorflow-fred,jbedorf/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow
f9aaf858f4c83e5ec436aa98e57da8f63b0f64d0
Masonry/MASCompositeConstraint.h
Masonry/MASCompositeConstraint.h
// // MASCompositeConstraint.h // Masonry // // Created by Jonas Budelmann on 21/07/13. // Copyright (c) 2013 cloudling. All rights reserved. // #import "MASConstraint.h" #import "MASUtilities.h" /** * A group of MASConstraint objects * conforms to MASConstraint */ @interface MASCompositeConstraint : NSObject <MASConstraint> /** * Creates a composite with a predefined array of children * * @param view first item view * @param children child MASConstraints * * @return a composite constraint */ - (id)initWithChildren:(NSArray *)children; @end
// // MASCompositeConstraint.h // Masonry // // Created by Jonas Budelmann on 21/07/13. // Copyright (c) 2013 cloudling. All rights reserved. // #import "MASConstraint.h" #import "MASUtilities.h" /** * A group of MASConstraint objects * conforms to MASConstraint */ @interface MASCompositeConstraint : NSObject <MASConstraint> /** * Creates a composite with a predefined array of children * * @param children child MASConstraints * * @return a composite constraint */ - (id)initWithChildren:(NSArray *)children; @end
Remove non-existent 'view' parameter documentation
Remove non-existent 'view' parameter documentation This was causing a warning when compiling with `-Wdocumentation` enabled.
C
mit
Lightricks/Masonry,connyliu/Masonry,mainXbegin/MyRepository,linlin5910/Masonry,MoMoWan/Masonry,Shawn-WangDapeng/Masonry,jianwoo/Masonry,fhchina/Masonry,HuylensHu/Masonry,mainXbegin/MyRepository,CoderJason1992/Masonry,LiDechao/Masonry,saberChen/Masonry,k131050059/Masonry,xswm1123/Masonry,k214k/Masonry,MoMoWan/Masonry,lixiaohu1990/Masonry,hugo-/Masonry,tianxiao12345/Masonry,xujiyao123/Masonry,xtcmoons/Masonry,Pingco/Masonry,xujiyao123/Masonry,mumer92/Masonry,takeshineshiro/Masonry,xswm1123/Masonry,iwill/Masonry,lzhao18/Masonry,liufeigit/Masonry,LeeLovCY/Masonry,kjiwu/Masonry,wanglongshuai/Masonry,emalwb/Masonry,liufeigit/Masonry,Eveian/Masonry,kjiwu/Masonry,threeWolf/Masonry,DeveloperFan/Masonry,johnmyqin/Masonry,CoderJason1992/Masonry,zhmios/myzidongbuju,623049115/Masonry,fuzhiqiang1989/Masonry,LeeLovCY/Masonry,k214k/Masonry,ramoslin02/Masonry,12207480/Masonry,DevSonw/Masonry,lzhao18/Masonry,yaoxiaoyong/Masonry,iousms/Masonry,mumer92/Masonry,gengjf/Masonry,iousms/Masonry,lujianwenance/Masonry,Gabriel0402/Masonry,ChetanGandhi/Masonry,SpruceHealth/Masonry,Joneze/Masonry,lixiaohu1990/Masonry,Steven-A3/Masonry,orange5/Masonry,wangshengguo/Masonry,lijie121210/Masonry,zht415/Masonry,kovpas/Masonry,CraigSiemens/Masonry,Pingco/Masonry,linchen1987/Masonry,LiDechao/Masonry,DevSonw/Masonry,wangshengguo/Masonry,canyu9512/Masonry,JeffreyGuoHb/Masonry,white-moonlight/Masonry,Calvin-wang/Masonry,moqyuan/Masonry,shaohung001/Masonry,ramoslin02/Masonry,shuxiashusheng/Masonry,milanpanchal/Masonry,liuchungui/Masonry,Eveian/Masonry,carinofan/Masonry,imjerrybao/Masonry,zhmios/myzidongbuju,12207480/Masonry,280482431/Masonry,HackRoy/Masonry,k131050059/Masonry,zhengfuzhe2013/Masonry-1,scottdinggo/Masonry,CNMrGoat/Masonry-1,milanpanchal/Masonry,MenZil/Masonry,HuylensHu/Masonry,canyu9512/Masonry,OnTheWay1988/Masonry,TornadoBack/Masonry,Forfre/Masonry,DeveloperFan/Masonry,xuzhenguo/Masonry,jianwoo/Masonry,tianxiao12345/Masonry,DevSonw/Masonry,imjerrybao/Masonry,MenZil/Masonry,lujianwenance/Masonry,zinthemoney/Masonry,liuchungui/Masonry,yaoxiaoyong/Masonry,moqyuan/Masonry,shaohung001/Masonry,shnuzxw/Masonry,623049115/Masonry,sandyway/Masonry,HarrisLee/Masonry,623049115/Masonry,dachaoisme/Masonry,threeWolf/Masonry,emalwb/Masonry,xuzhenguo/Masonry,yanchaoGan/Masonry,loiwu/Masonry,hugo-/Masonry,connyliu/Masonry,MoMoWan/Masonry,GhostClock/Masonry,JeffreyGuoHb/Masonry,Ray0218/Masonry,icepy/Masonry,carinofan/Masonry,shaohung001/Masonry,CNMrGoat/Masonry-1,tianxiao12345/Masonry,dahuilang1226/Masonry,connyliu/Masonry,lmtim/Masonry,heeween/Masonry,onlylin/Masonry,lijie121210/Masonry,heeween/Masonry,CoderJason1992/Masonry,fuzhiqiang1989/Masonry,hwsyy/Masonry,dungeonsnd/Masonry,mainXbegin/MyRepository,d191562687/Masonry,yq616775291/Masonry,d191562687/Masonry,zhengfuzhe2013/Masonry-1,zinthemoney/Masonry,cnbin/Masonry,yanghonglin/Masonry,arnaudWasappli/Masonry,g24635381/Masonry,hugo-/Masonry,littledogboy/Masonry,linlin5910/Masonry,gank0326/autolayout,280482431/Masonry,shuxiashusheng/Masonry,KeyJohn/Masonry,d191562687/Masonry,OnTheWay1988/Masonry,white-moonlight/Masonry,shnuzxw/Masonry,Chunyulo/Masonry,fhchina/Masonry,emodeqidao/Masonry,futurechallenger/Masonry,xingfukun/Masonry,lijie121210/Masonry,linchen1987/Masonry,OnTheWay1988/Masonry,dachaoisme/Masonry,saberChen/Masonry,moqyuan/Masonry,Roeun/Masonry,CraigSiemens/Masonry,emalwb/Masonry,white-moonlight/Masonry,Roeun/Masonry,280482431/Masonry,litt1e-p/Masonry,onlylin/Masonry,shuxiashusheng/Masonry,Ray0218/Masonry,XcodeTalk/Masonry,sandyway/Masonry,iwill/Masonry,shnuzxw/Masonry,zht415/Masonry,xiaobudiu/Masonry,imjerrybao/Masonry,HackRoy/Masonry,add715/Masonry,icepy/Masonry,yanchaoGan/Masonry,chieryw/Masonry,1yvT0s/Masonry,Gabriel0402/Masonry,cnbin/Masonry,stevenxiaoyang/Masonry,dake/Masonry,dahuilang1226/Masonry,ChetanGandhi/Masonry,lmtim/Masonry,Mailburn/Masonry,stevenxiaoyang/Masonry,various/Masonry,wangjun59/Masonry,yq616775291/Masonry,stevenxiaoyang/Masonry,Joneze/Masonry,lmtim/Masonry,orange5/Masonry,maokebing/Masonry,jianwoo/Masonry,LiDechao/Masonry,Gabriel0402/Masonry,emodeqidao/Masonry,gengjf/Masonry,littledogboy/Masonry,chieryw/Masonry,Kevin775263419/Masonry,Steven-A3/Masonry,liuchungui/Masonry,Mailburn/Masonry,hao-hua/Masonry,Steven-A3/Masonry,GhostClock/Masonry,various/Masonry,xtcmoons/Masonry,Kevin775263419/Masonry,HqRaining78/Masonry,loiwu/Masonry,hwsyy/Masonry,wangjun59/Masonry,linchen1987/Masonry,ramoslin02/Masonry,add715/Masonry,maokebing/Masonry,wangjun59/Masonry,Mailburn/Masonry,loiwu/Masonry,litt1e-p/Masonry,icepy/Masonry,rectinajh/Masonry,roy0914/Masonry,xb123456456/Masonry,zuojx1013/Masonry,rectinajh/Masonry,arnaudWasappli/Masonry,maokebing/Masonry,HarrisLee/Masonry,HqRaining78/Masonry,Shawn-WangDapeng/Masonry,LeeLovCY/Masonry,zuojx1013/Masonry,leelili/Masonry,12207480/Masonry,k131050059/Masonry,futurechallenger/Masonry,yanghonglin/Masonry,CNMrGoat/Masonry-1,mumer92/Masonry,dungeonsnd/Masonry,Forfre/Masonry,xuzhenguo/Masonry,yaoxiaoyong/Masonry,GhostClock/Masonry,fuzhiqiang1989/Masonry,xb123456456/Masonry,SnapKit/Masonry,Shawn-WangDapeng/Masonry,dake/Masonry,kovpas/Masonry,Lightricks/Masonry,heeween/Masonry,Calvin-wang/Masonry,yanghonglin/Masonry,scottdinggo/Masonry,littleniu/Masonry,Chunyulo/Masonry,SnapKit/Masonry,xujiyao123/Masonry,xswm1123/Masonry,TornadoBack/Masonry,hwsyy/Masonry,zinthemoney/Masonry,gank0326/autolayout,wanglongshuai/Masonry,Roeun/Masonry,CraigSiemens/Masonry,moneytree/Masonry,j364960953/Masonry,Joneze/Masonry,gank0326/autolayout,linlin5910/Masonry,lixiaohu1990/Masonry,futurechallenger/Masonry,SpruceHealth/Masonry,KeyJohn/Masonry,zhmios/myzidongbuju,moneytree/Masonry,Eveian/Masonry,1yvT0s/Masonry,liufeigit/Masonry,takeshineshiro/Masonry,chieryw/Masonry,johnmyqin/Masonry,arnaudWasappli/Masonry,johnmyqin/Masonry,gengjf/Masonry,KeyJohn/Masonry,j364960953/Masonry,roy0914/Masonry,yuanhoujun/Masonry,xiaobudiu/Masonry,zhengfuzhe2013/Masonry-1,littleniu/Masonry,Pingco/Masonry,rectinajh/Masonry,lujianwenance/Masonry,xingfukun/Masonry,HqRaining78/Masonry,leelili/Masonry,SpruceHealth/Masonry,yanchaoGan/Masonry,hao-hua/Masonry,xiaobudiu/Masonry,cnbin/Masonry,kjiwu/Masonry,saberChen/Masonry,HuylensHu/Masonry,onlylin/Masonry,littleniu/Masonry,g24635381/Masonry,xingfukun/Masonry,yuanhoujun/Masonry,wangshengguo/Masonry,sandyway/Masonry,HarrisLee/Masonry,wanglongshuai/Masonry,JeffreyGuoHb/Masonry,Kevin775263419/Masonry,add715/Masonry,1yvT0s/Masonry,j364960953/Masonry,various/Masonry,scottdinggo/Masonry,XcodeTalk/Masonry,MenZil/Masonry
b7b0436fb866c5a19769458d47c72a0d2c55f8c0
test/default/auth.c
test/default/auth.c
#define TEST_NAME "auth" #include "cmptest.h" /* "Test Case 2" from RFC 4231 */ unsigned char key[32] = "Jefe"; unsigned char c[] = "what do ya want for nothing?"; unsigned char a[32]; int main(void) { int i; crypto_auth(a,c,sizeof c - 1U,key); for (i = 0;i < 32;++i) { printf(",0x%02x",(unsigned int) a[i]); if (i % 8 == 7) printf("\n"); } assert(crypto_auth_bytes() > 0U); assert(crypto_auth_keybytes() > 0U); assert(strcmp(crypto_auth_primitive(), "hmacsha512256") == 0); return 0; }
#define TEST_NAME "auth" #include "cmptest.h" /* "Test Case 2" from RFC 4231 */ unsigned char key[32] = "Jefe"; unsigned char c[] = "what do ya want for nothing?"; unsigned char a[32]; int main(void) { int i; crypto_auth(a,c,sizeof c - 1U,key); for (i = 0;i < 32;++i) { printf(",0x%02x",(unsigned int) a[i]); if (i % 8 == 7) printf("\n"); } assert(crypto_auth_bytes() > 0U); assert(crypto_auth_keybytes() > 0U); assert(strcmp(crypto_auth_primitive(), "hmacsha512256") == 0); assert(crypto_auth_hmacsha512256_bytes() > 0U); assert(crypto_auth_hmacsha512256_keybytes() > 0U); return 0; }
Test the presence of some extra functions
Test the presence of some extra functions
C
isc
rustyhorde/libsodium,SpiderOak/libsodium,netroby/libsodium,JackWink/libsodium,Payshares/libsodium,eburkitt/libsodium,netroby/libsodium,akkakks/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,zhuqling/libsodium,rustyhorde/libsodium,pyparallel/libsodium,paragonie-scott/libsodium,eburkitt/libsodium,akkakks/libsodium,GreatFruitOmsk/libsodium,kytvi2p/libsodium,pmienk/libsodium,mvduin/libsodium,pyparallel/libsodium,akkakks/libsodium,Payshares/libsodium,mvduin/libsodium,donpark/libsodium,JackWink/libsodium,optedoblivion/android_external_libsodium,SpiderOak/libsodium,JackWink/libsodium,tml/libsodium,rustyhorde/libsodium,tml/libsodium,Payshare/libsodium,kytvi2p/libsodium,mvduin/libsodium,pyparallel/libsodium,Payshare/libsodium,eburkitt/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,HappyYang/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,zhuqling/libsodium,GreatFruitOmsk/libsodium,HappyYang/libsodium,donpark/libsodium,optedoblivion/android_external_libsodium,Payshare/libsodium,soumith/libsodium,GreatFruitOmsk/libsodium,HappyYang/libsodium,paragonie-scott/libsodium,soumith/libsodium,kytvi2p/libsodium,akkakks/libsodium,SpiderOak/libsodium,paragonie-scott/libsodium,Payshares/libsodium,SpiderOak/libsodium,optedoblivion/android_external_libsodium,netroby/libsodium,pmienk/libsodium,rustyhorde/libsodium,zhuqling/libsodium,pmienk/libsodium,tml/libsodium,donpark/libsodium,soumith/libsodium
11cce755880127565e88bd50c63c6f0b7ee6051f
clutter-gst/clutter-gst-shaders.h
clutter-gst/clutter-gst-shaders.h
#ifndef CLUTTER_GST_SHADERS_H #define CLUTTER_GST_SHADERS_H #include <clutter/clutter.h> /* Copied from test-shaders */ /* These variables are used instead of the standard GLSL variables on GLES 2 */ #ifdef COGL_HAS_GLES #define GLES2_VARS \ "precision mediump float;\n" \ "varying vec2 tex_coord;\n" \ "varying vec4 frag_color;\n" #define TEX_COORD "tex_coord" #define COLOR_VAR "frag_color" #else /* COGL_HAS_GLES */ #define GLES2_VARS "" #define TEX_COORD "gl_TexCoord[0]" #define COLOR_VAR "gl_Color" #endif /* COGL_HAS_GLES */ /* a couple of boilerplate defines that are common amongst all the * sample shaders */ #define FRAGMENT_SHADER_VARS \ GLES2_VARS /* FRAGMENT_SHADER_END: apply the changed color to the output buffer correctly * blended with the gl specified color (makes the opacity of actors work * correctly). */ #define FRAGMENT_SHADER_END \ " gl_FragColor = gl_FragColor * " COLOR_VAR ";" #endif
#ifndef CLUTTER_GST_SHADERS_H #define CLUTTER_GST_SHADERS_H #include <clutter/clutter.h> /* Copied from test-shaders */ /* These variables are used instead of the standard GLSL variables on GLES 2 */ #ifdef COGL_HAS_GLES #define GLES2_VARS \ "precision mediump float;\n" #define TEX_COORD "cogl_tex_coord_in[0]" #define COLOR_VAR "cogl_color_in" #else /* COGL_HAS_GLES */ #define GLES2_VARS "" #define TEX_COORD "gl_TexCoord[0]" #define COLOR_VAR "gl_Color" #endif /* COGL_HAS_GLES */ /* a couple of boilerplate defines that are common amongst all the * sample shaders */ #define FRAGMENT_SHADER_VARS \ GLES2_VARS /* FRAGMENT_SHADER_END: apply the changed color to the output buffer correctly * blended with the gl specified color (makes the opacity of actors work * correctly). */ #define FRAGMENT_SHADER_END \ " gl_FragColor = gl_FragColor * " COLOR_VAR ";" #endif
Update the shaders to work with Cogl 1.6.0+ and GLES2
sink: Update the shaders to work with Cogl 1.6.0+ and GLES2 The GLES2 shaders were considered private API until 1.6.0, see discussion: https://bugzilla.gnome.org/show_bug.cgi?id=661071 Let's update the variable names and depend on 1.6.0
C
lgpl-2.1
GNOME/clutter-gst,skinkie/clutter-gst,lubosz/clutter-gst,skinkie/clutter-gst,ystreet/clutter-gst,GNOME/clutter-gst,ystreet/clutter-gst,ystreet/clutter-gst,GNOME/clutter-gst,skinkie/clutter-gst,ystreet/clutter-gst,GNOME/clutter-gst,lubosz/clutter-gst,lubosz/clutter-gst
81321c880914cd7de46c1234d3cc73eaedd1350e
src/libsodium/include/sodium/utils.h
src/libsodium/include/sodium/utils.h
#ifndef __SODIUM_UTILS_H__ #define __SODIUM_UTILS_H__ #include <stddef.h> #include "export.h" #ifdef __cplusplus extern "C" { #endif #ifndef __cplusplus # define _SODIUM_C99(X) X #else # define _SODIUM_C99(X) #endif unsigned char *_sodium_alignedcalloc(unsigned char ** const unaligned_p, const size_t len); SODIUM_EXPORT void sodium_memzero(void * const pnt, const size_t len); SODIUM_EXPORT int sodium_memcmp(const void * const b1_, const void * const b2_, size_t size); SODIUM_EXPORT char *sodium_bin2hex(char * const hex, const size_t hexlen, const unsigned char *bin, const size_t binlen); #ifdef __cplusplus } #endif #endif
#ifndef __SODIUM_UTILS_H__ #define __SODIUM_UTILS_H__ #include <stddef.h> #include "export.h" #ifdef __cplusplus extern "C" { #endif #if defined(__cplusplus) || !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L # define _SODIUM_C99(X) #else # define _SODIUM_C99(X) X #endif unsigned char *_sodium_alignedcalloc(unsigned char ** const unaligned_p, const size_t len); SODIUM_EXPORT void sodium_memzero(void * const pnt, const size_t len); SODIUM_EXPORT int sodium_memcmp(const void * const b1_, const void * const b2_, size_t size); SODIUM_EXPORT char *sodium_bin2hex(char * const hex, const size_t hexlen, const unsigned char *bin, const size_t binlen); #ifdef __cplusplus } #endif #endif
Define _SODIUM_C99 as empty on retarded compilers, not only when using C++
Define _SODIUM_C99 as empty on retarded compilers, not only when using C++
C
isc
eburkitt/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,tml/libsodium,soumith/libsodium,eburkitt/libsodium,mvduin/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,zhuqling/libsodium,netroby/libsodium,pmienk/libsodium,eburkitt/libsodium,donpark/libsodium,GreatFruitOmsk/libsodium,optedoblivion/android_external_libsodium,mvduin/libsodium,SpiderOak/libsodium,rustyhorde/libsodium,kytvi2p/libsodium,HappyYang/libsodium,pmienk/libsodium,paragonie-scott/libsodium,Payshare/libsodium,akkakks/libsodium,SpiderOak/libsodium,paragonie-scott/libsodium,netroby/libsodium,JackWink/libsodium,donpark/libsodium,mvduin/libsodium,zhuqling/libsodium,akkakks/libsodium,paragonie-scott/libsodium,netroby/libsodium,pyparallel/libsodium,kytvi2p/libsodium,optedoblivion/android_external_libsodium,JackWink/libsodium,optedoblivion/android_external_libsodium,tml/libsodium,pyparallel/libsodium,Payshares/libsodium,JackWink/libsodium,Payshare/libsodium,soumith/libsodium,Payshare/libsodium,zhuqling/libsodium,donpark/libsodium,akkakks/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,pmienk/libsodium,GreatFruitOmsk/libsodium,SpiderOak/libsodium,HappyYang/libsodium,pyparallel/libsodium,SpiderOak/libsodium,kytvi2p/libsodium,HappyYang/libsodium,Payshares/libsodium,soumith/libsodium,akkakks/libsodium,tml/libsodium,rustyhorde/libsodium,GreatFruitOmsk/libsodium,rustyhorde/libsodium,Payshares/libsodium,rustyhorde/libsodium
ef1866db76ed10d64bf8cf97111554b2b2eb1278
tests/torture.c
tests/torture.c
#include "torture.h" #include <stdio.h> static int verbosity = 0; int torture_libssh_verbosity(void){ return verbosity; } int main(int argc, char **argv) { (void) argc; (void) argv; return torture_run_tests(); }
#include <stdio.h> #include <libssh/libssh.h> #include "torture.h" static int verbosity = 0; int torture_libssh_verbosity(void){ return verbosity; } int main(int argc, char **argv) { int rc; (void) argc; (void) argv; ssh_init(); rc = torture_run_tests(); ssh_finalize(); return rc; }
Call ssh_init() and ssh_finalize() before we run the tests.
tests: Call ssh_init() and ssh_finalize() before we run the tests.
C
lgpl-2.1
DouglasHeriot/libssh,DouglasHeriot/libssh,rofl0r/libssh,jt1/honeypot-libssh,kedazo/libssh,kedazo/libssh,robxu9/libssh,bigcat26/libssh-mod,rofl0r/libssh,pouete/libssh,Distrotech/libssh,elastichosts/libssh,bigcat26/libssh-mod,substack/libssh,sebadoom/libssh,bigcat26/libssh-mod,rofl0r/libssh,mwgoldsmith/ssh,substack/libssh,kedazo/libssh,rofl0r/libssh,miloj/libssh-v0.5,jahrome/libssh,taikoo/libssh,taikoo/libssh,nviennot/libssh,nviennot/libssh,wangshawn/libssh,jahrome/libssh,miloj/libssh-v0.5,mwgoldsmith/libssh,substack/libssh,wangshawn/libssh,jahrome/libssh,bigcat26/libssh-mod,jt1/honeypot-libssh,substack/libssh,Distrotech/libssh,mwgoldsmith/libssh,jahrome/libssh,elastichosts/libssh,pouete/libssh,nviennot/libssh,Distrotech/libssh,DouglasHeriot/libssh,wangshawn/libssh,pouete/libssh,mwgoldsmith/libssh,mwgoldsmith/ssh,robxu9/libssh,robxu9/libssh,DouglasHeriot/libssh,wangshawn/libssh,mwgoldsmith/ssh,nviennot/libssh,sebadoom/libssh,mwgoldsmith/ssh,Distrotech/libssh,taikoo/libssh,kedazo/libssh,jt1/honeypot-libssh,sebadoom/libssh,robxu9/libssh,elastichosts/libssh,sebadoom/libssh,mwgoldsmith/libssh,taikoo/libssh,miloj/libssh-v0.5,jt1/honeypot-libssh,pouete/libssh,miloj/libssh-v0.5
96ca48b3682489579ed8f429e964462fffa6e095
Source/core/paint/LayoutObjectDrawingRecorder.h
Source/core/paint/LayoutObjectDrawingRecorder.h
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef LayoutObjectDrawingRecorder_h #define LayoutObjectDrawingRecorder_h #include "core/layout/PaintPhase.h" #include "platform/geometry/FloatRect.h" #include "platform/geometry/LayoutRect.h" #include "platform/graphics/paint/DisplayItem.h" #include "platform/graphics/paint/DrawingRecorder.h" namespace blink { class GraphicsContext; class LayoutObject; class LayoutObjectDrawingRecorder { public: LayoutObjectDrawingRecorder(GraphicsContext& context, const LayoutObject& layoutObject, DisplayItem::Type displayItemType, const LayoutRect& clip) : m_drawingRecorder(context, layoutObject, displayItemType, pixelSnappedIntRect(clip)) { } LayoutObjectDrawingRecorder(GraphicsContext& context, const LayoutObject& layoutObject, PaintPhase phase, const FloatRect& clip) : m_drawingRecorder(context, layoutObject, DisplayItem::paintPhaseToDrawingType(phase), clip) { } LayoutObjectDrawingRecorder(GraphicsContext& context, const LayoutObject& layoutObject, DisplayItem::Type type, const FloatRect& clip) : m_drawingRecorder(context, layoutObject, type, clip) { } bool canUseCachedDrawing() const { return m_drawingRecorder.canUseCachedDrawing(); } private: DrawingRecorder m_drawingRecorder; }; } // namespace blink #endif // LayoutObjectDrawingRecorder_h
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef LayoutObjectDrawingRecorder_h #define LayoutObjectDrawingRecorder_h #include "core/layout/PaintPhase.h" #include "platform/geometry/LayoutRect.h" #include "platform/graphics/paint/DrawingRecorder.h" namespace blink { class GraphicsContext; class LayoutObject; // Convienance constructors for creating DrawingRecorders. class LayoutObjectDrawingRecorder final : public DrawingRecorder { public: LayoutObjectDrawingRecorder(GraphicsContext& context, const LayoutObject& layoutObject, DisplayItem::Type displayItemType, const LayoutRect& clip) : DrawingRecorder(context, layoutObject, displayItemType, pixelSnappedIntRect(clip)) { } LayoutObjectDrawingRecorder(GraphicsContext& context, const LayoutObject& layoutObject, PaintPhase phase, const FloatRect& clip) : DrawingRecorder(context, layoutObject, DisplayItem::paintPhaseToDrawingType(phase), clip) { } LayoutObjectDrawingRecorder(GraphicsContext& context, const LayoutObject& layoutObject, DisplayItem::Type type, const FloatRect& clip) : DrawingRecorder(context, layoutObject, type, clip) { } }; } // namespace blink #endif // LayoutObjectDrawingRecorder_h
Convert LayoutDrawingRecorder to be a simple helper of DrawingRecorder
Convert LayoutDrawingRecorder to be a simple helper of DrawingRecorder This patch makes LayoutDrawingRecorder a non-virual subclass of DrawingRecorder instead of carrying a DrawingRecorder member. This is just a cleanup and should have no observable differences. Review URL: https://codereview.chromium.org/1083223002 git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@193749 bbb929c8-8fbe-4397-9dbb-9b2b20218538
C
bsd-3-clause
smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk
3c4434c3aefc9063544bb2e0224ddc2f9b4cfea9
Modules/Core/Common/include/itkImageSourceCommon.h
Modules/Core/Common/include/itkImageSourceCommon.h
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0.txt * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *=========================================================================*/ #ifndef __itkImageSourceCommon_h #define __itkImageSourceCommon_h #include "ITKCommonExport.h" namespace itk { /** \class ImageSourceCommon * \brief Secondary base class of ImageSource common between templates * * This class provides common non-templated code which can be compiled * and used by all templated versions of ImageSource. * * This class must be inherited privately, and light-weight adapting * of methods is required for virtual methods or non-private methods * for the ImageSource interface. * * \ingroup ITKCommon */ struct ITKCommon_EXPORT ImageSourceCommon { /** * Provide access to a common static object for image region splitting */ static const ImageRegionSplitterBase* GetGlobalDefaultSplitter(void); }; } // end namespace itk #endif
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0.txt * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *=========================================================================*/ #ifndef __itkImageSourceCommon_h #define __itkImageSourceCommon_h #include "ITKCommonExport.h" #include "itkImageRegionSplitterBase.h" namespace itk { /** \class ImageSourceCommon * \brief Secondary base class of ImageSource common between templates * * This class provides common non-templated code which can be compiled * and used by all templated versions of ImageSource. * * This class must be inherited privately, and light-weight adapting * of methods is required for virtual methods or non-private methods * for the ImageSource interface. * * \ingroup ITKCommon */ struct ITKCommon_EXPORT ImageSourceCommon { /** * Provide access to a common static object for image region splitting */ static const ImageRegionSplitterBase* GetGlobalDefaultSplitter(void); }; } // end namespace itk #endif
Add missing itkImageRegionSplitterBase to ImageSourceCommon.
COMP: Add missing itkImageRegionSplitterBase to ImageSourceCommon. Change-Id: I64f5635f1605c4ce4c47d56ad6c6abcda40c130d
C
apache-2.0
malaterre/ITK,heimdali/ITK,jmerkow/ITK,spinicist/ITK,spinicist/ITK,biotrump/ITK,atsnyder/ITK,spinicist/ITK,LucHermitte/ITK,biotrump/ITK,fbudin69500/ITK,thewtex/ITK,LucHermitte/ITK,LucasGandel/ITK,spinicist/ITK,msmolens/ITK,zachary-williamson/ITK,PlutoniumHeart/ITK,hendradarwin/ITK,richardbeare/ITK,biotrump/ITK,thewtex/ITK,richardbeare/ITK,vfonov/ITK,spinicist/ITK,blowekamp/ITK,LucasGandel/ITK,stnava/ITK,fbudin69500/ITK,InsightSoftwareConsortium/ITK,BRAINSia/ITK,BRAINSia/ITK,jcfr/ITK,blowekamp/ITK,thewtex/ITK,Kitware/ITK,biotrump/ITK,LucasGandel/ITK,blowekamp/ITK,jcfr/ITK,biotrump/ITK,zachary-williamson/ITK,vfonov/ITK,heimdali/ITK,spinicist/ITK,BlueBrain/ITK,LucHermitte/ITK,BRAINSia/ITK,zachary-williamson/ITK,jmerkow/ITK,InsightSoftwareConsortium/ITK,heimdali/ITK,jcfr/ITK,spinicist/ITK,spinicist/ITK,PlutoniumHeart/ITK,InsightSoftwareConsortium/ITK,zachary-williamson/ITK,hendradarwin/ITK,hjmjohnson/ITK,InsightSoftwareConsortium/ITK,zachary-williamson/ITK,thewtex/ITK,stnava/ITK,blowekamp/ITK,atsnyder/ITK,hjmjohnson/ITK,msmolens/ITK,malaterre/ITK,fedral/ITK,jmerkow/ITK,zachary-williamson/ITK,jcfr/ITK,stnava/ITK,atsnyder/ITK,BlueBrain/ITK,InsightSoftwareConsortium/ITK,malaterre/ITK,PlutoniumHeart/ITK,jmerkow/ITK,msmolens/ITK,fbudin69500/ITK,richardbeare/ITK,ajjl/ITK,stnava/ITK,hendradarwin/ITK,malaterre/ITK,jmerkow/ITK,LucHermitte/ITK,BRAINSia/ITK,LucasGandel/ITK,LucasGandel/ITK,BlueBrain/ITK,fedral/ITK,thewtex/ITK,atsnyder/ITK,msmolens/ITK,fedral/ITK,Kitware/ITK,heimdali/ITK,PlutoniumHeart/ITK,malaterre/ITK,blowekamp/ITK,fedral/ITK,stnava/ITK,fbudin69500/ITK,atsnyder/ITK,PlutoniumHeart/ITK,hjmjohnson/ITK,ajjl/ITK,stnava/ITK,zachary-williamson/ITK,vfonov/ITK,PlutoniumHeart/ITK,richardbeare/ITK,heimdali/ITK,heimdali/ITK,thewtex/ITK,PlutoniumHeart/ITK,ajjl/ITK,ajjl/ITK,hjmjohnson/ITK,zachary-williamson/ITK,jmerkow/ITK,vfonov/ITK,fedral/ITK,hendradarwin/ITK,heimdali/ITK,LucHermitte/ITK,hjmjohnson/ITK,Kitware/ITK,InsightSoftwareConsortium/ITK,hendradarwin/ITK,richardbeare/ITK,LucHermitte/ITK,blowekamp/ITK,LucasGandel/ITK,stnava/ITK,fbudin69500/ITK,BRAINSia/ITK,stnava/ITK,malaterre/ITK,BRAINSia/ITK,thewtex/ITK,jcfr/ITK,LucHermitte/ITK,ajjl/ITK,spinicist/ITK,atsnyder/ITK,msmolens/ITK,atsnyder/ITK,BRAINSia/ITK,vfonov/ITK,blowekamp/ITK,fbudin69500/ITK,ajjl/ITK,LucasGandel/ITK,BlueBrain/ITK,vfonov/ITK,Kitware/ITK,fbudin69500/ITK,BlueBrain/ITK,ajjl/ITK,biotrump/ITK,vfonov/ITK,richardbeare/ITK,atsnyder/ITK,msmolens/ITK,BlueBrain/ITK,fedral/ITK,BlueBrain/ITK,BlueBrain/ITK,fedral/ITK,fbudin69500/ITK,jcfr/ITK,InsightSoftwareConsortium/ITK,Kitware/ITK,jmerkow/ITK,LucasGandel/ITK,heimdali/ITK,hjmjohnson/ITK,hjmjohnson/ITK,stnava/ITK,Kitware/ITK,fedral/ITK,Kitware/ITK,atsnyder/ITK,hendradarwin/ITK,vfonov/ITK,ajjl/ITK,blowekamp/ITK,LucHermitte/ITK,malaterre/ITK,malaterre/ITK,jcfr/ITK,jcfr/ITK,vfonov/ITK,msmolens/ITK,hendradarwin/ITK,jmerkow/ITK,malaterre/ITK,PlutoniumHeart/ITK,biotrump/ITK,hendradarwin/ITK,zachary-williamson/ITK,msmolens/ITK,biotrump/ITK,richardbeare/ITK
16c82aa3bcf4bdf7a19bdfe424de094b39c96e82
src/imap/cmd-create.c
src/imap/cmd-create.c
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "commands.h" int cmd_create(struct client *client) { struct mail_storage *storage; const char *mailbox; int directory; size_t len; /* <mailbox> */ if (!client_read_string_args(client, 1, &mailbox)) return FALSE; storage = client_find_storage(client, &mailbox); if (storage == NULL) return TRUE; len = strlen(mailbox); if (mailbox[len-1] != mail_storage_get_hierarchy_sep(storage)) directory = FALSE; else { /* name ends with hierarchy separator - client is just informing us that it wants to create children under this mailbox. */ directory = TRUE; mailbox = t_strndup(mailbox, len-1); } if (!client_verify_mailbox_name(client, mailbox, FALSE, TRUE)) return TRUE; if (mail_storage_mailbox_create(storage, mailbox, directory) < 0) client_send_storage_error(client, storage); else client_send_tagline(client, "OK Create completed."); return TRUE; }
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "commands.h" int cmd_create(struct client *client) { struct mail_storage *storage; const char *mailbox, *full_mailbox; int directory; size_t len; /* <mailbox> */ if (!client_read_string_args(client, 1, &mailbox)) return FALSE; full_mailbox = mailbox; storage = client_find_storage(client, &mailbox); if (storage == NULL) return TRUE; len = strlen(mailbox); if (mailbox[len-1] != mail_storage_get_hierarchy_sep(storage)) directory = FALSE; else { /* name ends with hierarchy separator - client is just informing us that it wants to create children under this mailbox. */ directory = TRUE; mailbox = t_strndup(mailbox, len-1); } if (!client_verify_mailbox_name(client, full_mailbox, FALSE, TRUE)) return TRUE; if (mail_storage_mailbox_create(storage, mailbox, directory) < 0) client_send_storage_error(client, storage); else client_send_tagline(client, "OK Create completed."); return TRUE; }
CREATE was broken if namespace prefixes were set. Patch by Andreas Fuchs.
CREATE was broken if namespace prefixes were set. Patch by Andreas Fuchs. --HG-- branch : HEAD
C
mit
dscho/dovecot,dscho/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,dscho/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,dscho/dovecot,jkerihuel/dovecot,dscho/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch
7a41ebe99da12b58622df6112624669a013e7659
src/libgsm/gsm_create.c
src/libgsm/gsm_create.c
/* * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische * Universitaet Berlin. See the accompanying file "COPYRIGHT" for * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. */ #include <string.h> #include <stdlib.h> #include <stdio.h> #include "gsm.h" #include "private.h" gsm gsm_create () { gsm = (gsm)calloc(sizeof(struct gsm_state)); if (r) r->nrp = 40; return r; }
/* * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische * Universitaet Berlin. See the accompanying file "COPYRIGHT" for * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. */ #include <string.h> #include <stdlib.h> #include <stdio.h> #include "gsm.h" #include "private.h" gsm gsm_create () { gsm r = (gsm)calloc(1, sizeof(struct gsm_state)); if (r) r->nrp = 40; return r; }
Fix typos in last commit.
Fix typos in last commit.
C
lgpl-2.1
davel/sox,cbagwell/sox,Distrotech/sox,CaptainHayashi/sox,CaptainHayashi/sox,davel/sox,MageSlayer/sox,jacksonh/sox,uklauer/sox,cbagwell/sox,Distrotech/sox,jacksonh/sox,pcqpcq/sox,mhartzel/sox_personal_fork,davel/sox,MageSlayer/sox,cbagwell/sox,MageSlayer/sox,Motiejus/sox,mhartzel/sox_personal_fork,davel/sox,Distrotech/sox,uklauer/sox,CaptainHayashi/sox,mhartzel/sox_personal_fork,Motiejus/sox,pcqpcq/sox,mhartzel/sox_personal_fork,CaptainHayashi/sox,jacksonh/sox,pcqpcq/sox,MageSlayer/sox,Distrotech/sox,Motiejus/sox,uklauer/sox,cbagwell/sox,uklauer/sox,Motiejus/sox,jacksonh/sox,pcqpcq/sox,MageSlayer/sox
9a59d6e0df981124edd1be8222f7b2efd41af6f7
Tests/ObjectiveRocksTests-iOS-Bridging-Header.h
Tests/ObjectiveRocksTests-iOS-Bridging-Header.h
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import <ObjectiveRocks/RocksDB.h> #import <ObjectiveRocks/RocksDBColumnFamily.h> #import <ObjectiveRocks/RocksDBColumnFamilyDescriptor.h> #import <ObjectiveRocks/RocksDBIterator.h> #import <ObjectiveRocks/RocksDBPrefixExtractor.h> #import <ObjectiveRocks/RocksDBWriteBatch.h> #import <ObjectiveRocks/RocksDBComparator.h> #import <ObjectiveRocks/RocksDBOptions.h> #import <ObjectiveRocks/RocksDBDatabaseOptions.h> #import <ObjectiveRocks/RocksDBColumnFamilyOptions.h> #import <ObjectiveRocks/RocksDBWriteOptions.h> #import <ObjectiveRocks/RocksDBReadOptions.h> #import <ObjectiveRocks/RocksDBTableFactory.h> #import <ObjectiveRocks/RocksDBBlockBasedTableOptions.h> #import <ObjectiveRocks/RocksDBCache.h> #import <ObjectiveRocks/RocksDBFilterPolicy.h> #import <ObjectiveRocks/RocksDBMemTableRepFactory.h> #import <ObjectiveRocks/RocksDBEnv.h> #import <ObjectiveRocks/RocksDBSnapshot.h> #import <ObjectiveRocks/RocksDBMergeOperator.h> #import <ObjectiveRocks/RocksDBTypes.h> #import <ObjectiveRocks/RocksDBRange.h>
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import <ObjectiveRocks/RocksDB.h> #import <ObjectiveRocks/RocksDBColumnFamily.h> #import <ObjectiveRocks/RocksDBColumnFamilyDescriptor.h> #import <ObjectiveRocks/RocksDBIterator.h> #import <ObjectiveRocks/RocksDBPrefixExtractor.h> #import <ObjectiveRocks/RocksDBWriteBatch.h> #import <ObjectiveRocks/RocksDBComparator.h> #import <ObjectiveRocks/RocksDBOptions.h> #import <ObjectiveRocks/RocksDBDatabaseOptions.h> #import <ObjectiveRocks/RocksDBColumnFamilyOptions.h> #import <ObjectiveRocks/RocksDBWriteOptions.h> #import <ObjectiveRocks/RocksDBReadOptions.h> #import <ObjectiveRocks/RocksDBTableFactory.h> #import <ObjectiveRocks/RocksDBBlockBasedTableOptions.h> #import <ObjectiveRocks/RocksDBCache.h> #import <ObjectiveRocks/RocksDBFilterPolicy.h> #import <ObjectiveRocks/RocksDBMemTableRepFactory.h> #import <ObjectiveRocks/RocksDBEnv.h> #import <ObjectiveRocks/RocksDBSnapshot.h> #import <ObjectiveRocks/RocksDBMergeOperator.h> #import <ObjectiveRocks/RocksDBRange.h>
Fix bridging header for iOS Swift tests
Fix bridging header for iOS Swift tests
C
mit
iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks
1cddcc0c8256bb6a37365d82329638b45bff2381
ui/aura/event_filter.h
ui/aura/event_filter.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_AURA_EVENT_FILTER_H_ #define UI_AURA_EVENT_FILTER_H_ #pragma once #include "base/logging.h" #include "ui/gfx/point.h" namespace aura { class Window; class MouseEvent; // An object that filters events sent to an owner window, potentially performing // adjustments to the window's position, size and z-index. class EventFilter { public: explicit EventFilter(Window* owner); virtual ~EventFilter(); // Try to handle |event| (before the owner's delegate gets a chance to). // Returns true if the event was handled by the WindowManager and should not // be forwarded to the owner's delegate. virtual bool OnMouseEvent(Window* target, MouseEvent* event); protected: Window* owner() { return owner_; } private: Window* owner_; DISALLOW_COPY_AND_ASSIGN(EventFilter); }; } // namespace aura #endif // UI_AURA_EVENT_FILTER_H_
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_AURA_EVENT_FILTER_H_ #define UI_AURA_EVENT_FILTER_H_ #pragma once #include "base/basictypes.h" namespace aura { class Window; class MouseEvent; // An object that filters events sent to an owner window, potentially performing // adjustments to the window's position, size and z-index. class EventFilter { public: explicit EventFilter(Window* owner); virtual ~EventFilter(); // Try to handle |event| (before the owner's delegate gets a chance to). // Returns true if the event was handled by the WindowManager and should not // be forwarded to the owner's delegate. virtual bool OnMouseEvent(Window* target, MouseEvent* event); protected: Window* owner() { return owner_; } private: Window* owner_; DISALLOW_COPY_AND_ASSIGN(EventFilter); }; } // namespace aura #endif // UI_AURA_EVENT_FILTER_H_
Include basictypes.h for DISALLOW macro.
aura: Include basictypes.h for DISALLOW macro. [email protected] Review URL: http://codereview.chromium.org/7976010 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@101986 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
gavinp/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,adobe/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium
7c2c9830d91e8e04788c52e06d1398c9c01e3c1f
nelem.h
nelem.h
// Copyright 2015 Malcolm Inglis <http://minglis.id.au> // // This file is part of Libmacro. // // Libmacro is free software: you can redistribute it and/or modify it under // the terms of the GNU Affero General Public License as published by the // Free Software Foundation, either version 3 of the License, or (at your // option) any later version. // // Libmacro is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public // License for more details. // // You should have received a copy of the GNU Affero General Public License // along with Libmacro. If not, see <https://gnu.org/licenses/>. #ifndef LIBMACRO_NELEM_H #define LIBMACRO_NELEM_H // Gives the number of elements in the array `XS`. Be very careful that // you only call this with an *array* variable, and not a pointer-to-array. // Note that this evaluates to a constant expression. #define NELEM( XS ) \ ( ( sizeof ( XS ) ) / ( sizeof ( ( XS )[ 0 ] ) ) ) #endif
// Copyright 2015 Malcolm Inglis <http://minglis.id.au> // // This file is part of Libmacro. // // Libmacro is free software: you can redistribute it and/or modify it under // the terms of the GNU Affero General Public License as published by the // Free Software Foundation, either version 3 of the License, or (at your // option) any later version. // // Libmacro is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public // License for more details. // // You should have received a copy of the GNU Affero General Public License // along with Libmacro. If not, see <https://gnu.org/licenses/>. #ifndef LIBMACRO_NELEM_H #define LIBMACRO_NELEM_H // Gives the number of elements in the array `XS`. Be very careful that // you only call this with an *array* variable, and not a pointer-to-array. // Note that this evaluates to a constant expression. #define NELEM( ... ) \ ( ( sizeof ( __VA_ARGS__ ) ) / ( sizeof ( ( __VA_ARGS__ )[ 0 ] ) ) ) #endif
Change NELEM to take VA_ARGS to handle commas
Change NELEM to take VA_ARGS to handle commas
C
agpl-3.0
mcinglis/libmacro,mcinglis/libmacro,mcinglis/libmacro
a9e08b0fb3f703502db20324d07f634c9cecab88
NSBezierPath_BDSKExtensions.h
NSBezierPath_BDSKExtensions.h
// // NSBezierPath_BDSKExtensions.h // Bibdesk // // Created by Adam Maxwell on 10/22/05. /* This software is Copyright (c) 2005,2006,2007 Adam Maxwell. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - Neither the name of Adam Maxwell nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #import <Cocoa/Cocoa.h> @interface NSBezierPath (BDSKExtensions) + (void)fillRoundRectInRect:(NSRect)rect radius:(float)radius; + (void)strokeRoundRectInRect:(NSRect)rect radius:(float)radius; + (NSBezierPath*)bezierPathWithRoundRectInRect:(NSRect)rect radius:(float)radius; + (void)drawHighlightInRect:(NSRect)rect radius:(float)radius lineWidth:(float)lineWidth color:(NSColor *)color; + (void)fillHorizontalOvalAroundRect:(NSRect)rect; + (void)strokeHorizontalOvalAroundRect:(NSRect)rect; + (NSBezierPath*)bezierPathWithHorizontalOvalAroundRect:(NSRect)rect; + (void)fillStarInRect:(NSRect)rect; + (void)fillInvertedStarInRect:(NSRect)rect; + (NSBezierPath *)bezierPathWithStarInRect:(NSRect)rect; + (NSBezierPath *)bezierPathWithInvertedStarInRect:(NSRect)rect; @end
Copy bezierpath category from bibdesk to skim.
Copy bezierpath category from bibdesk to skim.
C
bsd-3-clause
JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim
7575a6a3eec8a72cb36276f11924ad7a77185c43
modules/ti.UI/url/url.h
modules/ti.UI/url/url.h
/** * Appcelerator Titanium - licensed under the Apache Public License 2 * see LICENSE in the root folder for details on the license. * Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved. */ #ifndef TITANIUM_URL_H_ #define TITANIUM_URL_H_ namespace ti { void NormalizeURLCallback(const char* url, char* buffer, int bufferLength); void URLToFileURLCallback(const char* url, char* buffer, int bufferLength); int CanPreprocessURLCallback(const char* url); char* PreprocessURLCallback(const char* url, KeyValuePair* headers, char** mimeType); } #endif
/** * Appcelerator Titanium - licensed under the Apache Public License 2 * see LICENSE in the root folder for details on the license. * Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved. */ #ifndef TITANIUM_URL_H_ #define TITANIUM_URL_H_ #ifndef KEYVALUESTRUCT typedef struct { char* key; char* value; } KeyValuePair; #define KEYVALUESTRUCT 1 #endif namespace ti { void NormalizeURLCallback(const char* url, char* buffer, int bufferLength); void URLToFileURLCallback(const char* url, char* buffer, int bufferLength); int CanPreprocessURLCallback(const char* url); char* PreprocessURLCallback(const char* url, KeyValuePair* headers, char** mimeType); } #endif
Include KeyValuePair definition, if needed.
Include KeyValuePair definition, if needed.
C
apache-2.0
wyrover/titanium_desktop,appcelerator/titanium_desktop,appcelerator/titanium_desktop,jvkops/titanium_desktop,jvkops/titanium_desktop,wyrover/titanium_desktop,wyrover/titanium_desktop,jvkops/titanium_desktop,wyrover/titanium_desktop,wyrover/titanium_desktop,appcelerator/titanium_desktop,appcelerator/titanium_desktop,jvkops/titanium_desktop,wyrover/titanium_desktop,jvkops/titanium_desktop,jvkops/titanium_desktop,appcelerator/titanium_desktop
00ce45e79a3abaf31a3861001b06107f461dcc90
src/StdAfx.h
src/StdAfx.h
/* StdAfx.h * * Copyright (C) 2013 Michael Imamura * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ #pragma once #ifdef _WIN32 # define VC_EXTRALEAN # define WIN32_LEAN_AND_MEAN # include <windows.h> #endif #include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <list> #include <map> #include <memory> #include <string> #include <utility> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <SDL2/SDL_ttf.h>
/* StdAfx.h * * Copyright (C) 2013 Michael Imamura * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ #pragma once #ifdef _WIN32 # define VC_EXTRALEAN # define WIN32_LEAN_AND_MEAN # include <windows.h> #endif #include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <list> #include <map> #include <memory> #include <sstream> #include <string> #include <vector> #include <utility> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <SDL2/SDL_ttf.h>
Add more common includes to PCH.
Add more common includes to PCH.
C
apache-2.0
ZoogieZork/Adventures-in-SDL2,ZoogieZork/Adventures-in-SDL2
95a81f116adba5a2b97635b3e6ce0772411adee3
regress/test-post.c
regress/test-post.c
/* $Id$ */ /* * Copyright (c) 2016 Kristaps Dzonsons <[email protected]> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifdef HAVE_CONFIG_H #include "../config.h" #endif #include <stdint.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <curl/curl.h> #include "../kcgi.h" #include "regress.h" static int parent(CURL *curl) { const char *data = "foo=bar"; curl_easy_setopt(curl, CURLOPT_URL, "http://localhost:17123/"); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data); return(CURLE_OK == curl_easy_perform(curl)); } static int child(void) { struct kreq r; const char *page = "index"; if (KCGI_OK != khttp_parse(&r, NULL, 0, &page, 1, 0)) return(0); khttp_head(&r, kresps[KRESP_STATUS], "%s", khttps[KHTTP_200]); khttp_head(&r, kresps[KRESP_CONTENT_TYPE], "%s", kmimetypes[KMIME_TEXT_HTML]); khttp_body(&r); khttp_free(&r); return(1); } int main(int argc, char *argv[]) { return(regress_cgi(parent, child) ? EXIT_SUCCESS : EXIT_FAILURE); }
Add simple post that triggers the earlier breakage of kcgi(3) with a blocking socket.
Add simple post that triggers the earlier breakage of kcgi(3) with a blocking socket.
C
isc
kristapsdz/kcgi,kristapsdz/kcgi
2ec3a7c7af52d69bebbb149af9e6f09c0537c87f
src/common.h
src/common.h
/* * This file is part of hat-trie. * * Copyright (c) 2011 by Daniel C. Jones <[email protected]> * * * Common typedefs, etc. * */ #ifndef HATTRIE_COMMON_H #define HATTRIE_COMMON_H typedef unsigned long value_t; #endif
/* * This file is part of hat-trie. * * Copyright (c) 2011 by Daniel C. Jones <[email protected]> * * * Common typedefs, etc. * */ #ifndef HATTRIE_COMMON_H #define HATTRIE_COMMON_H #include "pstdint.h" typedef uintptr_t value_t; #endif
Switch `value_t` to be `uintptr_t`.
Switch `value_t` to be `uintptr_t`. This allows `value_t` to be 64-bit even on 64-bit architectures where `unsigned long` is still 32-bit.
C
mit
mheilman/hat-trie,dcjones/hat-trie,mheilman/hat-trie
ce45e79987caa558f85e575323b70a36cad9e6bb
fq_default_poly_factor/test/t-init.c
fq_default_poly_factor/test/t-init.c
/* Copyright (C) 2021 William Hart This file is part of FLINT. FLINT is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. See <https://www.gnu.org/licenses/>. */ #include "fq_default_poly_factor.h" #include <stdlib.h> #include <stdio.h> #include <gmp.h> #include "flint.h" #include "nmod_poly.h" #include "ulong_extras.h" int main(void) { int i; FLINT_TEST_INIT(state); flint_printf("init/clear...."); fflush(stdout); for (i = 0; i < 100 * flint_test_multiplier(); i++) { fq_default_ctx_t ctx; fq_default_poly_factor_t fq_poly_fac; fmpz_t p; fmpz_init(p); fmpz_set_ui(p, 5); fq_default_ctx_init(ctx, p, 5, "x"); fq_default_poly_factor_init(fq_poly_fac, ctx); fq_default_poly_factor_clear(fq_poly_fac, ctx); fq_default_ctx_clear(ctx); fq_default_ctx_init(ctx, p, 16, "x"); fq_default_poly_factor_init(fq_poly_fac, ctx); fq_default_poly_factor_clear(fq_poly_fac, ctx); fq_default_ctx_clear(ctx); fmpz_set_str(p, "73786976294838206473", 10); fq_default_ctx_init(ctx, p, 1, "x"); fq_default_poly_factor_init(fq_poly_fac, ctx); fq_default_poly_factor_clear(fq_poly_fac, ctx); fq_default_ctx_clear(ctx); fmpz_clear(p); } FLINT_TEST_CLEANUP(state); flint_printf("PASS\n"); return 0; }
Add rudimentary init/clear test for fq_default_poly_factor.
Add rudimentary init/clear test for fq_default_poly_factor.
C
lgpl-2.1
wbhart/flint2,fredrik-johansson/flint2,fredrik-johansson/flint2,fredrik-johansson/flint2,wbhart/flint2,wbhart/flint2
142c224f842b992a5cdbf3e9e3847dfadd799af8
example/ex-array05.c
example/ex-array05.c
#include "m-array.h" #include "m-string.h" /* This example show how to use complex structure with array embedding another library */ /* This is a trivial library */ typedef struct lib_ext_struct { int id; // Other data } lib_ext_struct; static lib_ext_struct *lib_ext_struct_Duplicate(const lib_ext_struct *obj) { lib_ext_struct *p = malloc(sizeof(lib_ext_struct)); if (!p) abort(); p->id = obj->id; return p; } static void lib_ext_struct_Delete(lib_ext_struct *obj) { free(obj); } /* This is the complex structure */ typedef struct { uint32_t id; string_t type; lib_ext_struct* properties; } data_node; static void data_node_init(data_node *obj) { obj->id = 0; string_init(obj->type); obj->properties = NULL; } static void data_node_init_set(data_node *obj, const data_node *src) { obj->id = src->id; string_init_set(obj->type, src->type); if (src->properties) obj->properties = lib_ext_struct_Duplicate(src->properties); else obj->properties = NULL; } static void data_node_set(data_node *obj, const data_node *src) { obj->id = src->id; string_set(obj->type, src->type); if (obj->properties) lib_ext_struct_Delete(obj->properties); if (src->properties) obj->properties = lib_ext_struct_Duplicate(src->properties); else obj->properties = NULL; } static void data_node_clear(data_node *obj) { string_clear(obj->type); if (obj->properties) lib_ext_struct_Delete(obj->properties); } ARRAY_DEF(array_data_node, data_node, (INIT(API_2(data_node_init)),SET(API_6(data_node_set)),INIT_SET(API_6(data_node_init_set)),CLEAR(API_2(data_node_clear)))) array_data_node_t global_array; int main(void) { array_data_node_init(global_array); array_data_node_clear(global_array); }
Add another example on complex structure usage
Add another example on complex structure usage
C
bsd-2-clause
P-p-H-d/mlib,P-p-H-d/mlib
48ba0fa8d8aad77e8f03230b7d504b1feb4c940c
alura/c/forca.c
alura/c/forca.c
#include <stdio.h> int main() { int notas[10]; notas[0] = 10; notas[2] = 9; notas[3] = 8; notas[9] = 4; printf("%d %d %d\n", notas[0], notas[2], notas[9]); }
Update files, Alura, Introdução a C - Parte 2, Aula 2.1
Update files, Alura, Introdução a C - Parte 2, Aula 2.1
C
mit
fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs
e3a06f573bba62836623a5bc6aab7b6df4c235e5
common/timing.h
common/timing.h
#pragma once #include <time.h> #include <sys/time.h> static inline unsigned long long current_time_ns() { #ifdef __MACH__ clock_serv_t cclock; mach_timespec_t mts; host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock); clock_get_time(cclock, &mts); mach_port_deallocate(mach_task_self(), cclock); unsigned long long s = 1000000000ULL * (unsigned long long)mts.tv_sec; return (unsigned long long)mts.tv_nsec + s; #else struct timespec t ={0,0}; clock_gettime(CLOCK_MONOTONIC, &t); unsigned long long s = 1000000000ULL * (unsigned long long)t.tv_sec; return (((unsigned long long)t.tv_nsec)) + s; #endif }
#pragma once #include <time.h> #include <sys/time.h> #ifdef __MACH__ #include <mach/clock.h> #include <mach/mach.h> #endif static inline unsigned long long current_time_ns() { #ifdef __MACH__ clock_serv_t cclock; mach_timespec_t mts; host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock); clock_get_time(cclock, &mts); mach_port_deallocate(mach_task_self(), cclock); unsigned long long s = 1000000000ULL * (unsigned long long)mts.tv_sec; return (unsigned long long)mts.tv_nsec + s; #else struct timespec t ={0,0}; clock_gettime(CLOCK_MONOTONIC, &t); unsigned long long s = 1000000000ULL * (unsigned long long)t.tv_sec; return (((unsigned long long)t.tv_nsec)) + s; #endif }
Fix compilation errors on Mac OS
Fix compilation errors on Mac OS
C
bsd-3-clause
habanero-rice/tasking-micro-benchmark-suite,habanero-rice/tasking-micro-benchmark-suite,habanero-rice/tasking-micro-benchmark-suite
b3ac11e59b52a1fe715defc31664de840124c8b9
src/io/terminal_io.h
src/io/terminal_io.h
#ifndef TERMINALIO_H #define TERMINALIO_H typedef struct io io_t; typedef struct chip8 chip8_t; io_t * terminal_io_new(void); void terminal_io_render(io_t *, chip8_t *); void terminal_io_listen(io_t *, chip8_t *); #endif
#ifndef TERMINAL_IO_H #define TERMINAL_IO_H typedef struct io io_t; typedef struct chip8 chip8_t; io_t * terminal_io_new(void); void terminal_io_render(io_t *, chip8_t *); void terminal_io_listen(io_t *, chip8_t *); #endif
Use TERMINAL_IO_H as inclusion guard
Use TERMINAL_IO_H as inclusion guard
C
mit
gsamokovarov/chip8.c,gsamokovarov/chip8.c
0991b7ce2c05818328bfa2c63d84aa5a42f807a5
src/core/util/cpptoml.h
src/core/util/cpptoml.h
// ----------------------------------------------------------------------------- // // Copyright (C) The BioDynaMo Project. // 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. // // See the LICENSE file distributed with this work for details. // See the NOTICE file distributed with this work for additional information // regarding copyright ownership. // // ----------------------------------------------------------------------------- #ifndef CORE_UTIL_CPPTOML_H_ #define CORE_UTIL_CPPTOML_H_ #define BDM_ASSIGN_CONFIG_VALUE(variable, config_key) \ { \ if (config->contains_qualified(config_key)) { \ auto value = config->get_qualified_as<decltype(variable)>(config_key); \ if (value) { \ variable = *value; \ } \ } \ } #endif // CORE_UTIL_CPPTOML_H_
// ----------------------------------------------------------------------------- // // Copyright (C) The BioDynaMo Project. // 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. // // See the LICENSE file distributed with this work for details. // See the NOTICE file distributed with this work for additional information // regarding copyright ownership. // // ----------------------------------------------------------------------------- #ifndef CORE_UTIL_CPPTOML_H_ #define CORE_UTIL_CPPTOML_H_ #define BDM_ASSIGN_CONFIG_VALUE(variable, config_key) \ { \ if (config->contains_qualified(config_key)) { \ auto value = config->get_qualified_as<decltype(variable)>(config_key); \ if (value) { \ variable = *value; \ } \ } \ } #define BDM_ASSIGN_CONFIG_DOUBLE3_VALUE(variable, config_key) \ { \ if (config->contains_qualified(config_key)) { \ auto value = config->get_array_of<double>(config_key); \ if (value) { \ auto vector = *value; \ if (vector.size() == variable.size()) { \ for (uint64_t i = 0; i < vector.size(); i++) { \ variable[i] = vector[i]; \ } \ } else { \ Log::Fatal("cpptoml parameter parsing", \ "An error occured during parameter parsing of (", \ config_key, ". Array dimensions do not match"); \ } \ } \ } \ } #endif // CORE_UTIL_CPPTOML_H_
Add macro to assign Double3 values from toml files
Add macro to assign Double3 values from toml files
C
apache-2.0
BioDynaMo/biodynamo,BioDynaMo/biodynamo,BioDynaMo/biodynamo,BioDynaMo/biodynamo
c6ca1e4e1a51dd96759930447ffdb8ee93070893
src/whitgl/logging.c
src/whitgl/logging.c
#include <stdarg.h> #include <stdio.h> #include <whitgl/logging.h> #define LOG_BUFFER_MAX (256) char _buffer[LOG_BUFFER_MAX]; void whitgl_logit(const char *file, const int line, const char *str, ...) { va_list args; va_start(args, str); vsnprintf(_buffer, LOG_BUFFER_MAX, str, args); printf("%24s:%03d %s\n", file, line, _buffer); } void whitgl_panic(const char *file, const int line, const char *str, ...) { va_list args; va_start(args, str); vsnprintf(_buffer, LOG_BUFFER_MAX, str, args); printf("PANIC %24s:%03d %s\n", file, line, _buffer); printf("PANIC %f", *(double*)0); // do something impossible to crash }
#include <stdarg.h> #include <stdio.h> #include <whitgl/logging.h> #define LOG_BUFFER_MAX (256) char _buffer[LOG_BUFFER_MAX]; void whitgl_logit(const char *file, const int line, const char *str, ...) { va_list args; va_start(args, str); vsnprintf(_buffer, LOG_BUFFER_MAX, str, args); printf("%24s:%03d %s\n", file, line, _buffer); } void whitgl_panic(const char *file, const int line, const char *str, ...) { va_list args; va_start(args, str); vsnprintf(_buffer, LOG_BUFFER_MAX, str, args); printf("PANIC %24s:%03d %s\n", file, line, _buffer); __builtin_trap(); }
Use __builtin_trap to break to debugger
Use __builtin_trap to break to debugger
C
mit
whitingjp/whitgl,whitingjp/whitgl,whitingjp/whitgl,whitingjp/whitgl
18ab829f18d2d6e3ef8330820ee95dab9a24809a
test/src/test_util.c
test/src/test_util.c
#include "test_util.h" #include <util.h> #include <ftw.h> #include <stdio.h> static int remove_callback(const char* file, const struct stat* UNUSED(stat), int UNUSED(typeflag), struct FTW* UNUSED(ftwbuf)) { return remove(file); } int delete_directory(const char* dir) { const int max_fds = 64; return nftw(dir, remove_callback, max_fds, FTW_DEPTH | FTW_PHYS); }
#include "test_util.h" #include <util.h> #include <ftw.h> #include <stdio.h> static int remove_callback(const char* file, const struct stat* UNUSED(stat), int UNUSED(typeflag), struct FTW* UNUSED(ftwbuf)) { return remove(file); } int delete_directory(const char* dir) { struct stat st; const int max_fds = 64; int i = stat(dir, &st); if (i == 0) { return nftw(dir, remove_callback, max_fds, FTW_DEPTH | FTW_PHYS); } return 0; }
Delete test directory only if it exists
Delete test directory only if it exists This should fix tests.
C
bsd-3-clause
rbruggem/mqlog,rbruggem/mqlog
f97b16539903d9cdf18fedde80d8c70e629f7935
numpy/core/src/multiarray/multiarraymodule_onefile.c
numpy/core/src/multiarray/multiarraymodule_onefile.c
/* * This file includes all the .c files needed for a complete multiarray module. * This is used in the case where separate compilation is not enabled */ #include "common.c" #include "hashdescr.c" #include "numpyos.c" #include "scalarapi.c" #include "descriptor.c" #include "flagsobject.c" #include "ctors.c" #include "iterators.c" #include "mapping.c" #include "number.c" #include "getset.c" #include "sequence.c" #include "methods.c" #include "convert_datatype.c" #include "convert.c" #include "shape.c" #include "item_selection.c" #include "calculation.c" #include "usertypes.c" #include "refcount.c" #include "conversion_utils.c" #include "buffer.c" #include "arraytypes.c" #include "scalartypes.c" #ifndef Py_UNICODE_WIDE #include "ucsnarrow.c" #endif #include "arrayobject.c" #include "multiarraymodule.c"
/* * This file includes all the .c files needed for a complete multiarray module. * This is used in the case where separate compilation is not enabled * * Note that the order of the includs matters */ #include "common.c" #include "arraytypes.c" #include "hashdescr.c" #include "numpyos.c" #include "scalarapi.c" #include "descriptor.c" #include "flagsobject.c" #include "ctors.c" #include "iterators.c" #include "mapping.c" #include "number.c" #include "getset.c" #include "sequence.c" #include "methods.c" #include "convert_datatype.c" #include "convert.c" #include "shape.c" #include "item_selection.c" #include "calculation.c" #include "usertypes.c" #include "refcount.c" #include "conversion_utils.c" #include "buffer.c" #include "scalartypes.c" #ifndef Py_UNICODE_WIDE #include "ucsnarrow.c" #endif #include "arrayobject.c" #include "multiarraymodule.c"
Include arraytypes.c early for the no separate compilation case.
Include arraytypes.c early for the no separate compilation case.
C
bsd-3-clause
rmcgibbo/numpy,stuarteberg/numpy,hainm/numpy,ajdawson/numpy,jonathanunderwood/numpy,jonathanunderwood/numpy,njase/numpy,MaPePeR/numpy,rhythmsosad/numpy,simongibbons/numpy,dimasad/numpy,mhvk/numpy,Srisai85/numpy,CMartelLML/numpy,rhythmsosad/numpy,solarjoe/numpy,Anwesh43/numpy,cowlicks/numpy,sinhrks/numpy,ContinuumIO/numpy,NextThought/pypy-numpy,Srisai85/numpy,yiakwy/numpy,MaPePeR/numpy,sigma-random/numpy,jorisvandenbossche/numpy,dato-code/numpy,joferkington/numpy,endolith/numpy,immerrr/numpy,pbrod/numpy,naritta/numpy,pdebuyl/numpy,numpy/numpy-refactor,astrofrog/numpy,has2k1/numpy,trankmichael/numpy,numpy/numpy-refactor,simongibbons/numpy,ahaldane/numpy,ContinuumIO/numpy,musically-ut/numpy,utke1/numpy,ddasilva/numpy,GaZ3ll3/numpy,tynn/numpy,ViralLeadership/numpy,mindw/numpy,matthew-brett/numpy,ChristopherHogan/numpy,tdsmith/numpy,jschueller/numpy,tdsmith/numpy,ewmoore/numpy,mortada/numpy,skymanaditya1/numpy,rajathkumarmp/numpy,ViralLeadership/numpy,embray/numpy,ewmoore/numpy,ESSS/numpy,sinhrks/numpy,MaPePeR/numpy,cowlicks/numpy,kirillzhuravlev/numpy,seberg/numpy,Yusa95/numpy,ChristopherHogan/numpy,grlee77/numpy,ajdawson/numpy,chiffa/numpy,ahaldane/numpy,ekalosak/numpy,Eric89GXL/numpy,chatcannon/numpy,ddasilva/numpy,larsmans/numpy,pyparallel/numpy,maniteja123/numpy,dwf/numpy,andsor/numpy,tynn/numpy,bertrand-l/numpy,groutr/numpy,pizzathief/numpy,skwbc/numpy,BMJHayward/numpy,Yusa95/numpy,grlee77/numpy,leifdenby/numpy,brandon-rhodes/numpy,musically-ut/numpy,GrimDerp/numpy,dwillmer/numpy,andsor/numpy,mindw/numpy,cjermain/numpy,AustereCuriosity/numpy,bringingheavendown/numpy,musically-ut/numpy,Eric89GXL/numpy,bringingheavendown/numpy,mingwpy/numpy,njase/numpy,rudimeier/numpy,WarrenWeckesser/numpy,ahaldane/numpy,madphysicist/numpy,empeeu/numpy,ogrisel/numpy,WillieMaddox/numpy,Dapid/numpy,ChanderG/numpy,matthew-brett/numpy,jakirkham/numpy,ajdawson/numpy,shoyer/numpy,rudimeier/numpy,chiffa/numpy,ChanderG/numpy,dimasad/numpy,tacaswell/numpy,bmorris3/numpy,sonnyhu/numpy,gfyoung/numpy,ogrisel/numpy,yiakwy/numpy,groutr/numpy,dwillmer/numpy,trankmichael/numpy,pelson/numpy,ChristopherHogan/numpy,pizzathief/numpy,chatcannon/numpy,solarjoe/numpy,groutr/numpy,mathdd/numpy,bertrand-l/numpy,jorisvandenbossche/numpy,mingwpy/numpy,pelson/numpy,argriffing/numpy,GrimDerp/numpy,simongibbons/numpy,felipebetancur/numpy,rmcgibbo/numpy,abalkin/numpy,dch312/numpy,charris/numpy,ajdawson/numpy,maniteja123/numpy,jakirkham/numpy,simongibbons/numpy,pbrod/numpy,anntzer/numpy,immerrr/numpy,pelson/numpy,numpy/numpy,skymanaditya1/numpy,ViralLeadership/numpy,tdsmith/numpy,hainm/numpy,astrofrog/numpy,rgommers/numpy,joferkington/numpy,WarrenWeckesser/numpy,Anwesh43/numpy,stuarteberg/numpy,SiccarPoint/numpy,embray/numpy,dato-code/numpy,joferkington/numpy,shoyer/numpy,ewmoore/numpy,madphysicist/numpy,sigma-random/numpy,mortada/numpy,abalkin/numpy,Anwesh43/numpy,dwf/numpy,jankoslavic/numpy,shoyer/numpy,Dapid/numpy,jakirkham/numpy,jschueller/numpy,cowlicks/numpy,BMJHayward/numpy,mwiebe/numpy,mingwpy/numpy,mortada/numpy,SunghanKim/numpy,moreati/numpy,MichaelAquilina/numpy,CMartelLML/numpy,utke1/numpy,Linkid/numpy,solarjoe/numpy,drasmuss/numpy,stuarteberg/numpy,shoyer/numpy,naritta/numpy,trankmichael/numpy,rhythmsosad/numpy,jankoslavic/numpy,GaZ3ll3/numpy,has2k1/numpy,githubmlai/numpy,MichaelAquilina/numpy,abalkin/numpy,sigma-random/numpy,embray/numpy,brandon-rhodes/numpy,charris/numpy,astrofrog/numpy,hainm/numpy,charris/numpy,anntzer/numpy,brandon-rhodes/numpy,ChristopherHogan/numpy,ahaldane/numpy,stefanv/numpy,chatcannon/numpy,tynn/numpy,brandon-rhodes/numpy,BabeNovelty/numpy,MichaelAquilina/numpy,yiakwy/numpy,stuarteberg/numpy,bmorris3/numpy,Eric89GXL/numpy,pyparallel/numpy,empeeu/numpy,pdebuyl/numpy,madphysicist/numpy,hainm/numpy,bertrand-l/numpy,ChanderG/numpy,mwiebe/numpy,AustereCuriosity/numpy,rgommers/numpy,kiwifb/numpy,tacaswell/numpy,nbeaver/numpy,ekalosak/numpy,MSeifert04/numpy,ahaldane/numpy,dch312/numpy,matthew-brett/numpy,NextThought/pypy-numpy,sigma-random/numpy,numpy/numpy,mhvk/numpy,githubmlai/numpy,NextThought/pypy-numpy,BabeNovelty/numpy,githubmlai/numpy,pelson/numpy,kiwifb/numpy,jorisvandenbossche/numpy,argriffing/numpy,rajathkumarmp/numpy,ogrisel/numpy,cowlicks/numpy,pizzathief/numpy,numpy/numpy,dch312/numpy,BabeNovelty/numpy,sinhrks/numpy,rhythmsosad/numpy,rajathkumarmp/numpy,cjermain/numpy,mindw/numpy,MaPePeR/numpy,b-carter/numpy,matthew-brett/numpy,numpy/numpy-refactor,githubmlai/numpy,rmcgibbo/numpy,larsmans/numpy,astrofrog/numpy,simongibbons/numpy,rherault-insa/numpy,pyparallel/numpy,jorisvandenbossche/numpy,endolith/numpy,ContinuumIO/numpy,mortada/numpy,SunghanKim/numpy,BMJHayward/numpy,chiffa/numpy,matthew-brett/numpy,b-carter/numpy,rgommers/numpy,madphysicist/numpy,b-carter/numpy,bmorris3/numpy,felipebetancur/numpy,mattip/numpy,astrofrog/numpy,skymanaditya1/numpy,rherault-insa/numpy,seberg/numpy,ekalosak/numpy,BabeNovelty/numpy,rgommers/numpy,jonathanunderwood/numpy,MSeifert04/numpy,mwiebe/numpy,mathdd/numpy,moreati/numpy,bmorris3/numpy,jakirkham/numpy,dimasad/numpy,CMartelLML/numpy,mathdd/numpy,MSeifert04/numpy,bringingheavendown/numpy,dwf/numpy,empeeu/numpy,ewmoore/numpy,pelson/numpy,Srisai85/numpy,Linkid/numpy,nguyentu1602/numpy,gmcastil/numpy,ssanderson/numpy,NextThought/pypy-numpy,BMJHayward/numpy,embray/numpy,endolith/numpy,GrimDerp/numpy,mhvk/numpy,ekalosak/numpy,grlee77/numpy,ewmoore/numpy,kirillzhuravlev/numpy,Srisai85/numpy,embray/numpy,dato-code/numpy,naritta/numpy,jschueller/numpy,kirillzhuravlev/numpy,has2k1/numpy,Yusa95/numpy,kirillzhuravlev/numpy,nguyentu1602/numpy,ssanderson/numpy,andsor/numpy,skwbc/numpy,SiccarPoint/numpy,Yusa95/numpy,mingwpy/numpy,mathdd/numpy,mattip/numpy,larsmans/numpy,rudimeier/numpy,gmcastil/numpy,cjermain/numpy,mattip/numpy,KaelChen/numpy,skwbc/numpy,Eric89GXL/numpy,stefanv/numpy,seberg/numpy,Linkid/numpy,cjermain/numpy,rudimeier/numpy,argriffing/numpy,jankoslavic/numpy,mhvk/numpy,ogrisel/numpy,dwf/numpy,drasmuss/numpy,anntzer/numpy,ogrisel/numpy,yiakwy/numpy,moreati/numpy,pdebuyl/numpy,KaelChen/numpy,tdsmith/numpy,dwillmer/numpy,maniteja123/numpy,mattip/numpy,felipebetancur/numpy,rajathkumarmp/numpy,CMartelLML/numpy,SiccarPoint/numpy,leifdenby/numpy,tacaswell/numpy,WillieMaddox/numpy,nguyentu1602/numpy,GrimDerp/numpy,Linkid/numpy,drasmuss/numpy,Anwesh43/numpy,immerrr/numpy,GaZ3ll3/numpy,rherault-insa/numpy,dwf/numpy,gfyoung/numpy,grlee77/numpy,AustereCuriosity/numpy,Dapid/numpy,GaZ3ll3/numpy,jorisvandenbossche/numpy,shoyer/numpy,trankmichael/numpy,njase/numpy,stefanv/numpy,jakirkham/numpy,SunghanKim/numpy,WarrenWeckesser/numpy,numpy/numpy,empeeu/numpy,ESSS/numpy,KaelChen/numpy,numpy/numpy-refactor,ChanderG/numpy,gfyoung/numpy,charris/numpy,stefanv/numpy,pizzathief/numpy,dwillmer/numpy,stefanv/numpy,endolith/numpy,jschueller/numpy,rmcgibbo/numpy,MSeifert04/numpy,WillieMaddox/numpy,anntzer/numpy,dch312/numpy,pbrod/numpy,mindw/numpy,utke1/numpy,larsmans/numpy,skymanaditya1/numpy,madphysicist/numpy,sinhrks/numpy,has2k1/numpy,pdebuyl/numpy,WarrenWeckesser/numpy,musically-ut/numpy,nbeaver/numpy,felipebetancur/numpy,SiccarPoint/numpy,seberg/numpy,gmcastil/numpy,KaelChen/numpy,SunghanKim/numpy,MSeifert04/numpy,nguyentu1602/numpy,WarrenWeckesser/numpy,joferkington/numpy,dato-code/numpy,behzadnouri/numpy,ESSS/numpy,sonnyhu/numpy,pbrod/numpy,leifdenby/numpy,mhvk/numpy,behzadnouri/numpy,dimasad/numpy,nbeaver/numpy,pbrod/numpy,sonnyhu/numpy,ddasilva/numpy,jankoslavic/numpy,MichaelAquilina/numpy,andsor/numpy,kiwifb/numpy,numpy/numpy-refactor,pizzathief/numpy,ssanderson/numpy,behzadnouri/numpy,immerrr/numpy,sonnyhu/numpy,grlee77/numpy,naritta/numpy
dd61142aeb5732142483b303c8f54224ba274b3d
NestSDK/NestSDK/NestSDKAccessToken.h
NestSDK/NestSDK/NestSDKAccessToken.h
#import <Foundation/Foundation.h> #import <JSONModel/JSONModel.h> #pragma mark macros #pragma mark const FOUNDATION_EXTERN NSString *const NestSDKAccessTokenDidChangeNotification; #pragma mark enum #pragma mark typedef #pragma mark Protocol @interface NestSDKAccessToken : NSObject <NSSecureCoding> #pragma mark Properties @property(readonly, nonatomic) NSDate *expirationDate; @property(readonly, copy, nonatomic) NSString *tokenString; #pragma mark Methods - (instancetype)initWithTokenString:(NSString *)tokenString expirationDate:(NSDate *)expirationDate NS_DESIGNATED_INITIALIZER; - (BOOL)isEqualToAccessToken:(NestSDKAccessToken *)token; + (NestSDKAccessToken *)currentAccessToken; + (void)setCurrentAccessToken:(NestSDKAccessToken *)token; @end
#import <Foundation/Foundation.h> #import <JSONModel/JSONModel.h> #pragma mark macros #pragma mark const FOUNDATION_EXTERN NSString *const NestSDKAccessTokenDidChangeNotification; FOUNDATION_EXTERN NSString *const NestSDKAccessTokenChangeNewKey; FOUNDATION_EXTERN NSString *const NestSDKAccessTokenChangeOldKey; #pragma mark enum #pragma mark typedef #pragma mark Protocol @interface NestSDKAccessToken : NSObject <NSSecureCoding> #pragma mark Properties @property(readonly, nonatomic) NSDate *expirationDate; @property(readonly, copy, nonatomic) NSString *tokenString; #pragma mark Methods - (instancetype)initWithTokenString:(NSString *)tokenString expirationDate:(NSDate *)expirationDate NS_DESIGNATED_INITIALIZER; - (BOOL)isEqualToAccessToken:(NestSDKAccessToken *)token; + (NestSDKAccessToken *)currentAccessToken; + (void)setCurrentAccessToken:(NestSDKAccessToken *)token; @end
Access token change key added for export
Access token change key added for export
C
mit
petroakzhygitov/nest-ios-sdk,petroakzhygitov/nest-ios-sdk,petroakzhygitov/nest-ios-sdk
2af2e83757582fdc8f5838562d2c6377afef4536
include/Mixer.h
include/Mixer.h
/* $Id$ */ /* Copyright (c) 2017 Pierre Pronchery <[email protected]> */ /* This file is part of DeforaOS Desktop Mixer */ /* 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, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef DESKTOP_MIXER_H # define DESKTOP_MIXER_H # include "Mixer/control.h" #endif /* !DESKTOP_MIXER_H */
/* $Id$ */ /* Copyright (c) 2017 Pierre Pronchery <[email protected]> */ /* This file is part of DeforaOS Desktop Mixer */ /* All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef DESKTOP_MIXER_H # define DESKTOP_MIXER_H # include "Mixer/control.h" #endif /* !DESKTOP_MIXER_H */
Complete the license switch to 2-clause BSD
Complete the license switch to 2-clause BSD Thanks ocochard for the heads up!
C
bsd-2-clause
DeforaOS/Mixer,DeforaOS/Mixer
cdc4160c8aff31bdb7859285d021f5a122ed755d
docs/sample_code/MYINST/MYINST.h
docs/sample_code/MYINST/MYINST.h
#include <Instrument.h> // the base class for this instrument class MYINST : public Instrument { public: MYINST(); virtual ~MYINST(); virtual int init(double *, int); virtual int configure(); virtual int run(); private: void doupdate(); int _nargs, _inchan, _branch; float _amp, _pan; float *_in; };
#include <Instrument.h> // the base class for this instrument class MYINST : public Instrument { public: MYINST(); virtual ~MYINST(); virtual int init(double *, int); virtual int configure(); virtual int run(); private: void doupdate(); float *_in; int _nargs, _inchan, _branch; float _amp, _pan; };
Change order of declarations to suppress compiler warning.
Change order of declarations to suppress compiler warning.
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
c4faa6a77516f51e292f32b4bbe379a9ceffcd73
geom/geocad/inc/TOCCExports.h
geom/geocad/inc/TOCCExports.h
// @(#)geom/geocad:$Id$ // Author: Cinzia Luzzi 5/5/2012 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TOCCExports #define ROOT_TOCCExports // Combine all OCE headers used by geocad. // After including them, #undef Handle. #define Printf Printf_opencascade #include <TDF_Label.hxx> #include <TDocStd_Document.hxx> #include <Standard_Version.hxx> #include <STEPCAFControl_Writer.hxx> #include <XCAFDoc_ShapeTool.hxx> #include <TopoDS_Shape.hxx> #include <TopoDS_Wire.hxx> #undef Printf // ROOT-9837 #if defined(Handle) && !defined(R__Needs_Handle) #undef Handle #endif #endif
// @(#)geom/geocad:$Id$ // Author: Cinzia Luzzi 5/5/2012 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TOCCExports #define ROOT_TOCCExports // Combine all OCE headers used by geocad. // After including them, #undef Handle. #include <TDF_Label.hxx> #include <TDocStd_Document.hxx> #include <Standard_Version.hxx> #include <STEPCAFControl_Writer.hxx> #include <XCAFDoc_ShapeTool.hxx> #define Printf Printf_opencascade #include <TopoDS_Shape.hxx> #include <TopoDS_Wire.hxx> #undef Printf // ROOT-9837 #if defined(Handle) && !defined(R__Needs_Handle) #undef Handle #endif #endif
Revert "[GeoCAD] Protect all of OpenCascade headers from declaring Printf."
Revert "[GeoCAD] Protect all of OpenCascade headers from declaring Printf." This reverts commit c71e9ade417b5c1c9f3de614672a0060037df931.
C
lgpl-2.1
olifre/root,karies/root,karies/root,olifre/root,olifre/root,karies/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,root-mirror/root,olifre/root,karies/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,karies/root,root-mirror/root,karies/root,root-mirror/root,root-mirror/root,karies/root,karies/root,olifre/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root
e38001f6c6d0b792b6138ec9e924db8ffaa781e0
include/llvm/System/Process.h
include/llvm/System/Process.h
//===- llvm/System/Process.h ------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Reid Spencer and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file declares the llvm::sys::Process class. // //===----------------------------------------------------------------------===// #ifndef LLVM_SYSTEM_PROCESS_H #define LLVM_SYSTEM_PROCESS_H namespace llvm { namespace sys { /// This class provides an abstraction for getting information about the /// currently executing process. /// @since 1.4 /// @brief An abstraction for operating system processes. class Process { /// @name Accessors /// @{ public: /// This static function will return the operating system's virtual memory /// page size. /// @returns The number of bytes in a virtual memory page. /// @throws nothing /// @brief Get the virtual memory page size static unsigned GetPageSize(); /// @} }; } } // vim: sw=2 #endif
Add methods for detecting different kinds of files by their magic number, getting the suffix for shared objects, and extracting the basename from a path.
Add methods for detecting different kinds of files by their magic number, getting the suffix for shared objects, and extracting the basename from a path. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@16277 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm
d37ba3ca6d6134078cf064cf69a6c0e25fdc35e0
include/uwhd/sync/ModelSync.h
include/uwhd/sync/ModelSync.h
//===-- ModelSync.h - Wireless Syncing of GameModel ---------------- c++ --===// // // UWH Timer // // This file is distributed under the BSD 3-Clause License. // See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef MODELSYNC_H #define MODELSYNC_H #include "uwhd/model/GameModel.h" #include <string> #include <vector> struct ModelSync { virtual ~ModelSync() = 0; virtual void Init() = 0; virtual void setMgr(GameModelManager *M) = 0; virtual GameModelManager &getMgr() = 0; }; //struct ModelSyncPeer { // virtual std::string name() const = 0; // virtual std::string addr() const = 0; //}; struct ModelSyncServer : public ModelSync { virtual ~ModelSyncServer() = 0; //virtual std::vector<ModelSyncPeer*> peers() = 0; //virtual void claimPeer(const ModelSyncPeer *P) = 0; //virtual void getPeerWallClock(const ModelSyncPeer *P) = 0; //virtual void setPeerWallClock(const ModelSyncPeer *P) = 0; //virtual void adjustPeerWallClock(const ModelSyncPeer *P, int Delta) = 0; }; ModelSync *CreateSocketServer(const std::string &Port); ModelSync *CreateSocketClient(const std::string &Host, const std::string &Port); ModelSyncServer *CreateXBeeSyncServer(); ModelSync *CreateXBeeSyncClient(); #endif
//===-- ModelSync.h - Wireless Syncing of GameModel ---------------- c++ --===// // // UWH Timer // // This file is distributed under the BSD 3-Clause License. // See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef MODELSYNC_H #define MODELSYNC_H #include "uwhd/model/GameModel.h" #include <string> #include <vector> struct ModelSync { virtual ~ModelSync() {}; virtual void Init() = 0; virtual void setMgr(GameModelManager *M) = 0; virtual GameModelManager &getMgr() = 0; }; //struct ModelSyncPeer { // virtual std::string name() const = 0; // virtual std::string addr() const = 0; //}; struct ModelSyncServer : public ModelSync { virtual ~ModelSyncServer() {}; //virtual std::vector<ModelSyncPeer*> peers() = 0; //virtual void claimPeer(const ModelSyncPeer *P) = 0; //virtual void getPeerWallClock(const ModelSyncPeer *P) = 0; //virtual void setPeerWallClock(const ModelSyncPeer *P) = 0; //virtual void adjustPeerWallClock(const ModelSyncPeer *P, int Delta) = 0; }; ModelSync *CreateSocketServer(const std::string &Port); ModelSync *CreateSocketClient(const std::string &Host, const std::string &Port); ModelSyncServer *CreateXBeeSyncServer(); ModelSync *CreateXBeeSyncClient(); #endif
Add missing destructor bodies... oops
[sync] Add missing destructor bodies... oops
C
bsd-3-clause
Navisjon/uwh-display,jroelofs/uwh-display,Navisjon/uwh-display,jroelofs/uwh-display,Navisjon/uwh-display,jroelofs/uwh-display,Navisjon/uwh-display
cddefbcae9e86420f4f98646a49ea4ff2fa1a6b0
app/include/u8g2_fonts.h
app/include/u8g2_fonts.h
#ifndef _U8G2_FONTS_H #define _U8G2_FONTS_H #define U8G2_FONT_TABLE_ENTRY(font) // *************************************************************************** // Configure U8glib fonts // #ifndef U8G2_FONT_TABLE_EXTRA // // Add a U8G2_FONT_TABLE_ENTRY for each font you want to compile into the image #define U8G2_FONT_TABLE \ U8G2_FONT_TABLE_ENTRY(font_6x10_tf) \ U8G2_FONT_TABLE_ENTRY(font_unifont_t_symbols) \ #else // // The font table can be defined in an external file. #define U8G2_FONT_TABLE \ U8G2_FONT_TABLE_EXTRA #endif // *************************************************************************** #endif /* _U8G2_FONTS_H */
#ifndef _U8G2_FONTS_H #define _U8G2_FONTS_H #define U8G2_FONT_TABLE_ENTRY(font) // *************************************************************************** // Configure U8glib fonts // #ifndef U8G2_FONT_TABLE_EXTRA // // Add a U8G2_FONT_TABLE_ENTRY for each font you want to compile into the image // See https://github.com/olikraus/u8g2/wiki/fntlistall for a complete list of // available fonts. Drop the 'u8g2_' prefix when you add them here. #define U8G2_FONT_TABLE \ U8G2_FONT_TABLE_ENTRY(font_6x10_tf) \ U8G2_FONT_TABLE_ENTRY(font_unifont_t_symbols) \ #else // // The font table can be defined in an external file. #define U8G2_FONT_TABLE \ U8G2_FONT_TABLE_EXTRA #endif // *************************************************************************** #endif /* _U8G2_FONTS_H */
Add comment for font list
Add comment for font list
C
mit
marcelstoer/nodemcu-firmware,FelixPe/nodemcu-firmware,nwf/nodemcu-firmware,HEYAHONG/nodemcu-firmware,nodemcu/nodemcu-firmware,eku/nodemcu-firmware,TerryE/nodemcu-firmware,vsky279/nodemcu-firmware,marcelstoer/nodemcu-firmware,devsaurus/nodemcu-firmware,eku/nodemcu-firmware,FelixPe/nodemcu-firmware,vsky279/nodemcu-firmware,marcelstoer/nodemcu-firmware,HEYAHONG/nodemcu-firmware,nodemcu/nodemcu-firmware,HEYAHONG/nodemcu-firmware,FelixPe/nodemcu-firmware,vsky279/nodemcu-firmware,marcelstoer/nodemcu-firmware,nodemcu/nodemcu-firmware,devsaurus/nodemcu-firmware,devsaurus/nodemcu-firmware,devsaurus/nodemcu-firmware,vsky279/nodemcu-firmware,marcelstoer/nodemcu-firmware,TerryE/nodemcu-firmware,nodemcu/nodemcu-firmware,FelixPe/nodemcu-firmware,nwf/nodemcu-firmware,nwf/nodemcu-firmware,TerryE/nodemcu-firmware,TerryE/nodemcu-firmware,HEYAHONG/nodemcu-firmware,eku/nodemcu-firmware,nodemcu/nodemcu-firmware,FelixPe/nodemcu-firmware,HEYAHONG/nodemcu-firmware,nwf/nodemcu-firmware,TerryE/nodemcu-firmware,nwf/nodemcu-firmware,vsky279/nodemcu-firmware,devsaurus/nodemcu-firmware,eku/nodemcu-firmware
8d0c966cb3b23c9383c76d7bd919fff09702cc31
include/gvki/Debug.h
include/gvki/Debug.h
#ifndef GVKILL_DEBUG_H #define GVKILL_DEBUG_H #include <cstdlib> #include <iostream> // FIXME: These need to be made Windows comptabile #define DEBUG(X) if (getenv("GVKI_DEBUG") != NULL) X #define DEBUG_MSG(X) DEBUG( std::cerr << "\033[32m***GVKILL:" << X << "***\033[0m" << std::endl) // FIXME: This belongs in its own header file #define ERROR_MSG(X) std::cerr << "\033[31m**GVKILL ERROR:" << X << "***\033\[0m" << std::endl #endif
#ifndef GVKILL_DEBUG_H #define GVKILL_DEBUG_H #include <cstdlib> #include <iostream> // FIXME: These need to be made Windows comptabile #define DEBUG(X) if (getenv("GVKI_DEBUG") != NULL) X #define DEBUG_MSG(X) DEBUG( std::cerr << "\033[32m***GVKI:" << X << "***\033[0m" << std::endl) // FIXME: This belongs in its own header file #define ERROR_MSG(X) std::cerr << "\033[31m**GVKI ERROR:" << X << "***\033\[0m" << std::endl #endif
Fix typos in DEBUG_MSG and ERROR_MSG macros
Fix typos in DEBUG_MSG and ERROR_MSG macros
C
bsd-3-clause
mc-imperial/gvki,mc-imperial/gvki,giuliojiang/gvki,giuliojiang/gvki,mc-imperial/gvki,giuliojiang/gvki
2c7e76f27ac4b36c2d0afa56403d0f52da56c6b2
src/x86/Gget_proc_info-x86.c
src/x86/Gget_proc_info-x86.c
/* libunwind - a platform-independent unwind library Copyright (C) 2002 Hewlett-Packard Co Contributed by David Mosberger-Tang <[email protected]> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "unwind_i.h" int unw_get_proc_info (unw_cursor_t *cursor, unw_proc_info_t *pi) { struct cursor *c = (struct cursor *) cursor; #if 0 int ret; #endif memset (pi, 0, sizeof (*pi)); pi->start_ip = c->eip; pi->end_ip = c->eip + 1; #if 0 if ((ret = ia64_make_proc_info (c)) < 0) return ret; #endif return 0; }
Implement a minimalistic version for x86.
(unw_get_proc_info): Implement a minimalistic version for x86. (Logical change 1.81)
C
mit
project-zerus/libunwind,Keno/libunwind,lat/libunwind,evaautomation/libunwind,android-ia/platform_external_libunwind,geekboxzone/lollipop_external_libunwind,cloudius-systems/libunwind,geekboxzone/lollipop_external_libunwind,frida/libunwind,atanasyan/libunwind-android,zliu2014/libunwind-tilegx,rogwfu/libunwind,rntz/libunwind,dreal-deps/libunwind,dropbox/libunwind,geekboxzone/mmallow_external_libunwind,rantala/libunwind,0xlab/0xdroid-external_libunwind,cms-externals/libunwind,tony/libunwind,SyndicateRogue/libunwind,yuyichao/libunwind,0xlab/0xdroid-external_libunwind,olibc/libunwind,maltek/platform_external_libunwind,rantala/libunwind,mpercy/libunwind,atanasyan/libunwind,zeldin/platform_external_libunwind,dreal-deps/libunwind,martyone/libunwind,igprof/libunwind,SyndicateRogue/libunwind,frida/libunwind,android-ia/platform_external_libunwind,djwatson/libunwind,vtjnash/libunwind,rntz/libunwind,adsharma/libunwind,dropbox/libunwind,libunwind/libunwind,Chilledheart/libunwind,lat/libunwind,zliu2014/libunwind-tilegx,yuyichao/libunwind,olibc/libunwind,tkelman/libunwind,wdv4758h/libunwind,evaautomation/libunwind,mpercy/libunwind,atanasyan/libunwind-android,lat/libunwind,geekboxzone/mmallow_external_libunwind,jrmuizel/libunwind,bo-on-software/libunwind,mpercy/libunwind,atanasyan/libunwind-android,CyanogenMod/android_external_libunwind,vegard/libunwind,tronical/libunwind,igprof/libunwind,CyanogenMod/android_external_libunwind,djwatson/libunwind,libunwind/libunwind,pathscale/libunwind,libunwind/libunwind,djwatson/libunwind,Keno/libunwind,androidarmv6/android_external_libunwind,bo-on-software/libunwind,ehsan/libunwind,krytarowski/libunwind,cloudius-systems/libunwind,SyndicateRogue/libunwind,tony/libunwind,martyone/libunwind,tony/libunwind,joyent/libunwind,martyone/libunwind,DroidSim/platform_external_libunwind,maltek/platform_external_libunwind,project-zerus/libunwind,adsharma/libunwind,unkadoug/libunwind,dagar/libunwind,Chilledheart/libunwind,Keno/libunwind,pathscale/libunwind,fdoray/libunwind,ehsan/libunwind,jrmuizel/libunwind,cms-externals/libunwind,fdoray/libunwind,androidarmv6/android_external_libunwind,zliu2014/libunwind-tilegx,android-ia/platform_external_libunwind,0xlab/0xdroid-external_libunwind,vegard/libunwind,rogwfu/libunwind,krytarowski/libunwind,rogwfu/libunwind,tkelman/libunwind,CyanogenMod/android_external_libunwind,geekboxzone/lollipop_external_libunwind,joyent/libunwind,DroidSim/platform_external_libunwind,unkadoug/libunwind,zeldin/platform_external_libunwind,fdoray/libunwind,atanasyan/libunwind,krytarowski/libunwind,Chilledheart/libunwind,maltek/platform_external_libunwind,geekboxzone/mmallow_external_libunwind,jrmuizel/libunwind,cms-externals/libunwind,dropbox/libunwind,evaautomation/libunwind,yuyichao/libunwind,unkadoug/libunwind,tronical/libunwind,zeldin/platform_external_libunwind,androidarmv6/android_external_libunwind,vegard/libunwind,fillexen/libunwind,project-zerus/libunwind,dagar/libunwind,vtjnash/libunwind,bo-on-software/libunwind,ehsan/libunwind,dagar/libunwind,olibc/libunwind,wdv4758h/libunwind,rntz/libunwind,wdv4758h/libunwind,fillexen/libunwind,igprof/libunwind,vtjnash/libunwind,fillexen/libunwind,rantala/libunwind,joyent/libunwind,cloudius-systems/libunwind,DroidSim/platform_external_libunwind,dreal-deps/libunwind,atanasyan/libunwind,pathscale/libunwind,tronical/libunwind,adsharma/libunwind,frida/libunwind,tkelman/libunwind
cb6f7f153352d83d52ee0c5c35ab11845b072512
zephyr/test/drivers/src/test_mocks.c
zephyr/test/drivers/src/test_mocks.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 "test_mocks.h" DEFINE_FFF_GLOBALS; /* Mocks for common/init_rom.c */ DEFINE_FAKE_VALUE_FUNC(const void *, init_rom_map, const void *, int); DEFINE_FAKE_VOID_FUNC(init_rom_unmap, const void *, int); DEFINE_FAKE_VALUE_FUNC(int, init_rom_copy, int, int, int);
/* 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 <ztest.h> #include "test_mocks.h" DEFINE_FFF_GLOBALS; /* Mocks for common/init_rom.c */ DEFINE_FAKE_VALUE_FUNC(const void *, init_rom_map, const void *, int); DEFINE_FAKE_VOID_FUNC(init_rom_unmap, const void *, int); DEFINE_FAKE_VALUE_FUNC(int, init_rom_copy, int, int, int); /** * @brief Reset all the fakes before each test. */ static void fff_reset_rule_before(const struct ztest_unit_test *test, void *data) { ARG_UNUSED(test); ARG_UNUSED(data); RESET_FAKE(init_rom_map); RESET_FAKE(init_rom_unmap); RESET_FAKE(init_rom_copy); } ZTEST_RULE(fff_reset_rule, fff_reset_rule_before, NULL);
Add a test rule to reset the FFF fakes
zephyr: Add a test rule to reset the FFF fakes Add a test rule to reset all the fakes so that tests no longer have to be responsible for it. BRANCH=none BUG=none TEST=zmake configure --clobber --test test-drivers Signed-off-by: Yuval Peress <[email protected]> Change-Id: Ifbb9107aec843b5b127e8842ac4fc5c0e4c8086b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3500299 Reviewed-by: Jeremy Bettis <[email protected]>
C
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec
f2e0239a6d615477e783bf413d5dde860f2b12de
MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerInternal.h
MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerInternal.h
/** @file Internal Header file for PEI Services Table Pointer Library. Copyright (c) 2006, Intel Corporation<BR> All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ #ifndef _PEI_SERVICE_TABLE_POINTER_INTERNAL_H_ #define _PEI_SERVICE_TABLE_POINTER_INTERNAL_H_ /** The constructor function caches the pointer to PEI services. The constructor function caches the pointer to PEI services. It will always return EFI_SUCCESS. @param FfsHeader Pointer to FFS header the loaded driver. @param PeiServices Pointer to the PEI services. @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS. **/ EFI_STATUS EFIAPI PeiServicesTablePointerLibConstructor ( IN EFI_PEI_FILE_HANDLE *FfsHeader, IN EFI_PEI_SERVICES **PeiServices ) ; #endif
/** @file Internal Header file for PEI Services Table Pointer Library. Copyright (c) 2006, Intel Corporation<BR> All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ #ifndef _PEI_SERVICE_TABLE_POINTER_INTERNAL_H_ #define _PEI_SERVICE_TABLE_POINTER_INTERNAL_H_ /** The constructor function caches the pointer to PEI services. The constructor function caches the pointer to PEI services. It will always return EFI_SUCCESS. @param FfsHeader Pointer to FFS header the loaded driver. @param PeiServices Pointer to the PEI services. @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS. **/ EFI_STATUS EFIAPI PeiServicesTablePointerLibConstructor ( IN EFI_PEI_FILE_HANDLE FileHandle, IN EFI_PEI_SERVICES **PeiServices ) ; #endif
Fix the constructor typo. The new type should follow PI spec.
Fix the constructor typo. The new type should follow PI spec. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@4363 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
bcf3710e675c279e04aa90ef12f97f3b686597c7
Router/RTRNodeState.h
Router/RTRNodeState.h
// // RTRNodeState.h // Router // // Created by Nick Tymchenko on 14/09/15. // Copyright (c) 2015 Pixty. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, RTRNodeState) { RTRNodeStateNotInitialized = 0, RTRNodeStateInactive = 1, RTRNodeStateDeactivating = 2, RTRNodeStateActivating = 3, RTRNodeStateActive = 4 };
// // RTRNodeState.h // Router // // Created by Nick Tymchenko on 14/09/15. // Copyright (c) 2015 Pixty. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, RTRNodeState) { RTRNodeStateNotInitialized = 0, RTRNodeStateInactive = 1, RTRNodeStateDeactivating = 2, RTRNodeStateActivating = 3, RTRNodeStateActive = 4 }; static inline BOOL RTRNodeStateIsInitialized(RTRNodeState state) { return state != RTRNodeStateNotInitialized; } static inline BOOL RTRNodeStateIsTransitioning(RTRNodeState state) { return state == RTRNodeStateDeactivating || state == RTRNodeStateActivating; }
Add helper functions for state
Add helper functions for state
C
mit
joomcode/Lighthouse,pixty/Lighthouse,joomcode/Lighthouse,pixty/Router
cedf3c0a047f818410de34a2121cda23bafc8edc
applications/sort/grappa/npb_intsort.h
applications/sort/grappa/npb_intsort.h
enum npb_class { S, W, A, B, C, D }; static const int NKEY_LOG2[] = { 16, 20, 23, 25, 27, 29 }; static const int MAX_KEY_LOG2[] = { 11, 16, 19, 21, 23, 27 }; static const int NBUCKET_LOG2[] = { 10, 10, 10, 10, 10, 10 }; inline npb_class get_npb_class(char c) { switch (c) { case 'S': return S; case 'W': return W; case 'A': return A; case 'B': return B; case 'C': return C; case 'D': return D; } }
Add support for NPB classes.
Sort: Add support for NPB classes.
C
bsd-3-clause
buaasun/grappa,buaasun/grappa,buaasun/grappa,alexfrolov/grappa,uwsampa/grappa,alexfrolov/grappa,buaasun/grappa,buaasun/grappa,uwsampa/grappa,alexfrolov/grappa,uwsampa/grappa,alexfrolov/grappa,uwsampa/grappa,alexfrolov/grappa,uwsampa/grappa,alexfrolov/grappa,alexfrolov/grappa,uwsampa/grappa,buaasun/grappa,buaasun/grappa,uwsampa/grappa
958bfb18a876a10d862ba71a34c67bf15ccf3274
src/parse_git_st.h
src/parse_git_st.h
#ifndef __PARSE_GIT_ST_H #define __PARSE_GIT_ST_H #include <vector> #include <string> const int PIPE_LINE_BUFFER_SIZE = 256; class GitStatusParser { std::vector<std::string*> pipe_buffer; std::string* branch; std::vector<std::string*> new_files; std::vector<std::string*> modified_files; std::vector<std::string*> untracked_files; public: GitStatusParser(); ~GitStatusParser(); void parse(); private: void load(); void parseBranch(); void parseNewFiles(); void parseModifiedFiles(); void parseUntrackedFiles(); }; #endif
#ifndef __PARSE_GIT_ST_H #define __PARSE_GIT_ST_H #include <vector> #include <string> const int PIPE_LINE_BUFFER_SIZE = 256; class GitStatusParser { std::vector<std::string*> pipe_buffer; std::string* branch; std::vector<std::string*> new_files; std::vector<std::string*> modified_files; std::vector<std::string*> untracked_files; public: GitStatusParser(); ~GitStatusParser(); void parse(); std::string* getBranch() { return branch; } std::vector<std::string*> getNewFiles() { return new_files; } std::vector<std::string*> getModifiedFiles() { return modified_files; } std::vector<std::string*> getUntrackedFiles() { return untracked_files; } private: void load(); void parseBranch(); void parseNewFiles(); void parseModifiedFiles(); void parseUntrackedFiles(); }; #endif
Add getters for branch and files.
Add getters for branch and files.
C
mit
tomaszwojcik/git-ec,tomaszwojcik/git-ec
ba47f3aadd8375867bad03c508dffa3b3228c67a
src/test.c
src/test.c
#include "config.h" #include <util/delay.h> #include "usart.h" void send_block(unsigned bytes, char *buff) { for(int i = 0; i < bytes; ++i) { usart_transmit(buff[i]); } } int main(int argc, char **argv) { usart_init(); char msg[] = "Loading bootloader in 3 seconds."; send_block(sizeof(msg), msg); _delay_ms(3000); typedef void (* fn_ptr_t) (void); fn_ptr_t my_ptr = (fn_ptr_t)0x1800; my_ptr(); }
#include "config.h" #include <util/delay.h> #include "usart.h" void send_block(unsigned bytes, char *buff) { for(int i = 0; i < bytes; ++i) { usart_transmit(buff[i]); } } int main(int argc, char **argv) { usart_init(); char msg[] = "Loading bootloader in 3 seconds."; send_block(sizeof(msg), msg); _delay_ms(3000); typedef void (* fn_ptr_t) (void); fn_ptr_t my_ptr = (fn_ptr_t)BOOTLOAD; my_ptr(); }
Test application was jumping to a wrong address.
Test application was jumping to a wrong address.
C
mit
MiroslavVitkov/megaboot,MiroslavVitkov/megaboot
82935dfffaf2a67f2cd6bb30057278fd655947e9
src/util.h
src/util.h
#pragma once namespace std { template <typename T> auto cbegin(const T &c) { return c.cbegin(); } template <typename T> auto crbegin(const T &c) { return c.crbegin(); } template <typename T> auto cend(const T &c) { return c.cend(); } template <typename T> auto crend(const T &c) { return c.crend(); } }
Add {c|r}{begin|end} since gcc doesnt know it.
Add {c|r}{begin|end} since gcc doesnt know it.
C
bsd-3-clause
hannesweisbach/channelcoding
20e037a8c506c9918ffe25e092a6a593187d93d5
lib/Target/ARM/ARMTargetObjectFile.h
lib/Target/ARM/ARMTargetObjectFile.h
//===-- llvm/Target/ARMTargetObjectFile.h - ARM Object Info -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_ARM_TARGETOBJECTFILE_H #define LLVM_TARGET_ARM_TARGETOBJECTFILE_H #include "llvm/Target/TargetLoweringObjectFile.h" namespace llvm { class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF { public: ARMElfTargetObjectFile() : TargetLoweringObjectFileELF(true) {} void Initialize(MCContext &Ctx, const TargetMachine &TM) { TargetLoweringObjectFileELF::Initialize(Ctx, TM); // FIXME: Add new attribute/flag to MCSection for init_array/fini_array. // That will allow not treating these as "directives". if (TM.getSubtarget<ARMSubtarget>().isAAPCS_ABI()) { StaticCtorSection = getOrCreateSection("\t.section .init_array,\"aw\",%init_array", false, SectionKind::getDataRel()); StaticDtorSection = getOrCreateSection("\t.section .fini_array,\"aw\",%fini_array", false, SectionKind::getDataRel()); } } }; } // end namespace llvm #endif
//===-- llvm/Target/ARMTargetObjectFile.h - ARM Object Info -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_ARM_TARGETOBJECTFILE_H #define LLVM_TARGET_ARM_TARGETOBJECTFILE_H #include "llvm/Target/TargetLoweringObjectFile.h" namespace llvm { class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF { public: ARMElfTargetObjectFile() : TargetLoweringObjectFileELF(true) {} void Initialize(MCContext &Ctx, const TargetMachine &TM) { TargetLoweringObjectFileELF::Initialize(Ctx, TM); // FIXME: Add new attribute/flag to MCSection for init_array/fini_array. // That will allow not treating these as "directives". if (TM.getSubtarget<ARMSubtarget>().isAAPCS_ABI()) { StaticCtorSection = getOrCreateSection(".init_array,\"aw\",%init_array", false, SectionKind::getDataRel()); StaticDtorSection = getOrCreateSection(".fini_array,\"aw\",%fini_array", false, SectionKind::getDataRel()); } } }; } // end namespace llvm #endif
Fix a typo - this unbreaks llvm-gcc build on arm
Fix a typo - this unbreaks llvm-gcc build on arm git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@78059 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap
82f76d7cbaaa0839555e1054b246a5cc79b6b17d
queue.h
queue.h
#include <stdlib.h> #ifndef __QUEUE_H__ #define __QUEUE_H__ struct Queue; typedef struct Queue Queue; #endif
#include <stdlib.h> #ifndef __QUEUE_H__ #define __QUEUE_H__ struct Queue; typedef struct Queue Queue; Queue* Queue_Create(size_t n); void Queue_Destroy(Queue* q); void Queue_Enqueue(Queue* q, void* e); void* Queue_Dequeue(Queue* q); #endif
Add basic operation function declaration
Add basic operation function declaration
C
mit
MaxLikelihood/CADT
2df15fffc612b53b2c8e4ff3c981a82441bc00ae
drivers/crypto/padlock.h
drivers/crypto/padlock.h
/* * Driver for VIA PadLock * * Copyright (c) 2004 Michal Ludvig <[email protected]> * * 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. * */ #ifndef _CRYPTO_PADLOCK_H #define _CRYPTO_PADLOCK_H #define PADLOCK_ALIGNMENT 16 /* Control word. */ struct cword { int __attribute__ ((__packed__)) rounds:4, algo:3, keygen:1, interm:1, encdec:1, ksize:2; } __attribute__ ((__aligned__(PADLOCK_ALIGNMENT))); #define PFX "padlock: " #ifdef CONFIG_CRYPTO_DEV_PADLOCK_AES int padlock_init_aes(void); void padlock_fini_aes(void); #endif #endif /* _CRYPTO_PADLOCK_H */
/* * Driver for VIA PadLock * * Copyright (c) 2004 Michal Ludvig <[email protected]> * * 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. * */ #ifndef _CRYPTO_PADLOCK_H #define _CRYPTO_PADLOCK_H #define PADLOCK_ALIGNMENT 16 /* Control word. */ struct cword { unsigned int __attribute__ ((__packed__)) rounds:4, algo:3, keygen:1, interm:1, encdec:1, ksize:2; } __attribute__ ((__aligned__(PADLOCK_ALIGNMENT))); #define PFX "padlock: " #ifdef CONFIG_CRYPTO_DEV_PADLOCK_AES int padlock_init_aes(void); void padlock_fini_aes(void); #endif #endif /* _CRYPTO_PADLOCK_H */
Fix sparse warning about 1-bit signed bit-field
[PADLOCK] Fix sparse warning about 1-bit signed bit-field Change the bit-field in struct cword to unsigned to shut sparse up. Signed-off-by: Herbert Xu <[email protected]>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas
0c5865eeaa060368d4e69a6effbfe90b82335d32
include/gui-components.h
include/gui-components.h
#ifndef GUI_COMPONENTS #define GUI_COMPONENTS void typewriterTextEffect() { } //reminder: use composition //reminder: game will be played almost entirely through keyboard class TextBox { }; class ContextMenu {}; #endif
#ifndef GUI_COMPONENTS #define GUI_COMPONENTS #endif
DELETE USELESS CLASSES -ok that was fun
DELETE USELESS CLASSES -ok that was fun
C
apache-2.0
Blaze349/Pokemon-Clone,Blaze349/Pokemon-Clone
2cf9e27e57460ba44c7d8c54654b0e0560ae478e
board_driver/updateRTC.c
board_driver/updateRTC.c
#include <stdint.h> #include <stdbool.h> #include <stdio.h> #include <time.h> #include <string.h> #include <board_driver/uart.h> #include <board_driver/rtc.h> int main(void) { uart_init(); printf("Starting\n\n"); printf("RTC status: %d\n", BSP_RTC_Init()); struct tm ti; char month[3]; sscanf(__DATE__, "%s %d %d", month, &ti.tm_mday, &ti.tm_year); ti.tm_year -= 1900; if(!strcmp(month, "Jan")) ti.tm_mon = 1; else if(!strcmp(month, "Feb")) ti.tm_mon = 2; else if(!strcmp(month, "Mar")) ti.tm_mon = 3; else if(!strcmp(month, "Apr")) ti.tm_mon = 4; else if(!strcmp(month, "May")) ti.tm_mon = 5; else if(!strcmp(month, "Jun")) ti.tm_mon = 6; else if(!strcmp(month, "Jul")) ti.tm_mon = 7; else if(!strcmp(month, "Aug")) ti.tm_mon = 8; else if(!strcmp(month, "Sep")) ti.tm_mon = 9; else if(!strcmp(month, "Oct")) ti.tm_mon = 10; else if(!strcmp(month, "Nov")) ti.tm_mon = 11; else if(!strcmp(month, "Dec")) ti.tm_mon = 12; sscanf(__TIME__, "%d:%d:%d", &ti.tm_hour, &ti.tm_min, &ti.tm_sec); uint32_t unixTime = mktime(&ti); RTC_Update_Date_Time(unixTime); while (1) { Date_Time_t now; RTC_Get_Date_Time(&now); printf("time: %02d:%02d:%02d, %02d/%02d/%02d\n", now.hours, now.minutes, now.seconds, now.date, now.month, (now.year + 1900)); HAL_Delay(1000); } }
Update clock file from other repo
board_driver/rtc: Update clock file from other repo This contains a main function and need to be rewritten as a part of the RTC driver.
C
mit
AAU-Racing/embedded_car,AAU-Racing/embedded_car,AAU-Racing/embedded_car
29f847ae3dae83f4ab24b8a9f1ecffc74d49d68c
xchainer/array_node.h
xchainer/array_node.h
#pragma once #include <memory> #include <nonstd/optional.hpp> #include "xchainer/array.h" namespace xchainer { class OpNode; class ArrayNode { public: ArrayNode() = default; const std::shared_ptr<OpNode>& next_node() { return next_node_; } std::shared_ptr<const OpNode> next_node() const { return next_node_; } void set_next_node(std::shared_ptr<OpNode> next_node) { next_node_ = std::move(next_node); } const nonstd::optional<Array>& grad() const { return grad_; } void set_grad(Array grad) { grad_.emplace(std::move(grad)); }; void ClearGrad() { grad_ = nonstd::nullopt; } private: std::shared_ptr<OpNode> next_node_; nonstd::optional<Array> grad_; }; } // xchainer
#pragma once #include <memory> #include <nonstd/optional.hpp> #include "xchainer/array.h" namespace xchainer { class OpNode; class ArrayNode { public: ArrayNode() = default; const std::shared_ptr<OpNode>& next_node() { return next_node_; } std::shared_ptr<const OpNode> next_node() const { return next_node_; } void set_next_node(std::shared_ptr<OpNode> next_node) { next_node_ = std::move(next_node); } const nonstd::optional<Array>& grad() const { return grad_; } void set_grad(Array grad) { grad_.emplace(std::move(grad)); }; void ClearGrad() { grad_.reset(); } private: std::shared_ptr<OpNode> next_node_; nonstd::optional<Array> grad_; }; } // xchainer
Use reset() to make optional empty
Use reset() to make optional empty
C
mit
ktnyt/chainer,wkentaro/chainer,wkentaro/chainer,wkentaro/chainer,okuta/chainer,hvy/chainer,niboshi/chainer,niboshi/chainer,keisuke-umezawa/chainer,hvy/chainer,keisuke-umezawa/chainer,tkerola/chainer,jnishi/chainer,chainer/chainer,keisuke-umezawa/chainer,ktnyt/chainer,okuta/chainer,jnishi/chainer,chainer/chainer,jnishi/chainer,pfnet/chainer,wkentaro/chainer,okuta/chainer,ktnyt/chainer,hvy/chainer,keisuke-umezawa/chainer,jnishi/chainer,ktnyt/chainer,niboshi/chainer,okuta/chainer,chainer/chainer,hvy/chainer,chainer/chainer,niboshi/chainer
aba69416a9ab69d96e3927d098c293aaca2799e3
wfd/parser/driver.h
wfd/parser/driver.h
/* * This file is part of wysiwidi * * Copyright (C) 2014 Intel Corporation. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA */ #ifndef DRIVER_H_ #define DRIVER_H_ #include <string> #include <memory> #include "scanner.h" #include "message.h" #include "payload.h" #include "parser.tab.hpp" namespace wfd { class Driver { public: ~Driver(); void Parse(const std::string& input, Message*& message /*out*/); private: std::unique_ptr<Parser> parser_; std::unique_ptr<Scanner> scanner_; }; } // namespace wfd #endif // DRIVER_H_
/* * This file is part of wysiwidi * * Copyright (C) 2014 Intel Corporation. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA */ #ifndef DRIVER_H_ #define DRIVER_H_ #include <string> #include <memory> #include "scanner.h" #include "message.h" #include "payload.h" #include "parser.tab.hpp" namespace wfd { class Driver { public: Driver() = default; ~Driver(); void Parse(const std::string& input, Message*& message /*out*/); private: std::unique_ptr<Parser> parser_; std::unique_ptr<Scanner> scanner_; }; } // namespace wfd #endif // DRIVER_H_
Add user-defined constructor to the wfd::Driver class
Add user-defined constructor to the wfd::Driver class
C
lgpl-2.1
michaelolbrich/wds,jku/wysiwidi,alexshalamov/wysiwidi-2,felipemogollon/wysiwidi,01org/wds,michaelolbrich/wds,UIKit0/wysiwidi,ayoubayoub/wysiwidi,01org/wds,275288698/wds,felipemogollon/wysiwidi,alexshalamov/wysiwidi-2,ironsmile/wysiwidi,michaelolbrich/wds,ironsmile/wysiwidi,ayoubayoub/wysiwidi,alexshalamov/wds,UIKit0/wysiwidi,alexshalamov/wds,alexshalamov/wds,jku/wysiwidi,UIKit0/wysiwidi,jku/wysiwidi,01org/wds,275288698/wds,ayoubayoub/wysiwidi,felipemogollon/wysiwidi,alexshalamov/wysiwidi-2,275288698/wds,ironsmile/wysiwidi
486d2738965d5e62c08e42a29cc635e6e9be7477
src/imap/cmd-close.c
src/imap/cmd-close.c
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!client_verify_open_mailbox(cmd)) return TRUE; storage = mailbox_get_storage(mailbox); client->mailbox = NULL; if (!imap_expunge(mailbox, NULL)) client_send_untagged_storage_error(client, storage); if (mailbox_close(&mailbox) < 0) client_send_untagged_storage_error(client, storage); client_update_mailbox_flags(client, NULL); client_send_tagline(cmd, "OK Close completed."); return TRUE; }
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!client_verify_open_mailbox(cmd)) return TRUE; storage = mailbox_get_storage(mailbox); client->mailbox = NULL; if (!imap_expunge(mailbox, NULL)) client_send_untagged_storage_error(client, storage); else if (mailbox_sync(mailbox, 0, 0, NULL) < 0) client_send_untagged_storage_error(client, storage); if (mailbox_close(&mailbox) < 0) client_send_untagged_storage_error(client, storage); client_update_mailbox_flags(client, NULL); client_send_tagline(cmd, "OK Close completed."); return TRUE; }
Synchronize the mailbox after expunging messages to actually get them expunged.
CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged. --HG-- branch : HEAD
C
mit
jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot
55a46b37da13f6db357392b53132593341ad116e
src/plugins/zlib/istream-bzlib.c
src/plugins/zlib/istream-bzlib.c
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "istream-internal.h" #include "istream-zlib.h" #ifdef HAVE_BZLIB #include <bzlib.h> #define BZLIB_INCLUDE #define gzFile BZFILE #define gzdopen BZ2_bzdopen #define gzclose BZ2_bzclose #define gzread BZ2_bzread #define gzseek BZ2_bzseek #define i_stream_create_zlib i_stream_create_bzlib #include "istream-zlib.c" #endif
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "istream-internal.h" #include "istream-zlib.h" #ifdef HAVE_BZLIB #include <stdio.h> #include <bzlib.h> #define BZLIB_INCLUDE #define gzFile BZFILE #define gzdopen BZ2_bzdopen #define gzclose BZ2_bzclose #define gzread BZ2_bzread #define gzseek BZ2_bzseek #define i_stream_create_zlib i_stream_create_bzlib #include "istream-zlib.c" #endif
Include stdio.h in case bzlib.h needs it.
bzlib: Include stdio.h in case bzlib.h needs it.
C
mit
damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot
e8fad243e1003a0113dc229ed18bd16651c009b4
alura/c/adivinhacao.c
alura/c/adivinhacao.c
#include <stdio.h> #define NUMERO_DE_TENTATIVAS 5 int main() { // imprime o cabecalho do nosso jogo printf("******************************************\n"); printf("* Bem vindo ao nosso jogo de adivinhação *\n"); printf("******************************************\n"); int numerosecreto = 42; int chute; for(int i = 1; i <= NUMERO_DE_TENTATIVAS; i++) { printf("Tentativa %d de %d\n", i, NUMERO_DE_TENTATIVAS); printf("Qual é o seu chute? "); scanf("%d", &chute); printf("Seu chute foi %d\n", chute); int acertou = chute == numerosecreto; int maior = chute > numerosecreto; int menor = chute < numerosecreto; if(acertou) { printf("Parabéns! Você acertou!\n"); printf("Jogue de novo, você é um bom jogador!\n"); break; } else if(maior) { printf("Seu chute foi maior que o número secreto\n"); } else { printf("Seu chute foi menor que o número secreto\n"); } } printf("Fim de jogo!\n"); }
#include <stdio.h> #define NUMERO_DE_TENTATIVAS 5 int main() { // imprime o cabecalho do nosso jogo printf("******************************************\n"); printf("* Bem vindo ao nosso jogo de adivinhação *\n"); printf("******************************************\n"); int numerosecreto = 42; int chute; for(int i = 1; i <= NUMERO_DE_TENTATIVAS; i++) { printf("Tentativa %d de %d\n", i, NUMERO_DE_TENTATIVAS); printf("Qual é o seu chute? "); scanf("%d", &chute); printf("Seu chute foi %d\n", chute); if(chute < 0) { printf("Você não pode chutar números negativos!\n"); i--; continue; } int acertou = chute == numerosecreto; int maior = chute > numerosecreto; int menor = chute < numerosecreto; if(acertou) { printf("Parabéns! Você acertou!\n"); printf("Jogue de novo, você é um bom jogador!\n"); break; } else if(maior) { printf("Seu chute foi maior que o número secreto\n"); } else { printf("Seu chute foi menor que o número secreto\n"); } } printf("Fim de jogo!\n"); }
Update files, Alura, Introdução a C, Aula 2.9
Update files, Alura, Introdução a C, Aula 2.9
C
mit
fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs
4c840f9e0771e5f91fd467f93e5309a290567f2a
JMAttributedFormat.h
JMAttributedFormat.h
// // JMAttributedFormat.h // JMAttributedFormat // // Created by Jonathon Mah on 2015-04-11. // This file is licensed under the MIT License. See LICENSE.txt for full details. // #import <Foundation/Foundation.h> @interface NSObject (JMAttributedFormat_Optional) - (NSAttributedString *)attributedDescription; @end @interface NSAttributedString (JMAttributedFormat) + (instancetype)attributedStringWithFormat:(NSString *)formatString, ... NS_FORMAT_FUNCTION(1,2); + (instancetype)attributedStringWithBaseAttributes:(NSDictionary *)baseAttributes format:(NSString *)formatString, ... NS_FORMAT_FUNCTION(2,3); - (instancetype)initWithBaseAttributes:(NSDictionary *)baseAttributes format:(NSString *)formatString, ... NS_FORMAT_FUNCTION(2,3); - (instancetype)initWithBaseAttributes:(NSDictionary *)baseAttributes format:(NSString *)formatString arguments:(va_list)argList NS_FORMAT_FUNCTION(2,0); @end
// // JMAttributedFormat.h // JMAttributedFormat // // Created by Jonathon Mah on 2015-04-11. // This file is licensed under the MIT License. See LICENSE.txt for full details. // #import <Foundation/Foundation.h> @interface NSObject (JMAttributedFormat_Optional) - (nullable NSAttributedString *)attributedDescription; @end @interface NSAttributedString (JMAttributedFormat) + (nullable instancetype)attributedStringWithFormat:(nonnull NSString *)formatString, ... NS_FORMAT_FUNCTION(1,2); + (nullable instancetype)attributedStringWithBaseAttributes:(nullable NSDictionary *)baseAttributes format:(nonnull NSString *)formatString, ... NS_FORMAT_FUNCTION(2,3); - (nullable instancetype)initWithBaseAttributes:(nullable NSDictionary *)baseAttributes format:(nonnull NSString *)formatString, ... NS_FORMAT_FUNCTION(2,3); - (nullable instancetype)initWithBaseAttributes:(nullable NSDictionary *)baseAttributes format:(nonnull NSString *)formatString arguments:(va_list)argList NS_FORMAT_FUNCTION(2,0); @end
Add nullable annotations to header
Add nullable annotations to header
C
mit
jmah/JMAttributedFormat
34a63918b86f54ccf4bd53b82bf9396a11007e31
src/hooks.h
src/hooks.h
/* * hooks.h * StatusSpec project * * Copyright (c) 2014 thesupremecommander * BSD 2-Clause License * http://opensource.org/licenses/BSD-2-Clause * */ #pragma once #include "stdafx.h" #include <map> #define CLIENT_DLL #define GLOWS_ENABLE #include "cdll_int.h" #include "KeyValues.h" #include "igameresources.h" #include "vgui/vgui.h" #include "vgui/IPanel.h" #include "cbase.h" #include "c_basecombatcharacter.h" #include "glow_outline_effect.h" #include <sourcehook/sourcehook_impl.h> #include <sourcehook/sourcehook.h> using namespace vgui; class C_TFPlayer; #if defined _WIN32 #define OFFSET_GETGLOWEFFECTCOLOR 223 #define OFFSET_UPDATEGLOWEFFECT 224 #define OFFSET_DESTROYGLOWEFFECT 225 #endif static std::map<EHANDLE, int> onDataChangedHooks; extern SourceHook::ISourceHook *g_SHPtr; extern int g_PLID;
/* * hooks.h * StatusSpec project * * Copyright (c) 2014 thesupremecommander * BSD 2-Clause License * http://opensource.org/licenses/BSD-2-Clause * */ #pragma once #include "stdafx.h" #include <map> #define CLIENT_DLL #define GLOWS_ENABLE #include "cdll_int.h" #include "KeyValues.h" #include "igameresources.h" #include "vgui/vgui.h" #include "vgui/IPanel.h" #include "cbase.h" #include "c_basecombatcharacter.h" #include "glow_outline_effect.h" #include <sourcehook/sourcehook_impl.h> #include <sourcehook/sourcehook.h> using namespace vgui; class C_TFPlayer; #if defined _WIN32 #define OFFSET_GETGLOWEFFECTCOLOR 223 #define OFFSET_UPDATEGLOWEFFECT 224 #define OFFSET_DESTROYGLOWEFFECT 225 #endif extern SourceHook::ISourceHook *g_SHPtr; extern int g_PLID;
Remove map not used anymore.
Remove map not used anymore.
C
bsd-2-clause
fwdcp/StatusSpec,fwdcp/StatusSpec
794927c94dd8c7644a94a05d12d260ee4322fad5
include/systemMacro.h
include/systemMacro.h
//PLEASE INCLUDE THIS FILE ON ANY ANNWVYN HEADER /*This file conrain macro and symbols definition that have to be * parsed by precompiler on each file. * They handle diferencies between compilers */ //-------------------------DLL EXPORT -------------------------------// //DLL management for visual studio compiller. #undef DLL #ifdef DLLDIR_EX //Defined in Annwvyn MSVC project file //To contruct a DLL, The macro __declspec(dllexport) have to be called in front of the exported symbol #define DLL __declspec(dllexport) // export DLL information #else //To reference symbols from a DLL the macro __declspec(dllimport) have to be called the same way #define DLL __declspec(dllimport) // import DLL information #endif //Bypass on GNU/Linux : #ifdef __gnu_linux__ //All that stuff is handeled by the makefile and the way g++ is called. DLL have to be empty but declared. #undef DLL #define DLL #endif //--------------------------------------------------------------------// //--------------------Application Entrypoint definition--------------// //Main definition : #undef AnnMain() #if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32 //On windows : #define WIN32_LEAN_AND_MEAN #include "windows.h" #define AnnMain() INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) #else //On others : #define AnnMain() int main(int argc, char** argv) #endif //---------------------------------------------------------------------//
//PLEASE INCLUDE THIS FILE ON ANY ANNWVYN HEADER /*This file conrain macro and symbols definition that have to be * parsed by precompiler on each file. * They handle diferencies between compilers */ //-------------------------DLL EXPORT -------------------------------// //DLL management for visual studio compiller. #undef DLL #ifdef DLLDIR_EX //Defined in Annwvyn MSVC project file //To contruct a DLL, The macro __declspec(dllexport) have to be called in front of the exported symbol #define DLL __declspec(dllexport) // export DLL information #else //To reference symbols from a DLL the macro __declspec(dllimport) have to be called the same way #define DLL __declspec(dllimport) // import DLL information #endif //Bypass on GNU/Linux : #ifdef __gnu_linux__ //All that stuff is handeled by the makefile and the way g++ is called. DLL have to be empty but declared. #undef DLL #define DLL #endif //--------------------------------------------------------------------// //--------------------Application Entrypoint definition--------------// //Main definition : #undef AnnMain #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include "windows.h" #define AnnMain() INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) #else //On others : #define AnnMain() int main(int argc, char** argv) #endif //---------------------------------------------------------------------//
Correct compillation for GCC apparently...
Correct compillation for GCC apparently...
C
mit
Ybalrid/Annwvyn,Ybalrid/Annwvyn,Ybalrid/Annwvyn
ff35a2bf9537e5d46271a58e7e40f50aa1bbd20f
libtest/GlobalVariable.c
libtest/GlobalVariable.c
#include <sys/types.h> #include <stdint.h> typedef int8_t s8; typedef uint8_t u8; typedef int16_t s16; typedef uint16_t u16; typedef int32_t s32; typedef uint32_t u32; typedef int64_t s64; typedef uint64_t u64; typedef signed long sL; typedef unsigned long uL; typedef float f32; typedef double f64; typedef unsigned long ulong; typedef void* pointer; #define GVAR(T) \ T gvar_##T; \ T gvar_##T##_get() { return gvar_##T; }; \ void gvar_##T##_set(T v) { gvar_##T = v; } GVAR(s8); GVAR(u8); GVAR(s16); GVAR(u16); GVAR(s32); GVAR(u32); GVAR(s64); GVAR(u64); GVAR(long); GVAR(ulong); GVAR(pointer);
#include <sys/types.h> #include <stdint.h> typedef int8_t s8; typedef uint8_t u8; typedef int16_t s16; typedef uint16_t u16; typedef int32_t s32; typedef uint32_t u32; typedef int64_t s64; typedef uint64_t u64; typedef signed long sL; typedef unsigned long uL; typedef float f32; typedef double f64; typedef unsigned long ulong; typedef void* pointer; #define GVAR(T) \ extern T gvar_##T; \ T gvar_##T = (T) -1; \ T gvar_##T##_get() { return gvar_##T; }; \ void gvar_##T##_set(T v) { gvar_##T = v; } GVAR(s8); GVAR(u8); GVAR(s16); GVAR(u16); GVAR(s32); GVAR(u32); GVAR(s64); GVAR(u64); GVAR(long); GVAR(ulong); GVAR(pointer);
Initialize all the global vars in the hope it will stop MacOS from complaining
Initialize all the global vars in the hope it will stop MacOS from complaining
C
bsd-3-clause
majioa/ffi,mvz/ffi,majioa/ffi,majioa/ffi,mvz/ffi,yghannam/ffi,yghannam/ffi,MikaelSmith/ffi,ferventcoder/ffi,sparkchaser/ffi,MikaelSmith/ffi,tduehr/ffi,ferventcoder/ffi,tduehr/ffi,yghannam/ffi,ffi/ffi,ffi/ffi,ferventcoder/ffi,sparkchaser/ffi,ferventcoder/ffi,majioa/ffi,MikaelSmith/ffi,ffi/ffi,sparkchaser/ffi,sparkchaser/ffi,yghannam/ffi,yghannam/ffi,MikaelSmith/ffi,mvz/ffi,tduehr/ffi,mvz/ffi,tduehr/ffi
98de92ee0513d37d2eb9fff482f999bb229540b7
link-grammar/lg_assert.h
link-grammar/lg_assert.h
/* There is no include guard here - by purpose. This file can be included * after system includes that redefine the assert() macro. * The actual problem for which this file got separated from utilities.h * happens in the sat-solver code, when local include files include * Solver.h which in turn includes the system's assert.h. */ #include "error.h" /* for prt_error() */ #ifndef STRINGIFY #define STR(x) #x #define STRINGIFY(x) STR(x) #endif /* STRINGIFY */ #define FILELINE __FILE__ ":" STRINGIFY(__LINE__) #ifdef _WIN32 #define DEBUG_TRAP (*((volatile int*) 0x0) = 42) #else #define DEBUG_TRAP __builtin_trap() #endif #define assert(ex, ...) { \ if (!(ex)) { \ fprintf(stderr, "Fatal error: \nAssertion (" #ex ") failed at " FILELINE ": " __VA_ARGS__); \ fprintf(stderr, "\n"); \ DEBUG_TRAP; /* leave stack trace in debugger */ \ } \ }
/* There is no include guard here - by purpose. This file can be included * after system includes that redefine the assert() macro. * The actual problem for which this file got separated from utilities.h * happens in the sat-solver code, when local include files include * Solver.h which in turn includes the system's assert.h. */ #include "error.h" /* for prt_error() */ #ifndef STRINGIFY #define STR(x) #x #define STRINGIFY(x) STR(x) #endif /* STRINGIFY */ #define FILELINE __FILE__ ":" STRINGIFY(__LINE__) #ifdef _WIN32 #define DEBUG_TRAP (*((volatile int*) 0x0) = 42) #else #define DEBUG_TRAP __builtin_trap() #endif /* FIXME: * 1. If the error_handler is not NULL, use prt_error() too (after calling * fprintf()), in order to allow an error_handler to log, produce trace, or * show the assert() message in a (possibly pop-up) window. * 2. Don't use DEBUG_TRAP (or exit) directly, but instead call a function * pointer like lg_exit(code) to allow the LG library to be embedded in an * application like an editor. If not set, the default will still be * DEBUG_TRAP. */ #define assert(ex, ...) { \ if (!(ex)) { \ fprintf(stderr, "Fatal error: \nAssertion (" #ex ") failed at " FILELINE ": " __VA_ARGS__); \ fprintf(stderr, "\n"); \ DEBUG_TRAP; /* leave stack trace in debugger */ \ } \ }
Document 2 FIXME's for an app-embedded LG library
assert(): Document 2 FIXME's for an app-embedded LG library
C
lgpl-2.1
ampli/link-grammar,linas/link-grammar,opencog/link-grammar,opencog/link-grammar,linas/link-grammar,ampli/link-grammar,opencog/link-grammar,linas/link-grammar,linas/link-grammar,linas/link-grammar,linas/link-grammar,ampli/link-grammar,opencog/link-grammar,opencog/link-grammar,linas/link-grammar,opencog/link-grammar,ampli/link-grammar,ampli/link-grammar,ampli/link-grammar,linas/link-grammar,opencog/link-grammar,ampli/link-grammar,opencog/link-grammar,ampli/link-grammar,linas/link-grammar,ampli/link-grammar,opencog/link-grammar
03cbdc9d568682564dbdd115ddce031aae1da6c5
runtime/src/launch/zebra/launch-zebra.c
runtime/src/launch/zebra/launch-zebra.c
#include <stdio.h> #include <string.h> #include "chpllaunch.h" #include "chpl_mem.h" #include "error.h" static char* chpl_launch_create_command(int argc, char* argv[], int32_t numLocales) { int i; int size; char baseCommand[256]; char* command; chpl_compute_real_binary_name(argv[0]); sprintf(baseCommand, "zebra -fast -r %s", chpl_get_real_binary_name()); size = strlen(baseCommand) + 1; for (i=1; i<argc; i++) { size += strlen(argv[i]) + 3; } command = chpl_malloc(size, sizeof(char), CHPL_RT_MD_COMMAND_BUFFER, -1, ""); sprintf(command, "%s", baseCommand); for (i=1; i<argc; i++) { strcat(command, " '"); strcat(command, argv[i]); strcat(command, "'"); } if (strlen(command)+1 > size) { chpl_internal_error("buffer overflow"); } return command; } int chpl_launch(int argc, char* argv[], int32_t numLocales) { return chpl_launch_using_system(chpl_launch_create_command(argc, argv, numLocales), argv[0]); } int chpl_launch_handle_arg(int argc, char* argv[], int argNum, int32_t lineno, chpl_string filename) { return 0; } void chpl_launch_print_help(void) { }
#include <stdio.h> #include <string.h> #include "chpllaunch.h" #include "chpl_mem.h" #include "error.h" static char** chpl_launch_create_argv(int argc, char* argv[]) { const int largc = 3; char *largv[largc]; largv[0] = (char *) "zebra"; largv[1] = (char *) "-fast"; largv[2] = (char *) "-r"; return chpl_bundle_exec_args(argc, argv, largc, largv); } int chpl_launch(int argc, char* argv[], int32_t numLocales) { if (numLocales != 1) { // This error should be taken care of before we get to this point chpl_internal_error("The XMT launcher only supports numLocales==1"); } return chpl_launch_using_exec("zebra", chpl_launch_create_argv(argc, argv), argv[0]); } int chpl_launch_handle_arg(int argc, char* argv[], int argNum, int32_t lineno, chpl_string filename) { return 0; } void chpl_launch_print_help(void) { }
Update the zebra launcher to use chpl_launch_using_exec() as implemented in r18010.
Update the zebra launcher to use chpl_launch_using_exec() as implemented in r18010. git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@18032 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
C
apache-2.0
CoryMcCartan/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel
2b03ded9e3f9a0668784a2090852625adfd58485
sys/config/include/config/config_fcb.h
sys/config/include/config/config_fcb.h
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ #ifndef __SYS_CONFIG_FCB_H_ #define __SYS_CONFIG_FCB_H_ #ifdef FCB_PRESENT #include <fcb/fcb.h> #include "config/config.h" struct conf_file { struct cf_storage cf_itf; struct fcb cf_fcb; }; int conf_fcb_src(struct conf_fcb *fcb); int conf_fcb_dst(struct conf_fcb *fcb); #endif #endif /* __SYS_CONFIG_FCB_H_ */
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ #ifndef __SYS_CONFIG_FCB_H_ #define __SYS_CONFIG_FCB_H_ #ifdef FCB_PRESENT #include <fcb/fcb.h> #include "config/config.h" struct conf_fcb { struct conf_store cf_store; struct fcb cf_fcb; }; int conf_fcb_src(struct conf_fcb *fcb); int conf_fcb_dst(struct conf_fcb *fcb); #endif #endif /* __SYS_CONFIG_FCB_H_ */
Update to catch up with renames of internal structures.
Update to catch up with renames of internal structures.
C
apache-2.0
mlaz/mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,IMGJulian/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,mlaz/mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,wes3/incubator-mynewt-core,mlaz/mynewt-core,wes3/incubator-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,wes3/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,wes3/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,mlaz/mynewt-core,wes3/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,mlaz/mynewt-core
11bacf2b96045d6d8beb88b5c2951985f34b78b0
samples.c
samples.c
#include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> #include "base.h" int main( int argc, char** argv ) { srand( 23898645 ); uint16 blocks = 4; uint64 elements = 128; if( argc == 3 ) { blocks = (uint16) atoi( argv[1] ); elements = (uint64) atoi( argv[2] ); } print("Making %hu blocks of %lu elements", blocks, elements ); uint64 block[elements]; for( uint16 i = 0; i<blocks; i++ ) { char filename[255]; sprintf( filename, "sample_%06hu.block", i); print("Generating file: %s", filename); uint64 step = rand() % 100; // ensure some collisions between multiple sample files block[0] = rand() % 100; // ensure some overlap FILE* fp = fopen( filename, "w" ); if( !fp ) { perror("File opening failed"); exit( EXIT_FAILURE ); } for( uint64 j = 1; j < elements; j++ ) { block[j] = block[ j-1 ] + step; } fwrite( block, sizeof(uint64), elements, fp ); fclose(fp); } exit( EXIT_SUCCESS ); }
Make some sample blocks for merging
Make some sample blocks for merging
C
unlicense
niven/connect4,niven/connect4
e920c4cab8adfdbddac8ff0f06da083a533aab87
Kit/iOSKit.h
Kit/iOSKit.h
// // iOSKit.h // iOSKit // // Created by Yarik Smirnov on 1/23/12. // Copyright (c) 2012 e-Legion ltd. All rights reserved. // #ifndef Elegion_iOSKit_h #define Elegion_iOSKit_h #import "ELIconView.h" #import "ELInfoView.h" #import "ELPickerView.h" #import "ELSwipeController.h" #endif
// // iOSKit.h // iOSKit // // Created by Yarik Smirnov on 1/23/12. // Copyright (c) 2012 e-Legion ltd. All rights reserved. // #ifndef Elegion_iOSKit_h #define Elegion_iOSKit_h #import "ELIconView.h" #import "ELInfoView.h" #import "ELPickerView.h" #import "ELSwipeController.h" #endif
Add Drawing Kit header in general header
Add Drawing Kit header in general header
C
apache-2.0
elegion/iOSKit,elegion/iOSKit
e8105903d78c81119754a42926951d9d17e191ba
arch/powerpc/include/asm/kmap_types.h
arch/powerpc/include/asm/kmap_types.h
#ifndef _ASM_POWERPC_KMAP_TYPES_H #define _ASM_POWERPC_KMAP_TYPES_H #ifdef __KERNEL__ /* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ enum km_type { KM_BOUNCE_READ, KM_SKB_SUNRPC_DATA, KM_SKB_DATA_SOFTIRQ, KM_USER0, KM_USER1, KM_BIO_SRC_IRQ, KM_BIO_DST_IRQ, KM_PTE0, KM_PTE1, KM_IRQ0, KM_IRQ1, KM_SOFTIRQ0, KM_SOFTIRQ1, KM_PPC_SYNC_PAGE, KM_PPC_SYNC_ICACHE, KM_TYPE_NR }; #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_KMAP_TYPES_H */
#ifndef _ASM_POWERPC_KMAP_TYPES_H #define _ASM_POWERPC_KMAP_TYPES_H #ifdef __KERNEL__ /* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ enum km_type { KM_BOUNCE_READ, KM_SKB_SUNRPC_DATA, KM_SKB_DATA_SOFTIRQ, KM_USER0, KM_USER1, KM_BIO_SRC_IRQ, KM_BIO_DST_IRQ, KM_PTE0, KM_PTE1, KM_IRQ0, KM_IRQ1, KM_SOFTIRQ0, KM_SOFTIRQ1, KM_PPC_SYNC_PAGE, KM_PPC_SYNC_ICACHE, KM_TYPE_NR }; /* * This is a temporary build fix that (so they say on lkml....) should no longer * be required after 2.6.33, because of changes planned to the kmap code. * Let's try to remove this cruft then. */ #ifdef CONFIG_DEBUG_HIGHMEM #define KM_NMI (-1) #define KM_NMI_PTE (-1) #define KM_IRQ_PTE (-1) #endif #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_KMAP_TYPES_H */
Fix DEBUG_HIGHMEM build break from d4515646699
powerpc: Fix DEBUG_HIGHMEM build break from d4515646699 Code was added to mm/higmem.c that depends on several kmap types that powerpc does not support. We add dummy invalid definitions for KM_NMI, KM_NM_PTE, and KM_IRQ_PTE. According to list discussion, this fix should not be needed anymore starting with 2.6.33. The code is commented to this effect so hopefully we will remember to remove this. Signed-off-by: Becky Bruce <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
C
apache-2.0
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,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas
dd45649d55a60797d3d8b4fe665862df0cbf6a79
examples/c/plcdemos.h
examples/c/plcdemos.h
/* $Id$ Everything needed by the C demo programs. Created to avoid junking up plplot.h with this stuff. */ #ifndef __PLCDEMOS_H__ #define __PLCDEMOS_H__ #include "plConfig.h" #include "plplot.h" #include <math.h> #include <string.h> #include <ctype.h> /* define PI if not defined by math.h */ /* Actually M_PI seems to be more widely used so we deprecate PI. */ #ifndef PI #define PI 3.1415926535897932384 #endif #ifndef M_PI #define M_PI 3.1415926535897932384 #endif /* various utility macros */ #ifndef MAX #define MAX(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef MIN #define MIN(a,b) (((a) < (b)) ? (a) : (b)) #endif #ifndef ROUND #define ROUND(a) (PLINT)((a)<0. ? ((a)-.5) : ((a)+.5)) #endif #endif /* __PLCDEMOS_H__ */
/* $Id$ Everything needed by the C demo programs. Created to avoid junking up plplot.h with this stuff. */ #ifndef __PLCDEMOS_H__ #define __PLCDEMOS_H__ #include <math.h> #include <string.h> #include <ctype.h> #include "plConfig.h" #include "plplot.h" /* define PI if not defined by math.h */ /* Actually M_PI seems to be more widely used so we deprecate PI. */ #ifndef PI #define PI 3.1415926535897932384 #endif #ifndef M_PI #define M_PI 3.1415926535897932384 #endif /* various utility macros */ #ifndef MAX #define MAX(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef MIN #define MIN(a,b) (((a) < (b)) ? (a) : (b)) #endif #ifndef ROUND #define ROUND(a) (PLINT)((a)<0. ? ((a)-.5) : ((a)+.5)) #endif #endif /* __PLCDEMOS_H__ */
Move system header files to top in order to get rid of redefine warnings for Visual C++.
Move system header files to top in order to get rid of redefine warnings for Visual C++. svn path=/trunk/; revision=9609
C
lgpl-2.1
FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot