Ignore:
Timestamp:
Aug 27, 2007, 6:06:17 AM (18 years ago)
Author:
bird
Message:

Use kStuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kStuff/kProfile/prfcoreterm.cpp.h

    r3537 r3565  
    11/* $Id: $ */
    22/** @file
     3
     4
     5
     6
     7
    38 *
    4  * kProfiler - Core Termination Code (template).
     9 * .
    510 *
    6  * Copyright (c) 2006 knut st. osmundsen <[email protected]>
     11 * kProfiler is free software; you can redistribute it and/or
     12 * modify it under the terms of the GNU Lesser General Public
     13 * License as published by the Free Software Foundation; either
     14 * version 2.1 of the License, or (at your option) any later version.
    715 *
     16
     17
     18
     19
    820 *
    9  * This file is part of kLIBC.
    10  *
    11  * kLIBC is free software; you can redistribute it and/or modify
    12  * it under the terms of the GNU General Public License as published by
    13  * the Free Software Foundation; either version 2 of the License, or
    14  * (at your option) any later version.
    15  *
    16  * kLIBC is distributed in the hope that it will be useful,
    17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19  * GNU General Public License for more details.
    20  *
    21  * You should have received a copy of the GNU General Public License
    22  * along with kLIBC; if not, write to the Free Software
    23  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     21 * You should have received a copy of the GNU Lesser General Public
     22 * License along with kProfiler; if not, write to the Free Software
     23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    2424 *
    2525 */
     
    3232 * @param   pHdr        The profiler data set header.
    3333 */
    34 KPRF_DECL_FUNC(uint32_t, TerminateAll)(KPRF_TYPE(P,HDR) pHdr)
     34KPRF_DECL_FUNC(, TerminateAll)(KPRF_TYPE(P,HDR) pHdr)
    3535{
    36     uint64_t TS = KPRF_NOW();
     36    TS = KPRF_NOW();
    3737    if (!pHdr)
    3838        return 0;
     
    4242     */
    4343    KPRF_TYPE(P,THREAD) paThread = KPRF_OFF2PTR(P,THREAD, pHdr->offThreads, pHdr);
    44     for (uint32_t i = 0; i < pHdr->cThreads; i++)
     44    for ( i = 0; i < pHdr->cThreads; i++)
    4545    {
    4646        KPRF_TYPE(P,THREAD) pCur = &paThread[i];
     
    6969    {
    7070        /* only if the stack is at the end of the data set. */
    71         const uint32_t cbStacks = KPRF_ALIGN(pHdr->cMaxStacks * pHdr->cbStack, 32);
     71        const cbStacks = KPRF_ALIGN(pHdr->cMaxStacks * pHdr->cbStack, 32);
    7272        if (pHdr->offStacks + cbStacks == pHdr->cb)
    7373            pHdr->cb -= cbStacks;
     
    9090 * @param   papszArgs   Pointer to an array of arguments.
    9191 */
    92 KPRF_DECL_FUNC(uint32_t, SetCommandLine)(KPRF_TYPE(P,HDR) pHdr, unsigned cArgs, const char * const *papszArgs)
     92KPRF_DECL_FUNC(, SetCommandLine)(KPRF_TYPE(P,HDR) pHdr, unsigned cArgs, const char * const *papszArgs)
    9393{
    9494    if (!pHdr)
Note: See TracChangeset for help on using the changeset viewer.