In the attachment, I removed src/include/nagman.H1 and
C macro "HTADD" and Makefile variable "HTADD", they are
all unused.

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/CAGBJN92YUU2cg910%3Dru%2B86Gu%2BBOdPZg%3DRCuOKhAwGp%2BGUmbk%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/hyper/Makefile.in b/src/hyper/Makefile.in
index 584a9215..0967dede 100644
--- a/src/hyper/Makefile.in
+++ b/src/hyper/Makefile.in
@@ -5,8 +5,6 @@ bin_PROGRAMS = htadd hypertex spadbuf hthits ex2ht
 # this is where to put the various commands
 OUTLIB=	$(fricas_target_libdir)
 
-HTADD=$(fricas_target_bindir)/htadd
-
 BITMAPS = mouse11.bitmap mouse11.mask sdown3d.bitmap sdown3dpr.bitmap \
 	sdown.bitmap sup3d.bitmap sup3dpr.bitmap sup.bitmap ht_icon
 
diff --git a/src/hyper/hyper.h b/src/hyper/hyper.h
index 7ce6fc3e..4be93e1c 100644
--- a/src/hyper/hyper.h
+++ b/src/hyper/hyper.h
@@ -75,7 +75,6 @@ struct group_item;
 #define Footer    3
 #define Title     4
 
-#ifndef HTADD
 extern int MenuServerOpened;
 
 /* These are all the colors one can use in HyperDoc. */
@@ -108,9 +107,6 @@ extern XFontStruct  *gActiveFont,
                     *gTtFont;
 
 
-#endif
-
-
 /** I am implementing a state node stack, this is the structure I store **/
 
 typedef struct state_node {
@@ -124,10 +120,8 @@ typedef struct state_node {
  struct state_node *next;
 } StateNode;
 
-#ifndef HTADD
 /** pointer to the top of the state node graph **/
 extern StateNode *top_state_node;
-#endif
 
 
 /* structure for a hyper text link */
@@ -401,7 +395,6 @@ extern HDWindow *gParentWindow;       /* the parent window. The one that
 extern HyperLink *quitLink; /** a special link to the protected quit page **/
 
 
-#ifndef HTADD
 /* From hyper.c */
 extern int      gXScreenNumber;
 extern Display *gXDisplay;
@@ -439,7 +432,6 @@ extern int need_scroll_up_button;
 extern int scrolling;
 extern int need_scroll_down_button;
 extern int space_width;
-#endif
 
 /* Here are some of the functions and constants declared and needed in
       htadd.c                                                    ******/
diff --git a/src/hyper/lex.c b/src/hyper/lex.c
index dafc0a2a..a2000372 100644
--- a/src/hyper/lex.c
+++ b/src/hyper/lex.c
@@ -317,10 +317,8 @@ AGAIN:
             last_command = cmd = get_int(spad_socket);
             if (cmd == EndOfPage)
                 return EOF;
-#ifndef HTADD
             if (cmd == SpadError)
                 spad_error_handler();
-#endif
         }
         read_again = get_string_buf(spad_socket, sock_buf, 1023);
         /* this will be null if this is the last time*/
@@ -815,7 +813,6 @@ get_expected_token(int type)
 }
 
 
-#ifndef HTADD
 static void
 spad_error_handler(void)
 {
@@ -843,7 +840,6 @@ reset_connection(void)
         connect_spad();
     }
 }
-#endif
 
 
 /* returns true if spad is currently computing */
diff --git a/src/include/nagman.H1 b/src/include/nagman.H1
deleted file mode 100644
index 1d98e035..00000000
--- a/src/include/nagman.H1
+++ /dev/null
@@ -1,7 +0,0 @@
-extern void main(int argc, char * * argv);
-#ifdef _NAGMAN_C
-static void term(int sig);
-static long size_of_file(char * filename);
-static void rpcloop(void);
-static void catchSignals(void);
-#endif

Reply via email to