about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-13 21:17:02 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-13 21:23:14 -0800
commit88f4b1bb2bdafe1994f9f025cadb422e8c1e78f3 (patch)
treea97d083dbb6cb410ac6290c7444aad4f76a8f457 /src
parent90f86daf1ce433d661abcc9885e1f93c4e7a5a8c (diff)
downloadteliva-88f4b1bb2bdafe1994f9f025cadb422e8c1e78f3.tar.gz
.
Diffstat (limited to 'src')
-rw-r--r--src/lcurseslib.c13
-rw-r--r--src/lua.c2
2 files changed, 7 insertions, 8 deletions
diff --git a/src/lcurseslib.c b/src/lcurseslib.c
index 32d232b..4d3284c 100644
--- a/src/lcurseslib.c
+++ b/src/lcurseslib.c
@@ -9,9 +9,8 @@
 #include "lauxlib.h"
 #include "lualib.h"
 
-static void cleanup(void) {
-  if (!isendwin())
-  {
+static void cleanup (void) {
+  if (!isendwin()) {
     wclear(stdscr);
     wrefresh(stdscr);
     endwin();
@@ -20,7 +19,7 @@ static void cleanup(void) {
 
 
 int menu_column = 0;
-static void draw_string_on_menu(const char* s) {
+static void draw_string_on_menu (const char* s) {
   mvaddstr(LINES-1, menu_column, " ");
   ++menu_column;
   mvaddstr(LINES-1, menu_column, s);
@@ -28,7 +27,7 @@ static void draw_string_on_menu(const char* s) {
   mvaddstr(LINES-1, menu_column, " ");
   ++menu_column;
 }
-void draw_menu_item(const char* key, const char* name) {
+void draw_menu_item (const char* key, const char* name) {
   attroff(A_REVERSE);
   draw_string_on_menu(key);
   attron(A_REVERSE);
@@ -113,7 +112,7 @@ static int Pcolor_pair (lua_State *L)
 }
 
 
-extern void switch_to_editor(lua_State *L, const char *message);
+extern void switch_to_editor (lua_State *L, const char *message);
 static int Pgetch (lua_State *L) {
   int c = wgetch(stdscr);
   if (c == ERR)
@@ -296,7 +295,7 @@ static const luaL_Reg curses_window_methods[] =
 };
 
 
-static void register_curses_constant(lua_State *L, const char* name, int val) {
+static void register_curses_constant (lua_State *L, const char* name, int val) {
   lua_pushstring(L, name);
   lua_pushinteger(L, val);
   lua_settable(L, -3);
diff --git a/src/lua.c b/src/lua.c
index db2aab5..9690184 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -565,7 +565,7 @@ static int pmain (lua_State *L) {
 }
 
 
-void draw_menu(lua_State *);
+extern void draw_menu (lua_State *);
 
 
 int main (int argc, char **argv) {
d='n222' href='#n222'>222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362