Switch to using C++.
This commit is contained in:
@ -15,9 +15,8 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "arg_parse.h"
|
||||
#include "arg_parse.hpp"
|
||||
|
||||
#include "util.h"
|
||||
#include <string.h>
|
||||
|
||||
enum cmd_id parse_args(const char *cmd) {
|
@ -15,8 +15,8 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "cmd.h"
|
||||
#include "db.h"
|
||||
#include "cmd.hpp"
|
||||
#include "db.hpp"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
@ -15,7 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "db.h"
|
||||
#include "db.hpp"
|
||||
|
||||
#include <sqlite3.h>
|
||||
#include <unistd.h>
|
@ -18,8 +18,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "arg_parse.h"
|
||||
#include "cmd.h"
|
||||
#include "arg_parse.hpp"
|
||||
#include "cmd.hpp"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
enum cmd_id id;
|
20
src/util.h
20
src/util.h
@ -1,20 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2024 Nicolás Ortega Froysa <nicolas@ortegas.org>
|
||||
* Nicolás Ortega Froysa <nicolas@ortegas.org>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define ARRAY_LEN(arr) (sizeof(arr) / sizeof(arr[0]))
|
Reference in New Issue
Block a user