OSDN Git Service

updated headers.
authormaqiyuan <maqiyuan@users.sourceforge.jp>
Sat, 30 Aug 2014 17:50:20 +0000 (01:50 +0800)
committermaqiyuan <maqiyuan@users.sourceforge.jp>
Sat, 30 Aug 2014 17:50:20 +0000 (01:50 +0800)
23 files changed:
src/texsourc/coerce.h
src/texsourc/dpx.c
src/texsourc/dpx.h
src/texsourc/itex.c
src/texsourc/local.c
src/texsourc/macros.h
src/texsourc/memory.h
src/texsourc/openinou.c
src/texsourc/pool.c
src/texsourc/subroute.c
src/texsourc/tex0.c
src/texsourc/tex1.c
src/texsourc/tex2.c
src/texsourc/tex3.c
src/texsourc/tex4.c
src/texsourc/tex5.c
src/texsourc/tex6.c
src/texsourc/tex7.c
src/texsourc/tex8.c
src/texsourc/tex9.c
src/texsourc/texd.h
src/texsourc/utils.c
src/texsourc/yandytex.c

index 86a08b8..43bcc63 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2007 TeX Users Group\r
+/*\r
+   Copyright 2007 TeX Users Group\r
    Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
+\r
+#ifndef _YANDYTEX_COERCE_H\r
+#define _YANDYTEX_COERCE_H\r
 \r
 void initialize (void);\r
 void print_ln (void);\r
@@ -415,4 +420,6 @@ void fix_date_and_time (void);
 void print_banner (void);\r
 \r
 int main_program (void);\r
-int main_init (int ac, char ** av);
\ No newline at end of file
+int main_init (int ac, char ** av);\r
+\r
+#endif
\ No newline at end of file
index f183bee..48b64de 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index 87d0f09..102a1cb 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
+\r
+#ifndef _YANDYTEX_DPX_H\r
+#define _YANDYTEX_DPX_H\r
 \r
 extern void pdf_init_fontmaps(void);\r
 extern void pdf_close_fontmaps(void);\r
@@ -66,3 +71,5 @@ extern void pdf_dev_set_rect (pdf_rect *rect,
                   spt_t x_user, spt_t y_user,\r
                   spt_t width,  spt_t height, spt_t depth);\r
 extern void pdf_doc_expand_box (const pdf_rect *rect);\r
+\r
+#endif
\ No newline at end of file
index 0922014..edeada4 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 1992 Karl Berry\r
+/*\r
+   Copyright 1992 Karl Berry\r
    Copyright 2007 TeX Users Group\r
    Copyright 2014 Clerk Ma\r
 \r
@@ -15,7 +16,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index 8c89012..0e53b88 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2007 TeX Users Group\r
+/*\r
+   Copyright 2007 TeX Users Group\r
    Copyright 2014 Clerk Ma   \r
 \r
    This program is free software; you can redistribute it and/or modify\r
@@ -14,7 +15,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
@@ -41,6 +43,8 @@ const char * compiler = "Clang/LLVM";
 const char * compiler = "GCC";\r
 #elif defined (_MSC_VER)\r
 const char * compiler = "MSVC";\r
+#else\r
+const char * compiler = "Unknown";\r
 #endif\r
 \r
 #if   defined (_WIN64)\r
@@ -96,10 +100,6 @@ void show_usage (void)
       "                    (complain instead)\n"\r
       "--showhex    -w  do not show `non ASCII' characters in hexadecimal\n"\r
       "                    (show as is)\n"\r
-      "--nodos      -d  do not allow DOS style file names - i.e. do not convert\n"\r
-      "                    \\ to /\n"\r
-      "--nomac      -r  do not allow Mac style termination - i.e. do not convert\n"\r
-      "                    \\r to \\n\n"\r
       "--patterns   -p  allow use of \\patterns after loading format (initex only)\n"\r
       "--knuthify   -K  disable all extensions to basic TeX\n"\r
       "--main-mem   -m  initial main memory size in kilo words (initex only)\n"\r
@@ -134,25 +134,6 @@ void scivilize (char * date)
     date[9] = '0';\r
 }\r
 \r
-// Thu Sep 27 06:26:35 1990 => 1990 Sep 27 06:26:35\r
-void lcivilize (char * date)\r
-{\r
-  int k;\r
-  char pyear[6];\r
-\r
-  strcpy(pyear, date + 20);\r
-\r
-  for (k = 18; k >= 0; k--)\r
-    date[k + 1] = date[k];\r
-\r
-  date[20] = '\0';\r
-\r
-  for (k = 0; k < 4; k++)\r
-    date[k] = pyear[k];\r
-\r
-  date[4] = ' ';\r
-}\r
-\r
 void stamp_it (char * s)\r
 {\r
   char date[11 + 1];\r
@@ -1377,7 +1358,7 @@ list_state_record * realloc_nest_stack (int size)
 #ifdef ALLOCATEPARAMSTACK\r
 int current_param_size = 0;\r
 \r
-halfword *realloc_param_stack (int size)\r
+halfword * realloc_param_stack (int size)\r
 {\r
   int k, min_size;\r
   int n = 0, new_size = 0;\r
@@ -1832,7 +1813,6 @@ boolean prime (int x)
   return true;\r
 }\r
 \r
-int quitflag  = 0;\r
 boolean show_use = false;\r
 \r
 void complainarg (int c, char *s)\r
@@ -2173,7 +2153,7 @@ void knuthify (void)
   c_style_flag          = false; /* don't add file name to error msg */\r
   show_fmt_flag         = false; /* don't show format file in log */\r
   show_tfm_flag         = false; /* don't show metric file in log */\r
