Changeset 10 in libcf


Ignore:
Timestamp:
01/30/13 23:40:33 (11 years ago)
Author:
cheese
Message:

#1 arrange some code and change windows project name from lower case to upper case

Location:
trunk
Files:
1 deleted
4 edited
1 copied
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/include/cf_base.h

    r6 r10  
    1313#define CF_ERROR                        -1
    1414
     15#define NAME_LENGTH                     128
     16
    1517#define CF_ERROR_BASE                   CF_ERROR * 1000
    1618
     
    2022#define CF_ERROR_MUTEX                  CF_ERROR_BASE * 5
    2123#define CF_ERROR_DEBUG                  CF_ERROR_BASE * 6
     24#define CF_ERROR_LOG                    CF_ERROR_BASE * 7
    2225
    2326#ifdef _WIN32
  • trunk/include/cf_debug.h

    r9 r10  
    3131# define CF_DEBUG_CALLSTACK_POP()
    3232#endif // #ifdef _DEBUG
    33 
    34 #define NAME_LENGTH 128
    3533
    3634typedef void *  CF_Debug_Ctx;
     
    7472                         CF_Debug_CallStack * callstack);
    7573
     74#ifdef __cplusplus
     75}
     76#endif
     77
    7678#endif // #ifndef __CF_DEBUG_H__
  • trunk/src/cf_debug.c

    r9 r10  
    2222    if (__ctx == NULL)                      \
    2323        return CF_ERROR_DEBUG_INVALID_CTX
     24
    2425#define GET_CTX_OSTREAM(__ctx)              \
    2526    ((((CF_DEBUG_CTX *)__ctx)->fp == NULL)  \
     
    3738
    3839/* implementation of CF_Debug_Ctx */
    39 typedef struct __cf_debug_context__
     40typedef struct __cf_debug_ctx__
    4041{
    4142    char    file[NAME_LENGTH + 1];
  • trunk/src/makefile

    r6 r10  
    4141                    cf_thread       \
    4242                    cf_debug        \
     43                    cf_log          \
    4344
    44 LIB_NAME        = CF
     45LIB_NAME        = cf
    4546
    4647CC              = gcc
     
    8990dummy:
    9091
    91 # test
    92 test: all
    93     $(CXX) $(CXXFLAGS) $(INCLUDES) $(CXXDEFS) -o $(OBJ_PATH)/main.o -c main.cpp
    94     $(LD) $(LDFLAGS) -o $(TARGET_PATH)/cf.ex $(OBJ_PATH)/main.o -L$(TARGET_PATH) -lpthread
    95     LD_LIBRARY_PATH=$(TARGET_PATH) $(TARGET_PATH)/cf.ex
    96 
  • trunk/windows/libcf.ln

    r8 r10  
    22Microsoft Visual Studio Solution File, Format Version 10.00
    33# Visual Studio 2008
    4 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCF", "libCF/libCF.vcproj", "{E5FB2D95-3841-464C-B23F-94ADA4499FE6}"
     4Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcf", "libcf/libcf.vcproj", "{E5FB2D95-3841-464C-B23F-94ADA4499FE6}"
    55EndProject
    66Global
Note: See TracChangeset for help on using the changeset viewer.