Switch to using C++.

This commit is contained in:
2024-10-09 19:50:53 +02:00
parent ca544e74fa
commit 836daeb69b
10 changed files with 13 additions and 34 deletions

View File

@ -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) {

View File

@ -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>

View File

@ -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>

View File

@ -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;

View File

@ -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]))