Browse Source

SnailNet: Strip silly vim syntax markers (GitHub kludge)

v6
minexew 2 years ago
parent
commit
b56bdb6615
  1. 2
      Adam/Net/Arp.HC
  2. 2
      Adam/Net/Dhcp.HC
  3. 2
      Adam/Net/Dns.HC
  4. 2
      Adam/Net/Ethernet.HC
  5. 2
      Adam/Net/Http.HC
  6. 2
      Adam/Net/IPv4.HC
  7. 2
      Adam/Net/Icmp.HC
  8. 2
      Adam/Net/MakeSnailNet.HC
  9. 2
      Adam/Net/NativeSocket.HC
  10. 2
      Adam/Net/NetFifo.HC
  11. 2
      Adam/Net/NetHandlerTask.HC
  12. 2
      Adam/Net/Netcfg.HC
  13. 2
      Adam/Net/SnailLib.HC
  14. 2
      Adam/Net/Socket.HC
  15. 2
      Adam/Net/Tcp.HC
  16. 2
      Adam/Net/Udp.HC
  17. 2
      Adam/Net/Url.HC
  18. 2
      Adam/Net/UrlParse.HC

2
Adam/Net/Arp.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
// Not a Network Layer protocol, but it is encapsulated in L2 frames, which makes it L3 for our purposes
#define ARP_REQUEST 0x01

2
Adam/Net/Dhcp.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
#include "::/Adam/Net/Socket"
#define BOOTREQUEST 0x01

2
Adam/Net/Dns.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
#define DNS_RCODE_NO_ERROR 0
#define DNS_RCODE_FORMAT_ERROR 1
#define DNS_RCODE_SERVER_FAILURE 2

2
Adam/Net/Ethernet.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
class CEthFrame {
U8 source_addr[6];
U8 padding[2];

2
Adam/Net/Http.HC

@ -1,5 +1,3 @@
// vim: set ft=cpp:
#include "::/Adam/Net/Socket"
#include "::/Adam/Net/UrlParse"

2
Adam/Net/IPv4.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
#define IP_PROTO_ICMP 0x01
#define IP_PROTO_TCP 0x06
#define IP_PROTO_UDP 0x11

2
Adam/Net/Icmp.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
#define ICMP_TYPE_ECHO_REPLY 0
#define ICMP_TYPE_ECHO_REQUEST 8

2
Adam/Net/MakeSnailNet.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
#exe {
#include "::/Adam/HwSupp/Pci"

2
Adam/Net/NativeSocket.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
#define SOCK_STREAM 1
#define SOCK_DGRAM 2
#define SOCK_RAW 3

2
Adam/Net/NetFifo.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
// Warning: terrible code ahead. this still needs a lot of work
// In the future we'll probably have 2 FIFOs (pending frames & empty buffers)

2
Adam/Net/NetHandlerTask.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
U0 HandleNetFifoEntry(CNetFifoEntry* e) {
CEthFrame l2_frame;

2
Adam/Net/Netcfg.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
#include "::/Adam/Net/Dhcp"
#define CLIENT_START 0

2
Adam/Net/SnailLib.HC

@ -1,5 +1,3 @@
// vim: set ft=cpp:
#include "::/Doc/Comm"
#define CMD_SOCKET 1

2
Adam/Net/Socket.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
#exe {
if (SNAILNET_NATIVE_DRIVER == NULL) {
StreamPrint("#include \"::/Adam/Net/SnailLib\"");

2
Adam/Net/Tcp.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
// https://tools.ietf.org/html/rfc793
// See https://en.wikipedia.org/wiki/File:Tcp_state_diagram_fixed_new.svg

2
Adam/Net/Udp.HC

@ -1,5 +1,3 @@
// vim: set ft=c:
class CUdpHeader {
U16 source_port;
U16 dest_port;

2
Adam/Net/Url.HC

@ -1,5 +1,3 @@
// vim: set ft=cpp:
#include "::/Adam/Net/Http"
I64 UrlGet(U8* url, U8** data_out = NULL, I64* size_out = NULL) {

2
Adam/Net/UrlParse.HC

@ -1,5 +1,3 @@
// vim: set ft=cpp:
#define URL_EPARSE (-201)
#define URL_EPROTOCOL (-202)

Loading…
Cancel
Save