code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpSlideJoint.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpSlideJoint.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpSlideJoint.o.d
Makefile
asf20
10,344
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpGrooveJoint.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpGrooveJoint.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/coc...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpGrooveJoint.o.d
Makefile
asf20
10,346
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpGearJoint.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpGearJoint.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpGearJoint.o.d
Makefile
asf20
10,342
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpSimpleMotor.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpSimpleMotor.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/coc...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpSimpleMotor.o.d
Makefile
asf20
10,346
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpConstraint.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpConstraint.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpConstraint.o.d
Makefile
asf20
10,344
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpRatchetJoint.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpRatchetJoint.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/c...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpRatchetJoint.o.d
Makefile
asf20
10,348
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpDampedRotarySpring.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpDampedRotarySpring.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdri...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpDampedRotarySpring.o.d
Makefile
asf20
10,360
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpPivotJoint.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpPivotJoint.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpPivotJoint.o.d
Makefile
asf20
10,344
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpDampedSpring.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpDampedSpring.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/c...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpDampedSpring.o.d
Makefile
asf20
10,348
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpRotaryLimitJoint.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpRotaryLimitJoint.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpRotaryLimitJoint.o.d
Makefile
asf20
10,356
obj/local/armeabi/objs/chipmunk_static/src/constraints/cpPinJoint.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/constraints/cpPinJoint.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/constraints/cpPinJoint.o.d
Makefile
asf20
10,340
obj/local/armeabi/objs/chipmunk_static/src/cpSpaceStep.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpSpaceStep.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.androi...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpSpaceStep.o.d
Makefile
asf20
10,091
obj/local/armeabi/objs/chipmunk_static/src/cpArray.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpArray.c \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/string.h \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/sys/cdefs.h \ /cygdriv...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpArray.o.d
Makefile
asf20
10,083
obj/local/armeabi/objs/chipmunk_static/src/cpSpace.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpSpace.c \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/stdio.h \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/sys/cdefs.h \ /cygdrive...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpSpace.o.d
Makefile
asf20
10,240
obj/local/armeabi/objs/chipmunk_static/src/cpVect.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpVect.c \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/stdio.h \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/sys/cdefs.h \ /cygdrive/d...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpVect.o.d
Makefile
asf20
10,238
obj/local/armeabi/objs/chipmunk_static/src/cpSpaceQuery.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpSpaceQuery.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.andr...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpSpaceQuery.o.d
Makefile
asf20
10,093
obj/local/armeabi/objs/chipmunk_static/src/cpPolyShape.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpPolyShape.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.androi...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpPolyShape.o.d
Makefile
asf20
10,316
obj/local/armeabi/objs/chipmunk_static/src/cpBBTree.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpBBTree.c \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/stdlib.h \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/sys/cdefs.h \ /cygdr...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpBBTree.o.d
Makefile
asf20
10,242
obj/local/armeabi/objs/chipmunk_static/src/cpHashSet.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpHashSet.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/.....
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpHashSet.o.d
Makefile
asf20
10,266
obj/local/armeabi/objs/chipmunk_static/src/cpSweep1D.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpSweep1D.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/.....
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpSweep1D.o.d
Makefile
asf20
10,087
obj/local/armeabi/objs/chipmunk_static/src/cpSpaceComponent.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpSpaceComponent.c \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/string.h \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/sys/c...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpSpaceComponent.o.d
Makefile
asf20
10,101
obj/local/armeabi/objs/chipmunk_static/src/cpSpatialIndex.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpSpatialIndex.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj....
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpSpatialIndex.o.d
Makefile
asf20
10,097
obj/local/armeabi/objs/chipmunk_static/src/cpSpaceHash.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpSpaceHash.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.androi...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpSpaceHash.o.d
Makefile
asf20
10,270
obj/local/armeabi/objs/chipmunk_static/src/cpCollision.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpCollision.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.androi...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpCollision.o.d
Makefile
asf20
10,091
obj/local/armeabi/objs/chipmunk_static/src/cpArbiter.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpArbiter.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/.....
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpArbiter.o.d
Makefile
asf20
10,314
obj/local/armeabi/objs/chipmunk_static/src/cpBody.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpBody.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../ex...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpBody.o.d
Makefile
asf20
10,308
obj/local/armeabi/objs/chipmunk_static/src/chipmunk.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/chipmunk.c \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/stdio.h \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/sys/cdefs.h \ /cygdri...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/chipmunk.o.d
Makefile
asf20
10,461
obj/local/armeabi/objs/chipmunk_static/src/cpBB.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/src/cpBB.c \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../external/chipmunk/include/chipmunk/chipmunk_private.h \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../extern...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/chipmunk_static/src/cpBB.o.d
Makefile
asf20
10,077
obj/local/armeabi/objs/cocosdenshion_static/SimpleAudioEngine.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../CocosDenshion/android/SimpleAudioEngine.cpp \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../CocosDenshion/android/../include/SimpleAudioEngine.h \ /cygdrive/d/study/cocos2d-x-2.1.5/z...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/cocosdenshion_static/SimpleAudioEngine.o.d
Makefile
asf20
54,479
obj/local/armeabi/objs/cocosdenshion_static/opensl/OpenSLEngine.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../CocosDenshion/android/opensl/OpenSLEngine.cpp \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../CocosDenshion/android/opensl/OpenSLEngine.h \ /cygdrive/d/android-ndk-r9/platforms/and...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/cocosdenshion_static/opensl/OpenSLEngine.o.d
Makefile
asf20
7,532
obj/local/armeabi/objs/cocosdenshion_static/opensl/SimpleAudioEngineOpenSL.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../CocosDenshion/android/opensl/SimpleAudioEngineOpenSL.cpp \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../CocosDenshion/android/opensl/SimpleAudioEngineOpenSL.h \ /cygdri...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/cocosdenshion_static/opensl/SimpleAudioEngineOpenSL.o.d
Makefile
asf20
7,783
obj/local/armeabi/objs/cocosdenshion_static/jni/SimpleAudioEngineJni.o: \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../CocosDenshion/android/jni/SimpleAudioEngineJni.cpp \ /cygdrive/d/study/cocos2d-x-2.1.5/zzz/proj.android/../../CocosDenshion/android/jni/SimpleAudioEngineJni.h \ /cygdrive/d/android-ndk-r...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/cocosdenshion_static/jni/SimpleAudioEngineJni.o.d
Makefile
asf20
2,381
obj/local/armeabi/objs/cpufeatures/cpu-features.o: \ /cygdrive/d/android-ndk-r9/sources/android/cpufeatures/cpu-features.c \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/sys/system_properties.h \ /cygdrive/d/android-ndk-r9/platforms/android-9/arch-arm/usr/include/sys/cdefs.h \ /cygdrive/d/and...
zzzfgame
trunk/zzz/obj/local/armeabi/objs/cpufeatures/cpu-features.o.d
Makefile
asf20
9,741
APPNAME="zzz" APP_ANDROID_NAME="com.game" if [ -z "${SDK_ROOT+aaa}" ]; then # ... if SDK_ROOT is not set, use "$HOME/bin/android-sdk" SDK_ROOT="$HOME/bin/android-sdk" fi if [ -z "${NDK_ROOT+aaa}" ]; then # ... if NDK_ROOT is not set, use "$HOME/bin/android-ndk" NDK_ROOT="$HOME/bin/android-ndk" fi if [ -z "${...
zzzfgame
trunk/zzz/ndkgdb.sh
Shell
asf20
1,289
APPNAME="zzz" # options buildexternalsfromsource= usage(){ cat << EOF usage: $0 [options] Build C/C++ code for $APPNAME using Android NDK OPTIONS: -s Build externals from source -h this help EOF } while getopts "sh" OPTION; do case "$OPTION" in s) buildexternalsfromsource=1 ;; h) usage exit 0 ;; esac done # path...
zzzfgame
trunk/zzz/build_native.sh
Shell
asf20
1,943
#include "AppDelegate.h" #include "platform/android/jni/JniHelper.h" #include <jni.h> #include <android/log.h> #include "cocos2d.h" #define LOG_TAG "main" #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) using namespace cocos2d; extern "C" { jint JNI_OnLoad(JavaVM *vm, void *reser...
zzzfgame
trunk/zzz/jni/hellocpp/main.cpp
C++
asf20
1,122
APP_STL := gnustl_static APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1
zzzfgame
trunk/zzz/jni/Application.mk
Makefile
asf20
65
#!/bin/bash append_str=' \' list_alldir() { for file in $1/* do if [ -f $file ]; then echo $file$append_str | grep .cpp fi if [ -d $file ]; then list_alldir $file fi done } if [ $# -gt 0 ]; then list_alldir "$1" else ...
zzzfgame
trunk/zzz/jni/list.sh
Shell
asf20
341
#!/bin/bash append_str=' \' list_alldir() { for file in $1/* do if [ -f $file ]; then echo $file$append_str | grep .cpp fi if [ -d $file ]; then list_alldir $file fi done } if [ $# -gt 0 ]; then list_alldir "$1" else ...
zzzfgame
trunk/zzz/jni/.svn/text-base/list.sh.svn-base
Shell
asf20
341
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := game_shared LOCAL_MODULE_FILENAME := libgame LOCAL_SRC_FILES := hellocpp/main.cpp \ ../../Classes/AppDelegate.cpp \ ../../Classes/HelloWorldScene.cpp LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../C...
zzzfgame
trunk/zzz/jni/Android.mk
Makefile
asf20
597
/* * thread * 2010-11-18 by AnIcepIg */ #ifndef _ZENGINE_THREAD_H #define _ZENGINE_THREAD_H #ifdef __cplusplus extern "C" { #endif typedef void thread_func(void *pv); #ifdef WIN32 #include "process.h" #define thread_t HANDLE #else #include <unistd.h> #include <pthread.h> #define thre...
zzengine
trunk/ZEngine/ZEngine/thread.h
C
gpl3
517
#include "stdafx.h" #include "mem.h" typedef struct memS_atom { struct memS_atom* link; int capacity; int offset; byte* p; }memS_atom; typedef struct ST { int cb; struct memS_atom* pl; }ST; #define INIT_CAPACITY_S 128 ZENGINE_API memS_t memS_create() { memS_t p = (memS_t)malloc(sizeof(ST))...
zzengine
trunk/ZEngine/ZEngine/mem.c
C
gpl3
1,390
#include "stdafx.h" #include "thread.h"
zzengine
trunk/ZEngine/ZEngine/thread.c
C
gpl3
40
#include "stdafx.h" #include "log.h" #include "atom.h" #include "hash.h" #include "file.h" #include "crt.h" typedef struct log { int cb; atom_t ap; }log_t; static struct LOG_PARAM _log_param; static char _prefix[max_path]; static int create_log() { int ret; time_t tmt; ret = _mkdir(_log_param....
zzengine
trunk/ZEngine/ZEngine/log.c
C
gpl3
1,163
#include "stdafx.h" #include "hash.h" static int hashstring(const char* s, int seed) { const char* str = s; int hash = 0; while (*str) { hash = (*str++) + hash * seed; } return hash & 0x7FFFFFFF; } ZENGINE_API int hash_string(c_str str) { assert(str); return hashstring(str, 1); }
zzengine
trunk/ZEngine/ZEngine/hash.c
C
gpl3
306
/* * Common Define for Engine * 2010-11-14 By AnIcepIg */ #ifndef ZENGINE_COMMON_DEFINE_H #define ZENGINE_COMMON_DEFINE_H #ifdef BUILD_AS_DLL #define ZENGINE_API __declspec(dllexport) #else #define ZENGINE_API extern #endif #define null 0 #define max_path 256 #define NELEMS(x) (sizeof((x))/(siz...
zzengine
trunk/ZEngine/ZEngine/stddef.h
C
gpl3
401
/* * c runtime * 2010-11-21 by AnIcepIg */ #ifndef _ZENGINE_CTR_H #define _ZENGINE_CTR_H #if (defined(_MSC_VER) || defined(__ICL)) #define _mkdir mkdir #else #define _mkdir(x) mkdir((x), 0777) #endif #endif //_ZENGINE_CTR_H
zzengine
trunk/ZEngine/ZEngine/crt.h
C
gpl3
241
/* * Memory Management for Engine * 2010-11-15 By AnIcepIg */ #ifndef _ZENGINE_MEMORY_H #define _ZENGINE_MEMORY_H #include "stddef.h" #ifdef __cplusplus extern "C" { #endif /* Implementation for Singleton */ typedef struct ST *memS_t; ZENGINE_API memS_t memS_create(); ZENGINE_API void memS_destr...
zzengine
trunk/ZEngine/ZEngine/mem.h
C
gpl3
447
#include "stdafx.h" #include "file.h" typedef struct FT { int cb; }FT; ZENGINE_API bool file_exist(c_str path) { assert(path); return !(GetFileAttributes(path) & FILE_ATTRIBUTE_DIRECTORY); }
zzengine
trunk/ZEngine/ZEngine/file.c
C
gpl3
205
#include "stdafx.h" #include "atom.h" #include "hash.h" #include "mem.h" #define BUCKET_COUNT 2048 typedef struct atom { struct atom* link; int len; char* str; }atom; typedef struct T { int cb; memS_t pm; struct atom* buckets[BUCKET_COUNT]; }T; ZENGINE_API atom_t atom_create() { atom_t a ...
zzengine
trunk/ZEngine/ZEngine/atom.c
C
gpl3
1,954
/* * Time * 2010-11-18 by AnIcepIg */ #ifndef _ZENGINE_TIME_H #define _ZENGINE_TIME_H #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } #endif #endif //_ZENGINE_TIME_H
zzengine
trunk/ZEngine/ZEngine/time.h
C
gpl3
202
/* * Hash Functions for Engine * 2010-11-14 By AnIcepIg */ #ifndef _ZENGINE_HASH_H #define _ZENGINE_HASH_H #ifdef __cplusplus extern "C" { #endif ZENGINE_API int hash_string(c_str str); #ifdef __cplusplus } #endif #endif //_ZENGINE_HASH_H
zzengine
trunk/ZEngine/ZEngine/hash.h
C
gpl3
262
#include "stdafx.h" #include "time.h"
zzengine
trunk/ZEngine/ZEngine/time.c
C
gpl3
38
/* * Const String for Engine Common Support * 2010-11-14 by AnIcepIg */ #ifndef _ZENGINE_ATOM_H #define _ZENGINE_ATOM_H #include "stddef.h" #ifdef __cplusplus extern "C" { #endif typedef struct T *atom_t; ZENGINE_API atom_t atom_create(); ZENGINE_API void atom_destroy(atom_t t); ZENGINE_API c_st...
zzengine
trunk/ZEngine/ZEngine/atom.h
C
gpl3
861
#include "stdafx.h"
zzengine
trunk/ZEngine/ZEngine/stdafx.c
C
gpl3
19
/* * Log System for Engine * 2010-11-18 by AnIcepIg */ #ifndef _ZENGINE_LOG_H #define _ZENGINE_LOG_H #include "stddef.h" #ifdef __cplusplus extern "C" { #endif enum LOG_OPTIONS { LOG_OPTIONS_NONE = 0x00, LOG_OPTIONS_FILE = 0x01, LOG_OPTIONS_STDERR = 0x02 }; typedef struct LOG_PARAM { int...
zzengine
trunk/ZEngine/ZEngine/log.h
C
gpl3
759
/* * File * 2010-11-18 by AnIcepIg */ #ifndef _ZENGINE_FILE_H #define _ZENGINE_FILE_H #ifdef __cplusplus extern "C" { #endif typedef struct FT *file_t; ZENGINE_API bool file_exist(c_str path); #ifdef __cplusplus } #endif #endif //_ZENGINE_FILE_H
zzengine
trunk/ZEngine/ZEngine/file.h
C
gpl3
272
/* * Precompile Header File for Engine * 2010-11-14 By AnIcepIg */ #ifndef _ZENGINE_PRECOMPILE_H #define _ZENGINE_PRECOMPILE_H #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #ifdef WIN32 #define _WIN32_WINNT 0x0500 #include <windows.h> #endif #ifndef ASSERT #de...
zzengine
trunk/ZEngine/ZEngine/stdafx.h
C
gpl3
409
#ifndef _TEST_TINYFS_PERSON_H #define _TEST_TINYFS_PERSON_H #include "../TinyFS/FSBase.h" struct Person { }; #endif //_TEST_TINYFS_PERSON_H
zzengine
trunk/ZEngine/TinyFS/TinyFS/TestTinyFS/Person.h
C
gpl3
154
#include "stdafx.h" #include "..\TinyFS\tapi.h" int _tmain(int argc, _TCHAR* argv[]) { tfsE_t tfs = tfsE_Create("Person"); /*tfs_Table tab = tfsE_GetTable(tfs, NULL); tfs_t fs; tfs_Value v; v = tfsE_SetString(tfs, tab, "Name", "Lilei"); v = tfsE_SetFloat(tfs, tab, "Height", 175.5); v = tfsE_SetFloa...
zzengine
trunk/ZEngine/TinyFS/TinyFS/TestTinyFS/TestTinyFS.cpp
C++
gpl3
1,919
#include "stdafx.h" #include "mem.h" typedef struct memS_atom { struct memS_atom* link; int capacity; int offset; byte* p; }memS_atom; typedef struct ST { int cb; struct memS_atom* pl; }ST; #define INIT_CAPACITY_S 128 ZENGINE_API memS_t memS_create() { memS_t p = (memS_t)malloc(sizeof(ST))...
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/mem.c
C
gpl3
1,390
#include "stdafx.h" #include "hash.h" static int hashstring(const char* s, int seed) { const char* str = s; int hash = 0; while (*str) { hash = (*str++) + hash * seed; } return hash & 0x7FFFFFFF; } ZENGINE_API int hash_string(c_str str) { assert(str); return hashstring(str, 1); }
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/hash.c
C
gpl3
306
/* * Common Define for Engine * 2010-11-14 By AnIcepIg */ #ifndef ZENGINE_COMMON_DEFINE_H #define ZENGINE_COMMON_DEFINE_H #ifdef COMMON_BUILD_AS_DLL #define ZENGINE_API __declspec(dllexport) #else #define ZENGINE_API extern #endif #define null 0 #define max_path 256 #define NELEMS(x) (sizeof((x...
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/stddef.h
C
gpl3
408
/* * Memory Management for Engine * 2010-11-15 By AnIcepIg */ #ifndef _ZENGINE_MEMORY_H #define _ZENGINE_MEMORY_H #include "stddef.h" #ifdef __cplusplus extern "C" { #endif /* Implementation for Singleton */ typedef struct ST *memS_t; ZENGINE_API memS_t memS_create(); ZENGINE_API void memS_destr...
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/mem.h
C
gpl3
447
#include "stdafx.h" #include "atom.h" #include "hash.h" #include "mem.h" #define BUCKET_COUNT 2048 typedef struct atom { struct atom* link; int len; char* str; }atom; typedef struct T { int cb; memS_t pm; struct atom* buckets[BUCKET_COUNT]; }T; ZENGINE_API atom_t atom_create() { atom_t a ...
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/atom.c
C
gpl3
1,954
/* * Hash Functions for Engine * 2010-11-14 By AnIcepIg */ #ifndef _ZENGINE_HASH_H #define _ZENGINE_HASH_H #include "stddef.h" #ifdef __cplusplus extern "C" { #endif ZENGINE_API int hash_string(c_str str); #ifdef __cplusplus } #endif #endif //_ZENGINE_HASH_H
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/hash.h
C
gpl3
285
/* ** @file object.h ** @brief ** @detail ** @author AnIcepIg ** @date [2010/12/30 11:36:48] */ #ifndef _TINYFS_OBJECT_H #define _TINYFS_OBJECT_H #ifdef __cplusplus extern "C" { #endif typedef union tfs_Object { int n; float f; double d; byte b; c_str s; void* pv; }TObject; typed...
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/object.h
C
gpl3
940
/* * Const String for Engine Common Support * 2010-11-14 by AnIcepIg */ #ifndef _ZENGINE_ATOM_H #define _ZENGINE_ATOM_H #include "stddef.h" #ifdef __cplusplus extern "C" { #endif typedef struct T *atom_t; ZENGINE_API atom_t atom_create(); ZENGINE_API void atom_destroy(atom_t t); ZENGINE_API c_st...
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/atom.h
C
gpl3
861
#include "stdafx.h" #include "object.h" #include "TinyFS.h" #include "atom.h" #include "hash.h" typedef struct TFSCHUNK { struct TFSCHUNK* next; c_str key; int hashcode; TValue v; }TFSCHUNK; typedef struct TFSEX { tfs_t pfs; atom_t pat; tfsC_t pfc; }TFSEX; static tfs_t newheader(c_str name)...
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/TinyFS.c
C
gpl3
1,558
/* ** @file FSBase.h ** @brief Common/Base Define For Tiny File System ** @detail ** @author AnIcepIg ** @date [2010/12/28] */ #ifndef _TINYFS_BASE_H #define _TINYFS_BASE_H typedef const char* c_str; typedef LONG32 fcc; typedef unsigned long ulong; typedef LARGE_INTEGER lint; typedef INT64 int64; ...
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/FSBase.h
C
gpl3
479
#include "stdafx.h" #include "tobject.h" #include "tapi.h" #include "atom.h" #include "hash.h" #include "io.h" #include "time.h" typedef struct HeaderEx { Header* ph; atom_t at; }HeaderEx; #define version_major 1 #define version_minor 0 typedef struct Buffer { ulong cb; void* buff; ulong coun...
zzengine
trunk/ZEngine/TinyFS/TinyFS/TinyFS/tapi.c
C
gpl3
28,229
// stdafx.cpp : source file that includes just the standard includes // Interoperation.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
zzengine
trunk/ZEngine/TinyFS/RLTools/Interoperation/stdafx.cpp
C++
gpl3
301
// Interoperation.cpp : Defines the exported functions for the DLL application. // #include "stdafx.h" #include "Interoperation.h" #include <msclr/marshal.h> using namespace msclr::interop; namespace Interop { Interoperation::Interoperation():m_hTinyFS(NULL) { } Interoperation::~Interoperation() { ...
zzengine
trunk/ZEngine/TinyFS/RLTools/Interoperation/Interoperation.cpp
C++
gpl3
6,679
#pragma once using namespace System; using namespace System::Collections::Generic; using namespace System::Runtime::InteropServices; #define TINYFS_DLL "TinyFS.dll" namespace Interop { public ref class TinyFS { public: TinyFS(); virtual ~TinyFS(); int LoadFromFile(LPCSTR pcszFile); int New();...
zzengine
trunk/ZEngine/TinyFS/RLTools/Interoperation/Interoperation.h
C++
gpl3
2,669
// dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH...
zzengine
trunk/ZEngine/TinyFS/RLTools/Interoperation/dllmain.cpp
C++
gpl3
410
#pragma once // Including SDKDDKVer.h defines the highest available Windows platform. // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. #include <SDKDDKVer.h>
zzengine
trunk/ZEngine/TinyFS/RLTools/Interoperation/targetver.h
C
gpl3
314
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // Windows Header Fil...
zzengine
trunk/ZEngine/TinyFS/RLTools/Interoperation/stdafx.h
C++
gpl3
602
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windo...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/KeyValueDialog.xaml.cs
C#
gpl3
6,446
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Windows; namespace RLTools { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/App.xaml.cs
C#
gpl3
269
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using Interop; namespace RLTools { public enum ValueType { None, Bool, Byte, Int32, Float, Int64, Double, String } ...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/Data.cs
C#
gpl3
1,851
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Xml; using System.Windows; namespace RLTools { public enum ConfigState { None, NotExisted, FormatError, Ready } public class Config ...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/Config.cs
C#
gpl3
4,023
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Media.Imaging; using System.Windows.Controls; using System.Windows.Media; namespace RLTools { public class MenuItemEx : MenuItem { private TextBlock _Text; ...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/MenuItemEx.cs
C#
gpl3
2,641
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windo...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/TableDialog.xaml.cs
C#
gpl3
1,428
using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; usin...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/NewControl.xaml.cs
C#
gpl3
866
using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using Mi...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/MainWindow.xaml.cs
C#
gpl3
10,142
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windo...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/Loading.xaml.cs
C#
gpl3
3,902
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windo...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/UnitControl.xaml.cs
C#
gpl3
24,649
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // ass...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/Properties/AssemblyInfo.cs
C#
gpl3
2,543
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace RLTools { public class ImageTreeViewItem : TreeViewItem { private TextBlock text; private Image image; ...
zzengine
trunk/ZEngine/TinyFS/RLTools/RLTools/TreeViewItemEx.cs
C#
gpl3
3,489
// stdafx.cpp : source file that includes just the standard includes // Interoperation.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
zzengine
trunk/TinyLogQuery/Interoperation/stdafx.cpp
C++
gpl3
301
// Interoperation.cpp : Defines the exported functions for the DLL application. // #include "stdafx.h" #include "Interoperation.h" #include <msclr/marshal.h> using namespace msclr::interop; namespace Interop { CTinyLog::CTinyLog(IETinyLog* piTinyLog) :m_piTinyLog(NULL) { m_piTinyLog = piTinyLog; }...
zzengine
trunk/TinyLogQuery/Interoperation/Interoperation.cpp
C++
gpl3
1,928
#pragma once using namespace System; using namespace System::Collections::Generic; using namespace System::Runtime::InteropServices; #define TINYLOG_ASSEMBLY "TinyLog.dll" namespace Interop { public ref class CLogInfo { public: System::String^ m_strTag; System::String^ m_strClassify; int m_nPrior...
zzengine
trunk/TinyLogQuery/Interoperation/Interoperation.h
C++
gpl3
868
// dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH...
zzengine
trunk/TinyLogQuery/Interoperation/dllmain.cpp
C++
gpl3
410
#pragma once // Including SDKDDKVer.h defines the highest available Windows platform. // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. #include <SDKDDKVer.h>
zzengine
trunk/TinyLogQuery/Interoperation/targetver.h
C
gpl3
314
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // Windows Header Fil...
zzengine
trunk/TinyLogQuery/Interoperation/stdafx.h
C
gpl3
465
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Windows; namespace TinyLogQuery { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
zzengine
trunk/TinyLogQuery/TinyLogQuery/App.xaml.cs
C#
gpl3
314
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windo...
zzengine
trunk/TinyLogQuery/TinyLogQuery/TinyLogUnit.xaml.cs
C#
gpl3
1,079
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windo...
zzengine
trunk/TinyLogQuery/TinyLogQuery/MainWindow.xaml.cs
C#
gpl3
4,019
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // ass...
zzengine
trunk/TinyLogQuery/TinyLogQuery/Properties/AssemblyInfo.cs
C#
gpl3
2,306
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windo...
zzengine
trunk/TinyLogQuery/TinyLogQuery/TabItemHeader.xaml.cs
C#
gpl3
1,244