hexsha
stringlengths 40
40
| size
int64 5
2.72M
| ext
stringclasses 5
values | lang
stringclasses 1
value | max_stars_repo_path
stringlengths 3
976
| max_stars_repo_name
stringlengths 5
113
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
listlengths 1
10
| max_stars_count
float64 1
191k
⌀ | max_stars_repo_stars_event_min_datetime
stringdate 2015-01-01 00:01:43
2022-03-31 23:59:48
⌀ | max_stars_repo_stars_event_max_datetime
stringdate 2015-01-01 00:06:24
2022-03-31 23:59:53
⌀ | max_issues_repo_path
stringlengths 3
976
| max_issues_repo_name
stringlengths 5
116
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
listlengths 1
10
| max_issues_count
float64 1
134k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
976
| max_forks_repo_name
stringlengths 5
116
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
listlengths 1
10
| max_forks_count
float64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringdate 2015-01-01 00:01:19
2022-03-31 23:59:49
⌀ | max_forks_repo_forks_event_max_datetime
stringdate 2015-01-03 12:00:57
2022-03-31 23:59:49
⌀ | content
stringlengths 5
2.72M
| avg_line_length
float64 1.38
573k
| max_line_length
int64 2
1.01M
| alphanum_fraction
float64 0
1
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bde95d7d5c5e41e69bba2b0fca95750b0c867f0b
| 1,488
|
h
|
C
|
NitroXMR/src/miner/Console.h
|
quartz010/XMR
|
bf9f462662ad80e7a7361c9844b02ef520b90431
|
[
"MIT"
] | 4
|
2017-10-25T05:16:33.000Z
|
2018-10-25T14:22:30.000Z
|
NitroXMR/src/miner/Console.h
|
quartz010/XMR
|
bf9f462662ad80e7a7361c9844b02ef520b90431
|
[
"MIT"
] | null | null | null |
NitroXMR/src/miner/Console.h
|
quartz010/XMR
|
bf9f462662ad80e7a7361c9844b02ef520b90431
|
[
"MIT"
] | 3
|
2018-04-05T14:25:50.000Z
|
2018-10-25T14:22:32.000Z
|
/* XMRig
* Copyright 2010 Jeff Garzik <[email protected]>
* Copyright 2012-2014 pooler <[email protected]>
* Copyright 2014 Lucas Jones <https://github.com/lucasjones>
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
* Copyright 2016 Jay D Dee <[email protected]>
* Copyright 2016-2017 XMRig <[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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef __CONSOLE_H__
#define __CONSOLE_H__
#include <uv.h>
class IConsoleListener;
class Console
{
public:
Console(IConsoleListener *listener);
private:
static void onAllocBuffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf);
static void onRead(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf);
char m_buf[1];
IConsoleListener *m_listener;
uv_tty_t m_tty;
};
#endif /* __CONSOLE_H__ */
| 29.76
| 89
| 0.71707
|
bde999e24fedc0bed43664e04e135d0a3258564a
| 13,376
|
h
|
C
|
software/firmware/ChibiOS-Contrib/os/hal/ports/TIVA/LLD/UART/hal_serial_lld.h
|
lowerrandom/DaBomb_dc27_badge
|
4bba0e58a304671b48755b99113b3d489259760a
|
[
"Apache-2.0"
] | 29
|
2018-12-13T02:33:42.000Z
|
2022-02-28T13:26:35.000Z
|
sw/firmware/ChibiOS-Contrib/os/hal/ports/TIVA/LLD/UART/hal_serial_lld.h
|
netik/dc26_spqr_badge
|
231f04963f47a6731eb6d8e1b91585cf8203b52d
|
[
"Apache-2.0"
] | 47
|
2019-03-21T05:23:28.000Z
|
2019-12-07T23:37:44.000Z
|
sw/firmware/ChibiOS-Contrib/os/hal/ports/TIVA/LLD/UART/hal_serial_lld.h
|
netik/dc26_spqr_badge
|
231f04963f47a6731eb6d8e1b91585cf8203b52d
|
[
"Apache-2.0"
] | 13
|
2019-01-16T12:06:21.000Z
|
2020-04-25T02:14:06.000Z
|
/*
Copyright (C) 2014..2017 Marco Veeneman
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.
*/
/**
* @file UART/hal_serial_lld.h
* @brief Tiva low level serial driver header.
*
* @addtogroup SERIAL
* @{
*/
#ifndef HAL_SERIAL_LLD_H
#define HAL_SERIAL_LLD_H
#if HAL_USE_SERIAL || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
/**
* @brief Advanced buffering support switch.
* @details This constants enables the advanced buffering support in the
* low level driver, the queue buffer is no more part of the
* @p SerialDriver structure, each driver can have a different
* queue size.
*/
#define SERIAL_ADVANCED_BUFFERING_SUPPORT TRUE
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/
/**
* @name Configuration options
* @{
*/
/**
* @brief UART0 driver enable switch.
* @details If set to @p TRUE the support for UART0 is included.
* @note The default is @p TRUE.
*/
#if !defined(TIVA_SERIAL_USE_UART0) || defined(__DOXYGEN__)
#define TIVA_SERIAL_USE_UART0 FALSE
#endif
/**
* @brief UART1 driver enable switch.
* @details If set to @p TRUE the support for UART1 is included.
* @note The default is @p FALSE .
*/
#if !defined(TIVA_SERIAL_USE_UART1) || defined(__DOXYGEN__)
#define TIVA_SERIAL_USE_UART1 FALSE
#endif
/**
* @brief UART2 driver enable switch.
* @details If set to @p TRUE the support for UART2 is included.
* @note The default is @p FALSE .
*/
#if !defined(TIVA_SERIAL_USE_UART2) || defined(__DOXYGEN__)
#define TIVA_SERIAL_USE_UART2 FALSE
#endif
/**
* @brief UART3 driver enable switch.
* @details If set to @p TRUE the support for UART3 is included.
* @note The default is @p FALSE .
*/
#if !defined(TIVA_SERIAL_USE_UART3) || defined(__DOXYGEN__)
#define TIVA_SERIAL_USE_UART3 FALSE
#endif
/**
* @brief UART4 driver enable switch.
* @details If set to @p TRUE the support for UART4 is included.
* @note The default is @p FALSE .
*/
#if !defined(TIVA_SERIAL_USE_UART4) || defined(__DOXYGEN__)
#define TIVA_SERIAL_USE_UART4 FALSE
#endif
/**
* @brief UART5 driver enable switch.
* @details If set to @p TRUE the support for UART5 is included.
* @note The default is @p FALSE .
*/
#if !defined(TIVA_SERIAL_USE_UART5) || defined(__DOXYGEN__)
#define TIVA_SERIAL_USE_UART5 FALSE
#endif
/**
* @brief UART6 driver enable switch.
* @details If set to @p TRUE the support for UART6 is included.
* @note The default is @p FALSE .
*/
#if !defined(TIVA_SERIAL_USE_UART6) || defined(__DOXYGEN__)
#define TIVA_SERIAL_USE_UART6 FALSE
#endif
/**
* @brief UART7 driver enable switch.
* @details If set to @p TRUE the support for UART7 is included.
* @note The default is @p FALSE .
*/
#if !defined(TIVA_SERIAL_USE_UART7) || defined(__DOXYGEN__)
#define TIVA_SERIAL_USE_UART7 FALSE
#endif
/**
* @brief UART0 interrupt priority level setting.
*/
#if !defined(TIVA_SERIAL_UART0_PRIORITY) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART0_PRIORITY 5
#endif
/**
* @brief UART1 interrupt priority level setting.
*/
#if !defined(TIVA_SERIAL_UART1_PRIORITY) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART1_PRIORITY 5
#endif
/**
* @brief UART2 interrupt priority level setting.
*/
#if !defined(TIVA_SERIAL_UART2_PRIORITY) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART2_PRIORITY 5
#endif
/**
* @brief UART3 interrupt priority level setting.
*/
#if !defined(TIVA_SERIAL_UART3_PRIORITY) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART3_PRIORITY 5
#endif
/**
* @brief UART4 interrupt priority level setting.
*/
#if !defined(TIVA_SERIAL_UART4_PRIORITY) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART4_PRIORITY 5
#endif
/**
* @brief UART5 interrupt priority level setting.
*/
#if !defined(TIVA_SERIAL_UART5_PRIORITY) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART5_PRIORITY 5
#endif
/**
* @brief UART6 interrupt priority level setting.
*/
#if !defined(TIVA_SERIAL_UART6_PRIORITY) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART6_PRIORITY 5
#endif
/**
* @brief UART7 interrupt priority level setting.
*/
#if !defined(TIVA_SERIAL_UART7_PRIORITY) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART7_PRIORITY 5
#endif
/**
* @brief Input buffer size for UART0.
*/
#if !defined(TIVA_SERIAL_UART0_IN_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART0_IN_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Output buffer size for UART0.
*/
#if !defined(TIVA_SERIAL_UART0_OUT_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART0_OUT_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Input buffer size for UART1.
*/
#if !defined(TIVA_SERIAL_UART1_IN_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART1_IN_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Output buffer size for UART1.
*/
#if !defined(TIVA_SERIAL_UART1_OUT_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART1_OUT_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Input buffer size for UART2.
*/
#if !defined(TIVA_SERIAL_UART2_IN_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART2_IN_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Output buffer size for UART2.
*/
#if !defined(TIVA_SERIAL_UART2_OUT_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART2_OUT_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Input buffer size for UART3.
*/
#if !defined(TIVA_SERIAL_UART3_IN_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART3_IN_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Output buffer size for UART3.
*/
#if !defined(TIVA_SERIAL_UART3_OUT_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART3_OUT_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Input buffer size for UART4.
*/
#if !defined(TIVA_SERIAL_UART4_IN_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART4_IN_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Output buffer size for UART4.
*/
#if !defined(TIVA_SERIAL_UART4_OUT_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART4_OUT_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Input buffer size for UART5.
*/
#if !defined(TIVA_SERIAL_UART5_IN_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART5_IN_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Output buffer size for UART5.
*/
#if !defined(TIVA_SERIAL_UART5_OUT_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART5_OUT_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Input buffer size for UART6.
*/
#if !defined(TIVA_SERIAL_UART6_IN_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART6_IN_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Output buffer size for UART6.
*/
#if !defined(TIVA_SERIAL_UART6_OUT_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART6_OUT_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Input buffer size for UART7.
*/
#if !defined(TIVA_SERIAL_UART7_IN_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART7_IN_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/**
* @brief Output buffer size for UART7.
*/
#if !defined(TIVA_SERIAL_UART7_OUT_BUF_SIZE) || defined(__DOXYGEN__)
#define TIVA_SERIAL_UART7_OUT_BUF_SIZE SERIAL_BUFFERS_SIZE
#endif
/** @} */
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
#if !TIVA_SERIAL_USE_UART0 && !TIVA_SERIAL_USE_UART1 && \
!TIVA_SERIAL_USE_UART2 && !TIVA_SERIAL_USE_UART3 && \
!TIVA_SERIAL_USE_UART4 && !TIVA_SERIAL_USE_UART5 && \
!TIVA_SERIAL_USE_UART6 && !TIVA_SERIAL_USE_UART7
#error "SERIAL driver activated but no UART peripheral assigned"
#endif
#if TIVA_SERIAL_USE_UART0 && \
!OSAL_IRQ_IS_VALID_PRIORITY(TIVA_SERIAL_UART0_PRIORITY)
#error "Invalid IRQ priority assigned to UART0"
#endif
#if TIVA_SERIAL_USE_UART1 && \
!OSAL_IRQ_IS_VALID_PRIORITY(TIVA_SERIAL_UART1_PRIORITY)
#error "Invalid IRQ priority assigned to UART1"
#endif
#if TIVA_SERIAL_USE_UART2 && \
!OSAL_IRQ_IS_VALID_PRIORITY(TIVA_SERIAL_UART2_PRIORITY)
#error "Invalid IRQ priority assigned to UART2"
#endif
#if TIVA_SERIAL_USE_UART3 && \
!OSAL_IRQ_IS_VALID_PRIORITY(TIVA_SERIAL_UART3_PRIORITY)
#error "Invalid IRQ priority assigned to UART3"
#endif
#if TIVA_SERIAL_USE_UART4 && \
!OSAL_IRQ_IS_VALID_PRIORITY(TIVA_SERIAL_UART4_PRIORITY)
#error "Invalid IRQ priority assigned to UART4"
#endif
#if TIVA_SERIAL_USE_UART5 && \
!OSAL_IRQ_IS_VALID_PRIORITY(TIVA_SERIAL_UART5_PRIORITY)
#error "Invalid IRQ priority assigned to UART5"
#endif
#if TIVA_SERIAL_USE_UART6 && \
!OSAL_IRQ_IS_VALID_PRIORITY(TIVA_SERIAL_UART6_PRIORITY)
#error "Invalid IRQ priority assigned to UART6"
#endif
#if TIVA_SERIAL_USE_UART7 && \
!OSAL_IRQ_IS_VALID_PRIORITY(TIVA_SERIAL_UART7_PRIORITY)
#error "Invalid IRQ priority assigned to UART7"
#endif
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/
/**
* @brief Tiva Serial Driver configuration structure.
* @details An instance of this structure must be passed to @p sdStart()
* in order to configure and start a serial driver operations.
* @note This structure content is architecture dependent, each driver
* implementation defines its own version and the custom static
* initializers.
*/
typedef struct {
/**
* @brief Bit rate.
*/
uint32_t speed;
/* End of the mandatory fields. */
/**
* @brief Initialization value for the CTL register.
*/
uint16_t ctl;
/**
* @brief Initialization value for the LCRH register.
*/
uint8_t lcrh;
/**
* @brief Initialization value for the IFLS register.
*/
uint8_t ifls;
/**
* @brief Initialization value for the CC register.
*/
uint8_t cc;
} SerialConfig;
/**
* @brief @p SerialDriver specific data.
*/
#define _serial_driver_data \
_base_asynchronous_channel_data \
/* Driver state.*/ \
sdstate_t state; \
/* Input queue.*/ \
input_queue_t iqueue; \
/* Output queue.*/ \
output_queue_t oqueue; \
/* End of the mandatory fields.*/ \
/* Pointer to the USART registers block.*/ \
uint32_t uart;
/*===========================================================================*/
/* Driver macros. */
/*===========================================================================*/
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
#if TIVA_SERIAL_USE_UART0 && !defined(__DOXYGEN__)
extern SerialDriver SD1;
#endif
#if TIVA_SERIAL_USE_UART1 && !defined(__DOXYGEN__)
extern SerialDriver SD2;
#endif
#if TIVA_SERIAL_USE_UART2 && !defined(__DOXYGEN__)
extern SerialDriver SD3;
#endif
#if TIVA_SERIAL_USE_UART3 && !defined(__DOXYGEN__)
extern SerialDriver SD4;
#endif
#if TIVA_SERIAL_USE_UART4 && !defined(__DOXYGEN__)
extern SerialDriver SD5;
#endif
#if TIVA_SERIAL_USE_UART5 && !defined(__DOXYGEN__)
extern SerialDriver SD6;
#endif
#if TIVA_SERIAL_USE_UART6 && !defined(__DOXYGEN__)
extern SerialDriver SD7;
#endif
#if TIVA_SERIAL_USE_UART7 && !defined(__DOXYGEN__)
extern SerialDriver SD8;
#endif
#ifdef __cplusplus
extern "C" {
#endif
void sd_lld_init(void);
void sd_lld_start(SerialDriver *sdp, const SerialConfig *config);
void sd_lld_stop(SerialDriver *sdp);
#ifdef __cplusplus
}
#endif
#endif /* HAL_USE_SERIAL */
#endif /* HAL_SERIAL_LLD_H */
/** @} */
| 29.790646
| 79
| 0.634495
|
bdea9cea9942b92638f0a3b977c88f2450edfaf7
| 21,749
|
c
|
C
|
src/latex.c
|
fabiocolacio/scidown
|
99b5d1803a68dd351058029b413b61235c0604c6
|
[
"ISC"
] | null | null | null |
src/latex.c
|
fabiocolacio/scidown
|
99b5d1803a68dd351058029b413b61235c0604c6
|
[
"ISC"
] | 3
|
2018-05-11T19:13:49.000Z
|
2018-05-16T17:45:52.000Z
|
src/latex.c
|
geoffmcl/scidown
|
833cef2bc843bd83a62297a85d2f0a64fb1fb42c
|
[
"ISC"
] | null | null | null |
#include "latex.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "charter/src/parser.h"
#include "charter/src/renderer.h"
#include "escape.h"
#define MAX_FILE_SIZE 1000000
scidown_render_tag
scidown_latex_is_tag(const uint8_t *data, size_t size, const char *tagname)
{
size_t i;
int closed = 0;
if (size < 3 || data[0] != '<')
return SCIDOWN_RENDER_TAG_NONE;
i = 1;
if (data[i] == '/') {
closed = 1;
i++;
}
for (; i < size; ++i, ++tagname) {
if (*tagname == 0)
break;
if (data[i] != *tagname)
return SCIDOWN_RENDER_TAG_NONE;
}
if (i == size)
return SCIDOWN_RENDER_TAG_NONE;
if (isspace(data[i]) || data[i] == '>')
return closed ? SCIDOWN_RENDER_TAG_CLOSE : SCIDOWN_RENDER_TAG_OPEN;
return SCIDOWN_RENDER_TAG_NONE;
}
static void escape_href(hoedown_buffer *ob, const uint8_t *source, size_t length)
{
hoedown_escape_href(ob, source, length);
}
/********************
* GENERIC RENDERER *
********************/
static int
rndr_autolink(hoedown_buffer *ob, const hoedown_buffer *link, hoedown_autolink_type type, const hoedown_renderer_data *data)
{
scidown_latex_renderer_state *state = data->opaque;
if (!link || !link->size)
return 0;
HOEDOWN_BUFPUTSL(ob, "\\href{");
if (type == HOEDOWN_AUTOLINK_EMAIL)
HOEDOWN_BUFPUTSL(ob, "mailto:");
escape_href(ob, link->data, link->size);
if (state->link_attributes) {
hoedown_buffer_putc(ob, '\"');
state->link_attributes(ob, link, data);
hoedown_buffer_puts(ob, "}{");
} else {
HOEDOWN_BUFPUTSL(ob, "\"}{");
}
/*
* Pretty printing: if we get an email address as
* an actual URI, e.g. `mailto:[email protected]`, we don't
* want to print the `mailto:` prefix
*/
if (hoedown_buffer_prefix(link, "mailto:") == 0) {
hoedown_buffer_put(ob, link->data + 7, link->size - 7);
} else {
hoedown_buffer_put(ob, link->data, link->size);
}
HOEDOWN_BUFPUTSL(ob, "}");
return 1;
}
static void
rndr_blockcode(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_buffer *lang, const hoedown_renderer_data *data)
{
if (ob->size) hoedown_buffer_putc(ob, '\n');
scidown_latex_renderer_state *state = data->opaque;
if (lang && (state->flags & SCIDOWN_RENDER_CHARTER) != 0 && hoedown_buffer_eqs(lang, "charter") != 0){
if (text){
char * copy = malloc((text->size + 1)*sizeof(char));
memset(copy, 0, text->size+1);
memcpy(copy, text->data, text->size);
chart * c = parse_chart(copy);
char * tex = chart_to_latex(c);
int n = strlen(tex);
hoedown_buffer_printf(ob, tex, n);
free(copy);
chart_free(c);
free(tex);
}
return;
}
if (lang) {
HOEDOWN_BUFPUTSL(ob, "\\begin{lstlisting}[language=");
hoedown_buffer_put(ob, lang->data, lang->size);
HOEDOWN_BUFPUTSL(ob, "]\n");
} else {
HOEDOWN_BUFPUTSL(ob, "\\begin{lstlisting}\n");
}
if (text)
hoedown_buffer_put(ob, text->data, text->size);
HOEDOWN_BUFPUTSL(ob, "\\end{lstlisting}\n");
}
static void
rndr_blockquote(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
if (ob->size) hoedown_buffer_putc(ob, '\n');
HOEDOWN_BUFPUTSL(ob, "\\begin{quote}\n");
if (content) hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "\\end{qoute}\n");
}
static int
rndr_codespan(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
HOEDOWN_BUFPUTSL(ob, "\\texttt{");
if (text) hoedown_buffer_put(ob, text->data, text->size);
HOEDOWN_BUFPUTSL(ob, "}");
return 1;
}
static int
rndr_strikethrough(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
if (!content || !content->size)
return 0;
HOEDOWN_BUFPUTSL(ob, "\\st{");
hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "}");
return 1;
}
static int
rndr_double_emphasis(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
if (!content || !content->size)
return 0;
HOEDOWN_BUFPUTSL(ob, "{\\bf ");
hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "}");
return 1;
}
static int
rndr_emphasis(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
if (!content || !content->size) return 0;
HOEDOWN_BUFPUTSL(ob, "{\\em ");
if (content) hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "}");
return 1;
}
static int
rndr_underline(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
if (!content || !content->size)
return 0;
HOEDOWN_BUFPUTSL(ob, "\\underline{");
hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "}");
return 1;
}
static int
rndr_highlight(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
if (!content || !content->size)
return 0;
HOEDOWN_BUFPUTSL(ob, "\\hl{");
hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "}");
return 1;
}
static int
rndr_quote(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
if (!content || !content->size)
return 0;
HOEDOWN_BUFPUTSL(ob, "\"");
hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "\"");
return 1;
}
static int
rndr_linebreak(hoedown_buffer *ob, const hoedown_renderer_data *data)
{
hoedown_buffer_puts(ob, "\n");
return 1;
}
static void
rndr_header(hoedown_buffer *ob, const hoedown_buffer *content, int level, const hoedown_renderer_data *data, h_counter counter, int numbering)
{
if (data->meta->doc_class == CLASS_BOOK || data->meta->doc_class == CLASS_REPORT) {
level --;
}
if (ob->size)
hoedown_buffer_putc(ob, '\n');
if (!content)
return;
if (level == 0) {
hoedown_buffer_puts(ob, "\\chapter{");
} else if (level == 1) {
if (data->meta->doc_class == CLASS_BEAMER)
hoedown_buffer_puts(ob, "\\frametitle{");
else
hoedown_buffer_puts(ob, "\\section{");
} else if (level == 2) {
hoedown_buffer_puts(ob, "\\subsection{");
} else if (level == 3) {
hoedown_buffer_puts(ob, "\\subsubsection{");
} else if (level == 4) {
hoedown_buffer_puts(ob, "\\paragraph{");
} else if (level == 5) {
hoedown_buffer_puts(ob, "\\subparagraph{");
}
hoedown_buffer_put(ob, content->data, content->size);
hoedown_buffer_puts(ob, "}\n");
}
static int
rndr_link(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_buffer *link, const hoedown_buffer *title, const hoedown_renderer_data *data)
{
scidown_latex_renderer_state *state = data->opaque;
HOEDOWN_BUFPUTSL(ob, "\\href{");
if (link && link->size)
escape_href(ob, link->data, link->size);
if (title && title->size) {
HOEDOWN_BUFPUTSL(ob, "\" title=\"");
hoedown_buffer_put(ob, title->data, title->size);
}
if (state->link_attributes) {
hoedown_buffer_putc(ob, '\"');
state->link_attributes(ob, link, data);
hoedown_buffer_puts(ob, "}{");
} else {
HOEDOWN_BUFPUTSL(ob, "\"}{");
}
if (content && content->size) hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "}");
return 1;
}
static void
rndr_list(hoedown_buffer *ob, const hoedown_buffer *content, hoedown_list_flags flags, const hoedown_renderer_data *data)
{
if (ob->size) hoedown_buffer_putc(ob, '\n');
hoedown_buffer_puts(ob, (flags & HOEDOWN_LIST_ORDERED ? "\\begin{enumerate}" : "\\begin{itemize}"));
if (content) hoedown_buffer_put(ob, content->data, content->size);
hoedown_buffer_puts(ob, (flags & HOEDOWN_LIST_ORDERED ? "\\end{enumerate}\n" : "\\end{itemize}\n"));
}
static void
rndr_listitem(hoedown_buffer *ob, const hoedown_buffer *content, hoedown_list_flags flags, const hoedown_renderer_data *data)
{
HOEDOWN_BUFPUTSL(ob, "\n\\item ");
if (content) {
size_t size = content->size;
while (size && content->data[size - 1] == '\n')
size--;
hoedown_buffer_put(ob, content->data, size);
}
}
static void
rndr_paragraph(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
scidown_latex_renderer_state *state = data->opaque;
size_t i = 0;
if (ob->size) hoedown_buffer_puts(ob, "\n");
if (!content || !content->size)
return;
while (i < content->size && isspace(content->data[i])) i++;
if (i == content->size)
return;
if (state->flags) {
size_t org;
while (i < content->size) {
org = i;
while (i < content->size && content->data[i] != '\n')
i++;
if (i > org)
hoedown_buffer_put(ob, content->data + org, i - org);
/*
* do not insert a line break if this newline
* is the last character on the paragraph
*/
if (i >= content->size - 1)
break;
rndr_linebreak(ob, data);
i++;
}
} else {
hoedown_buffer_put(ob, content->data + i, content->size - i);
}
HOEDOWN_BUFPUTSL(ob, "\n\n");
}
static void
rndr_raw_block(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
size_t org, sz;
if (!text)
return;
/* FIXME: Do we *really* need to trim the HTML? How does that make a difference? */
sz = text->size;
while (sz > 0 && text->data[sz - 1] == '\n')
sz--;
org = 0;
while (org < sz && text->data[org] == '\n')
org++;
if (org >= sz)
return;
if (ob->size)
hoedown_buffer_putc(ob, '\n');
hoedown_buffer_put(ob, text->data + org, sz - org);
hoedown_buffer_putc(ob, '\n');
}
static int
rndr_triple_emphasis(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
if (!content || !content->size) return 0;
HOEDOWN_BUFPUTSL(ob, "{\\bf{\\em ");
hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "}}");
return 1;
}
static void
rndr_hrule(hoedown_buffer *ob, const hoedown_renderer_data *data)
{
if (ob->size) hoedown_buffer_putc(ob, '\n');
if (data->meta->doc_class == CLASS_BEAMER) {
hoedown_buffer_puts(ob, "\\end{frame}\n");
hoedown_buffer_puts(ob, "\\begin{frame}\n");
} else {
hoedown_buffer_puts(ob, "\\rule{\\linewidth}{.1pt}\n");
}
}
static int
rndr_image(hoedown_buffer *ob, const hoedown_buffer *link, const hoedown_buffer *title, const hoedown_buffer *alt, const hoedown_renderer_data *data)
{
/*scidown_latex_renderer_state *state = data->opaque;*/
if (!link || !link->size) return 0;
HOEDOWN_BUFPUTSL(ob, "\\includegraphics[width=\\linewidth]{");
escape_href(ob, link->data, link->size);
HOEDOWN_BUFPUTSL(ob, "}");
return 1;
}
static int
rndr_raw_html(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
scidown_latex_renderer_state *state = data->opaque;
/* ESCAPE overrides SKIP_HTML. It doesn't look to see if
* there are any valid tags, just escapes all of them. */
if((state->flags) != 0) {
hoedown_buffer_put(ob, text->data, text->size);
return 1;
}
if ((state->flags) != 0)
return 1;
hoedown_buffer_put(ob, text->data, text->size);
return 1;
}
static void
rndr_table(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data, hoedown_table_flags *flags, int cols)
{
if (ob->size) hoedown_buffer_putc(ob, '\n');
HOEDOWN_BUFPUTSL(ob, "\\begin{tabular}{");
int i;
for (i = 0;i < cols;i++)
{
hoedown_buffer_puts(ob, " | ");
switch(flags[i] & HOEDOWN_TABLE_ALIGNMASK)
{
case HOEDOWN_TABLE_ALIGN_RIGHT:
hoedown_buffer_putc(ob, 'r');
break;
case HOEDOWN_TABLE_ALIGN_CENTER:
hoedown_buffer_putc(ob, 'c');
break;
default:
hoedown_buffer_putc(ob, 'l');
}
}
hoedown_buffer_puts(ob, " | }\n\\hline\n");
hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "\\hline\n\\end{tabular}\n");
}
static void
rndr_table_header(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
/* TODO implement */
if (ob->size) hoedown_buffer_putc(ob, '\n');
hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "\\hline\n");
}
static void
rndr_table_body(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
/* TODO implement */
hoedown_buffer_put(ob, content->data, content->size);
}
static void
rndr_tablerow(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
/* TODO implement */
if (content) hoedown_buffer_put(ob, content->data, content->size);
hoedown_buffer_replace_last(ob, "\\\\\n");
}
static void
rndr_tablecell(hoedown_buffer *ob, const hoedown_buffer *content, hoedown_table_flags flags, const hoedown_renderer_data *data)
{
/* TODO implement */
if (flags & HOEDOWN_TABLE_HEADER) {
HOEDOWN_BUFPUTSL(ob, "{\\bf ");
}
if (content)
hoedown_buffer_put(ob, content->data, content->size);
if (flags & HOEDOWN_TABLE_HEADER) {
hoedown_buffer_putc(ob, '}');
}
HOEDOWN_BUFPUTSL(ob, " & ");
}
static int
rndr_superscript(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
if (!content || !content->size) return 0;
HOEDOWN_BUFPUTSL(ob, "\\textsuperscript{");
hoedown_buffer_put(ob, content->data, content->size);
HOEDOWN_BUFPUTSL(ob, "}");
return 1;
}
static void
rndr_normal_text(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
if (content)
hoedown_buffer_put(ob, content->data, content->size);
}
static void
rndr_footnotes(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
/*TOOD fix that*/
/*scidown_latex_renderer_state *state = data->opaque;*/
hoedown_buffer_puts(ob, "\\begin{thebibliography}{00}\n");
if (content) hoedown_buffer_put(ob, content->data, content->size);
hoedown_buffer_puts(ob, "\\end{thebibliography}\n");
}
static void
rndr_footnote_def(hoedown_buffer *ob, const hoedown_buffer *content, unsigned int num, const hoedown_renderer_data *data)
{
/*TODO fix that*/
if (!content)
return;
char * tmp = malloc(content->size+1);
tmp[content->size] = 0;
memcpy(tmp, content->data, content->size);
hoedown_buffer_printf(ob, "\\bibitem{fnref:%d}%s\n", num, tmp);
free(tmp);
}
static int
rndr_footnote_ref(hoedown_buffer *ob, int num, const hoedown_renderer_data *data)
{
if (num > 0)
hoedown_buffer_printf(ob, "\\cite{fnref:%d}", num);
return 1;
}
static int
rndr_math(hoedown_buffer *ob, const hoedown_buffer *text, int displaymode, const hoedown_renderer_data *data)
{
hoedown_buffer_put(ob, (const uint8_t *)(displaymode ? "\\[" : "\\("), 2);
hoedown_buffer_put(ob, text->data, text->size);
hoedown_buffer_put(ob, (const uint8_t *)(displaymode ? "\\]" : "\\)"), 2);
return 1;
}
static int
rndr_eq_math(hoedown_buffer *ob, const hoedown_buffer *text, int displaymode, const hoedown_renderer_data *data)
{
hoedown_buffer_put(ob, text->data+1, text->size-1);
return 1;
}
static void
rndr_head(hoedown_buffer *ob, metadata * doc_meta, ext_definition * extension)
{
hoedown_buffer_printf(ob, "\\documentclass[%s, %dpt]{%s}\n",
paper_to_latex(doc_meta->paper_size),
doc_meta->font_size,
class_to_string(doc_meta->doc_class));
hoedown_buffer_puts(ob, "\\usepackage[utf8]{inputenc}\n"
"\\usepackage{cite}\n"
"\\usepackage{amsmath,amssymb,amsfonts}\n"
"\\usepackage{algorithmic}\n"
"\\usepackage{float}\n"
"\\usepackage{hyperref}\n"
"\\usepackage{graphicx}\n"
"\\usepackage{textcomp}\n"
"\\usepackage{listings}\n"
"\\usepackage{epsfig}\n"
"\\usepackage{tikz}\n"
"\\usepackage{pgfplots}\n\n"
"\\pgfplotsset{compat=1.15}\n\n"
"\\providecommand{\\keywords}[1]{{\\bf{\\em Index terms---}} #1}\n"
"\\newfloat{program}{thp}{lop}\n\\floatname{program}{Listing}\n"
);
if (doc_meta->title){
hoedown_buffer_printf(ob, "\\title{%s}\n\\date{}\n", doc_meta->title);
}
if (doc_meta->authors)
{
hoedown_buffer_puts(ob, "\\author{");
Strings* it;
for (it = doc_meta->authors; it != NULL; it = it->next){
if (it->size == 1) {
hoedown_buffer_puts(ob, it->str);
} else {
hoedown_buffer_printf(ob, "%s \\and ", it->str);
}
}
hoedown_buffer_puts(ob, "}\n");
}
if (extension && extension->extra_header)
{
hoedown_buffer_puts(ob, extension->extra_header);
}
hoedown_buffer_puts(ob,"\n\\begin{document}\n");
}
static void
rndr_title(hoedown_buffer *ob, const hoedown_buffer *content, const metadata *data)
{
if (data->doc_class == CLASS_BEAMER) {
hoedown_buffer_puts(ob, "\\frame{\\titlepage}");
} else {
hoedown_buffer_puts(ob, "\\maketitle");
}
}
static void
rndr_authors(hoedown_buffer *ob, Strings *authors)
{
}
static void
rndr_affiliation(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
}
static void
rndr_keywords(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data)
{
hoedown_buffer_puts(ob, "\\keywords{");
hoedown_buffer_put(ob, content->data, content->size);
hoedown_buffer_puts(ob, "}\n");
}
static void
rndr_begin(hoedown_buffer *ob, const hoedown_renderer_data *data)
{
}
static void
rndr_inner(hoedown_buffer *ob , const hoedown_renderer_data *data)
{
if (data->meta->doc_class == CLASS_BEAMER)
hoedown_buffer_puts(ob, "\\begin{frame}\n");
}
static void
rndr_end(hoedown_buffer *ob, ext_definition * extension, const hoedown_renderer_data *data)
{
if (ob->size) hoedown_buffer_putc(ob, '\n');
if (data->meta->doc_class == CLASS_BEAMER) {
hoedown_buffer_puts(ob, "\\end{frame}\n");
}
if (extension && extension->extra_closing)
{
hoedown_buffer_puts(ob, extension->extra_closing);
}
hoedown_buffer_puts(ob, "\\end{document}\n");
}
static void
rndr_pagebreak(hoedown_buffer *ob)
{
hoedown_buffer_puts(ob, "\\newpage\n");
}
static void
rndr_abstract(hoedown_buffer *ob){
hoedown_buffer_puts(ob, "\\begin{abstract}\n");
}
static void
rndr_close(hoedown_buffer *ob){
hoedown_buffer_puts(ob, "\\end{abstract}");
}
static int rndr_ref (hoedown_buffer *ob, char * id, int count)
{
hoedown_buffer_printf(ob, "(\\ref{%s})", id);
return 1;
}
static void rndr_open_equation(hoedown_buffer *ob, const char * ref, const hoedown_renderer_data *data)
{
hoedown_buffer_puts(ob,"\\begin{equation}\n");
if (ref){
hoedown_buffer_puts(ob,"\\label{");
hoedown_buffer_puts(ob, ref);
hoedown_buffer_puts(ob, "}\n");
}
}
static void rndr_close_equation(hoedown_buffer *ob, const hoedown_renderer_data *data)
{
/* scidown_latex_renderer_state *state = data->opaque; */
hoedown_buffer_puts(ob, "\n\\end{equation}");
}
static void rndr_open_float(hoedown_buffer *ob, float_args args, const hoedown_renderer_data *data)
{
switch (args.type)
{
case FIGURE:
hoedown_buffer_puts(ob, "\\begin{figure}[ht!]\n");
break;
case LISTING:
/**TODO make it better**/
hoedown_buffer_puts(ob, "\\begin{program}\n");
break;
case TABLE:
hoedown_buffer_puts(ob, "\\begin{table}\n");
break;
default:
break;
}
hoedown_buffer_puts(ob, "\\begin{center}\n");
}
static void rnrd_close_float(hoedown_buffer *ob, float_args args, const hoedown_renderer_data *data)
{
if (args.caption){
hoedown_buffer_puts(ob, "\\caption{");
hoedown_buffer_puts(ob, args.caption);
hoedown_buffer_puts(ob, "}\n");
}
if (args.id)
{
hoedown_buffer_puts(ob, "\\label{");
hoedown_buffer_puts(ob, args.id);
hoedown_buffer_puts(ob, "}\n");
}
hoedown_buffer_puts(ob, "\\end{center}\n");
switch (args.type)
{
case FIGURE:
hoedown_buffer_puts(ob, "\\end{figure}\n");
break;
case LISTING:
/**TODO make it better**/
hoedown_buffer_puts(ob, "\\end{program}\n");
break;
case TABLE:
hoedown_buffer_puts(ob, "\\end{table}\n");
break;
default:
break;
}
}
static void
rndr_toc(hoedown_buffer *ob, toc * tree, int numbering)
{
hoedown_buffer_puts(ob, "\\tableofcontents");
}
hoedown_renderer *
scidown_latex_renderer_new(scidown_render_flags render_flags, int nesting_level, localization local)
{
static const hoedown_renderer cb_default = {
NULL,
rndr_head,
rndr_title,
rndr_authors,
rndr_affiliation,
rndr_keywords,
rndr_begin,
rndr_inner,
rndr_end,
rndr_pagebreak,
rndr_close,
rndr_abstract,
rndr_open_equation,
rndr_close_equation,
rndr_open_float,
rnrd_close_float,
rndr_blockcode,
rndr_blockquote,
rndr_header,
rndr_hrule,
rndr_list,
rndr_listitem,
rndr_paragraph,
rndr_table,
rndr_table_header,
rndr_table_body,
rndr_tablerow,
rndr_tablecell,
rndr_footnotes,
rndr_footnote_def,
rndr_raw_block,
rndr_toc,
rndr_autolink,
rndr_codespan,
rndr_double_emphasis,
rndr_emphasis,
rndr_underline,
rndr_highlight,
rndr_quote,
rndr_image,
rndr_linebreak,
rndr_link,
rndr_triple_emphasis,
rndr_strikethrough,
rndr_superscript,
rndr_footnote_ref,
rndr_math,
rndr_eq_math,
rndr_ref,
rndr_raw_html,
NULL,
rndr_normal_text,
NULL,
NULL
};
scidown_latex_renderer_state *state;
hoedown_renderer *renderer;
/* Prepare the state pointer */
state = hoedown_malloc(sizeof(scidown_latex_renderer_state));
memset(state, 0x0, sizeof(scidown_latex_renderer_state));
state->flags = render_flags;
state->counter.figure = 0;
state->counter.equation = 0;
state->counter.listing = 0;
state->counter.table = 0;
state->localization = local;
state->toc_data.nesting_level = nesting_level;
/* Prepare the renderer */
renderer = hoedown_malloc(sizeof(hoedown_renderer));
memcpy(renderer, &cb_default, sizeof(hoedown_renderer));
renderer->opaque = state;
return renderer;
}
void
scidown_latex_renderer_free(hoedown_renderer *renderer)
{
free(renderer->opaque);
free(renderer);
}
| 24.575141
| 152
| 0.690055
|
bdeaea3f708b329e9aba1a50c5303ab2aa6f8b45
| 477
|
h
|
C
|
src/main.h
|
zqianem/pebble
|
481c272bbb12ca1b16b776255cc9227696d3edef
|
[
"MIT"
] | null | null | null |
src/main.h
|
zqianem/pebble
|
481c272bbb12ca1b16b776255cc9227696d3edef
|
[
"MIT"
] | null | null | null |
src/main.h
|
zqianem/pebble
|
481c272bbb12ca1b16b776255cc9227696d3edef
|
[
"MIT"
] | null | null | null |
#ifndef __MAIN_H
#define __MAIN_H
#include <string>
#include <vector>
#include <map>
#include "abstract.h"
#include "utils.h"
// ---------------------------------------------------------------------------------------------------------------------
// Typedefs
typedef std::string String;
/// if true will turn on output for 'print' command of the language
extern bool g_outputOn;
/// if true will use the BytecodeRuntime engine
extern bool g_useBytecodeRuntime;
#endif
| 19.08
| 120
| 0.555556
|
bdeaf51073fa5980131150cdcd62aefafa301ef9
| 883
|
h
|
C
|
src/pl/pljava/src/C/include/pljava/type/LargeObject.h
|
YangHao666666/hawq
|
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
|
[
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 450
|
2015-09-05T09:12:51.000Z
|
2018-08-30T01:45:36.000Z
|
src/pl/pljava/src/C/include/pljava/type/LargeObject.h
|
YangHao666666/hawq
|
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
|
[
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1,274
|
2015-09-22T20:06:16.000Z
|
2018-08-31T22:14:00.000Z
|
src/pl/pljava/src/C/include/pljava/type/LargeObject.h
|
YangHao666666/hawq
|
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
|
[
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 278
|
2015-09-21T19:15:06.000Z
|
2018-08-31T00:36:51.000Z
|
/*
* Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root folder of this project or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*
* @author Thomas Hallgren
*/
#ifndef __pljava_LargeObject_h
#define __pljava_LargeObject_h
#include "pljava/type/Type.h"
#ifdef __cplusplus
extern "C" {
#endif
#include <storage/large_object.h>
/*****************************************************************
* The LargeObject java class extends the NativeStruct and provides JNI
* access to some of the attributes of the LargeObjectDesc structure.
*
* @author Thomas Hallgren
*****************************************************************/
/*
* Create the org.postgresql.pljava.LargeObject instance
*/
extern jobject LargeObject_create(LargeObjectDesc* lo);
#ifdef __cplusplus
}
#endif
#endif
| 25.228571
| 71
| 0.642129
|
bdeb09c74d13de85dccdec8ef0000063e03d2ec7
| 305,754
|
h
|
C
|
esplay-sdk/esplay-components/osd-menu/include/menu_bg.h
|
NewLeafG/esplay-retro-emulation
|
f78137cda7bc4e3cf025f930c2352999bece3243
|
[
"MIT"
] | 270
|
2019-03-18T16:01:11.000Z
|
2022-03-31T07:52:15.000Z
|
esplay-sdk/esplay-components/osd-menu/include/menu_bg.h
|
NewLeafG/esplay-retro-emulation
|
f78137cda7bc4e3cf025f930c2352999bece3243
|
[
"MIT"
] | 20
|
2019-05-10T02:01:38.000Z
|
2021-09-15T03:42:34.000Z
|
esplay-sdk/esplay-components/osd-menu/include/menu_bg.h
|
NewLeafG/esplay-retro-emulation
|
f78137cda7bc4e3cf025f930c2352999bece3243
|
[
"MIT"
] | 48
|
2019-05-09T14:45:55.000Z
|
2022-03-17T07:28:52.000Z
| "/* GIMP RGB C-Source image dump (menu_bg.h) */\r\n\r\nstatic const struct {\r\n unsigned int \t wi(...TRUNCATED)
| 80.865908
| 149
| 0.694316
|
bded10b665cae00375e9c09c1483457981c9942f
| 162
|
h
|
C
|
Foreman/SafeGroupView.h
|
flyingmachine/foreman
|
008b4f3de77315360e493b1ae7594f42561e11f4
|
[
"MIT"
] | 5
|
2015-08-03T15:46:23.000Z
|
2018-12-07T22:04:13.000Z
|
Foreman/SafeGroupView.h
|
flyingmachine/foreman
|
008b4f3de77315360e493b1ae7594f42561e11f4
|
[
"MIT"
] | null | null | null |
Foreman/SafeGroupView.h
|
flyingmachine/foreman
|
008b4f3de77315360e493b1ae7594f42561e11f4
|
[
"MIT"
] | null | null | null | "#import <Cocoa/Cocoa.h>\n@class SafeGroupViewController;\n\n\n@interface SafeGroupView : NSView\n@p(...TRUNCATED)
| 20.25
| 64
| 0.808642
|
bdeda7086acfbba086c61b0e3f0d0fa92f787fdd
| 1,099
|
h
|
C
|
external/GTEngine/Include/GTLowLevel.h
|
yushuiqiang/geometry3cpp
|
2727986b89da2d40ffbd0dddb6947183c8bf68b0
|
[
"BSL-1.0"
] | 1
|
2021-02-18T10:25:42.000Z
|
2021-02-18T10:25:42.000Z
|
external/GTEngine/Include/GTLowLevel.h
|
yushuiqiang/geometry3cpp
|
2727986b89da2d40ffbd0dddb6947183c8bf68b0
|
[
"BSL-1.0"
] | null | null | null |
external/GTEngine/Include/GTLowLevel.h
|
yushuiqiang/geometry3cpp
|
2727986b89da2d40ffbd0dddb6947183c8bf68b0
|
[
"BSL-1.0"
] | null | null | null | "// David Eberly, Geometric Tools, Redmond WA 98052\r\n// Copyright (c) 1998-2018\r\n// Distributed (...TRUNCATED)
| 30.527778
| 63
| 0.755232
|
bdef6e6cc23c69c511bd909d1fdaccb18193344a
| 1,566
|
h
|
C
|
larcv/app/SBNDImageMod/ApplyLabel.h
|
mmajewsk/larcv2
|
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
|
[
"MIT"
] | 14
|
2017-10-19T15:08:29.000Z
|
2021-03-31T21:21:07.000Z
|
larcv/app/SBNDImageMod/ApplyLabel.h
|
mmajewsk/larcv2
|
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
|
[
"MIT"
] | 32
|
2017-10-25T22:54:06.000Z
|
2019-10-01T13:57:15.000Z
|
larcv/app/SBNDImageMod/ApplyLabel.h
|
mmajewsk/larcv2
|
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
|
[
"MIT"
] | 16
|
2017-12-07T12:04:40.000Z
|
2021-11-15T00:53:31.000Z
| "/**\n * \\file ApplyLabel.h\n *\n * \\ingroup ImageMod\n *\n * \\brief Class def header for a class(...TRUNCATED)
| 18.642857
| 82
| 0.683269
|
bdf0b52e79b7064d8106c15182195a46e2407706
| 3,813
|
h
|
C
|
PrivateFrameworks/PhotosUICore/PXGAnchor.h
|
phatblat/macOSPrivateFrameworks
|
9047371eb80f925642c8a7c4f1e00095aec66044
|
[
"MIT"
] | 17
|
2018-11-13T04:02:58.000Z
|
2022-01-20T09:27:13.000Z
|
PrivateFrameworks/PhotosUICore/PXGAnchor.h
|
phatblat/macOSPrivateFrameworks
|
9047371eb80f925642c8a7c4f1e00095aec66044
|
[
"MIT"
] | 3
|
2018-04-06T02:02:27.000Z
|
2018-10-02T01:12:10.000Z
|
PrivateFrameworks/PhotosUICore/PXGAnchor.h
|
phatblat/macOSPrivateFrameworks
|
9047371eb80f925642c8a7c4f1e00095aec66044
|
[
"MIT"
] | 1
|
2018-09-28T13:54:23.000Z
|
2018-09-28T13:54:23.000Z
| "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998,(...TRUNCATED)
| 45.939759
| 152
| 0.791765
|
End of preview. Expand
in Data Studio
No dataset card yet
- Downloads last month
- 6