- creator always "graphviz"
- pass in lt_preload_symbols from code using libgvc - avoiding problems with --enable-static
- clean out various bits of dead code
struct codegen_s {
void (*reset) (void);
- void (*begin_job) (FILE * ofp, graph_t * g, const char **lib, char *user,
- char *info[], point pages);
+ void (*begin_job) (FILE * ofp, graph_t * g, const char **lib, char *info[], point pages);
void (*end_job) (void);
void (*begin_graph) (GVC_t * gvc, graph_t * g, box bb, point pb);
void (*end_graph) (void);
#endif
#endif
-char *gvUsername(void)
-{
- char *user = NULL;
-#if !defined(MSWIN32) && !defined(WIN32)
- static int first = 1;
- struct passwd *p;
- if (first) {
- agxbinit(&xb, SMALLBUF, userbuf);
-#if 0
- atexit(cleanup);
-#endif
- first = 0;
- }
- p = (struct passwd *) getpwuid(getuid());
- if (p) {
- agxbputc(&xb, '(');
- agxbput(&xb, p->pw_name);
- agxbput(&xb, ") ");
-#ifdef SVR4
- agxbput(&xb, p->pw_comment);
-#else
- agxbput(&xb, p->pw_gecos);
-#endif
- user = agxbuse(&xb);
- }
-#endif
- if (user == NULL)
- user = getenv ("USERNAME");
- if (user == NULL)
- user = "Bill Gates";
- return user;
-}
-
/* Fgets:
* Read a complete line.
* Return pointer to line,