Browse Source

change #include "server.h" to <server/server.h>

Changes from the flat namespace to heirarchical one.  Instead of writing:

	#include "server.h"

the following form should be used.

	#include <server/server.h>

The exception is from .c files in the same directory.
tags/v0.4.0-rc1
Zachary T Welch 14 years ago
parent
commit
c538a830cd
6 changed files with 6 additions and 6 deletions
  1. +1
    -1
      src/ecosboard.c
  2. +1
    -1
      src/helper/log.c
  3. +1
    -1
      src/helper/options.c
  4. +1
    -1
      src/openocd.c
  5. +1
    -1
      src/server/tcl_server.h
  6. +1
    -1
      src/server/telnet_server.h

+ 1
- 1
src/ecosboard.c View File

@@ -30,7 +30,7 @@
#include <flash/nand.h>
#include "pld.h"

#include "server.h"
#include <server/server.h>
#include "telnet_server.h"
#include <server/gdb_server.h>
#include "openocd.h"


+ 1
- 1
src/helper/log.c View File

@@ -29,7 +29,7 @@

#include "time_support.h"
// @todo the inclusion of server.h here is a layering violation
#include "server.h"
#include <server/server.h>

#include <stdarg.h>



+ 1
- 1
src/helper/options.c View File

@@ -26,7 +26,7 @@

#include "configuration.h"
// @todo the inclusion of server.h here is a layering violation
#include "server.h"
#include <server/server.h>

#include <getopt.h>



+ 1
- 1
src/openocd.c View File

@@ -38,7 +38,7 @@
#include "pld.h"
#include <flash/mflash.h>

#include "server.h"
#include <server/server.h>
#include <server/gdb_server.h>
#include <server/httpd.h>



+ 1
- 1
src/server/tcl_server.h View File

@@ -20,7 +20,7 @@
#ifndef _TCL_SERVER_H_
#define _TCL_SERVER_H_

#include "server.h"
#include <server/server.h>

int tcl_init(struct command_context *cmd_ctx);
int tcl_register_commands(struct command_context *cmd_ctx);


+ 1
- 1
src/server/telnet_server.h View File

@@ -26,7 +26,7 @@
#ifndef TELNET_SERVER_H
#define TELNET_SERVER_H

#include "server.h"
#include <server/server.h>

#define TELNET_BUFFER_SIZE (1024)



Loading…
Cancel
Save