avoid leading underscore in preprocessor macros

This commit is contained in:
rlar 2013-01-22 21:00:29 +01:00
parent 4cea37a163
commit 805753d28c
71 changed files with 144 additions and 144 deletions

View File

@ -2,8 +2,8 @@
* 2001 Paolo Nenzi
*/
#ifndef _ONEDDEFS_H
#define _ONEDDEFS_H
#ifndef ngspice_ONEDDEFS_H
#define ngspice_ONEDDEFS_H
/* Debug statements */

View File

@ -4,8 +4,8 @@
/* External symbols for ONE Dimensional simulator */
#ifndef _ONEDEXT_H
#define _ONEDEXT_H
#ifndef ngspice_ONEDEXT_H
#define ngspice_ONEDEXT_H
#include "ngspice/profile.h"
#include "ngspice/onemesh.h"

View File

@ -2,8 +2,8 @@
* 2001 Paolo Nenzi
*/
#ifndef _TWODDEFS_H
#define _TWODDEFS_H
#ifndef ngspice_TWODDEFS_H
#define ngspice_TWODDEFS_H
/* Debug statements */

View File

@ -4,8 +4,8 @@
/* External symbols for Two Dimensional simulator */
#ifndef _TWODEXT_H
#define _TWODEXT_H
#ifndef ngspice_TWODEXT_H
#define ngspice_TWODEXT_H
#include "ngspice/profile.h"
#include "ngspice/twomesh.h"

View File

