Browse Source

.h файлы добавлены в исключения

Savtis 2 years ago
parent
commit
763f83ca36
6 changed files with 48 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 8 0
      src/ompl_src/c/bitwise.h
  3. 4 0
      src/ompl_src/c/bool.h
  4. 6 0
      src/ompl_src/c/elif.h
  5. 8 0
      src/ompl_src/c/str.h
  6. 21 0
      src/ompl_src/c/token.h

+ 1 - 0
.gitignore

@@ -1,6 +1,7 @@
 *.*
 !*.py
 !*.c
+!*.h
 test.c
 !.gitignore
 !LICENSE

+ 8 - 0
src/ompl_src/c/bitwise.h

@@ -0,0 +1,8 @@
+#ifndef BITWISE
+#define BITWISE
+
+typedef unsigned char byte;
+
+byte get_bit(byte bit_array, byte index);
+
+#endif

+ 4 - 0
src/ompl_src/c/bool.h

@@ -0,0 +1,4 @@
+#define true 1
+#define false 0
+
+typedef unsigned char BOOL;

+ 6 - 0
src/ompl_src/c/elif.h

@@ -0,0 +1,6 @@
+#ifndef ELIF
+#define ELIF
+
+#define elif else if
+
+#endif

+ 8 - 0
src/ompl_src/c/str.h

@@ -0,0 +1,8 @@
+#ifndef STR
+#define STR
+#include "bool.h"
+
+int get_str_size(char *);
+char *get_middle(char *, int, int, BOOL);
+
+#endif

+ 21 - 0
src/ompl_src/c/token.h

@@ -0,0 +1,21 @@
+#ifndef TOKEN
+#define TOKEN
+
+#define IS_CONST 0b10000000
+#include "bool.h"
+
+typedef struct token {
+  char *value;
+  unsigned char type;
+  struct token *chain;
+} token;
+
+extern token *token_head;
+extern token *token_start;
+extern char *char_line;
+extern char *spec;
+extern int cursor_pos;
+
+int create_token_from_line(int, int, BOOL, unsigned char, BOOL);
+
+#endif