Changeset 2101 for trunk/src/kmk/make.h


Ignore:
Timestamp:
Nov 25, 2008, 12:35:56 AM (17 years ago)
Author:
bird
Message:

kmk: Implemented new switch --print-time. Fixes #65.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/make.h

    r2050 r2101  
    442442
    443443#define STRING_SIZE_TUPLE(_s) (_s), (sizeof (_s)-1)
     444
     445#if defined (CONFIG_WITH_MATH) \
     446 || defined (CONFIG_WITH_NANOTS) \
     447 || defined (CONFIG_WITH_FILE_SIZE) \
     448 || defined (CONFIG_WITH_PRINT_TIME_SWITCH) /* bird */
     449# ifdef _MSC_VER
     450typedef __int64 big_int;
     451#  define BIG_INT_C(c)      (c ## LL)
     452typedef unsigned __int64 big_uint;
     453#  define BIG_UINT_C(c)     (c ## ULL)
     454# else
     455#  include <stdint.h>
     456typedef int64_t big_int;
     457#  define BIG_INT_C(c)      INT64_C(c)
     458typedef uint64_t big_uint;
     459#  define BIG_UINT_C(c)     UINT64_C(c)
     460# endif
     461#endif
    444462
    445463
     
    691709#ifdef CONFIG_PRETTY_COMMAND_PRINTING
    692710extern int pretty_command_printing;
     711#endif
     712#ifdef CONFIG_WITH_PRINT_TIME_SWITCH
     713extern int print_time_min, print_time_width;
    693714#endif
    694715#if defined (CONFIG_WITH_MAKE_STATS) || defined (CONFIG_WITH_MINIMAL_STATS)
     
    896917extern char *func_breakpoint(char *o, char **argv, const char *funcname);
    897918#endif
     919
     920#if defined (CONFIG_WITH_NANOTS) || defined (CONFIG_WITH_PRINT_TIME_SWITCH)
     921/* misc.c */
     922extern big_int nano_timestamp (void);
     923extern int format_elapsed_nano (char *buf, size_t size, big_int ts);
     924#endif
     925
Note: See TracChangeset for help on using the changeset viewer.