]> andersk Git - moira.git/blobdiff - gdb/gdb_stype.c
changed the header format - tom
[moira.git] / gdb / gdb_stype.c
index fd4f0e85eabc60e95c262a442786a67e9bc4ceec..557350f87587d344de6b7bf57895a7fe9753ae60 100644 (file)
@@ -8,72 +8,54 @@ static char *rcsid_gdb_stype_c = "$Header$";
 #endif lint
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/************************************************************************/
-/*     
-/*                        gdb_stype.c
-/*     
-/*           GDB - System Data Type Definitions
-/*     
-/*     Author: Noah Mendelsohn
-/*     Copyright: 1986 MIT Project Athena 
-/*             For copying and distribution information, please see
-/*             the file <mit-copyright.h>.
-/*     
-/*     This file initializes the definitions for all system defined
-/*     data types, and it includes the type specific semantic routines
-/*     for each of the system defined types.
-/*     
-/*     The initialization routine which adds these type definitions 
-/*     to the type definition table is at the end of this source file.
-/*     
-/************************************************************************/
-/*     
-/*     This file is organized into one section for each system
-/*     defined type followed at the end by a final section which
-/*     initializes the type tables.  Each of the type specific
-/*     sections does #defines for each type specific parameter.  The
-/*     gdb_i_stype initialization routine at the end of this source
-/*     file uses these defines to initialize the appropriate entry in
-/*     the type definition tables.
-/*     
-/*     NOTE: some of the type definitions in this file may be machine
-/*     dependent.
-/*     
-/************************************************************************/
+/************************************************************************
+ *     
+ *                        gdb_stype.c
+ *     
+ *           GDB - System Data Type Definitions
+ *     
+ *     Author: Noah Mendelsohn
+ *     Copyright: 1986 MIT Project Athena 
+ *             For copying and distribution information, please see
+ *             the file <mit-copyright.h>.
+ *     
+ *     This file initializes the definitions for all system defined
+ *     data types, and it includes the type specific semantic routines
+ *     for each of the system defined types.
+ *     
+ *     The initialization routine which adds these type definitions 
+ *     to the type definition table is at the end of this source file.
+ *     
+ ************************************************************************
+ *     
+ *     This file is organized into one section for each system
+ *     defined type followed at the end by a final section which
+ *     initializes the type tables.  Each of the type specific
+ *     sections does #defines for each type specific parameter.  The
+ *     gdb_i_stype initialization routine at the end of this source
+ *     file uses these defines to initialize the appropriate entry in
+ *     the type definition tables.
+ *     
+ *     NOTE: some of the type definitions in this file may be machine
+ *     dependent.
+ *     
+ ************************************************************************/
 
 #include <mit-copyright.h>
 #include <stdio.h>
-#include <strings.h>
+#include <string.h>
 #include "gdb.h"
 #ifdef vax                     /* XXX */
        extern u_long ntohl(), htonl();
 #endif vax
 #include <netinet/in.h>                                /* for htonl routine */
-\f
-/************************************************************************/
-/*     
-/*                          INTEGER_T
-/*     
-/************************************************************************/
+
+
+/************************************************************************
+ *     
+ *                          INTEGER_T
+ *     
+ ************************************************************************/
 
 #define IN_LEN                 (sizeof(int))
 #define IN_ALI                 IN_LEN
@@ -113,6 +95,7 @@ char *dp;                                    /* pointer to the data */
        /*----------------------------------------------------------*/
 
 
+/*ARGSUSED*/
 int
 g_in_cdlen(dp,hcon)
 char *dp;                                      /* pointer to the data */
@@ -129,6 +112,7 @@ HALF_CONNECTION hcon;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_in_enc(dp, hcon, outp)
 char *dp;                                      /* pointer to data */
@@ -169,6 +153,7 @@ char *outp;                                 /* place to put the output */
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_in_dec(outp, hcon, inp)
 char *inp;                                     /* pointer to data */
@@ -213,7 +198,8 @@ char *dp;                                   /* pointer to the data */
 {
        fprintf(gdb_log, "INTEGER_T\t%s=%d\n",name,(*(int *)dp));
 }
-\f
+
+
 /************************************************************************/
 /*     
 /*                          STRING_T
@@ -301,7 +287,7 @@ char *outp;                                 /* place to put the output */
         * Now, copy the data itself after the encoded integer length
         */
        if (len > 0)
-               bcopy(STRING_DATA(*stp), nextp, len);
+               memcpy(nextp, STRING_DATA(*stp), len);
                                                /* copy the data without */
                                                /* changing representation*/
        return (int)(nextp+len);
