tree: clean up whitespace and includes
This commit is contained in:
parent
21feabdded
commit
bbf9b88c66
8 changed files with 9 additions and 21 deletions
|
@ -4,7 +4,6 @@
|
|||
*/
|
||||
|
||||
#ifndef _CALLISTO_H_
|
||||
|
||||
#define _CALLISTO_H_
|
||||
|
||||
#include <lua.h>
|
||||
|
|
8
lcl.c
8
lcl.c
|
@ -9,17 +9,15 @@
|
|||
* @module cl
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <libgen.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <libgen.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
#include "callisto.h"
|
||||
#include "util.h"
|
||||
|
||||
static void
|
||||
|
@ -240,7 +238,7 @@ cl_options(lua_State *L)
|
|||
argc = (int)lua_rawlen(L, 1) + 1; /* get argv length */
|
||||
argv = lua_newuserdatauv(L, (argc + 1) * sizeof(char *), 0);
|
||||
argv[argc] = NULL;
|
||||
|
||||
|
||||
for (i = 0; i < argc; i++) { /* for every argument */
|
||||
lua_pushinteger(L, i); /* push argv index */
|
||||
lua_gettable(L, 1); /* push argv[i] */
|
||||
|
|
|
@ -8,17 +8,14 @@
|
|||
* @module environ
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
#include "callisto.h"
|
||||
|
||||
|
||||
extern char **environ;
|
||||
|
||||
/***
|
||||
* Table enabling easy access to environment
|
||||
* variables.
|
||||
|
|
3
lextra.c
3
lextra.c
|
@ -17,9 +17,6 @@
|
|||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
#include "callisto.h"
|
||||
#include "util.h"
|
||||
|
||||
/***
|
||||
* Waits the specified amount of seconds.
|
||||
*
|
||||
|
|
3
lfs.c
3
lfs.c
|
@ -24,7 +24,6 @@
|
|||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
#include "callisto.h"
|
||||
#include "util.h"
|
||||
|
||||
/***
|
||||
|
@ -335,7 +334,7 @@ fs_mkdir(lua_State *L)
|
|||
ret = mkpath(dir, 0777, 0777);
|
||||
else
|
||||
ret = mkdir(dir, 0777);
|
||||
|
||||
|
||||
if (ret == 0) {
|
||||
lua_pushboolean(L, 1);
|
||||
return 1;
|
||||
|
|
2
ljson.c
2
ljson.c
|
@ -16,7 +16,7 @@
|
|||
* - Full support for JSON with UTF-8, including decoding surrogate pairs
|
||||
*
|
||||
* - Optional run-time support for common exceptions to the JSON specification
|
||||
* (infinity, NaN, etc.)
|
||||
* (infinity, NaN, etc.)
|
||||
*
|
||||
* - No dependencies on other libraries
|
||||
*
|
||||
|
|
|
@ -9,16 +9,14 @@
|
|||
* @module process
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
#include "callisto.h"
|
||||
#include "util.h"
|
||||
|
||||
#define PID_MAX 8 /* rounded to the nearest even number */
|
||||
|
|
2
util.h
2
util.h
|
@ -4,10 +4,10 @@
|
|||
*/
|
||||
|
||||
#ifndef _UTIL_H_
|
||||
|
||||
#define _UTIL_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <lua.h>
|
||||
|
||||
int lfail(lua_State *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue