Diff for /libelwix/inc/elwix/apack.h between versions 1.10 and 1.12

version 1.10, 2015/06/25 17:53:49 version 1.12, 2025/08/21 15:43:00
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2015Copyright 2004 - 2024
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 68  typedef struct tagRawPacket { Line 68  typedef struct tagRawPacket {
 #define RPACK_OFF(x)            (assert((x)), (x)->r_next - (x)->r_buf)  #define RPACK_OFF(x)            (assert((x)), (x)->r_next - (x)->r_buf)
 #define RPACK_REMAIN(x)         (assert((x)), (x)->r_len - ((x)->r_next - (x)->r_buf))  #define RPACK_REMAIN(x)         (assert((x)), (x)->r_len - ((x)->r_next - (x)->r_buf))
 #define RPACK_ISEND(x)          (assert((x)), (size_t) ((x)->r_next - (x)->r_buf) >= (x)->r_len)  #define RPACK_ISEND(x)          (assert((x)), (size_t) ((x)->r_next - (x)->r_buf) >= (x)->r_len)
   #define RPACK_WHEREAMI(x, nx)   (assert((x)), (size_t) (((uint8_t*)(nx)) - (x)->r_buf))
   
 #define RPACK_SET_16(x, n)      do { assert((x)); \  #define RPACK_SET_16(x, n)      do { assert((x)); \
                                         *((uint8_t *) (x) + 1) = *((const uint8_t *) (n) + 1); \                                          *((uint8_t *) (x) + 1) = *((const uint8_t *) (n) + 1); \
Line 150  typedef struct tagRawPacket { Line 151  typedef struct tagRawPacket {
                                 ))                                  ))
   
   
   #ifdef __cplusplus
   extern "C" {
   #endif
   
 /*  /*
  * rpack_align_and_reserve() - Align & reserve space   * rpack_align_and_reserve() - Align & reserve space
  *   *
Line 316  void *rpack_data(rpack_t * __restrict rp, void * __res Line 321  void *rpack_data(rpack_t * __restrict rp, void * __res
  */   */
 void *rpack_rdata(rpack_t * __restrict rp, void * __restrict dat, size_t datlen);  void *rpack_rdata(rpack_t * __restrict rp, void * __restrict dat, size_t datlen);
   
   #ifdef __cplusplus
   }
   #endif
   
 #endif  #endif

Removed from v.1.10  
changed lines
  Added in v.1.12


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>