Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
extype.c
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11/*
12 * Glenn Fowler
13 * AT&T Research
14 *
15 * expression library C program generator
16 */
17
18#include <expr/exlib.h>
19
20/*
21 * return C type name for type
22 */
23
24char *extype(long int type) {
25 switch (type)
26 {
27 case FLOATING:
28 return "double";
29 case STRING:
30 return "char*";
31 case UNSIGNED:
32 return "uintmax_t";
33 }
34 return "intmax_t";
35}
#define UNSIGNED
Definition exparse.c:237
#define FLOATING
Definition exparse.c:239
expr procedure type
Definition exparse.y:208
char * extype(long int type)
Definition extype.c:24
#define STRING
Definition gmlparse.c:375