mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-22 23:04:16 +02:00
poly2d/ (p2d_write_gnuplot, p2d_write_gnuplot_all): use "bool" instead of "int"
This commit is contained in:
parent
3cc284d9c1
commit
5808a4001f
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* p2d_gnuplot.c - File I/O in gnuplot format
|
||||
*
|
||||
* Written 2012 by Werner Almesberger
|
||||
* Copyright 2012 Werner Almesberger
|
||||
* Written 2012, 2015 by Werner Almesberger
|
||||
* Copyright 2012, 2015 Werner Almesberger
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -11,6 +11,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
@ -67,7 +68,7 @@ struct p2d *p2d_read_gnuplot(FILE *file)
|
||||
}
|
||||
|
||||
|
||||
int p2d_write_gnuplot(FILE *file, const struct p2d *p)
|
||||
bool p2d_write_gnuplot(FILE *file, const struct p2d *p)
|
||||
{
|
||||
const struct v2d *v;
|
||||
|
||||
@ -86,7 +87,7 @@ int p2d_write_gnuplot(FILE *file, const struct p2d *p)
|
||||
}
|
||||
|
||||
|
||||
int p2d_write_gnuplot_all(FILE *file, const struct p2d *p)
|
||||
bool p2d_write_gnuplot_all(FILE *file, const struct p2d *p)
|
||||
{
|
||||
while (p) {
|
||||
if (!p2d_write_gnuplot(file, p))
|
||||
|
@ -176,7 +176,7 @@ struct f2d *f2d_tri(const struct p2d *p);
|
||||
void f2d_free_all(struct f2d *f);
|
||||
|
||||
struct p2d *p2d_read_gnuplot(FILE *file);
|
||||
int p2d_write_gnuplot(FILE *file, const struct p2d *p);
|
||||
int p2d_write_gnuplot_all(FILE *file, const struct p2d *p);
|
||||
bool p2d_write_gnuplot(FILE *file, const struct p2d *p);
|
||||
bool p2d_write_gnuplot_all(FILE *file, const struct p2d *p);
|
||||
|
||||
#endif /* !POLY2D_H */
|
||||
|
Loading…
Reference in New Issue
Block a user