@@ -358,7 +344,7 @@ char *outp;                                 /* place to put the output */
        /*
         * Now, copy the data itself 
         */
-       bcopy(nextp, STRING_DATA(*stp), len);   /* copy the data without */
+       memcpy(STRING_DATA(*stp), nextp, len);  /* copy the data without */
                                                /* changing representation*/
        return (int)(nextp+len);
 }
@@ -399,7 +385,8 @@ char *dp;                                   /* pointer to the data */
 
        fprintf(gdb_log,"\"\n");
 }
-\f
+
+
 /************************************************************************/
 /*     
 /*                          REAL_T
@@ -444,6 +431,7 @@ char *dp;                                   /* pointer to the data */
        /*----------------------------------------------------------*/
 
 
+/*ARGSUSED*/
 int
 g_rl_cdlen(dp,hcon)
 char *dp;                                      /* pointer to the data */
@@ -460,6 +448,7 @@ HALF_CONNECTION hcon;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_rl_enc(dp, hcon, outp)
 char *dp;                                      /* pointer to data */
@@ -500,6 +489,7 @@ char *outp;                                 /* place to put the output */
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_rl_dec(outp, hcon, inp)
 char *inp;                                     /* pointer to data */
@@ -526,7 +516,8 @@ char *dp;                                   /* pointer to the data */
 {
        fprintf(gdb_log, "REAL_T\t\t%s=%le\n",name,*((double *)dp) );
 }
-\f
+
+
 /************************************************************************/
 /*     
 /*                          DATE_T
@@ -577,6 +568,7 @@ char *dp;                                   /* pointer to the data */
        /*----------------------------------------------------------*/
 
 
+/*ARGSUSED*/
 int
 g_dt_cdlen(dp,hcon)
 char *dp;                                      /* pointer to the data */
@@ -593,6 +585,7 @@ HALF_CONNECTION hcon;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_dt_enc(dp, hcon, outp)
 char *dp;                                      /* pointer to data */
@@ -622,6 +615,7 @@ char *outp;                                 /* place to put the output */
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_dt_dec(outp, hcon, inp)
 char *inp;                                     /* pointer to data */
@@ -659,11 +653,12 @@ char *dp;                                 /* pointer to the data */
 {
        char buf[DT_EXTERNSIZE+1];
 
-       bcopy(dp, buf, DT_EXTERNSIZE);          /* copy date to buffer */
+       memcpy(buf, dp, DT_EXTERNSIZE);         /* copy date to buffer */
        buf[DT_EXTERNSIZE] = '\0';              /* null terminate it */
        fprintf(gdb_log, "DATE_T\t\t%s=%s\n",name,buf);
 }
-\f
+
+
 /************************************************************************/
 /*     
 /*                          TUPLE_DESCRIPTOR_T
@@ -790,8 +785,8 @@ char *outp;                                 /* place to put the output */
        /*
         * Finally, copy all the null terminated strings.
         */
-       bcopy(((char *)(tdp))+gdb_descriptor_length(tdp->field_count), 
-             nextp, tdp->str_len);             /* copy the string data all */
+       memcpy(nextp,((char *)(tdp))+gdb_descriptor_length(tdp->field_count), 
+              tdp->str_len);           /* copy the string data all */
                                                /* at once */
        return (int)(nextp+tdp->str_len);
 }
@@ -938,7 +933,8 @@ char *dp;                                   /* pointer to the data */
        }
        fprintf(gdb_log,"\n");
 }
-\f
+
+
 /************************************************************************/
 /*     
 /*                          TUPLE_T
@@ -1192,7 +1188,8 @@ char *dp;                                 /* pointer to the data */
        
        fprintf(gdb_log,"END_OF_TUPLE\n");
 }
-\f
+
+
 /************************************************************************/
 /*     
 /*                          TUPLE_DATA_T
@@ -1465,7 +1462,8 @@ char *dp;                                 /* pointer to the data */
        
        fprintf(gdb_log,"END_OF_TUPLE\n");
 }
-\f
+
+
 /************************************************************************/
 /*     
 /*                          RELATION_T
@@ -1757,7 +1755,8 @@ char *dp;                                 /* pointer to the data */
        
        fprintf(gdb_log,"END_OF_RELATION\n");
 }
-\f
+
+
 /************************************************************************/
 /*     
 /*        DECLARE AND INITIALIZE THE SYSTEM TYPE DEFINITION 
This page took 0.065414 seconds and 4 git commands to generate.