-  tab_step              = 0;\r
+  tab_step              = 0;     /* tab's size of width */\r
   show_line_break_stats = false; /* do not show line break stats */\r
   show_fonts_used       = false;\r
   default_rule          = 26214; /* revert to default rule thickness */\r
@@ -2301,9 +2281,6 @@ int analyze_flag (int c, char * optarg)
     case 't':\r
       trace_flag = true;\r
       break;\r
-    case 'q':\r
-      quitflag++; /* 93/Dec/16 */\r
-      break;\r
 /* The following are really obscure and should not be advertized */\r
     case 's':\r
       show_current = false;\r
@@ -2508,20 +2485,12 @@ int read_command_line (int ac, char **av)
     analyze_flag(c, optargnew);\r
   }\r
 \r
-  if (show_use || quitflag == 3)\r
+  if (show_use)\r
   {\r
     stamp_it(log_line);\r
     strcat(log_line, "\n");\r
     show_line(log_line, 0);\r
-\r
-    if (show_use)\r
-      show_usage();\r
-    else if (quitflag == 3)\r
-    {\r
-      strcat(log_line, "\n");\r
-      show_line(log_line, 0);\r
-    }\r
-\r
+    show_usage();\r
     return -1; // failure\r
   } \r
 \r
@@ -2618,18 +2587,7 @@ void initial_memory (void)
   if (mem_initex < 0)\r
     mem_initex = 0;\r
 \r
-  if (is_initex)\r
-  {\r
- #if defined(ALLOCATEHIGH) || defined(ALLOCATELOW)\r
-    if (mem_extra_high != 0 || mem_extra_low != 0)\r
-    {\r
-      puts("ERROR: Cannot extend main memory in initex");\r
-      mem_extra_high = 0;\r
-      mem_extra_low = 0;\r
-    }\r
-#endif\r
-  }\r
-  else\r
+  if (!is_initex)\r
   {\r
     if (mem_initex != 0)\r
     {\r
@@ -2643,6 +2601,7 @@ void initial_memory (void)
 /* trie_size = 0; */\r
     }\r
   }\r
+\r
   if (mem_initex == 0)\r
     mem_initex = default_mem_top;\r
 \r
@@ -2963,7 +2922,7 @@ void show_inter_val (clock_t inter_val)
     show_line("0", 0);\r
 }\r
 \r
-int endit(int flag)\r
+int endit (int flag)\r
 {\r
   finish_time = clock();\r
 \r
index 35b9d39..00d8ab0 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,9 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
+\r
 #ifndef _YANDYTEX_MACROS_H\r
 #define _YANDYTEX_MACROS_H\r
 \r
index 77cd1ec..572c196 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 1992 Karl Berry\r
+/*\r
+   Copyright 1992 Karl Berry\r
    Copyright 2007 TeX Users Group\r
    Copyright 2014 Clerk Ma\r
 \r
@@ -15,7 +16,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 /*\r
   meaning      structure                      TeX                 Y&Y TeX\r
index a8a2227..17f1e9f 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 1992 Karl Berry\r
+/*\r
+   Copyright 1992 Karl Berry\r
    Copyright 2007 TeX Users Group\r
    Copyright 2014 Clerk Ma\r
 \r
@@ -15,7 +16,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index 1248619..4589061 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+ */\r
 \r
 #define EXTERN extern\r
 \r
index 209a56c..5bd4874 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2007 TeX Users Group\r
+/*\r
+   Copyright 2007 TeX Users Group\r
    Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
@@ -14,7 +15,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index afeb00b..533a684 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 #include "yandytex.h"\r
index 22064eb..1d79f0b 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index fc060d1..0782db5 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index 8dbdc16..3d6f7af 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index b931fe0..0500e0c 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index d8f1986..9f0a36c 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index e2c46b1..f09cbb2 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index 850b7e6..ac98ec4 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index 491fa06..2c2ca40 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index d080fb0..e6fab3a 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index 6579de4..334b579 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #ifndef _YANDYTEX_TEXD_H\r
 #define _YANDYTEX_TEXD_H\r
index d7906e2..d509f1c 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 2014 Clerk Ma\r
+/*\r
+   Copyright 2014 Clerk Ma\r
 \r
    This program is free software; you can redistribute it and/or modify\r
    it under the terms of the GNU General Public License as published by\r
@@ -13,7 +14,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN extern\r
 \r
index 60dd334..2076f35 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright 1992 Karl Berry\r
+/*\r
+   Copyright 1992 Karl Berry\r
    Copyright 2007 TeX Users Group\r
    Copyright 2014 Clerk Ma\r
 \r
@@ -15,7 +16,8 @@
    You should have received a copy of the GNU General Public License\r
    along with this program; if not, write to the Free Software\r
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
-   02110-1301 USA.  */\r
+   02110-1301 USA.\r
+*/\r
 \r
 #define EXTERN\r
 \r