Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  file.h

  Sprache: C
 

/* Simple Plugin API */
/* SPDX-FileCopyrightText: Copyright © 2022 Wim Taymans */
/* SPDX-License-Identifier: MIT */

#ifndef SPA_DEBUG_FILE_H
#define SPA_DEBUG_FILE_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>

#include <spa/utils/defs.h>
#include <spa/support/log.h>
#include <spa/debug/context.h>
#include <spa/debug/dict.h>
#include <spa/debug/format.h>
#include <spa/debug/mem.h>
#include <spa/debug/pod.h>

/**
 * \addtogroup spa_debug
 * \{
 */


#ifndef SPA_API_DEBUG_FILE
 #ifdef SPA_API_IMPL
  #define SPA_API_DEBUG_FILE SPA_API_IMPL
 #else
  #define SPA_API_DEBUG_FILE static inline
 #endif
#endif

struct spa_debug_file_ctx {
 struct spa_debug_context ctx;
 FILE *f;
};

SPA_PRINTF_FUNC(2,3)
SPA_API_DEBUG_FILE void spa_debug_file_log(struct spa_debug_context *ctx, const char *fmt, ...)
{
 struct spa_debug_file_ctx *c = SPA_CONTAINER_OF(ctx, struct spa_debug_file_ctx, ctx);
 va_list args;
 va_start(args, fmt);
 vfprintf(c->f, fmt, args); fputc('\n', c->f);
 va_end(args);
}

#define SPA_DEBUG_FILE_INIT(_f)       \
 (struct spa_debug_file_ctx){ { spa_debug_file_log }, _f, }

#define spa_debug_file_error_location(f,loc,fmt,...)    \
({          \
 struct spa_debug_file_ctx c = SPA_DEBUG_FILE_INIT(f);   \
 if (fmt) spa_debugc(&c.ctx, fmt, __VA_ARGS__);    \
 spa_debugc_error_location(&c.ctx, loc);     \
})

/**
 * \}
 */


#ifdef __cplusplus
}  /* extern "C" */
#endif

#endif /* SPA_DEBUG_FILE_H */

Messung V0.5 in Prozent
C=85 H=97 G=91

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-08-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=434850
#Domains=655579