Removes some cast noise.
GtkTextBuffer *gtkbuf; /*GTK buffer from glade GUI */
char buf[BUFSIZ];
- unsigned char xbuffer[BUFSIZ];
+ char xbuffer[BUFSIZ];
agxbinit(&xbuf, SMALLBUF, xbuffer);
{
Agraph_t* g;
agxbuf xb;
- unsigned char buf[BUFSIZ];
+ char buf[BUFSIZ];
agxbuf unk;
- unsigned char unknownb[BUFSIZ];
+ char unknownb[BUFSIZ];
int error;
if (cnt == 0)
int i, j;
agxbuf xb;
char buf[BUFS];
- unsigned char string[BUFS];
+ char string[BUFS];
Agsym_t *sym = NULL, *sym2 = NULL, *sym3 = NULL;
int *ia = A->ia;
int *ja = A->ja;
* Initializes new agxbuf; caller provides memory.
* Assume if init is non-null, hint = sizeof(init[])
*/
-static inline void agxbinit(agxbuf *xb, unsigned int hint,
- unsigned char *init) {
+static inline void agxbinit(agxbuf *xb, unsigned int hint, char *init) {
if (init != NULL) {
- xb->buf = (char *)init;
+ xb->buf = init;
xb->dyna = 0;
} else {
if (hint == 0) {
void aagerror(const char *str)
{
- unsigned char xbuf[BUFSIZ];
+ char xbuf[BUFSIZ];
agxbuf xb;
agxbinit(&xb, BUFSIZ, xbuf);
char* tooltip = agget(gobj, "tooltip");
char* target = agget(gobj, "target");
char* id;
- unsigned char buf[SMALLBUF];
+ char buf[SMALLBUF];
agxbuf xb;
agxbinit(&xb, SMALLBUF, buf);
static bool selectedLayer(GVC_t *gvc, int layerNum, int numLayers, char *spec)
{
int n0, n1;
- unsigned char buf[SMALLBUF];
+ char buf[SMALLBUF];
char *w0, *w1;
char *buf_part_p = NULL, *buf_p = NULL, *cur, *part_in_p;
agxbuf xb;
if (flags & GVRENDER_DOES_MAPS) {
agxbuf xb;
- unsigned char xbuf[SMALLBUF];
+ char xbuf[SMALLBUF];
agxbinit(&xb, SMALLBUF, xbuf);
s = getObjId (job, e, &xb);
textlabel_t *lab;
pointf *p = NULL;
char* saveid;
- unsigned char buf[SMALLBUF];
+ char buf[SMALLBUF];
agxbuf xb;
/* For the first page, we can use the values generated in emit_begin_graph.
}
#define FUNLIMIT 64
-static unsigned char outbuf[SMALLBUF];
+static char outbuf[SMALLBUF];
static agxbuf ps_xb;
/* parse_style:
static bool is_first = true;
int fun = 0;
bool in_parens = false;
- unsigned char buf[SMALLBUF];
+ char buf[SMALLBUF];
char *p;
int c;
agxbuf xb;
htmllabel_t*
parseHTML (char* txt, int* warn, htmlenv_t *env)
{
- unsigned char buf[SMALLBUF];
+ char buf[SMALLBUF];
agxbuf str;
htmllabel_t* l;
sfont_t dfltf;
static int anchorId;
int internalId = 0;
agxbuf xb;
- unsigned char buf[SMALLBUF];
+ char buf[SMALLBUF];
save->url = obj->url;
save->tooltip = obj->tooltip;
if (!lbl) {
/* Parse of label failed; revert to simple text label */
agxbuf xb;
- unsigned char buf[SMALLBUF];
+ char buf[SMALLBUF];
agxbinit(&xb, SMALLBUF, buf);
lp->html = false;
lp->text = strdup(nameOf(obj, &xb));
char c, *rest, *layout;
const char *val;
int i, v, nfiles;
- unsigned char buf[SMALLBUF];
+ char buf[SMALLBUF];
agxbuf xb;
int Kflag = 0;
int s_arrows; /* graph has edges with start arrows */
int i, j, sides;
char buf[BUFSIZ]; /* Used only for small strings */
- unsigned char xbuffer[BUFSIZ]; /* Initial buffer for xb */
+ char xbuffer[BUFSIZ]; /* Initial buffer for xb */
agxbuf xb;
node_t *n;
edge_t *e;
agxbuf xb;
Dt_t *map;
Dt_t *cmap = mkClustMap (g);
- unsigned char buf[SMALLBUF];
+ char buf[SMALLBUF];
map = dtopen(&mapDisc, Dtoset);
clg = agsubg(g, "__clusternodes",1);
static void printXDot_Op(xdot_op * op, pf print, void *info, int more)
{
agxbuf xb;
- unsigned char buf[BUFSIZ];
+ char buf[BUFSIZ];
agxbinit (&xb, BUFSIZ, buf);
switch (op->kind) {
static void jsonXDot_Op(xdot_op * op, pf print, void *info, int more)
{
agxbuf xb;
- unsigned char buf[BUFSIZ];
+ char buf[BUFSIZ];
agxbinit (&xb, BUFSIZ, buf);
switch (op->kind) {
char *sprintXDot(xdot * x)
{
char *s;
- unsigned char buf[BUFSIZ];
+ char buf[BUFSIZ];
agxbuf xb;
agxbinit(&xb, BUFSIZ, buf);
_printXDot(x, agxbput_, &xb, printXDot_Op);
attrsym_t *e_l_draw;
attrsym_t *hl_draw;
attrsym_t *tl_draw;
- unsigned char buf[NUMXBUFS][BUFSIZ];
+ char buf[NUMXBUFS][BUFSIZ];
unsigned short version;
char* version_s;
} xdot_state_t;
static void xdot_style (GVJ_t *job)
{
- unsigned char buf0[BUFSIZ];
+ char buf0[BUFSIZ];
char buf [128]; /* enough to hold a double */
agxbuf xb;
char* p, **s;
static void xdot_gradient_fillcolor (GVJ_t* job, int filled, pointf* A, int n)
{
- unsigned char buf0[BUFSIZ];
+ char buf0[BUFSIZ];
agxbuf xb;
obj_state_t* obj = job->obj;
double angle = obj->gradient_angle * M_PI / 180;
gv_font_map* gv_fmap = N_NEW(ps_fontnames_sz, gv_font_map);
agxbuf xb;
agxbuf xb2;
- unsigned char buf[BUFSIZ];
- unsigned char buf2[BUFSIZ];
+ char buf[BUFSIZ];
+ char buf2[BUFSIZ];
agxbinit(&xb, BUFSIZ, buf);
agxbinit(&xb2, BUFSIZ, buf2);
#ifdef ENABLE_PANGO_MARKUP
if ((span->font) && (flags = span->font->flags)) {
- unsigned char buf[BUFSIZ];
+ char buf[BUFSIZ];
agxbuf xb;
agxbinit(&xb, BUFSIZ, buf);