pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:36:   #include <errno.h>   #include <math.h>   #include <arpa/inet.h>      DECLARATIONS         /*! @module System    */    - #if defined(HAVE_MKTIME) && defined(HAVE_GMTIME) && defined(HAVE_LOCALTIME) +    /*! @class TM    *! A wrapper for the system struct tm time keeping structure.    *! This can be used as a (very) lightweight alternative to Calendar.    */   PIKECLASS TM   {    CVAR struct tm t;    CVAR time_t unix_time;    CVAR int modified;    CVAR struct pike_string *set_zone;
pike.git/src/builtin.cmod:182:    */    PIKEFUN int(0..1) strptime( string(1..255) format, string(1..255) data )    {    if( format->size_shift || data->size_shift )    Pike_error("Only 8bit strings are supported\n");    THIS->modified = 1;    if( strptime_zone( data->str, format->str, &THIS->t ) == NULL )    RETURN 0;    RETURN 1;    } - #endif + #endif /* HAVE_STRPTIME */    /*! @decl string(1..255) strftime( string(1..255) format )    *! See also @[Gettext.setlocale]    *!    *! Convert the structure to a string.    *!    *! @dl    *! @item %a    *! The abbreviated weekday name according to the current locale    *!    *! @item %A
pike.git/src/builtin.cmod:607:    free_string( THIS->set_zone );    }   }   /*! @endclass    */   #undef FIX_THIS   #ifdef STRUCT_TM_HAS___TM_GMTOFF   #undef tm_zone   #undef tm_gmtoff   #endif - #endif +    /*! @endmodule    */      /*! @decl array(array(int|string|type)) describe_program(program p)    *! @belongs Debug    *!    *! Debug function for showing the symbol table of a program.    *!    *! @returns    *! Returns an array of arrays with the following information