@ -1,5 +1,5 @@
#ifndef _COM_AHELP_H
#define _COM_AHELP_H
#ifndef ngspice_COM_AHELP_H
#define ngspice_COM_AHELP_H
void com_ahelp(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_ASCIIPLOT_H
#define _COM_ASCIIPLOT_H
#ifndef ngspice_COM_ASCIIPLOT_H
#define ngspice_COM_ASCIIPLOT_H
void com_asciiplot(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_CDUMP_H
#define _COM_CDUMP_H
#ifndef ngspice_COM_CDUMP_H
#define ngspice_COM_CDUMP_H
void com_cdump(wordlist *wl);
void com_mdump(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_COMMANDS_H
#define _COM_COMMANDS_H
#ifndef ngspice_COM_COMMANDS_H
#define ngspice_COM_COMMANDS_H
void com_showmod(wordlist *wl);
void com_show(wordlist *wl);

View File

@ -1,6 +1,6 @@
#ifndef _COM_COMPOSE_H
#define _COM_COMPOSE_H
#ifndef ngspice_COM_COMPOSE_H
#define ngspice_COM_COMPOSE_H
#include "ngspice/wordlist.h"

View File

@ -1,5 +1,5 @@
#ifndef _COM_DISPLAY_H
#define _COM_DISPLAY_H
#ifndef ngspice_COM_DISPLAY_H
#define ngspice_COM_DISPLAY_H
#include "ngspice/wordlist.h"

View File

@ -1,5 +1,5 @@
#ifndef _COM_DL_H
#define _COM_DL_H 1
#ifndef ngspice_COM_DL_H
#define ngspice_COM_DL_H 1
#ifdef XSPICE
void com_codemodel(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_DUMP_H
#define _COM_DUMP_H
#ifndef ngspice_COM_DUMP_H
#define ngspice_COM_DUMP_H
void com_dump(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_GHELP_H
#define _COM_GHELP_H
#ifndef ngspice_COM_GHELP_H
#define ngspice_COM_GHELP_H
void com_ghelp(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_GNUPLOT_H
#define _COM_GNUPLOT_H
#ifndef ngspice_COM_GNUPLOT_H
#define ngspice_COM_GNUPLOT_H
void com_gnuplot(wordlist *wl);
void com_write_simple(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_HARDCOPY_H
#define _COM_HARDCOPY_H
#ifndef ngspice_COM_HARDCOPY_H
#define ngspice_COM_HARDCOPY_H
void com_hardcopy(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_HELP_H
#define _COM_HELP_H
#ifndef ngspice_COM_HELP_H
#define ngspice_COM_HELP_H
void com_help(wordlist *wl);

View File

@ -3,8 +3,8 @@
* 1999 E. Rouat
************/
#ifndef _COM_HISTORY_H
#define _COM_HISTORY_H
#ifndef ngspice_COM_HISTORY_H
#define ngspice_COM_HISTORY_H
void com_history(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_LET_H
#define _COM_LET_H
#ifndef ngspice_COM_LET_H
#define ngspice_COM_LET_H
#include "ngspice/wordlist.h"

View File

@ -1,5 +1,5 @@
#ifndef _COM_MEASURE2_H
#define _COM_MEASURE2_H
#ifndef ngspice_COM_MEASURE2_H
#define ngspice_COM_MEASURE2_H
extern int measure_get_precision(void);

View File

@ -1,5 +1,5 @@
#ifndef _COM_OPTION_H
#define _COM_OPTION_H
#ifndef ngspice_COM_OPTION_H
#define ngspice_COM_OPTION_H
void com_option(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_PLOT_H
#define _COM_PLOT_H
#ifndef ngspice_COM_PLOT_H
#define ngspice_COM_PLOT_H
void com_plot(wordlist *wl);
#ifdef TCL_MODULE

View File

@ -1,5 +1,5 @@
#ifndef _COM_SET_H
#define _COM_SET_H
#ifndef ngspice_COM_SET_H
#define ngspice_COM_SET_H
void com_set(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_SETSCALE_H
#define _COM_SETSCALE_H
#ifndef ngspice_COM_SETSCALE_H
#define ngspice_COM_SETSCALE_H
#include "ngspice/wordlist.h"

View File

@ -1,5 +1,5 @@
#ifndef _COM_STATE_H
#define _COM_STATE_H
#ifndef ngspice_COM_STATE_H
#define ngspice_COM_STATE_H
void com_state(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_STRCMP_H
#define _COM_STRCMP_H
#ifndef ngspice_COM_STRCMP_H
#define ngspice_COM_STRCMP_H
void com_strcmp(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COM_XGRAPH_H
#define _COM_XGRAPH_H
#ifndef ngspice_COM_XGRAPH_H
#define ngspice_COM_XGRAPH_H
void com_xgraph(wordlist *wl);

View File

@ -1,5 +1,5 @@
#ifndef _COMMANDS_H
#define _COMMANDS_H
#ifndef ngspice_COMMANDS_H
#define ngspice_COMMANDS_H
extern struct comm spcp_coms[];

View File

@ -1,5 +1,5 @@
#ifndef _COMPLETION_H
#define _COMPLETION_H
#ifndef ngspice_COMPLETION_H
#define ngspice_COMPLETION_H
/* The types for command completion keywords. Note that these
* constants are built into cmdtab.c, so DON'T change them unless you

View File

@ -3,8 +3,8 @@
* 1999 E. Rouat
************/
#ifndef _DIFF_H
#define _DIFF_H
#ifndef ngspice_DIFF_H
#define ngspice_DIFF_H
#include "ngspice/wordlist.h"

View File

@ -3,8 +3,8 @@
* 1999 E. Rouat
************/
#ifndef _EVALUATE_H
#define _EVALUATE_H
#ifndef ngspice_EVALUATE_H
#define ngspice_EVALUATE_H
#include "ngspice/dvec.h"
#include "ngspice/pnode.h"

View File

@ -1,5 +1,5 @@
#ifndef _HCOMP_H
#define _HCOMP_H
#ifndef ngspice_HCOMP_H
#define ngspice_HCOMP_H
int hcomp(const void *a, const void *b);

View File

@ -1,5 +1,5 @@
#ifndef _INIT_H
#define _INIT_H
#ifndef ngspice_INIT_H
#define ngspice_INIT_H

View File

@ -3,8 +3,8 @@
* 1999 E. Rouat
************/
#ifndef _PARSE_H
#define _PARSE_H
#ifndef ngspice_PARSE_H
#define ngspice_PARSE_H
#include "ngspice/pnode.h"
#include "ngspice/wordlist.h"

View File

@ -3,8 +3,8 @@
* 1999 E. Rouat
************/
#ifndef _AGRAF_H
#define _AGRAF_H
#ifndef ngspice_AGRAF_H
#define ngspice_AGRAF_H
#include "ngspice/dvec.h"
#include "ngspice/bool.h"

View File

@ -1,5 +1,5 @@
#ifndef _PLOTIT_H
#define _PLOTIT_H
#ifndef ngspice_PLOTIT_H
#define ngspice_PLOTIT_H
bool plotit(wordlist *wl, char *hcopy, char *devname);

View File

@ -1,5 +1,5 @@
#ifndef _PLOTTING_H
#define _PLOTTING_H
#ifndef ngspice_PLOTTING_H
#define ngspice_PLOTTING_H
#include "ngspice/plot.h"

View File

@ -1,5 +1,5 @@
#ifndef _PVEC_H
#define _PVEC_H
#ifndef ngspice_PVEC_H
#define ngspice_PVEC_H
#include "ngspice/dvec.h"

View File

@ -1,5 +1,5 @@
#ifndef _TERMINAL_H
#define _TERMINAL_H
#ifndef ngspice_TERMINAL_H
#define ngspice_TERMINAL_H
void outbufputc(void);

View File

@ -2,8 +2,8 @@
variable.h
*/
#ifndef _VARIABLE_H
#define _VARIABLE_H
#ifndef ngspice_VARIABLE_H
#define ngspice_VARIABLE_H
#include "ngspice/cpextern.h"

View File

@ -1,5 +1,5 @@
#ifndef _BOOL_H
#define _BOOL_H
#ifndef ngspice_BOOL_H
#define ngspice_BOOL_H
//typedef unsigned char bool;
typedef int bool;

View File

@ -4,8 +4,8 @@
* CIDER input library header
*/
#ifndef _CIDERINP_H
#define _CIDERINP_H
#ifndef ngspice_CIDERINP_H
#define ngspice_CIDERINP_H
/* externals for bdryset.c */

View File

@ -4,8 +4,8 @@
* CIDER support library header
*/
#ifndef _CIDERSUPT_H
#define _CIDERSUPT_H
#ifndef ngspice_CIDERSUPT_H
#define ngspice_CIDERSUPT_H
#include "ngspice/numglobs.h"
#include "ngspice/material.h"

View File

@ -1,5 +1,5 @@
#ifndef _CLUSTER_H_
#define _CLUSTER_H_
#ifndef ngspice_CLUSTER_H_
#define ngspice_CLUSTER_H_
#include "ngspice/cktdefs.h"
/* Cluster definitions */

View File

@ -1,5 +1,5 @@
#ifndef _COMPATMODE_H
#define _COMPATMODE_H
#ifndef ngspice_COMPATMODE_H
#define ngspice_COMPATMODE_H
#include "ngspice/config.h"

View File

@ -2,8 +2,8 @@
* Copyright (c) 1985 Thomas L. Quarles
* Modified: 1999 Paolo Nenzi, 2000 Arno W. Peters
*/
#ifndef _COMPLEX_H
#define _COMPLEX_H
#ifndef ngspice_COMPLEX_H
#define ngspice_COMPLEX_H
/* Complex numbers. */
@ -284,7 +284,7 @@ typedef struct {
(A).imag = (B.imag) - (C.imag); \
}
#ifndef _SPDEFS_H
#ifndef ngspice_SPDEFS_H
/* Macro function that returns the approx absolute value of a complex
number. */
@ -544,6 +544,6 @@ typedef struct {
} \
}
#endif /* _SPDEF_H */
#endif /* ngspice_SPDEF_H */
#endif

View File

@ -8,8 +8,8 @@ Author: 1986 Wayne A. Christopher, U. C. Berkeley CAD Group
* wlist.c
*/
#ifndef _CPSTD_H_
#define _CPSTD_H_
#ifndef ngspice_CPSTD_H_
#define ngspice_CPSTD_H_
#ifndef FILE

View File

@ -10,8 +10,8 @@
*/
#ifndef _DEFINES_H_
#define _DEFINES_H_
#ifndef ngspice_DEFINES_H_
#define ngspice_DEFINES_H_
#ifndef M_PI

View File

@ -3,8 +3,8 @@
(c)2000 Arpad Buermen
*/
#ifndef __DLLITF_H
#define __DLLITF_H
#ifndef ngspice__DLLITF_H
#define ngspice__DLLITF_H
#include "ngspice/mifproto.h"
#include "ngspice/cmproto.h"

View File

@ -1,5 +1,5 @@
#ifndef _DVEC_H
#define _DVEC_H
#ifndef ngspice_DVEC_H
#define ngspice_DVEC_H
#include "ngspice/complex.h"
#include "ngspice/grid.h"

View File

@ -15,8 +15,8 @@ Author: 1988 Jeffrey M. Hsu
checkup_option is for handling and pending asynchonous events
*/
#ifndef _FTEINPUT_H_
#define _FTEINPUT_H_
#ifndef ngspice_FTEINPUT_H_
#define ngspice_FTEINPUT_H_
#include <stdio.h>

View File

@ -7,8 +7,8 @@ Author: 1988 Jeffrey M. Hsu
This file contains the graph structure.
*/
#ifndef _GRAPH_H
#define _GRAPH_H
#ifndef ngspice_GRAPH_H
#define ngspice_GRAPH_H
#include "ngspice/typedefs.h"
#include "ngspice/grid.h"

View File

@ -1,5 +1,5 @@
#ifndef _GRID_H
#define _GRID_H
#ifndef ngspice_GRID_H
#define ngspice_GRID_H
#include "typedefs.h"

View File

@ -9,8 +9,8 @@
*/
#ifndef _MACROS_H_
#define _MACROS_H_
#ifndef ngspice_MACROS_H_
#define ngspice_MACROS_H_
/*
* #define-s that are always on

View File

@ -1,5 +1,5 @@
#ifndef _MEMORY_H
#define _MEMORY_H
#ifndef ngspice_MEMORY_H
#define ngspice_MEMORY_H
#include <stddef.h>

View File

@ -1,5 +1,5 @@
#ifndef _PLOT_H
#define _PLOT_H
#ifndef ngspice_PLOT_H
#define ngspice_PLOT_H
#include "ngspice/wordlist.h"
#include "ngspice/bool.h"

View File

@ -1,5 +1,5 @@
#ifndef _PNODE_H
#define _PNODE_H
#ifndef ngspice_PNODE_H
#define ngspice_PNODE_H
struct pnode {
char *pn_name; /* If non-NULL, the name. */

View File

@ -1,5 +1,5 @@
#ifndef _SIM_H
#define _SIM_H
#ifndef ngspice_SIM_H
#define ngspice_SIM_H
enum simulation_types {
SV_NOTYPE,

View File

@ -3,8 +3,8 @@ Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 Thomas L. Quarles
**********/
#ifndef _SPERROR_H
#define _SPERROR_H
#ifndef ngspice_SPERROR_H
#define ngspice_SPERROR_H
#include "ngspice/iferrmsg.h"

View File

@ -10,8 +10,8 @@
* Copyright (C) University of California, Berkeley
*
*/
#ifndef _SWEC_H_
#define _SWEC_H_
#ifndef ngspice_SWEC_H_
#define ngspice_SWEC_H_
/************************************************************
*

View File

@ -1,5 +1,5 @@
#ifndef _WORDLIST_H
#define _WORDLIST_H
#ifndef ngspice_WORDLIST_H
#define ngspice_WORDLIST_H
/* Doubly linked lists of words. */

View File

@ -1,5 +1,5 @@
#ifndef _CMATH_H
#define _CMATH_H
#ifndef ngspice_CMATH_H
#define ngspice_CMATH_H
#define alloc_c(len) (TMALLOC(ngcomplex_t, len))
#define alloc_d(len) (TMALLOC(double, len))

View File

@ -1,5 +1,5 @@
#ifndef _INTERPOLATE_H
#define _INTERPOLATE_H
#ifndef ngspice_INTERPOLATE_H
#define ngspice_INTERPOLATE_H
#include "ngspice/bool.h"

View File

@ -1,7 +1,7 @@
/* The public interface to the polygon library. */
#ifndef _POLY_H
#define _POLY_H
#ifndef ngspice_POLY_H
#define ngspice_POLY_H
#include "interpolate.h"
#include "polyderiv.h"

View File

@ -1,5 +1,5 @@
#ifndef _POLYDERIV_H
#define _POLYDERIV_H
#ifndef ngspice_POLYDERIV_H
#define ngspice_POLYDERIV_H
void ft_polyderiv(double *coeffs, int degree);

View File

@ -1,5 +1,5 @@
#ifndef _POLYEVAL_H
#define _POLYEVAL_H
#ifndef ngspice_POLYEVAL_H
#define ngspice_POLYEVAL_H
double ft_peval(double x, double *coeffs, int degree);

View File

@ -1,5 +1,5 @@
#ifndef _POLYFIT_H
#define _POLYFIT_H
#ifndef ngspice_POLYFIT_H
#define ngspice_POLYFIT_H
#include "ngspice/bool.h"

View File

@ -1,5 +1,5 @@
#ifndef _SPDEFS_H
#define _SPDEFS_H
#ifndef ngspice_SPDEFS_H
#define ngspice_SPDEFS_H
/*
* DATA STRUCTURE AND MACRO DEFINITIONS for Sparse.
*

View File

@ -1,5 +1,5 @@
#ifndef _ANALYSIS_H
#define _ANALYSIS_H
#ifndef ngspice_ANALYSIS_H
#define ngspice_ANALYSIS_H
struct SPICEanalysis {
IFanalysis if_analysis;

View File

@ -1,5 +1,5 @@
#ifndef _INPPAS1_H
#define _INPPAS1_H
#ifndef ngspice_INPPAS1_H
#define ngspice_INPPAS1_H
#include "ngspice/inpdefs.h"

View File

@ -1,5 +1,5 @@
#ifndef _INPPAS2_H
#define _INPPAS2_H
#ifndef ngspice_INPPAS2_H
#define ngspice_INPPAS2_H
#include "ngspice/inpdefs.h"

View File

@ -1,6 +1,6 @@
/* AlansFixes */
#ifndef _INPPAS3_H
#define _INPPAS3_H
#ifndef ngspice_INPPAS3_H
#define ngspice_INPPAS3_H
#include "ngspice/inpdefs.h"