Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  helpline.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0
#include "gtk.h"
#include <stdio.h>
#include <string.h>
#include <linux/kernel.h>

#include "../ui.h"
#include "../helpline.h"

static void gtk_helpline_pop(void)
{
 if (!perf_gtk__is_active_context(pgctx))
  return;

 gtk_statusbar_pop(GTK_STATUSBAR(pgctx->statbar),
     pgctx->statbar_ctx_id);
}

static void gtk_helpline_push(const char *msg)
{
 if (!perf_gtk__is_active_context(pgctx))
  return;

 gtk_statusbar_push(GTK_STATUSBAR(pgctx->statbar),
      pgctx->statbar_ctx_id, msg);
}

static int gtk_helpline_show(const char *fmt, va_list ap)
{
 int ret;
 char *ptr;
 static int backlog;

 ret = vscnprintf(ui_helpline__current + backlog,
    sizeof(ui_helpline__current) - backlog, fmt, ap);
 backlog += ret;

 /* only first line can be displayed */
 ptr = strchr(ui_helpline__current, '\n');
 if (ptr && (ptr - ui_helpline__current) <= backlog) {
  *ptr = '\0';
  ui_helpline__puts(ui_helpline__current);
  backlog = 0;
 }

 return ret;
}

static struct ui_helpline gtk_helpline_fns = {
 .pop = gtk_helpline_pop,
 .push = gtk_helpline_push,
 .show = gtk_helpline_show,
};

void perf_gtk__init_helpline(void)
{
 helpline_fns = >k_helpline_fns;
}

Messung V0.5 in Prozent
C=97 H=92 G=94

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© 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=277311
#Domains=752002