repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
sunnycn2013/BDSprite_HK | BDSprite/BaseClasses/BSViewController/BSBaseViewController.h | <gh_stars>0
//
// BSBaseViewController.h
// BDSprite
//
// Created by alibaba on 2017/9/1.
// Copyright © 2017年 ESTGroup. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MJRefresh/MJRefreshHeader.h>
@interface BSBaseViewController : UIViewController
@property (nonatomic, strong) UITableView *tableView;
... |
sunnycn2013/BDSprite_HK | BDSprite/Utils/DBManager/UserDBManager.h | //
// UserDBManager.h
// BDSprite
//
// Created by Aufree on 10/2/15.
// Copyright © 2015 ESTGroup. All rights reserved.
//
#import "BaseDBManager.h"
#import "UserEntity.h"
@interface UserDBManager : BaseDBManager
+ (UserEntity *)findByUserId:(NSNumber *)userId;
@end
|
sunnycn2013/BDSprite_HK | BDSprite/Views/Base/BubbleButton.h | <filename>BDSprite/Views/Base/BubbleButton.h
//
// BubbleButton.h
// BDSprite
//
// Created by Aufree on 10/9/15.
// Copyright © 2015 ESTGroup. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BubbleButton : UIButton
@end
|
sunnycn2013/BDSprite_HK | PHPHub/Constants/SecretConstant.h | <reponame>sunnycn2013/BDSprite_HK
//
// SecretConstant.h
// PHPHub
//
// Created by ccguo on 2017/9/7.
// Copyright © 2017年 ESTGroup. All rights reserved.
//
#if DEBUG
#define Client_id @"kHOugsx4dmcXwvVbmLkd"
#define Client_secret @"<KEY>"
#else
#define Client_id @"" // Set up a client id for produc... |
sunnycn2013/BDSprite_HK | BDSprite/BaseClasses/BaseDBManager.h | //
// BaseDBManager.h
// BDSprite
//
// Created by Aufree on 9/21/15.
// Copyright (c) 2015 ESTGroup. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "FMDatabaseAdditions.h"
//#import "MTLModel.h"
#import "FMDBMigrationManager.h"
#define DefaultDatabaseFileName @"MainData... |
sunnycn2013/BDSprite_HK | BDSprite/Handlers/UMengSocialHandler.h | <reponame>sunnycn2013/BDSprite_HK
//
// UMengSocialHandler.h
// BDSprite
//
// Created by Aufree on 10/15/15.
// Copyright © 2015 ESTGroup. All rights reserved.
//
//#import "UMSocial.h"
#import "UMSocialQQHandler.h"
#import "UMSocialWechatHandler.h"
//#import "UMSocialSinaHandler.h"
@interface UMengSocialHandler... |
sunnycn2013/BDSprite_HK | BDSprite/Common/XGManager/XGManager.h | <gh_stars>1-10
//
// XGManager.h
// CaibeiMarket
//
// Created by icaibei on 2017/8/19.
// Copyright © 2017年 qianji. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface XGManager : NSObject
+ (void)initXG;
+ (void)registerAPNSToken:(NSData *)deviceToken;
+ (void)setTag:(NSString *)tag;
+ (void)... |
fabrice-ducos/jaclin | src/aolserver/src/pg.c | /*
* Copyright (c) 2000 <NAME>
*
* See also http://www.aolserver.com for details on the AOLserver
* web server software
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
... |
fabrice-ducos/jaclin | unix/custom2.c | #include <stdlib.h>
#include <string.h>
#include <tcl.h>
#include <jni.h>
JavaVM *vm; /* Java virtual machine. */
JNIEnv *env; /* Java run-time environment. */
/*
*----------------------------------------------------------------------
*
* main --
*
* This is the main program for the custom2 shell. It cre... |
fabrice-ducos/jaclin | src/aolserver/src/nsjava.c | <gh_stars>0
/*
* Copyright (c) 2000 <NAME>
*
* See also http://www.aolserver.com for details on the AOLserver
* web server software
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundati... |
fabrice-ducos/jaclin | src/native/javaIdle.c | <filename>src/native/javaIdle.c
/*
* javaIdle.c --
*
* This file contains the native methods for the IdleHandler class.
*
* Copyright (c) 1998 by Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* RCS... |
fabrice-ducos/jaclin | src/aolserver/include/nsjava.h | <reponame>fabrice-ducos/jaclin<gh_stars>0
/*
* Copyright (c) 2000 <NAME>
*
* See also http://www.aolserver.com for details on the AOLserver
* web server software
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published... |
fabrice-ducos/jaclin | unix/custom.c | #include <stdlib.h>
#include <tcl.h>
#include <jni.h>
JavaVM *vm; /* Java virtual machine. */
JNIEnv *env; /* Java run-time environment. */
/*
*----------------------------------------------------------------------
*
* main --
*
* This is the main program for the custom shell.
*
* Results:
* None: Tcl... |
fabrice-ducos/jaclin | src/aolserver/src/methods.c | <filename>src/aolserver/src/methods.c
/*
* Copyright (c) 2000 <NAME>
*
* See also http://www.aolserver.com for details on the AOLserver
* web server software
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by ... |
fabrice-ducos/jaclin | extras/JNI_example/JNI_example.c | #include <jni.h>
JNIEXPORT jint JNICALL Java_JNI_1example_magic
(JNIEnv *, jclass);
jint JNICALL
Java_JNI_1example_magic(
JNIEnv *env,
jclass jcl)
{
return 12345;
}
|
fabrice-ducos/jaclin | src/native/javaList.c | <filename>src/native/javaList.c
/*
* javaList.c --
*
* This file contains the native method implementation the
* TclList class.
*
* Copyright (c) 1997 by Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
... |
fabrice-ducos/jaclin | src/aolserver/src/set.c | /*
* Copyright (c) 2000 <NAME>
*
* See also http://www.aolserver.com for details on the AOLserver
* web server software
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
... |
fabrice-ducos/jaclin | src/aolserver/src/log.c | /*
* Copyright (c) 2000 <NAME>
*
* See also http://www.aolserver.com for details on the AOLserver
* web server software
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
... |
fabrice-ducos/jaclin | src/native/javaTimer.c | /*
* javaTimer.c --
*
* This file contains the native methods for the TimerHandler class.
*
* Copyright (c) 1998 by Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* RCS: @(#) $Id: javaTimer.c,v 1.6 ... |
fabrice-ducos/jaclin | src/aolserver/src/db.c | <reponame>fabrice-ducos/jaclin
/*
* Copyright (c) 2000 <NAME>
*
* See also http://www.aolserver.com for details on the AOLserver
* web server software
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Fre... |
Alligator/slider | slider.c | #include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <time.h>
#define OPTPARSE_IMPLEMENTATION
#include "lib/optparse.h"
#include "lib/pdfgen.h"
// page width is dervied from the height based on the aspect ratio
#define PAGE_HEIGHT 540
#define FONT_SIZE 72
struct slide {
bool monospace;
int align;
... |
forcedotcom/SalesforceMobileSDK-Samples | iOS/tutorials/NativeiOSTutorial/WarehouseApp/WarehouseApp/Classes/DetailViewController.h | <filename>iOS/tutorials/NativeiOSTutorial/WarehouseApp/WarehouseApp/Classes/DetailViewController.h
//
// DetailViewController.h
// WarehouseApp
//
// Created by <NAME> on 8/30/13.
// Copyright (c) 2013 Sample Apps from Salesforce. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SFRestAPI.h"
@interface De... |
forcedotcom/SalesforceMobileSDK-Samples | iOS/tutorials/NativeiOSTutorial/WarehouseApp/WarehouseApp/Dependencies/SalesforceCommonUtils/Headers/SalesforceCommonUtils/SFLogger.h | <filename>iOS/tutorials/NativeiOSTutorial/WarehouseApp/WarehouseApp/Dependencies/SalesforceCommonUtils/Headers/SalesforceCommonUtils/SFLogger.h
//
// SFLogger.h
// SalesforceCommonUtils
//
// Copyright (c) 2012 salesforce.com. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum SFLogLevel {
SFL... |
forcedotcom/SalesforceMobileSDK-Samples | iOS/tutorials/NativeiOSTutorial/WarehouseApp/WarehouseApp/Dependencies/SalesforceCommonUtils/Headers/SalesforceCommonUtils/SalesforceCommonUtils.h | //
// SalesforceCommonUtils.h
// SalesforceCommonUtils
//
// Created by <NAME> on .
// Copyright 2012 Salesforce.com. All rights reserved.
//
#import "NSData+SFAdditions.h"
#import "NSDictionary+SFAdditions.h"
#import "NSMutableAttributedString+SFAdditions.h"
#import "NSObject+SFBlocks.h"
#import "NSString+SFAddit... |
tailiang2008/FinRL-Meta | ta-lib/include/ta_config.h | /* include/ta_config.h. Generated from ta_config.h.in by configure. */
/* include/ta_config.h.in. Generated from configure.in by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
/* #undef HAVE_DOPRNT... |
snmsts/xyzzy | src/appid.h | <filename>src/appid.h
#ifndef _appid_h_
# define _appid_h_
#include <ShObjIdl.h>
typedef HRESULT (*SETAPPID)(PCWSTR AppID);
class appid
{
public:
static void set ();
};
#endif
|
snmsts/xyzzy | src/byte-stream.h | <reponame>snmsts/xyzzy
#ifndef _byte_stream_h_
#define _byte_stream_h_
#include "StrBuf.h"
#include "encoding.h"
typedef xoutput_stream <u_char> byte_output_stream;
typedef xinput_stream <u_char> byte_input_stream;
typedef xoutput_stream <Char> Char_output_stream;
typedef xinput_stream <Char> Char_input_stream;
clas... |
snmsts/xyzzy | src/guess_tab.c | <gh_stars>10-100
/* State transition table for character code guessing */
/* This file is automatically generated by guess.scm */
static signed char guess_eucj_st[][256] = {
{ /* state init */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... |
snmsts/xyzzy | src/syntaxinfo.h | <gh_stars>10-100
#ifndef _syntaxinfo_h_
#define _syntaxinfo_h_
struct syntax_state
{
enum
{
SS_INVALID,
SS_NORMAL,
SS_ESC_NORMAL,
SS_MCOMM1S_OR_CPPCOMM1,
SS_MCOMM1S,
SS_CPPCOMM1,
SS_MCOMMENT,
SS_MCOMM1E,
SS_CPPCOMMENT,
SS_STRING,
SS_ESC_STRING,
... |
snmsts/xyzzy | src/regex.h | <gh_stars>10-100
#ifndef _regex_h_
# define _regex_h_
#define MAX_REGS 10
struct re_point;
class re_search;
static inline int
re_syntax_word_p (u_char c)
{
return c == SCword;
}
static inline int
re_syntax_symbol_p (u_char c)
{
return c == SCsymbol || c == SCword;
}
class Regexp
{
public:
struct sregs
{
... |
snmsts/xyzzy | src/privctrl/mousemsg.h | <reponame>snmsts/xyzzy
#ifndef _mousemsg_h_
#ifndef WM_XBUTTONDOWN
/* wParam:
The low-order word indicates whether various virtual keys are down.
The high-order word indicates which button was pressed. */
#define WM_XBUTTONDOWN 0x020B
#define WM_XBUTTONUP 0x020C
#define WM_XBUTTONDBLCLK 0x020D
#define WM_NCXBUTT... |
snmsts/xyzzy | src/system.h | #ifndef _system_h_
# define _system_h_
#include "ed.h"
#include <rpc.h>
static inline void
rpc_error (RPC_STATUS r)
{
if (r != RPC_S_OK)
FEsimple_win32_error (MAKE_HRESULT (1, FACILITY_RPC, r));
}
class safe_rpc_str
{
protected:
RPC_CSTR u;
public:
safe_rpc_str () : u (0) {}
~safe_rpc_str () {if (u) RpcS... |
snmsts/xyzzy | src/afxres.h | #include <windows.h>
#define IDC_STATIC (-1)
|
snmsts/xyzzy | src/xstrlist.h | <filename>src/xstrlist.h
#ifndef _xstrlist_h_
#define _xstrlist_h_
class xstring_node: public xlist_node <xstring_node>
{
public:
char data[1];
operator const char * () const {return data;}
};
class xstring_list: public xlist <xstring_node>
{
public:
~xstring_list ()
{
while (!empty_p ())
dele... |
snmsts/xyzzy | src/readtab.h | <reponame>snmsts/xyzzy<gh_stars>10-100
// -*-C++-*-
#ifndef _readtab_h_
# define _readtab_h_
# define READTABLE_REP_SIZE 128
struct dispmacro_param;
typedef lisp (*reader_macro_function)(lisp, Char);
typedef lisp (*reader_dispmacro_function)(lisp, Char, dispmacro_param &);
enum standard_char_type
{
SCT_ILLEGAL,
... |
snmsts/xyzzy | src/DnD.h | <reponame>snmsts/xyzzy
#ifndef _DnD_h_
# define _DnD_h_
#include <ole2.h>
#include <ole2ver.h>
class ole_object
{
protected:
int o_ref;
public:
ole_object () : o_ref (1) {}
~ole_object () {}
HRESULT QueryInterface (IUnknown *, REFIID, REFIID, void **);
ULONG AddRef () {return ++o_ref;}
ULONG Release () {... |
snmsts/xyzzy | src/package.h | <filename>src/package.h<gh_stars>10-100
// -*-C++-*-
#ifndef _package_h_
# define _package_h_
class lpackage: public lisp_object
{
public:
lisp name;
lisp nicknames;
lisp use_list;
lisp used_by_list;
lisp shadowings;
lisp internal;
lisp external;
lisp documentation;
};
# define packagep(X) typep ((X),... |
snmsts/xyzzy | src/privctrl/privctlimpl.h | #ifndef _PRIVCTLIMPL_H_
# define _PRIVCTLIMPL_H_
# ifndef PRIVCTRL_NODLL
# define PRIVCTRLAPI __declspec (dllexport) WINAPI
# else
# define PRIVCTRLAPI WINAPI
# endif
# include "privctrl.h"
# ifndef EXTERN
# define EXTERN extern
# endif
EXTERN HINSTANCE hinstDLL;
EXTERN ATOM hprop;
EXTERN ATOM hownerdraw;
#defin... |
snmsts/xyzzy | src/mainframe.h | <reponame>snmsts/xyzzy
#ifndef _mainframe_h_
#define _mainframe_h_
#include "dockbar.h"
#include "pane.h"
class main_frame: public dock_frame
{
public:
splitter m_splitter;
public:
void init (HWND toplev, HWND frame)
{
dock_frame::init (toplev, frame);
m_splitter.init (toplev, frame);
}
voi... |
snmsts/xyzzy | src/clock.h | #ifndef _clock_h_
# define _clock_h_
class Clock
{
HWND cl_hwnd;
int cl_width;
int cl_extent;
char cl_lbuf[16];
public:
void init (HWND);
void size ();
void timer ();
};
#endif
|
snmsts/xyzzy | src/resource.h | //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by xyzzy.rc
//
#define IDS_SELECT_BUFFER1 1
#define IDS_SELECT_BUFFER2 2
#define IDS_SELECT_BUFFER3 3
#define IDS_SELECT_BUFFER4 4
#define IDS_SELECT_FILE1 5
#define IDS... |
snmsts/xyzzy | src/colors.h | #ifndef _colors_h_
#define _colors_h_
enum
{
MC_FILER_FG,
MC_FILER_BG,
MC_FILER_HIGHLIGHT_FG,
MC_FILER_HIGHLIGHT_BG,
MC_FILER_CURSOR,
MC_BUFTAB_SEL_FG,
MC_BUFTAB_SEL_BG,
MC_BUFTAB_DISP_FG,
MC_BUFTAB_DISP_BG,
MC_BUFTAB_FG,
MC_BUFTAB_BG,
MC_TAB_SEL_FG,
MC_TAB_SEL_BG,
MC_TAB_FG,
MC_TAB_BG,
... |
snmsts/xyzzy | src/printdlg.h | #ifndef _printdlg_h_
#define _printdlg_h_
class print_dialog
{
protected:
int init_dialog (HWND);
BOOL command (UINT, UINT);
BOOL destroy ();
BOOL notify (NMHDR *);
BOOL quit ();
BOOL ok (UINT);
BOOL cancel (UINT);
BOOL clicked (UINT, int) const;
BOOL range_command (UINT, int, UINT, LONG, const char ... |
snmsts/xyzzy | src/vector.h | // -*-C++-*-
#ifndef _vector_h_
# define _vector_h_
/* vector */
# include "array.h"
class lsimple_vector: public lbase_vector
{
};
class lcomplex_vector: public lbase_complex_vector
{
};
# define general_vector_p(X) \
object_type_mask_p ((X), TAvector | TAgeneral, TAvector | TAgeneral)
# define simple_vector_p(... |
snmsts/xyzzy | src/function.h | // -*-C++-*-
#ifndef _function_h_
# define _function_h_
/* function */
# define FFspecial_form (1 << 0)
# define FFmacro (1 << 1)
# define FFpseudo_macro (1 << 2)
# define FFneed_rest (1 << 3)
# define FFeditor (1 << 4)
# ifndef NOT_COMPILE_TIME
class lfunction: public lisp_object
{
public:
lfunct... |
snmsts/xyzzy | src/StrBuf.h | // -*-C++-*-
#ifndef _StrBuf_h_
# define _StrBuf_h_
# include "cdecl.h"
class StrBuf
{
protected:
struct strbuf_chunk
{
strbuf_chunk *cdr;
Char *used;
Char contents[1];
};
strbuf_chunk *sb_chunk;
int sb_chunk_size;
Char *sb_next;
Char *sb_limit;
int sb_finished;
virtual void ... |
snmsts/xyzzy | src/syntax.h | <filename>src/syntax.h<gh_stars>10-100
// -*-C++-*-
#ifndef _syntax_h_
# define _syntax_h_
# define SYNTAX_OPT_CPP 1
# define SYNTAX_OPT_CPLUSPLUS 2
# define SYNTAX_OPT_JAVA 4
# define SYNTAX_OPT_CSHARP 8
# define SYNTAX_OPT_COLUMN_CHAR 16
# define SYNTAX_OPT_CPLUSPLUS_CLI 32
struct syntax_table
{
u_char type[256];... |
snmsts/xyzzy | src/guess.h | <reponame>snmsts/xyzzy
#ifndef _guess_h_
# define _guess_h_
inline int
utf8_signature_p (const char *string, int size)
{
return size >= 3 && !memcmp (string, "\xef\xbb\xbf", 3);
}
#endif
|
snmsts/xyzzy | src/sockimpl.h | <reponame>snmsts/xyzzy
#ifndef _sockimpl_h_
#define _sockimpl_h_
#define WINSOCK_VOID
#define WINSOCK_FUNCTIONS \
WSOCKDEF (SOCKET, accept, (SOCKET, struct sockaddr *, int *), INVALID_SOCKET) \
WSOCKDEF (int, bind, (SOCKET, const struct sockaddr *, int), SOCKET_ERROR) \
WSOCKDEF (int, closesocket, (SOCKET), SOC... |
snmsts/xyzzy | src/utimer.h | #ifndef _utimer_h_
#define _utimer_h_
#include "xlist.h"
class utimer
{
private:
class timer_entry: public xlist_node <timer_entry>
{
public:
typedef __int64 utime_t;
enum {TE_NEW = 1, TE_ONE_SHOT = 2};
enum {UNITS_PER_SEC = 10000000};
utime_t te_time;
u_long te_interval;
... |
snmsts/xyzzy | src/xlist.h | <filename>src/xlist.h
#ifndef _xlist_h_
#define _xlist_h_
class xlistP
{
public:
struct xlist_nodeP {xlist_nodeP *xn_prev, *xn_next;};
private:
typedef xlist_nodeP *x_node_ptr;
x_node_ptr x_head, x_tail;
public:
xlistP () : x_head (0), x_tail (0) {}
static int null (const x_node_ptr p) {return !p;}
x_node... |
snmsts/xyzzy | src/timer.h | <filename>src/timer.h<gh_stars>10-100
#ifndef _timer_h_
# define _timer_h_
enum
{
TID_SLEEP = 1,
TID_ITIMER,
TID_USER
};
class itimer
{
u_int it_counter;
public:
enum {interval = 3};
itimer () : it_counter (0) {}
void reset ()
{
it_counter = 0;
}
void inc ()
{
if (it_counter !=... |
snmsts/xyzzy | src/binfo.h | #ifndef _binfo_h_
#define _binfo_h_
#include "version.h"
class buffer_info
{
const Window *const b_wp;
const Buffer *const b_bufp;
char **const b_posp;
char **const b_percentp;
int *const b_ime;
static const char *const b_eol_name[];
char *minor_mode (lisp, char *, char *, int &) const;
public:
buffe... |
snmsts/xyzzy | src/sysdep.h | <filename>src/sysdep.h<gh_stars>1-10
#ifndef _sysdep_h_
# define _sysdep_h_
# include "cdecl.h"
struct Sysdep
{
Sysdep ();
~Sysdep ();
OSVERSIONINFO os_ver;
SIZE border;
SIZE dblclk;
SIZE edge;
UINT vscroll;
UINT hscroll;
COLORREF btn_text;
COLORREF btn_highlight;
COLORREF btn_shadow;
COLOR... |
snmsts/xyzzy | src/wheel.h | #ifndef _WHEEL_H_
#define _WHEEL_H_
struct wheel_info
{
int wi_value;
UINT wi_nlines;
POINT wi_pt;
};
class mouse_wheel
{
private:
static UINT mw_nlines;
static UINT PWM_MSH_MOUSEWHEEL;
int mw_delta;
public:
mouse_wheel ();
~mouse_wheel ();
int msg_handler (HWND, UINT, WPARAM, LPARAM, wheel_info &);... |
snmsts/xyzzy | src/ColorDialog.h | #ifndef _ColorDialog_h_
# define _ColorDialog_h_
# include "colors.h"
class PropSheet;
class ChangeColorsPageP
{
protected:
enum {NPROPS = GLYPH_TEXTPROP_NCOLORS - 1};
enum {NMODELINES = 2};
enum {NMISCS = MC_NCOLORS};
enum {MAX_CCP_COLORS = USER_DEFINABLE_COLORS + NMODELINES + NMISCS + NPROPS * 2};
enum
... |
snmsts/xyzzy | src/gime.h | <gh_stars>10-100
#ifndef _gime_h_
#define _gime_h_
interface IActiveIMMApp;
interface IActiveIMMMessagePumpOwner;
class GlobalIME
{
protected:
IActiveIMMApp *gi_app;
IActiveIMMMessagePumpOwner *gi_pump;
HRESULT init (ATOM *, int);
void cleanup ();
private:
GlobalIME (const GlobalIME &);
void operator = ... |
snmsts/xyzzy | src/ipc.h | #ifndef _ipc_h_
#define _ipc_h_
class xyzzy_hwnd
{
static HWND get (int);
public:
xyzzy_hwnd (HWND);
~xyzzy_hwnd ();
int find (HWND) const;
HWND next (int &) const;
HWND prev (int &) const;
int set (HWND) const;
int clr (HWND) const;
int count () const;
};
class xyzzy_instance
{
HWND xi_hwnd;
s... |
snmsts/xyzzy | src/xpi.h | #ifndef _XPI_H_
#define _XPI_H_
#ifdef __cplusplus
extern "C" {
#endif
#define XPIS_LEFT 0
#define XPIS_TOP 1
#define XPIS_RIGHT 2
#define XPIS_BOTTOM 3
#define XPIS_NOMOVE 4
#define XPIS_POSMASK 7
#define XPIS_ORDMASK 0x30
#define XPIS_OUTSIDE 0x10
#define XPIS_INSIDE 0x20
#define XPIS_NOORDER 0x30
#defi... |
snmsts/xyzzy | src/debug.h | <reponame>snmsts/xyzzy<gh_stars>1-10
#ifndef _debug_h_
# define _debug_h_
void
Debug(char *format, ...);
#endif /* _debug_h_ */
|
snmsts/xyzzy | src/ces.h | // -*-C++-*-
#ifndef _ces_h_
#define _ces_h_
enum encoding_type
{
encoding_auto_detect,
encoding_sjis,
encoding_big5,
encoding_iso2022,
encoding_iso2022_noesc,
encoding_iso8859,
encoding_windows_codepage,
encoding_utf7,
encoding_utf8,
encoding_utf16,
encoding_binary,
encoding_utf5
};
#define E... |
snmsts/xyzzy | src/closure.h | // -*-C++-*-
#ifndef _closure_h_
# define _closure_h_
# include "number.h"
class lclosure: public lisp_object
{
public:
lisp body;
lisp vars;
lisp fns;
lisp frame;
lisp name;
};
# define closurep(X) typep ((X), Tclosure)
inline lisp &
xclosure_body (lisp x)
{
assert (closurep (x));
return ((lclosure *... |
snmsts/xyzzy | src/xcolor.h | <gh_stars>10-100
#ifndef _xcolor_h_
# define _xcolor_h_
class XCOLORREF
{
public:
COLORREF rgb;
XCOLORREF () {}
XCOLORREF (const XCOLORREF &xc) : rgb (xc.rgb) {}
XCOLORREF (COLORREF c) : rgb (c) {}
XCOLORREF (BYTE r, BYTE g, BYTE b, int i)
: rgb (RGB (r, g, b) | ((i + 1) << 24)) {}
XCOLORREF (COLOR... |
snmsts/xyzzy | src/mman.h | <gh_stars>10-100
#ifndef _MMAN_H_
# define _MMAN_H_
class mapf
{
HANDLE mf_hfile;
HANDLE mf_hmap;
DWORD mf_size;
void *mf_base;
void init ()
{
mf_hfile = INVALID_HANDLE_VALUE;
mf_hmap = 0;
mf_base = 0;
}
public:
mapf () {init ();}
~mapf () {close ();}
void close ();
int op... |
snmsts/xyzzy | src/char.h | <filename>src/char.h
// -*-C++-*-
#ifndef _char_h_
# define _char_h_
# include "chtype.h"
# include "charset.h"
inline lisp
make_char (Char c)
{
return make_immediate (Lchar, c);
}
inline int
charp (lisp x)
{
return lowbits (pointer_t (x)) == Lchar;
}
inline Char
xchar_code (lisp x)
{
assert (charp (x));
re... |
snmsts/xyzzy | src/vfs.h | #ifndef _vfs_h_
#define _vfs_h_
class WINFS
{
protected:
typedef BOOL (WINAPI *GETDISKFREESPACEEX)(LPCTSTR, PULARGE_INTEGER,
PULARGE_INTEGER, PULARGE_INTEGER);
static const GETDISKFREESPACEEX GetDiskFreeSpaceEx;
static DWORD WINAPI internal_GetFullPathName (LPCSTR lpF... |
snmsts/xyzzy | src/sockinet.h | #ifndef _sockinet_h_
#define _sockinet_h_
#include "sock.h"
class sockinet: public sock
{
public:
enum {pf_inet = PF_INET};
enum {af_inet = AF_INET};
enum optname {tcp_nodelay = TCP_NODELAY};
class saddr: public sock::saddr, public sockaddr_in
{
public:
virtual const sockaddr *addr () const
... |
snmsts/xyzzy | src/reconv.h | <gh_stars>10-100
#ifndef _reconv_h_
#define _reconv_h_
#ifndef WM_IME_REQUEST
#define WM_IME_REQUEST 0x0288
#endif
#ifndef IMR_RECONVERTSTRING
#define IMR_RECONVERTSTRING 4
typedef struct tagRECONVERTSTRING
{
DWORD dwSize;
DWORD dwVersion;
DWORD dwStrLen;
DWORD dwStrOffset;
DWORD dwCompStrLen;
DWORD dwCo... |
snmsts/xyzzy | src/ctl3d.h | #ifndef _ctl3d_h_
# define _ctl3d_h_
class Ctl3dThread
{
public:
Ctl3dThread ();
~Ctl3dThread ();
};
struct Ctl3dState
{
HINSTANCE hinst;
HINSTANCE hlib;
BOOL (WINAPI *Register)(HINSTANCE);
BOOL (WINAPI *Unregister)(HINSTANCE);
BOOL (WINAPI *AutoSubclass)(HINSTANCE);
BOOL (WINAPI *UnAutoSubclass)();
... |
snmsts/xyzzy | src/sequence.h | #ifndef _sequence_h_
# define _sequence_h_
class key_proc
{
protected:
lisp lkey;
lfunction_proc_1 pkey;
public:
key_proc (lisp);
lisp call_keyfn (lisp) const;
};
inline
key_proc::key_proc (lisp keys)
{
lkey = find_keyword (Kkey, keys, Qnil);
if (lkey == Qnil)
lkey = Sidentity;
pkey = lfunction_proc... |
snmsts/xyzzy | src/ucs2tab.h | #define WINDOWS_LATIN1_HASHSIZE 304
#define WINDOWS_LATIN2_HASHSIZE 432
#define WINDOWS_CYRILLIC_HASHSIZE 241
#define WINDOWS_GREEK_HASHSIZE 211
#define WINDOWS_TURKISH_HASHSIZE 300
#define WINDOWS_BALTIC_HASHSIZE 301
#define KOI8R_HASHSIZE 486
#define KOI8U_HASHSIZE 488
#define ISO8859_1_HASHSIZE 304
#define ISO8859_... |
snmsts/xyzzy | src/glob.h | #ifndef _glob_h_
# define _glob_h_
int wild_pathname_p (const char *);
int pathname_match_p (const char *, const char *);
# define GLOB_NOT '|'
class file_masks
{
char **fm_masks;
static char **build_masks (lisp);
file_masks (const file_masks &);
file_masks &operator = (const file_masks &);
public:
file_m... |
snmsts/xyzzy | src/lex.h | // -*-C++-*-
#ifndef _lex_h_
# define _lex_h_
class lex_env
{
static lex_env *le;
lex_env *last;
void chain ();
public:
lisp lex_var;
lisp lex_frame;
lisp lex_fns;
lisp lex_ltail;
lex_env ();
lex_env (lisp, lisp, lisp);
lex_env (const lex_env &);
lex_env (lisp);
~lex_env ();
void let (lisp, l... |
snmsts/xyzzy | src/listen.h | #ifndef _listen_h_
#define _listen_h_
static const char xyzzysrv_name[] = "xyzzy-server v2";
// wm_private_xyzzysrv
// wparam: process ID
// lparam: handle
struct xyzzysrv_param
{
int size;
DWORD pid;
HANDLE hevent;
HWND hwnd;
int kill_ok;
char data[1];
};
#endif
|
snmsts/xyzzy | src/Window.h | #ifndef _Window_h_
# define _Window_h_
typedef u_long glyph_t;
/*
GLYPH BITS
3 2 1 0
10 98765 4 3 2 1 0987 6 5 4 3 2109 8 76543210
nn nnnnn b b b b nnnn b b b b nnnn b cccccccc
-- ----- | | | | ---- | | | | ---- |
\ \ \ \ \ \ \ \ \ \ \ \ \__________ 0: Char 1:... |
snmsts/xyzzy | src/random.h | <gh_stars>1-10
// -*-C++-*-
#ifndef _random_h_
# define _random_h_
/* random state */
struct Random
{
enum {INDEX_MAX = 55};
enum {DEFAULT_SEED = 1};
enum {RANDOM_BITS = BITS_PER_LONG - 1};
enum {RANDOM_MAX = LONG_MAX & ~1};
int index;
long X[INDEX_MAX];
void store ();
void store_initial (long);
R... |
snmsts/xyzzy | src/environ.h | <filename>src/environ.h
#ifndef _environ_h_
# define _environ_h_
class environ
{
public:
static int save_window_size;
static int save_window_snap_size;
static int save_window_position;
static int restore_window_size;
static int restore_window_position;
static int load_geometry (int, POINT *, SIZE *);
sta... |
snmsts/xyzzy | src/statarea.h | <filename>src/statarea.h
#ifndef _statarea_h_
#define _statarea_h_
class status_area
{
enum {ST_TIME, ST_POS, ST_CODE, ST_UNICODE, ST_MAX};
HWND s_hwnd;
HFONT s_hfont;
int s_flags;
int s_clwidth;
int s_borders[3];
int s_min_ext[ST_MAX];
int s_extent[ST_MAX];
int s_order[ST_MAX];
int s_nitems;
in... |
snmsts/xyzzy | src/data.h | <reponame>snmsts/xyzzy
// -*-C++-*-
#ifndef _data_h_
# define _data_h_
# include "cdecl.h"
# include "alloc.h"
# define LDATA_PAGE_SIZE 1024
# define LDATA_PAGE_MASK (LDATA_PAGE_SIZE - 1)
# define LDATA_MIN_SIZE 4
# define LDATA_RADIX 2
# define LDATA_MAX_OBJECTS_PER_LONG \
((LDATA_PAGE_SIZE / LDATA_MIN_SIZE + BIT... |
snmsts/xyzzy | src/jisx0212-width.h | <gh_stars>10-100
static const u_char jisx0212_width_table[] =
{
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x80, 0x7f,
0xfc, 0xff, 0xff, 0xff, 0xff, 0xc0, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff... |
snmsts/xyzzy | src/fontrange.h | <gh_stars>10-100
static const struct {ucs2_t c; u_char w;} courier_new_range[] = {
{0x00a0, 8}, {0x00a1, 8}, {0x00a2, 8}, {0x00a3, 8},
{0x00a4, 8}, {0x00a5, 8}, {0x00a6, 8}, {0x00a7, 8},
{0x00a8, 8}, {0x00a9, 8}, {0x00aa, 8}, {0x00ab, 8},
{0x00ac, 8}, {0x00ad, 8}, {0x00ae, 8}, {0x00af, 8},
{0x00b0, 8}, {0x00b1, 8}... |
snmsts/xyzzy | src/xdde.h | #ifndef _XDDE_H_
# define _XDDE_H_
# include <ddeml.h>
#ifndef DDE_CLIENT_ONLY
struct DdeCallbackInfo
{
UINT type;
UINT fmt;
HCONV hconv;
HSZ topic;
HSZ item;
HDDEDATA hdata;
DWORD data1;
DWORD data2;
};
# define DDE_EXECUTE_ITEM ((char *)1)
struct DdeItemList
{
HSZ hsz_item;
HDDEDATA (__stdcal... |
snmsts/xyzzy | src/message.h | <reponame>snmsts/xyzzy<filename>src/message.h
// -*-C++-*-
#ifndef _message_h_
# define _message_h_
inline lisp
make_message (int n)
{
assert (n < (1 << 16));
return make_immediate (Lmessage, u_short (n));
}
inline int
messagep (lisp x)
{
return lowbits (pointer_t (x)) == Lmessage;
}
inline int
xmessage_code (... |
snmsts/xyzzy | src/kanji.h | #ifndef _kanji_h_
# define _kanji_h_
# define DCE_SJIS 0x01
# define DCE_JIS 0x02
# define DCE_EUC 0x04
# define DCE_UTF8N 0x08
# define DCE_UTF8 0x10
# define DCE_UTF16LE 0x20
# define DCE_UTF16BE 0x40
# define DEFAULT_DETECT_BUFFER_SIZE 0x40000
int check_kanji2 (const char *, u_int)... |
snmsts/xyzzy | src/vwin32.h | <filename>src/vwin32.h<gh_stars>10-100
#ifndef _vwin32_h_
#define _vwin32_h_
// DeviceIoControl infrastructure
#ifndef VWIN32_DIOC_DOS_IOCTL
#define VWIN32_DIOC_DOS_IOCTL 1
#define VWIN32_DIOC_DOS_DRIVEINFO 6
typedef struct
{
DWORD reg_EBX;
DWORD reg_EDX;
DWORD reg_ECX;
DWORD reg_EAX;
DWORD reg_EDI;
DWOR... |
snmsts/xyzzy | src/pane.h | #ifndef _PANE_H_
#define _PANE_H_
class pane;
class splitter;
#define XPIS_LEFT 0
#define XPIS_TOP 1
#define XPIS_RIGHT 2
#define XPIS_BOTTOM 3
#define XPIS_NOMOVE 4
#define XPIS_POSMASK 7
#define XPIS_ORDMASK 0x30
#define XPIS_OUTSIDE 0x10
#define XPIS_INSIDE 0x20
#define XPIS_NOORDER 0x30
#define XPIS_G... |
snmsts/xyzzy | src/cdecl.h | <reponame>snmsts/xyzzy
// -*-C++-*-
#ifndef _cdecl_h_
# define _cdecl_h_
# pragma warning (disable: 4201)
# include <stdio.h>
# include <stdint.h>
# include <limits.h>
# include <windows.h>
# include <winreg.h>
# include <commctrl.h>
# include <stdlib.h>
# include <stddef.h>
# include <string.h>
# include <mbstring.h... |
snmsts/xyzzy | src/com.h | #ifndef _com_h_
# define _com_h_
template <class T>
class safe_com
{
protected:
T *u;
public:
safe_com () : u (0) {}
safe_com (T *u_) : u (u_) {}
~safe_com () {if (u) u->Release ();}
T **operator & () {return &u;}
operator T * () {return u;}
T *operator -> () const {return u;}
};
#ifdef _SHLOBJ_H_
clas... |
snmsts/xyzzy | src/sha1.h | /* $NetBSD: sha1.h,v 1.2 1998/05/29 22:55:44 thorpej Exp $ */
/*
* SHA-1 in C
* By <NAME> <<EMAIL>>
* 100% Public Domain
*/
#ifndef _sha1_h_
#define _sha1_h_
typedef struct
{
u_int32_t state[5];
u_int32_t count[2];
u_char buffer[64];
} SHA1_CTX;
void SHA1Init (SHA1_CTX *context);
void SHA1Update (SHA1_CTX... |
snmsts/xyzzy | src/preview.h | #ifndef _preview_h_
#define _preview_h_
#include "wheel.h"
class preview_page_window
{
public:
enum
{
ADJUST_WINDOW = 0,
ADJUST_WIDTH = -1,
ADJUST_HEIGHT = -2
};
struct ids2scale {int ids; int scale;};
static const ids2scale ids2scales[];
protected:
enum { MARGIN = 7 };
enum { SHA... |
snmsts/xyzzy | src/chtype.h | <gh_stars>10-100
// -*-C++-*-
#ifndef _chtype_h_
#define _chtype_h_
#include "cdecl.h"
#define CC_BEL 7
#define CC_BS 8
#define CC_HT 9
#define CC_TAB CC_HT
#define CC_NL 10
#define CC_LFD CC_NL
#define CC_VT 11
#define CC_FF 12
#define CC_CR 13
#define CC_RET CC_CR
#define CC_SO 14
#define CC_SI 15
#define CC_ESC 27... |
snmsts/xyzzy | src/pathname.h | #ifndef _pathname_h_
# define _pathname_h_
# define WPATH_MAX (PATH_MAX / 2)
typedef Char pathbuf_t[WPATH_MAX * 2 + 1];
struct pathname
{
const Char *dev;
const Char *deve;
const Char *trail;
const Char *traile;
};
# define SEPCHAR '/'
#endif
|
snmsts/xyzzy | src/process.h | <gh_stars>10-100
// -*-C++-*-
#ifndef _process_h_
# define _process_h_
/* process */
# define PS_NONE 0
# define PS_RUN 1
# define PS_EXIT 2
class Process;
struct Buffer;
enum eol_code;
class lprocess: public lisp_object
{
public:
Process *data;
int status;
int exit_code;
lisp buffer;
lisp command;
lisp... |
snmsts/xyzzy | src/largeint.h | <gh_stars>1-10
#ifndef _LARGEINT_H_
# define _LARGEINT_H_
struct large_int
{
long lo;
long hi;
};
large_int __stdcall addsi (long, long);
large_int __stdcall subsi (long, long);
large_int __stdcall negsi (const large_int);
large_int __stdcall mulsi (long, long);
large_int __stdcall long_to_large_int (long);
large... |
snmsts/xyzzy | src/ofn.h | #ifndef _ofn_h_
#define _ofn_h_
struct tagOFN: public tagOFNA
{
#ifndef OPENFILENAME_SIZE_VERSION_400
void *pvReserved;
DWORD dwReserved;
DWORD FlagsEx;
#endif /* OPENFILENAME_SIZE_VERSION_400 */
};
#ifndef OPENFILENAME_SIZE_VERSION_400
#define OPENFILENAME_SIZE_VERSION_400 (sizeof (tagOFNA))
#endif
#define OP... |
snmsts/xyzzy | src/archiver.h | <reponame>snmsts/xyzzy
#ifndef _ARCHIVER_H_
# define _ARCHIVER_H_
# include "arc-if.h"
class ArchiverP
{
public:
const ArchiverInterface &ar_interface;
const char *const *const ar_csuffixes;
const char *const *const ar_esuffixes;
const char *const *const ar_rsuffixes;
protected:
static const char *const nul... |
snmsts/xyzzy | src/waitobj.h | // -*-C++-*-
#ifndef _waitobj_h_
# define _waitobj_h_
class lwait_object: public lisp_object
{
public:
HANDLE hevent;
int ref;
~lwait_object () {cleanup ();}
void cleanup ();
};
# define wait_object_p(X) typep ((X), Twait_object)
inline void
check_wait_object (lisp x)
{
check_type (x, Twait_object, Qwait_... |
snmsts/xyzzy | src/resolver.h | <filename>src/resolver.h
#ifndef _resolver_h_
#define _resolver_h_
#include <winsock.h>
class resolver
{
protected:
struct params
{
int done;
WPARAM wparam;
LPARAM lparam;
};
HWND r_hwnd;
HANDLE r_hsock;
DWORD r_thread_id;
int r_timeout;
params r_params;
char r_buf[MAXGETHOSTS... |
snmsts/xyzzy | src/error.h | // -*-C++-*-
#ifndef _error_h_
# define _error_h_
enum {CRTL_ERROR, WIN32_ERROR};
class lerror: public lisp_object
{
public:
int type;
int number;
};
# define errorp(X) typep ((X), Terror)
inline int &
xerror_type (lisp x)
{
assert (errorp (x));
return ((lerror *)x)->type;
}
inline int &
xerror_number (lis... |
snmsts/xyzzy | src/except.h | #ifndef _EXCEPT_H_
# define _EXCEPT_H_
class Win32Exception
{
public:
struct known_exception
{
u_int code;
const char *desc;
};
static const known_exception known_excep[];
static EXCEPTION_RECORD r;
static CONTEXT c;
static u_int code;
Win32Exception (u_int, const EXCEPTION_POINTERS *);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.