Defines

ink_inout.h File Reference

A brief file description. More...

#include <arpa/nameser.h>
Include dependency graph for ink_inout.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GETCHAR(s, cp)
#define PUTCHAR(s, cp)
#define GETLONGLONG(l, cp)
#define PUTLONGLONG(l, cp)

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file ink_inout.h.


Define Documentation

#define GETCHAR (   s,
  cp 
)
Value:
{ \
        (s) = *(cp)++; \
}

Definition at line 41 of file ink_inout.h.

#define GETLONGLONG (   l,
  cp 
)
Value:
{ \
        (l) = *(cp)++ << 8; \
        (l) |= *(cp)++; (l) <<= 8; \
        (l) |= *(cp)++; (l) <<= 8; \
        (l) |= *(cp)++; (l) <<= 8; \
        (l) |= *(cp)++; (l) <<= 8; \
        (l) |= *(cp)++; (l) <<= 8; \
        (l) |= *(cp)++; (l) <<= 8; \
        (l) |= *(cp)++; \
}

Definition at line 49 of file ink_inout.h.

#define PUTCHAR (   s,
  cp 
)
Value:
{ \
        *(cp)++ = (s); \
}

Definition at line 45 of file ink_inout.h.

#define PUTLONGLONG (   l,
  cp 
)
Value:
{ \
        (cp)[7] = l; \
        (cp)[6] = (l >>= 8); \
        (cp)[5] = (l >>= 8); \
        (cp)[4] = (l >>= 8); \
        (cp)[3] = (l >>= 8); \
        (cp)[2] = (l >>= 8); \
        (cp)[1] = (l >>= 8); \
        (cp)[0] = l >> 8; \
        (cp) += 8; \
}

Definition at line 63 of file ink_inout.h.